mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 03:43:28 +10:00
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:
parent
75ef591777
commit
f5cd73680d
1 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue