2025-01-07 20:19:09 -07:00
|
|
|
/* Global Styles */
|
|
|
|
html, body {
|
|
|
|
height: 100%;
|
2025-01-07 13:02:12 -07:00
|
|
|
margin: 0;
|
2025-01-07 20:19:09 -07:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2025-01-08 15:17:53 -07:00
|
|
|
font-family: 'Georgia', serif; /* Clean serif typography */
|
2025-01-07 20:19:09 -07:00
|
|
|
background-color: #fff;
|
|
|
|
color: #333;
|
|
|
|
line-height: 1.8;
|
2025-01-07 13:02:12 -07:00
|
|
|
}
|
|
|
|
|
2025-01-07 20:19:09 -07:00
|
|
|
/* Wrapper and Layout */
|
2025-01-07 13:02:12 -07:00
|
|
|
header, footer {
|
|
|
|
text-align: center;
|
2025-01-07 20:19:09 -07:00
|
|
|
padding: 20px;
|
|
|
|
background: #f8f8f8;
|
|
|
|
border-bottom: 1px solid #ddd;
|
2025-01-07 13:02:12 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
2025-01-07 20:19:09 -07:00
|
|
|
flex: 1; /* Ensures main fills available space */
|
|
|
|
max-width: 750px;
|
|
|
|
margin: 40px auto;
|
|
|
|
padding: 0 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Header Links */
|
|
|
|
header nav a {
|
2025-01-08 15:17:53 -07:00
|
|
|
font-family: 'Courier New', monospace;
|
2025-01-07 20:19:09 -07:00
|
|
|
font-size: 1.2rem;
|
|
|
|
color: #007acc;
|
|
|
|
text-decoration: none;
|
|
|
|
margin: 0 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
header nav a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Footer */
|
|
|
|
footer {
|
|
|
|
font-size: 0.9rem;
|
|
|
|
color: #555;
|
|
|
|
border-top: 1px solid #ddd;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Notes Section */
|
|
|
|
section.h-feed ul {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
section.h-feed ul li {
|
|
|
|
padding: 15px;
|
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
section.h-feed ul li:last-child {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
section.h-feed ul li time {
|
|
|
|
font-size: 0.8rem;
|
|
|
|
color: #888;
|
|
|
|
display: block;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Articles Section */
|
|
|
|
article.h-entry {
|
|
|
|
margin-bottom: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
article.h-entry h1 {
|
|
|
|
font-family: 'Georgia', serif;
|
|
|
|
font-size: 2rem;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
article.h-entry time {
|
|
|
|
font-size: 0.9rem;
|
|
|
|
color: #777;
|
|
|
|
margin-bottom: 15px;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
article.h-entry .e-content {
|
|
|
|
font-size: 1.1rem;
|
|
|
|
line-height: 1.8;
|
|
|
|
}
|
|
|
|
|
2025-01-08 15:18:31 -07:00
|
|
|
/* Code Block Styling */
|
|
|
|
pre {
|
|
|
|
background-color: #f4f4f4; /* Light gray background */
|
|
|
|
border: 1px solid #ddd; /* Subtle border */
|
|
|
|
border-radius: 5px; /* Rounded corners */
|
|
|
|
padding: 15px; /* Inner padding */
|
|
|
|
overflow-x: auto; /* Horizontal scrolling for long lines */
|
|
|
|
font-family: 'Courier New', monospace; /* Monospace font for readability */
|
|
|
|
font-size: 0.9rem; /* Slightly smaller font size */
|
|
|
|
line-height: 1.6;
|
|
|
|
color: #333; /* Dark text */
|
|
|
|
margin: 20px 0; /* Space around the block */
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
font-family: 'Courier New', monospace; /* Monospace font for inline code */
|
|
|
|
font-size: 0.9rem;
|
|
|
|
background-color: #f4f4f4; /* Same background as pre blocks */
|
|
|
|
padding: 2px 4px; /* Small padding for inline code */
|
|
|
|
border-radius: 3px; /* Rounded corners */
|
|
|
|
color: #c7254e; /* Distinct color for code text */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Optional: Highlight Inline Code */
|
|
|
|
article h-entry code {
|
|
|
|
background-color: #fffbdd; /* Light yellow background for inline code */
|
|
|
|
color: #d6336c; /* Reddish text for contrast */
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2025-01-07 20:19:09 -07:00
|
|
|
/* Photos Section */
|
|
|
|
.photo-grid {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
|
|
gap: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.photo-grid figure {
|
|
|
|
margin: 0;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.photo-grid img {
|
|
|
|
max-width: 100%;
|
|
|
|
border-radius: 5px;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
}
|
|
|
|
|
|
|
|
.photo-grid figcaption {
|
|
|
|
font-size: 0.9rem;
|
|
|
|
color: #555;
|
|
|
|
margin-top: 8px;
|
2025-01-07 13:02:12 -07:00
|
|
|
}
|
|
|
|
|
2025-01-07 20:19:09 -07:00
|
|
|
/* Links */
|
2025-01-07 13:02:12 -07:00
|
|
|
a {
|
2025-01-07 20:19:09 -07:00
|
|
|
color: #007acc;
|
2025-01-07 13:02:12 -07:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2025-01-08 15:17:53 -07:00
|
|
|
|
|
|
|
/* Responsive Design */
|
|
|
|
|
|
|
|
/* For small screens (below 768px) */
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
body {
|
|
|
|
font-size: 90%; /* Reduce base font size for better scaling */
|
|
|
|
}
|
|
|
|
|
|
|
|
header nav a {
|
|
|
|
font-size: 1rem; /* Smaller navigation links */
|
|
|
|
margin: 0 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
padding: 10px; /* Reduce horizontal padding */
|
|
|
|
}
|
|
|
|
|
|
|
|
article.h-entry h1 {
|
|
|
|
font-size: 1.5rem; /* Smaller article titles */
|
|
|
|
}
|
|
|
|
|
|
|
|
.photo-grid {
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* More compact grid */
|
|
|
|
}
|
|
|
|
|
|
|
|
footer {
|
|
|
|
padding: 10px; /* Smaller footer padding */
|
|
|
|
font-size: 0.8rem; /* Smaller footer text */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* For very small screens (below 480px) */
|
|
|
|
@media (max-width: 480px) {
|
|
|
|
header nav {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
header nav a {
|
|
|
|
margin: 5px 0; /* Stack navigation links vertically */
|
|
|
|
}
|
|
|
|
|
|
|
|
.photo-grid {
|
|
|
|
grid-template-columns: 1fr; /* Single-column photo grid */
|
|
|
|
}
|
|
|
|
}
|