Files
blogs/styles.css
T
rchou 3c2dd93d0b
Deploy on push / deploy (push) Successful in 16s
codex rebase
2026-06-10 22:46:25 -07:00

178 lines
2.7 KiB
CSS

html,
body {
font-family: 'EB Garamond', serif;
font-size: 20px;
line-height: 1.6;
margin: 0;
padding: 0;
background: #121212; /* Dark background */
color: #eee; /* Light text */
display: flex;
flex-direction: column;
min-height: 100%;
}
.site-header {
text-align: center;
padding: 10px;
background: black;
position: sticky;
z-index: 100;
top: 0;
}
.site-header h1,
.site-header p {
margin: 0;
}
.post-header {
text-align: center;
padding: 10px;
background: black;
position: sticky;
top: 0;
z-index: 100;
}
main {
max-width: 700px;
margin: 40px auto;
padding: 20px;
background: #121212;
flex: 1;
width: calc(100% - 40px);
box-sizing: border-box;
}
footer {
text-align: center;
padding: 20px;
margin-top: 40px;
background: #1e1e1e;
}
p {
font-size: 22px;
line-height: 1.6;
}
a {
color: #eee;
text-decoration: underline;
}
a:hover {
text-decoration: none;
}
blockquote {
margin-top: 10px;
margin-bottom: 10px;
margin-left: 15px;
padding-left: 15px;
border-left: 3px solid #ccc;
}
.post-card {
display: block;
background: #1e1e1e;
padding: 20px;
border-radius: 8px;
margin-bottom: 20px;
transition: background 0.3s ease, transform 0.2s ease;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
text-decoration: none;
}
.post-card p {
margin: 0;
}
.post-card h2,
.post-card time,
.post-metadata {
text-align: center;
}
.post-card h2 {
font-size: 38px;
line-height: 1.2;
margin: 0;
}
.post-card time,
.post-metadata time {
display: block;
color: grey;
font-size: 18px;
}
.post-card:hover {
background: #292929;
transform: translateY(-2px);
text-decoration: none;
}
.post-metadata h1 {
font-size: 38px;
line-height: 1.2;
margin: 0;
}
.post-excerpt {
color: #ccc;
margin: 0.25rem 0;
}
.post > hr {
margin: 1.5rem 0;
}
.home-button {
width: 50px;
height: 50px;
border-radius: 50%;
object-fit: cover;
border: 2px solid #ccc;
cursor: pointer;
transition: transform 0.2s ease, opacity 0.2s ease;
}
.home-button:hover {
transform: scale(1.1);
opacity: 0.8;
}
.post pre {
overflow-x: auto;
padding: 1rem;
background: #1e1e1e;
border-radius: 8px;
}
.post :not(pre) > code {
padding: 0.1em 0.3em;
background: #1e1e1e;
border-radius: 4px;
}
@media (max-width: 600px) {
html,
body {
font-size: 18px;
}
main {
margin: 20px auto;
}
p {
font-size: 20px;
}
.post-card h2,
.post-metadata h1 {
font-size: 32px;
}
}