Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add custom CSS file for mobile version

Roland Geider58cf0a3f0a1e
diff --git a/wger/manager/static/css/workout-manager-mobile.css b/wger/manager/static/css/workout-manager-mobile.css
new file mode 100644
index 000000000..d835c6194
--- /dev/null
+++ b/wger/manager/static/css/workout-manager-mobile.css
@@ -0,0 +1,104 @@
+/*
+ This file is part of Workout Manager
+
+ Workout Manager is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ Workout Manager is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with Workout Manager. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+/**************************************************************
+ *
+ * This file contains custom classes and styles for the mobile version
+ *
+ **************************************************************/
+
+
+/* Use Open Sans for the body text */
+.ui-body-c,
+.ui-body-c input,
+.ui-body-c select,
+.ui-body-c textarea,
+.ui-body-c button {
+ font-family: "Open Sans Light", Arial, Helvetica, sans-serif;
+ font-weight: 300;
+}
+
+/*
+ * Links in warning boxes get a different style, the default blue doesn't match
+ * well with orange
+ */
+div.success a.ui-link, div.success a.ui-link:hover, div.success a.ui-link:active,
+div.warning a.ui-link, div.warning a.ui-link:hover, div.warning a.ui-link:active,
+div.info a.ui-link, div.info a.ui-link:hover, div.info a.ui-link:active{
+ color: black;
+ text-decoration: underline;
+ background-color: transparent;
+}
+
+/*
+ * Copied from YAML's typography.css file
+ */
+.box {
+ border-radius: 0.3em;
+ border-width: 1px;
+ border-style: solid;
+ border-color: #888;
+ border-color: rgba(0,0,0,.3);
+ -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2) inset;
+ -moz-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2) inset;
+ box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2) inset;
+ color: #444;
+ color: rgba(0,0,0,.8);
+ padding: 1.4286em;
+ margin: 1.5em 0 0 0;
+}
+
+.dimmed {
+ color:#888;
+}
+
+h1 {
+ font-size:350%;
+ line-height: 0.8571em;
+ margin: 0.4286em 0 0;
+}
+
+h2 {
+ font-size:250%;
+ line-height: 1.2em;
+ margin: 0.6em 0 0 0;
+}
+
+h3 {
+ font-size:175%;
+ line-height: 0.8571em;
+ margin:0.8571em 0 0 0;
+}
+
+h4 {
+ font-size:133.33%;
+ line-height: 1.125em;
+ margin:1.125em 0 0 0;
+}
+
+h5 {
+ font-size:116.67%;
+ line-height: 1.2857em;
+ margin: 1.2857em 0 0 0;
+}
+
+h6 {
+ font-weight: bold;
+ font-size:100%;
+ line-height: 1.5em;
+ margin: 1.5em 0 0 0;
+}
\ No newline at end of file
diff --git a/wger/manager/templates/mobile/template.html b/wger/manager/templates/mobile/template.html
index 92fbd574b..578818aef 100644
--- a/wger/manager/templates/mobile/template.html
+++ b/wger/manager/templates/mobile/template.html
@@ -33,6 +33,7 @@
<link rel="stylesheet" type="text/css" href="{% static 'css/jquery-mobile.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/workout-manager.css' %}"> <!-- Own CSS classes and styles -->
+ <link rel="stylesheet" type="text/css" href="{% static 'css/workout-manager-mobile.css' %}">
<script src="{% static 'js/jquery.js' %}" type="text/javascript"></script>
@@ -209,16 +210,12 @@
</div>
<div data-role="footer">
- <div class="ui-grid-b">
+ <div class="ui-grid-a">
<div class="ui-block-a">
© <a href="mailto:roland@NO!SPAM!geider.net">Roland Geider</a>
</div>
<div class="ui-block-b">
- {% trans "Layout based on <a href='http://www.yaml.de'>YAML</a>" %}
- </div>
-
- <div class="ui-block-c">
<em class="dimmed">{{version}}</em>
</div>
</div>