pawelorzech.github.io/style.css
Paweł Orzech 421026b334 Redesign blog with minimal white aesthetic
- Complete redesign to match minimal, clean look inspired by pawel.orzech.me
- Support for both short microblog posts and long-form articles
- Beautiful image display with proper loading and hover effects
- Removed complex gradients and animations in favor of clean typography
- Implemented chronological post feed layout
- Added proper post differentiation (short vs long posts)
- Minimal navigation and clean spacing throughout
- Responsive design optimized for readability
- Added sample digital minimalism blog post

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-08 10:57:26 +02:00

290 lines
No EOL
3.9 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
line-height: 1.6;
color: #333;
background: #fff;
font-size: 16px;
font-weight: 400;
}
html {
scroll-behavior: smooth;
}
.container {
max-width: 650px;
margin: 0 auto;
padding: 0 20px;
}
/* Header */
.header {
padding: 40px 0;
border-bottom: 1px solid #eee;
background: #fff;
}
.profile {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 24px;
}
.avatar {
width: 60px;
height: 60px;
border-radius: 50%;
overflow: hidden;
}
.avatar-img {
width: 100%;
height: 100%;
object-fit: cover;
}
.profile-info {
flex: 1;
}
.name {
font-size: 24px;
font-weight: 600;
color: #000;
margin: 0;
line-height: 1.2;
}
.bio {
font-size: 14px;
color: #666;
margin: 4px 0 0 0;
}
.nav {
display: flex;
gap: 24px;
}
.nav-link {
color: #666;
text-decoration: none;
font-size: 14px;
font-weight: 500;
transition: color 0.2s ease;
}
.nav-link:hover {
color: #000;
}
/* Main Content */
.main {
padding: 40px 0;
}
.posts {
display: flex;
flex-direction: column;
}
.post {
margin-bottom: 48px;
padding-bottom: 32px;
border-bottom: 1px solid #f0f0f0;
}
.post:last-child {
border-bottom: none;
margin-bottom: 24px;
}
.post-header {
margin-bottom: 16px;
}
.post-date {
font-size: 13px;
color: #999;
font-weight: 500;
display: block;
margin-bottom: 8px;
}
.post-title {
font-size: 20px;
font-weight: 600;
color: #000;
margin: 0;
line-height: 1.3;
}
.post-long .post-title {
margin-bottom: 16px;
}
.post-content {
color: #333;
line-height: 1.65;
}
.post-content p {
margin: 0 0 16px 0;
font-size: 16px;
}
.post-content p:last-child {
margin-bottom: 0;
}
/* Images */
.post-image {
margin: 0 0 16px 0;
border-radius: 8px;
overflow: hidden;
}
.post-image img {
width: 100%;
height: auto;
display: block;
border-radius: 8px;
}
/* Read more links */
.read-more {
color: #666;
text-decoration: none;
font-size: 14px;
font-weight: 500;
display: inline-block;
margin-top: 8px;
transition: color 0.2s ease;
}
.read-more:hover {
color: #000;
}
/* Short vs Long posts */
.post-short .post-title {
display: none;
}
.post-short .post-content {
font-size: 16px;
}
.post-long .post-content {
font-size: 16px;
}
/* Pagination */
.pagination {
text-align: center;
margin: 40px 0;
padding-top: 20px;
border-top: 1px solid #f0f0f0;
}
.pagination-link {
color: #666;
text-decoration: none;
font-size: 14px;
font-weight: 500;
transition: color 0.2s ease;
}
.pagination-link:hover {
color: #000;
}
/* Footer */
.footer {
text-align: center;
padding: 40px 0;
border-top: 1px solid #eee;
color: #999;
font-size: 13px;
}
/* Responsive Design */
@media (max-width: 768px) {
.container {
padding: 0 16px;
}
.header {
padding: 24px 0;
}
.profile {
margin-bottom: 20px;
}
.nav {
gap: 20px;
}
.main {
padding: 24px 0;
}
.post {
margin-bottom: 32px;
padding-bottom: 24px;
}
.name {
font-size: 20px;
}
.post-title {
font-size: 18px;
}
}
@media (max-width: 480px) {
.container {
padding: 0 12px;
}
.profile {
gap: 12px;
}
.avatar {
width: 50px;
height: 50px;
}
.name {
font-size: 18px;
}
.nav {
gap: 16px;
}
.post-content p {
font-size: 15px;
}
}
/* Light theme for images */
.post-image img {
border: 1px solid #f0f0f0;
}
/* Hover effects for images */
.post-image img:hover {
opacity: 0.95;
transition: opacity 0.2s ease;
}