Change negative top positioning for top bar

Use the clac function instead of just using a minus sign in front of the top margin
variable for clarity.
This commit is contained in:
Hannu Lyytikainen 2017-11-07 11:33:42 +02:00
parent 75ef591777
commit f5cd73680d

View file

@ -84,13 +84,13 @@
/* Place the bar on top of .sectionContent top margin */
position: relative;
top: -var(--sectionMarginTopMobile);
top: calc(-1 * var(--sectionMarginTopMobile));
@media (--viewportMedium) {
width: 192px;
height: 8px;
/* Place the bar on top of .sectionContent top margin */
top: -var(--sectionMarginTop);
top: calc(-1 * var(--sectionMarginTop));
}
}