Created
January 13, 2018 07:42
-
-
Save tvlgiao/38d9fee5b770eb1aa1e4e500b5ea7108 to your computer and use it in GitHub Desktop.
BC Supermarket theme - Move maintenance notice box to top of page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
padding-top: 10rem; | |
} | |
.maintenanceNotice { | |
top: 55px; | |
left: 0; | |
right: 0; | |
width: auto; | |
display: flex; | |
justify-content: space-between; | |
height: 6rem; | |
font-size: 11px; | |
overflow: hidden; | |
} | |
@media (min-width: 550px) { | |
body { | |
padding-top: 8rem; | |
} | |
.maintenanceNotice { | |
height: 4rem; | |
} | |
} | |
@media (min-width: 800px) { | |
body { | |
padding-top: 4rem; | |
} | |
.maintenanceNotice { | |
top: 0; | |
} | |
} | |
@media (min-width: 1200px) { | |
body { | |
padding-top: 3rem; | |
} | |
.maintenanceNotice { | |
height: 3rem; | |
} | |
} | |
.maintenanceNotice > p { | |
margin: 0; | |
padding-right: 1.5rem; | |
} | |
.maintenanceNotice > br { | |
display: none; | |
} | |
.maintenanceNotice > a { | |
padding-left: 1.5rem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment