Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Move the syling for the SVG elements on the weight chart to CSS file

Roland Geiderd955d21e7152
diff --git a/manager/static/css/manager-custom.css b/manager/static/css/manager-custom.css
index 760a4de9d..1551d9828 100644
--- a/manager/static/css/manager-custom.css
+++ b/manager/static/css/manager-custom.css
@@ -104,3 +104,31 @@ div.muscle-background
#exercise-search-log{
padding-left: 1em;
}
+
+
+
+/*
+ * Styling for the SVG elements on the weight chart
+ */
+
+.axis path, .axis line {
+ fill: none;
+ stroke: #000;
+ shape-rendering: crispEdges;
+}
+
+.area {
+ fill: lightsteelblue;
+}
+
+.line {
+ fill: none;
+ stroke: steelblue;
+ stroke-width: 1.5px;
+}
+
+.dot {
+ fill: white;
+ stroke: steelblue;
+ stroke-width: 1.5px;
+}
\ No newline at end of file
diff --git a/weight/templates/weight_overview.html b/weight/templates/weight_overview.html
index 190c7c978..1056aba91 100644
--- a/weight/templates/weight_overview.html
+++ b/weight/templates/weight_overview.html
@@ -16,33 +16,6 @@
<script src="{% static 'js/d3.js' %}"></script>
<script src="{% static 'js/jquery-globalize/lib/globalize.js' %}"></script>
-<style>
-
-.axis path, .axis line {
- fill: none;
- stroke: #000;
- shape-rendering: crispEdges;
-}
-
-.area {
- fill: lightsteelblue;
-}
-
-.line {
- fill: none;
- stroke: steelblue;
- stroke-width: 1.5px;
-}
-
-.dot {
- fill: white;
- stroke: steelblue;
- stroke-width: 1.5px;
-}
-
-</style>
-
-
<script type="text/javascript">
@@ -89,7 +62,7 @@ var yAxis = d3.svg.axis()
.orient("left");
var line = d3.svg.line()
- .x(function(d) { return x(getDate(d.x)); })
+ .x(function(d) { return x(getDate(d.x)); })
.y(function(d) { return y(d.y); });
var area = d3.svg.area()