Created
July 2, 2022 02:49
-
-
Save james-see/341e7bf29208be16296fa62e107aeb3e to your computer and use it in GitHub Desktop.
stylesheet for bear site https://notapalindrome.bearblog.dev/
This file contains hidden or 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
@import 'https://fonts.googleapis.com/css?family=Rubik+Mono+One'; | |
html, body { | |
height: 100%; | |
width: 100%; | |
margin: 0; | |
background: #F5FFFA; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
flex-direction: column; | |
overflow: hidden; | |
} | |
.title h1 { | |
font-size: 3em; | |
} | |
.words { | |
color: #F5FFFA; | |
font-size: 0; | |
line-height: 1; | |
} | |
.words span { | |
font-family: 'Rubik Mono One', sans-serif; | |
font-size: 120px; | |
display: inline-block; | |
animation: move 2s ease-in-out infinite; | |
} | |
.words span:nth-child(2) { | |
animation-delay: 0.5s; | |
} | |
.words span:nth-child(3) { | |
animation-delay: 1s; | |
} | |
.words span:nth-child(4) { | |
animation-delay: 1.5s; | |
} | |
@keyframes move { | |
0% { | |
transform: translate(-33%, 0); | |
} | |
50% { | |
text-shadow: 0 15px 40px rgba(0, 0, 0, 0.6); | |
} | |
100% { | |
transform: translate(33%, 0); | |
} | |
} | |
@media (prefers-color-scheme: light) { | |
h1, h2, h3, h4, h5, h6, strong, b { | |
color: #BC8F8F; | |
} | |
.words { | |
color: #F5FFFA; | |
} | |
html, body { | |
background: #F5FFFA; | |
} | |
} | |
@media (prefers-color-scheme: dark) { | |
h1, h2, h3, h4, h5, h6, strong, b { | |
color: #EEE; | |
} | |
.words { | |
color: #4682B4; | |
font-size: 0; | |
line-height: 1; | |
} | |
html, body { | |
background: #4682B4; | |
} | |
a:visited, ul.blog-posts li a:visited { | |
color: #191970; | |
} | |
} | |
@media only screen and (max-width: 600px) { | |
.title h1 { | |
font-size: 2em; | |
} | |
nav { | |
display: float; | |
} | |
body { | |
height: 100%; | |
width: 90%; | |
margin: 5px; | |
overflow: auto; | |
} | |
.words span { | |
font-size: 75px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment