Bouncing masthead
This commit is contained in:
parent
ae7877f732
commit
15d23904be
4 changed files with 192 additions and 13 deletions
|
|
@ -35,6 +35,8 @@ pre {
|
|||
body {
|
||||
background-color: #252525;
|
||||
color: #eeeeee;
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
}
|
||||
|
||||
a {
|
||||
|
|
@ -45,9 +47,62 @@ a:hover {
|
|||
color: #bb312f;
|
||||
}
|
||||
|
||||
.masthead {
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
background-color: #7cb342;
|
||||
color: #252525;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.masthead p.content {
|
||||
font-size: 64px;
|
||||
font-weight: 900;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.masthead p.content .subheader {
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
.masthead .down {
|
||||
position: absolute;
|
||||
-webkit-transform: 50%, 50%;
|
||||
transform: 50%, 50%;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.masthead .down i {
|
||||
font-size: 64px;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 90vw;
|
||||
margin-left: 5vw;
|
||||
margin: 2rem 5vw;
|
||||
}
|
||||
|
||||
.centered {
|
||||
|
|
@ -113,8 +168,12 @@ img.large {
|
|||
align-items: center;
|
||||
}
|
||||
|
||||
body.masthead {
|
||||
height: calc(100vh - 3rem);
|
||||
}
|
||||
|
||||
body {
|
||||
margin-top: 4rem;
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
.titlebar.top .item {
|
||||
|
|
@ -183,7 +242,7 @@ body {
|
|||
}
|
||||
|
||||
button {
|
||||
padding: .75rem 1rem;
|
||||
padding: 0.75rem 1rem;
|
||||
border-radius: 8px;
|
||||
border: none;
|
||||
outline: none;
|
||||
|
|
@ -196,7 +255,7 @@ button {
|
|||
}
|
||||
|
||||
button.small {
|
||||
padding: 0.5rem .75rem;
|
||||
padding: 0.5rem 0.75rem;
|
||||
}
|
||||
|
||||
button.hoverable:hover {
|
||||
|
|
@ -231,4 +290,47 @@ button.cyan:active {
|
|||
button:active {
|
||||
background-color: #404040;
|
||||
}
|
||||
|
||||
.bounce {
|
||||
-webkit-animation: bounce 2s infinite;
|
||||
animation: bounce 2s infinite;
|
||||
}
|
||||
|
||||
@-webkit-keyframes bounce {
|
||||
0%,
|
||||
20%,
|
||||
50%,
|
||||
80%,
|
||||
100% {
|
||||
-webkit-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
}
|
||||
40% {
|
||||
-webkit-transform: translateY(-30px);
|
||||
transform: translateY(-30px);
|
||||
}
|
||||
60% {
|
||||
-webkit-transform: translateY(-15px);
|
||||
transform: translateY(-15px);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes bounce {
|
||||
0%,
|
||||
20%,
|
||||
50%,
|
||||
80%,
|
||||
100% {
|
||||
-webkit-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
}
|
||||
40% {
|
||||
-webkit-transform: translateY(-30px);
|
||||
transform: translateY(-30px);
|
||||
}
|
||||
60% {
|
||||
-webkit-transform: translateY(-15px);
|
||||
transform: translateY(-15px);
|
||||
}
|
||||
}
|
||||
/*# sourceMappingURL=main.css.map */
|
||||
Loading…
Reference in a new issue