Commit 4b102327 authored by Murukesh Mohanan's avatar Murukesh Mohanan

Style years, use SCSS variables

parent d0b722d1
Pipeline #1529 failed with stage
...@@ -21,39 +21,46 @@ ...@@ -21,39 +21,46 @@
text-align: center; text-align: center;
} }
.days { $fields: (
font-size: 8vw; years: (
color: mediumpurple; color: chocolate,
stroke: mediumpurple; size: 8vw,
} stroke-width 1.6%:
),
.hours { days: (
font-size: 6vw; color: mediumpurple,
color: lawngreen; size: 6vw,
stroke: lawngreen; stroke-width 1.2%:
} ),
hours: (
.minutes { color: lawngreen,
font-size: 4vw; size: 4vw,
color: gold; stroke-width 0.8%:
stroke: gold; ),
} minutes: (
color: gold,
.seconds { size: 2vw,
color: silver; stroke-width 0.6%:
stroke: silver; ),
} seconds: (
color: silver,
#days { size: initial,
font-size: 8vw; stroke-width 0.4%:
} ),
);
#hours {
font-size: 6vw; @each $field, $value in $fields {
} .#{$field} {
font-size: map-get($value, "size");
#minutes { color: map-get($value, "color");
font-size: 4vw; stroke: map-get($value, "color");
}
##{$field} {
font-size: map-get($value, "size");
}
svg circle.#{$field} {
stroke-width: map-get($value, "stroke-width");
}
} }
svg { svg {
...@@ -70,26 +77,6 @@ svg circle { ...@@ -70,26 +77,6 @@ svg circle {
fill: none; fill: none;
} }
svg circle.years {
stroke-width: 1.6%;
}
svg circle.days {
stroke-width: 1.2%;
}
svg circle.hours {
stroke-width: 0.8%;
}
svg circle.minutes {
stroke-width: 0.6%;
}
svg circle.seconds {
stroke-width: 0.4%;
}
@media screen and (max-device-aspect-ratio: 1/1) and (orientation: portrait) { @media screen and (max-device-aspect-ratio: 1/1) and (orientation: portrait) {
#main section { #main section {
width: auto; width: auto;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment