Files
yak-blog/css/style.css
T

370 lines
7.2 KiB
CSS
Raw Normal View History

2025-04-26 12:50:45 +01:00
:root {
2026-05-05 15:10:59 +01:00
--main-bg-color: #F9F9F6; /* Softer off-white */
--border-color: #E8E8E3; /* Lighter border */
--hover-color: #F0F0EC; /* Subtle hover background */
--text-color: #2D2D2A; /* Slightly softer black */
--accent-color: #5A5F4F; /* Muted olive green */
--card-bg-color: #FFFFFF; /* Pure white for cards */
--read-more-bar: #D8DBD1; /* Light, muted shade for bottom bar */
2025-04-26 12:50:45 +01:00
}
body, input, textarea {
2026-05-05 15:10:59 +01:00
color: var(--text-color);
font-family: 'Helvetica', Georgia, serif; /* Helvetica as priority */
font-size: 18px; /* Larger base font size */
2025-04-26 12:50:45 +01:00
padding: 0;
margin: 0;
background-color: var(--main-bg-color);
2026-05-05 15:10:59 +01:00
line-height: 1.8; /* Increased leading for readability */
2025-04-26 12:50:45 +01:00
}
a {
text-decoration: none;
color: var(--text-color);
transition: color 0.3s ease;
}
a:hover {
color: var(--accent-color);
}
#header {
display: flex;
justify-content: space-between;
align-items: center;
2026-05-05 15:10:59 +01:00
/*padding: 40px 0 20px;*/
2025-04-26 12:50:45 +01:00
border-bottom: 1px solid var(--border-color);
2026-05-05 15:10:59 +01:00
margin-bottom: 70px;
padding-top: 40px;
2025-04-26 12:50:45 +01:00
}
#site-title {
2026-05-05 15:10:59 +01:00
font-size: 22px; /* Slightly larger */
/*font-weight: 300; /* Lighter weight */*/
2025-04-26 12:50:45 +01:00
margin: 0;
2026-05-05 15:10:59 +01:00
letter-spacing: 0.5px;
2025-04-26 12:50:45 +01:00
}
#article-title {
2026-05-05 15:10:59 +01:00
font-size: 32px;
2025-04-26 12:50:45 +01:00
font-weight: 300;
margin: 10px 0 0 0;
color: var(--accent-color);
2026-05-05 15:10:59 +01:00
line-height: 1.4;
2025-04-26 12:50:45 +01:00
}
nav ul {
list-style-type: none;
display: flex;
margin: 0;
padding: 0;
}
nav li {
2026-05-05 15:10:59 +01:00
margin-left: 35px;
2025-04-26 12:50:45 +01:00
}
nav li a {
2026-05-05 15:10:59 +01:00
font-size: 12px;
2025-04-26 12:50:45 +01:00
padding: 10px 5px;
position: relative;
2026-05-05 15:10:59 +01:00
font-weight: 400;
2025-04-26 12:50:45 +01:00
}
nav li a:hover {
background-color: transparent;
}
nav li a:after {
content: '';
position: absolute;
width: 0;
height: 1px;
bottom: 0;
left: 0;
background-color: var(--accent-color);
transition: width 0.3s ease;
}
nav li a:hover:after {
width: 100%;
}
#wrapper {
2026-05-05 15:10:59 +01:00
max-width: 1100px; /* Slightly narrower for focus */
2025-04-26 12:50:45 +01:00
margin: 0 auto;
padding: 0 20px;
}
.featured-article {
2026-05-05 15:10:59 +01:00
margin-bottom: 50px;
2025-04-26 12:50:45 +01:00
background-color: var(--card-bg-color);
2026-05-05 15:10:59 +01:00
padding: 40px;
border-top: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);
2025-04-26 12:50:45 +01:00
}
.featured-article h2 {
2026-05-05 15:10:59 +01:00
font-size: 36px;
2025-04-26 12:50:45 +01:00
margin-top: 0;
2026-05-05 15:10:59 +01:00
margin-bottom: 20px;
line-height: 1.4;
2025-04-26 12:50:45 +01:00
}
.featured-article .date {
color: var(--accent-color);
font-style: italic;
2026-05-05 15:10:59 +01:00
margin-bottom: 20px;
padding-bottom: 10px;
2025-04-26 12:50:45 +01:00
display: block;
2026-05-05 15:10:59 +01:00
font-size: 16px;
border-bottom: 1px solid var(--border-color);
2025-04-26 12:50:45 +01:00
}
.featured-article .excerpt {
2026-05-05 15:10:59 +01:00
margin-bottom: 25px;
font-size: 18px;
2025-04-26 12:50:45 +01:00
}
.read-more {
display: inline-block;
2026-05-05 15:10:59 +01:00
padding: 10px 0;
color: var(--accent-color);
2025-04-26 12:50:45 +01:00
font-size: 16px;
2026-05-05 15:10:59 +01:00
font-family: 'Helvetica', Georgia, serif; /* Helvetica as priority */
font-weight: 400;
position: relative;
transition: color 0.3s ease;
}
.read-more:after {
content: '';
position: absolute;
width: 100%;
height: 1px;
bottom: 0;
left: 0;
background-color: var(--read-more-bar); /* Light bar under text */
2025-04-26 12:50:45 +01:00
transition: background-color 0.3s ease;
}
.read-more:hover {
2026-05-05 15:10:59 +01:00
color: var(--text-color); /* Darker on hover for contrast */
}
.read-more:hover:after {
background-color: var(--accent-color); /* Slightly darker bar on hover */
2025-04-26 12:50:45 +01:00
}
.articles-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
2026-05-05 15:10:59 +01:00
gap: 40px;
2025-04-26 12:50:45 +01:00
}
.article-card {
background-color: var(--card-bg-color);
2026-05-05 15:10:59 +01:00
padding: 30px;
border-top: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);
2025-04-26 12:50:45 +01:00
}
.article-card h3 {
2026-05-05 15:10:59 +01:00
font-size: 26px;
2025-04-26 12:50:45 +01:00
margin-top: 0;
2026-05-05 15:10:59 +01:00
margin-bottom: 15px;
line-height: 1.4;
2025-04-26 12:50:45 +01:00
}
.article-card .date {
color: var(--accent-color);
font-style: italic;
2026-05-05 15:10:59 +01:00
margin-bottom: 15px;
padding-bottom: 10px;
2025-04-26 12:50:45 +01:00
display: block;
2026-05-05 15:10:59 +01:00
font-size: 16px;
border-bottom: 1px solid var(--border-color);
2025-04-26 12:50:45 +01:00
}
.article-card .excerpt {
2026-05-05 15:10:59 +01:00
margin-bottom: 20px;
font-size: 17px;
}
.article-page {
/*background-color: var(--card-bg-color);*/
/*padding: 50px;*/
/*border-top: 1px solid var(--border-color);*/
/*border-bottom: 1px solid var(--border-color);*/
}
.article-page h1 {
margin-top: 0;
margin-bottom: 5px;
font-size: 36px;
line-height: 1.4;
}
.article-meta {
color: var(--accent-color);
font-style: italic;
margin-bottom: 60px;
padding-bottom: 20px;
border-bottom: 1px solid var(--border-color);
font-size: 16px;
}
.article-content {
font-size: 18px;
line-height: 1.8;
}
.article-content h1, .article-content h2, .article-content h3 {
color: var(--accent-color);
margin-bottom: 20px;
font-size: 36px; /* Match .article-page h1 */
line-height: 1.4;
}
.article-content h2 {
font-size: 26px; /* Match .article-card h3 */
}
.article-content h3 {
font-size: 22px; /* Smaller heading for consistency */
}
.article-content p {
margin-bottom: 25px;
}
.article-content ul, .article-content ol {
margin-bottom: 25px;
padding-left: 30px;
}
.article-content a {
color: var(--accent-color);
text-decoration: underline;
}
.article-content code {
background-color: var(--hover-color);
padding: 2px 6px;
border-radius: 3px;
}
.article-content pre {
background-color: var(--hover-color);
padding: 15px;
border-radius: 4px;
overflow-x: auto;
}
.excerpt h1, .excerpt h2, .excerpt h3 {
color: var(--accent-color);
margin-bottom: 20px;
font-size: 26px; /* Match .article-card h3 for excerpts */
line-height: 1.4;
}
.excerpt h2 {
font-size: 22px;
}
.excerpt h3 {
font-size: 18px;
}
.excerpt p {
font-size: 17px; /* Match .article-card .excerpt */
margin-bottom: 20px;
}
.excerpt ul, .excerpt ol {
margin-bottom: 20px;
padding-left: 30px;
}
.about-content .content h1, .about-content .content h2, .about-content .content h3 {
color: var(--accent-color);
margin-bottom: 20px;
font-size: 36px; /* Match .article-page h1 */
line-height: 1.4;
}
.about-content .content h2 {
font-size: 26px; /* Match .article-card h3 */
}
.about-content .content h3 {
font-size: 22px; /* Smaller heading for consistency */
}
.about-content .content p {
font-size: 18px;
margin-bottom: 25px;
}
.about-content .content ul, .about-content .content ol {
margin-bottom: 25px;
padding-left: 30px;
2025-04-26 12:50:45 +01:00
}
#footer {
2026-05-05 15:10:59 +01:00
margin-top: 80px;
padding: 30px 0;
2025-04-26 12:50:45 +01:00
border-top: 1px solid var(--border-color);
text-align: center;
font-size: 14px;
color: var(--accent-color);
}
/* Responsive styles */
@media (max-width: 900px) {
.articles-grid {
grid-template-columns: repeat(2, 1fr);
2026-05-05 15:10:59 +01:00
gap: 30px;
2025-04-26 12:50:45 +01:00
}
}
@media (max-width: 600px) {
#header {
flex-direction: column;
align-items: flex-start;
2026-05-05 15:10:59 +01:00
padding: 30px 0 15px;
2025-04-26 12:50:45 +01:00
}
2026-05-05 15:10:59 +01:00
2025-04-26 12:50:45 +01:00
nav {
2026-05-05 15:10:59 +01:00
margin-top: 25px;
2025-04-26 12:50:45 +01:00
width: 100%;
}
2026-05-05 15:10:59 +01:00
2025-04-26 12:50:45 +01:00
nav ul {
2026-05-05 15:10:59 +01:00
justify-content: flex-start;
2025-04-26 12:50:45 +01:00
}
2026-05-05 15:10:59 +01:00
nav li {
margin-left: 20px;
}
2025-04-26 12:50:45 +01:00
.articles-grid {
grid-template-columns: 1fr;
}
2026-05-05 15:10:59 +01:00
.featured-article, .article-card, .article-page {
padding: 25px;
2025-04-26 12:50:45 +01:00
}
2026-05-05 15:10:59 +01:00
#site-title {
font-size: 36px;
2025-04-26 12:50:45 +01:00
}
2026-05-05 15:10:59 +01:00
.featured-article h2, .article-page h1 {
font-size: 30px;
}
.article-card h3 {
font-size: 24px;
}
}