initial commit - added base, need to fix templ errors
This commit is contained in:
402
static/style.css
Normal file
402
static/style.css
Normal file
@@ -0,0 +1,402 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', 'Courier New', monospace;
|
||||
background-color: #fafafa;
|
||||
color: #2d3748;
|
||||
line-height: 1.6;
|
||||
padding: 20px;
|
||||
max-width: 720px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.header {
|
||||
border: 2px solid #4a5568;
|
||||
background-color: #f7fafc;
|
||||
padding: 24px;
|
||||
margin-bottom: 32px;
|
||||
text-align: center;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 8px;
|
||||
color: #1a202c;
|
||||
}
|
||||
|
||||
.header .subtitle {
|
||||
font-size: 16px;
|
||||
color: #718096;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.nav {
|
||||
background-color: #edf2f7;
|
||||
border: 1px solid #cbd5e0;
|
||||
padding: 16px;
|
||||
margin-bottom: 24px;
|
||||
font-size: 15px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.nav a {
|
||||
color: #3182ce;
|
||||
text-decoration: none;
|
||||
margin-right: 20px;
|
||||
padding: 4px 8px;
|
||||
border-radius: 3px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.nav a:visited {
|
||||
color: #805ad5;
|
||||
}
|
||||
|
||||
.nav a:hover {
|
||||
background-color: #bee3f8;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.blog-posts {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.blog-post {
|
||||
border: 1px solid #e2e8f0;
|
||||
background-color: #ffffff;
|
||||
margin-bottom: 20px;
|
||||
padding: 20px;
|
||||
border-radius: 6px;
|
||||
transition: all 0.2s ease;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.blog-post:hover {
|
||||
border-color: #cbd5e0;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.post-title {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.post-title a {
|
||||
color: #2b6cb0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.post-title a:visited {
|
||||
color: #805ad5;
|
||||
}
|
||||
|
||||
.post-title a:hover {
|
||||
text-decoration: underline;
|
||||
color: #2c5282;
|
||||
}
|
||||
|
||||
.post-meta {
|
||||
font-size: 13px;
|
||||
color: #718096;
|
||||
margin-bottom: 12px;
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
padding-bottom: 8px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.post-excerpt {
|
||||
font-size: 15px;
|
||||
margin-bottom: 10px;
|
||||
color: #4a5568;
|
||||
}
|
||||
|
||||
.read-more {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.read-more a {
|
||||
color: #3182ce;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
padding: 2px 4px;
|
||||
border-radius: 2px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.read-more a:hover {
|
||||
background-color: #ebf8ff;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.footer {
|
||||
margin-top: 48px;
|
||||
padding-top: 24px;
|
||||
border-top: 1px solid #e2e8f0;
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
color: #718096;
|
||||
}
|
||||
|
||||
.footer a {
|
||||
color: #3182ce;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.footer a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Mobile responsive */
|
||||
@media (max-width: 600px) {
|
||||
body {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.header {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.header .subtitle {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.nav {
|
||||
font-size: 14px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.nav a {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
margin-right: 0;
|
||||
padding: 8px 12px;
|
||||
}
|
||||
|
||||
.blog-post {
|
||||
padding: 16px;
|
||||
}
|
||||
.pagination {
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.post-detail {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.post-detail .post-title {
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 400px) {
|
||||
.header h1 {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.post-title {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.post-excerpt {
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Subtle animations and modern touches */
|
||||
.blink {
|
||||
animation: pulse 2s infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.5; }
|
||||
}
|
||||
|
||||
.loading {
|
||||
opacity: 0.7;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
|
||||
.loading::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin: -10px 0 0 -10px;
|
||||
border: 2px solid #e2e8f0;
|
||||
border-top: 2px solid #3182ce;
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
/* Pagination Styles */
|
||||
.pagination {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: 32px;
|
||||
padding: 20px;
|
||||
background-color: #f7fafc;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.pagination a {
|
||||
color: #3182ce;
|
||||
text-decoration: none;
|
||||
padding: 8px 16px;
|
||||
border-radius: 4px;
|
||||
transition: all 0.2s ease;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.pagination a:hover {
|
||||
background-color: #bee3f8;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.page-info {
|
||||
color: #718096;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Post Detail Styles */
|
||||
.post-detail {
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 6px;
|
||||
padding: 32px;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.post-detail .post-title {
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 16px;
|
||||
color: #1a202c;
|
||||
}
|
||||
|
||||
.post-detail .post-meta {
|
||||
font-size: 14px;
|
||||
color: #718096;
|
||||
margin-bottom: 24px;
|
||||
padding-bottom: 16px;
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.post-content {
|
||||
font-size: 16px;
|
||||
line-height: 1.7;
|
||||
color: #2d3748;
|
||||
}
|
||||
|
||||
.post-content h2 {
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
margin: 32px 0 16px 0;
|
||||
color: #1a202c;
|
||||
}
|
||||
|
||||
.post-content h3 {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
margin: 24px 0 12px 0;
|
||||
color: #1a202c;
|
||||
}
|
||||
|
||||
.post-content p {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.post-content code {
|
||||
background-color: #f7fafc;
|
||||
padding: 2px 6px;
|
||||
border-radius: 3px;
|
||||
font-size: 14px;
|
||||
border: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.post-content pre {
|
||||
background-color: #1a202c;
|
||||
color: #f7fafc;
|
||||
padding: 16px;
|
||||
border-radius: 6px;
|
||||
overflow-x: auto;
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
.post-content pre code {
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.post-footer {
|
||||
margin-top: 32px;
|
||||
padding-top: 24px;
|
||||
border-top: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.post-footer a {
|
||||
color: #3182ce;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
padding: 8px 12px;
|
||||
border-radius: 4px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.post-footer a:hover {
|
||||
background-color: #ebf8ff;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Tag Links */
|
||||
a[href^="/tags/"] {
|
||||
background-color: #ebf8ff;
|
||||
color: #2b6cb0;
|
||||
padding: 2px 6px;
|
||||
border-radius: 3px;
|
||||
font-size: 12px;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
a[href^="/tags/"]:hover {
|
||||
background-color: #bee3f8;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* HTMX Transitions */
|
||||
.htmx-settling {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.htmx-swapping {
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
|
Reference in New Issue
Block a user