Skip to content

Instantly share code, notes, and snippets.

@mp5maker
Created December 5, 2020 08:08
Show Gist options
  • Select an option

  • Save mp5maker/d289894bb28f549dcff9932e66c4c5c1 to your computer and use it in GitHub Desktop.

Select an option

Save mp5maker/d289894bb28f549dcff9932e66c4c5c1 to your computer and use it in GitHub Desktop.
PWA App with banner
body, html {
margin: 0;
padding: 0;
}
body {
height: 100%;
background-color: var(--dark);
color: var(--white);
}
body > .container-fluid {
min-height: calc(100vh - 60px);
}
body > .container-fluid ~ footer {
line-height: 59px;
height: 59px;
text-align: center;
border-top: 1px solid var(--light);
}
.posts {
padding: 12px;
}
.post {
padding: 12px;
box-shadow: 0 1px 15px 0 rgba(0, 0, 0, 0.3);
margin-top: 12px;
margin-bottom: 12px;
}
.post .post-title {
font-size: 18px;
}
.post .post-body {
font-size: 12px;
}
.banner {
position: fixed;
width: 100%;
top: 0;
left: 0;
z-index: 2;
display: none;
}
.banner.active {
display: block;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment