mirror of
https://github.com/Findus23/nonsense.git
synced 2024-09-19 16:03:50 +02:00
111 lines
No EOL
1.6 KiB
SCSS
111 lines
No EOL
1.6 KiB
SCSS
$famousYellow: #ffcc00;
|
|
$famousBlue: #003399;
|
|
|
|
body, html {
|
|
padding: 0;
|
|
margin: 0;
|
|
background: $famousBlue;
|
|
height: 100%;
|
|
font-family: "Verdana", "Liberation Sans", sans-serif;
|
|
}
|
|
|
|
#contentbox {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
|
|
#box {
|
|
background: $famousYellow;
|
|
padding: 16px;
|
|
}
|
|
|
|
#buttonwrapper {
|
|
@media screen and (max-height: 400px) {
|
|
top: 10px;
|
|
}
|
|
position: fixed;
|
|
top: 50px;
|
|
text-decoration: none;
|
|
display: flex;
|
|
align-items: center;
|
|
&:hover {
|
|
text-decoration: none;
|
|
#icon {
|
|
transform: rotate(90deg);
|
|
}
|
|
}
|
|
}
|
|
|
|
#icon {
|
|
width: 70px;
|
|
height: 70px;
|
|
transition: transform .3s;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
#button {
|
|
color: white;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
#name {
|
|
font-size: 2.25rem;
|
|
text-align: center;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
#description {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
#share {
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
padding: 10px;
|
|
svg {
|
|
fill: white;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.github-corner {
|
|
svg {
|
|
fill: $famousYellow;
|
|
color: $famousBlue;
|
|
position: absolute;
|
|
top: 0;
|
|
border: 0;
|
|
right: 0;
|
|
}
|
|
&:hover .octo-arm {
|
|
animation: octocat-wave 560ms ease-in-out
|
|
}
|
|
}
|
|
|
|
@keyframes octocat-wave {
|
|
0%, 100% {
|
|
transform: rotate(0)
|
|
}
|
|
20%, 60% {
|
|
transform: rotate(-25deg)
|
|
}
|
|
40%, 80% {
|
|
transform: rotate(10deg)
|
|
}
|
|
}
|
|
|
|
@media (max-width: 500px) {
|
|
.github-corner:hover .octo-arm {
|
|
animation: none
|
|
}
|
|
|
|
.github-corner .octo-arm {
|
|
animation: octocat-wave 560ms ease-in-out
|
|
}
|
|
} |