Created
July 6, 2022 05:10
-
-
Save james-see/d18fcc7630590fabb102b14d6737e846 to your computer and use it in GitHub Desktop.
css bearblog full caa.ac
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'; | |
@import 'https://fonts.googleapis.com/css?family=Muli&display=swap'; | |
body { | |
font-family: Verdana, sans-serif; | |
margin: auto; | |
padding: 20px; | |
max-width: 720px; | |
text-align: left; | |
background-color: #fff; | |
word-wrap: break-word; | |
overflow-wrap: break-word; | |
line-height: 1.5; | |
color: #444; | |
} | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6, | |
strong, | |
b { | |
color: #222; | |
} | |
a { | |
color: #3273dc; | |
cursor: pointer; | |
text-decoration: underline; | |
/*color: #ff5e6c;*/ | |
} | |
.title { | |
text-decoration: none; | |
} | |
.title h1 { | |
font-size: 1.5em; | |
} | |
nav a { | |
margin-right: 10px; | |
} | |
.title-bear { | |
font-weight: 400; | |
} | |
.bear::before { | |
content: "ᕦʕ •ᴥ•ʔᕤ"; | |
font-weight: 400; | |
} | |
.bear:hover::before { | |
content: "ᕙʕ ಠᴥಠʔᕗ"; | |
font-weight: 400; | |
} | |
textarea, | |
input:not([type="submit"]) { | |
background-color: inherit; | |
color: inherit; | |
border: 1px dashed; | |
padding: 5px; | |
font-size: 16px; | |
} | |
.full-width textarea, | |
.full-width input:not([type="submit"], [type="checkbox"], [type="radio"]) { | |
width: calc(100% - 15px); | |
} | |
.inline { | |
width: auto !important; | |
} | |
textarea:required, | |
input:required:not([type="submit"]){ | |
border: 1px solid; | |
} | |
textarea.full-screen { | |
position: fixed; | |
background-color: white; | |
top: -2px; | |
bottom: -2px; | |
left: 0; | |
width: calc(100vw - 30px); | |
max-width: 720px; | |
border: 10px solid; | |
border-width: 10px calc(50vw - 370px); | |
} | |
@media only screen and (max-width: 750px) { | |
textarea.full-screen { | |
border-width: 10px; | |
} | |
} | |
button.floating { | |
position: fixed; | |
bottom: 20px; | |
right: 25px; | |
} | |
button#toggle-full-screen { | |
float: right; | |
} | |
content { | |
line-height: 1.6; | |
} | |
table { | |
width: 100%; | |
} | |
hr { | |
border-top: 1px dashed; | |
} | |
img { | |
max-width: 100%; | |
} | |
code{ | |
font-family: monospace; | |
padding: 2px; | |
background-color: #f2f2f2; | |
color: #222; | |
border-radius: 3px; | |
} | |
.highlight, | |
.code { | |
padding: 1px 15px; | |
background-color: #f2f2f2; | |
color: #222; | |
border-radius: 3px; | |
margin-block-start: 1em; | |
margin-block-end: 1em; | |
} | |
blockquote { | |
border-left: 1px solid #999; | |
color: #222; | |
padding-left: 20px; | |
font-style: italic; | |
} | |
footer { | |
padding: 25px 0; | |
text-align: center; | |
} | |
pre { | |
white-space: pre-wrap; | |
} | |
html, body { | |
background: #F5FFFA; | |
} | |
} | |
a.title h1 { | |
font-size: 3em; | |
font-family: 'Muli', sans-serif; | |
} | |
.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; | |
word-wrap: break-word; | |
} | |
.words span { | |
font-size: 75px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment