Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Move the CSS styling for the muscle images where they belong

Roland Geidercab8139f8777
diff --git a/exercises/templates/view.html b/exercises/templates/view.html
index 30b0fe785..dee7aa7a7 100644
--- a/exercises/templates/view.html
+++ b/exercises/templates/view.html
@@ -89,13 +89,6 @@ $(document).ready(function() {
-->
{% block sidebar %}
-<style>
-.test{
- width: 200px;
- height: 362px;
- background-repeat: no-repeat;
-}
-</style>
{% if exercise.muscles.all %}
<h3>{% trans "Muscles" %}</h3>
@@ -106,7 +99,7 @@ $(document).ready(function() {
<div class="ym-grid linearize-level-1">
<div class="ym-g50 ym-gl">
<div class="ym-gbox-left">
- <div id="muscle-front" class="test" style="background-image: {% for background in muscle_backgrounds %}url({% static background %}){% if not forloop.last %},{% endif %}{% endfor %};">
+ <div id="muscle-front" class="muscle-background" style="background-image: {% for background in muscle_backgrounds %}url({% static background %}){% if not forloop.last %},{% endif %}{% endfor %};">
</div>
</div>
</div>
diff --git a/manager/static/css/yaml401/custom-yaml.css b/manager/static/css/yaml401/custom-yaml.css
index 6e668b511..53de08e73 100644
--- a/manager/static/css/yaml401/custom-yaml.css
+++ b/manager/static/css/yaml401/custom-yaml.css
@@ -149,3 +149,12 @@ header div.ym-wbox{
padding-left: 100px;
}
+
+/*
+ * Set the sizes for the background where the muscles are shown on the exercise view page
+ */
+.muscle-background{
+ width: 200px;
+ height: 369px;
+ background-repeat: no-repeat;
+}
\ No newline at end of file