Files
site/opencode/style.css
T

131 lines
2.2 KiB
CSS

/* --- General Reset & Variables --- */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
background-color: #f9f9fb;
color: #333;
}
.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}
/* --- Header & Navigation --- */
.header {
background-color: #2c3e50; /* Darker, professional color */
color: white;
padding: 1rem 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.header .container {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap; /* For responsiveness */
}
.header h1 {
margin: 0;
font-size: 1.8rem;
}
nav ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
}
nav ul li a {
color: white;
text-decoration: none;
padding: 10px 15px;
transition: background-color 0.3s;
}
nav ul li a:hover {
background-color: #34495e;
border-radius: 4px;
}
/* --- Main Content --- */
main {
padding: 30px 0;
min-height: 60vh;
}
.content-section {
margin-bottom: 40px;
padding: 20px 0;
}
.content-section h2 {
color: #2c3e50;
border-bottom: 3px solid #3498db; /* Highlight color */
padding-bottom: 10px;
margin-bottom: 20px;
font-size: 2rem;
}
.hero-section {
text-align: center;
padding: 40px 0;
background-color: #ecf0f1;
border-radius: 8px;
}
.post-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 25px;
}
.post-card {
background-color: white;
border: 1px solid #ddd;
border-radius: 8px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
transition: transform 0.3s ease;
}
.post-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
.post-card h3 {
color: #2980b9;
margin-top: 0;
}
.meta {
display: block;
margin-top: 15px;
font-size: 0.9em;
color: #7f8c8d;
}
/* --- Footer --- */
.footer {
background-color: #34495e;
color: white;
text-align: center;
padding: 1.5rem 0;
margin-top: 30px;
}
.footer .container {
display: flex;
justify-content: center;
}