Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tvlgiao/38d9fee5b770eb1aa1e4e500b5ea7108 to your computer and use it in GitHub Desktop.
Save tvlgiao/38d9fee5b770eb1aa1e4e500b5ea7108 to your computer and use it in GitHub Desktop.
BC Supermarket theme - Move maintenance notice box to top of page
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