Template:IndexPage/styles.css: Difference between revisions
From AbhiprayaVedi
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
.main-hero { | .main-hero { | ||
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); | background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); | ||
| Line 11: | Line 9: | ||
.main-hero h1 { | .main-hero h1 { | ||
font-size: 2. | font-size: 2.8em; | ||
margin: 0 0 14px 0; | margin: 0 0 14px 0; | ||
font-weight: 700; | font-weight: 700; | ||
| Line 17: | Line 15: | ||
.main-hero p { | .main-hero p { | ||
font-size: 1. | font-size: 1.25em; | ||
margin-bottom: 28px; | margin-bottom: 28px; | ||
opacity: 0.95; | opacity: 0.95; | ||
} | } | ||
/* | /* Proper Grid Layout */ | ||
.featured-grid, | .featured-grid, | ||
.top-stories-grid { | .top-stories-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax( | grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); | ||
gap: | gap: 28px; | ||
margin-bottom: | margin-bottom: 50px; | ||
} | } | ||
| Line 37: | Line 35: | ||
overflow: hidden; | overflow: hidden; | ||
box-shadow: 0 4px 12px rgba(0,0,0,0.08); | box-shadow: 0 4px 12px rgba(0,0,0,0.08); | ||
transition: all 0.25s | transition: all 0.25s; | ||
height: 100%; | height: 100%; | ||
display: flex; | display: flex; | ||
| Line 57: | Line 55: | ||
padding: 20px; | padding: 20px; | ||
flex-grow: 1; | flex-grow: 1; | ||
} | } | ||
| Line 99: | Line 95: | ||
color: #1e40af; | color: #1e40af; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.category-grid a:hover { | .category-grid a:hover { | ||
background: #dbeafe; | background: #dbeafe; | ||
} | } | ||
| Line 113: | Line 107: | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | } | ||
} | } | ||
Revision as of 19:58, 1 June 2026
.main-hero {
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
color: white;
padding: 70px 20px;
text-align: center;
border-radius: 12px;
margin-bottom: 45px;
}
.main-hero h1 {
font-size: 2.8em;
margin: 0 0 14px 0;
font-weight: 700;
}
.main-hero p {
font-size: 1.25em;
margin-bottom: 28px;
opacity: 0.95;
}
/* Proper Grid Layout */
.featured-grid,
.top-stories-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
gap: 28px;
margin-bottom: 50px;
}
/* Card Styles */
.index-card {
background: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
transition: all 0.25s;
height: 100%;
display: flex;
flex-direction: column;
}
.index-card:hover {
transform: translateY(-6px);
box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}
.index-card-image img {
width: 100%;
height: 210px;
object-fit: cover;
}
.index-card-text {
padding: 20px;
flex-grow: 1;
}
.index-card h3 {
margin: 0 0 10px 0;
font-size: 1.32em;
line-height: 1.35;
}
.index-card-intro {
color: #555;
font-size: 0.97em;
line-height: 1.55;
margin-bottom: 12px;
max-height: 4.8em;
overflow: hidden;
}
.index-card-meta {
color: #666;
font-size: 0.92em;
margin-top: auto;
}
/* Category Grid */
.category-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 14px;
margin: 35px 0;
}
.category-grid a {
display: block;
padding: 18px 20px;
background: #f8fafc;
border-radius: 8px;
text-align: center;
font-weight: 600;
color: #1e40af;
text-decoration: none;
}
.category-grid a:hover {
background: #dbeafe;
}
/* Responsive */
@media (max-width: 768px) {
.main-hero h1 { font-size: 2.3em; }
.featured-grid, .top-stories-grid {
grid-template-columns: 1fr;
}
}