"ഫലകം:IndexPage/styles.css" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
അഭിപ്രായവേദി സംരംഭത്തിൽ നിന്ന്
(ചെ.)തിരുത്തിനു സംഗ്രഹമില്ല |
(ചെ.)തിരുത്തിനു സംഗ്രഹമില്ല |
||
| (ഒരേ ചെയ്ത ഇടയ്ക്കുള്ള 24 നാൾപ്പതിപ്പുകൾ പ്രദർശിപ്പിക്കുന്നില്ല) | |||
| വരി 1: | വരി 1: | ||
/* ================ INDEX PAGE STYLES (OVERHAULED) ================ */ | /* ================ INDEX PAGE STYLES (OVERHAULED & INTEGRATED) ================ */ | ||
/* Hero Section Banner */ | /* Hero Section Banner */ | ||
| വരി 10: | വരി 10: | ||
margin-bottom: 40px; | margin-bottom: 40px; | ||
} | } | ||
.main-hero h1 { | .main-hero h1 { | ||
font-family: 'Manjari', 'Meera', sans-serif !important; | font-family: 'Manjari', 'Meera', sans-serif !important; | ||
| വരി 17: | വരി 16: | ||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
.main-hero p { | .main-hero p { | ||
font-family: 'Manjari', 'Meera', sans-serif !important; | font-family: 'Manjari', 'Meera', sans-serif !important; | ||
| വരി 24: | വരി 22: | ||
opacity: 0.95; | opacity: 0.95; | ||
} | } | ||
.homepage-intro{ | |||
margin:0 0 20px 0; | |||
. | font-size:1.05rem; | ||
line-height:1.65; | |||
color:#4a5568; | |||
} | } | ||
/* | /* | ||
* Force MediaWiki Parser output to stretch cards evenly inside the grid. | * Force MediaWiki Parser output to stretch cards evenly inside the grid. | ||
* This fixes the height mismatch visible in your screenshot. | * This fixes the height mismatch visible in your screenshot. | ||
*/ | */ | ||
.featured-grid > div, | .main-featured-grid > div, | ||
. | .main-topstories-grid > div, | ||
.recent | .main-recent-grid > div { | ||
display: flex !important; | |||
} | |||
.article-card { | .article-card { | ||
height: 100% !important; | height: 100% !important; | ||
display: flex !important; | display: flex !important; | ||
flex-direction: column !important; | flex-direction: column !important; | ||
width: 100%; | |||
} | } | ||
/ | /* Alignment Fix: This forces the metadata row to anchor at the base */ | ||
.article-info { | .article-info { | ||
display: flex !important; | display: flex !important; | ||
flex-direction: column !important; | flex-direction: column !important; | ||
flex-grow: | flex-grow: 0 !important; /* Forces layout box to expand fully */ | ||
} | } | ||
| വരി 74: | വരി 61: | ||
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; | transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; | ||
} | } | ||
.article-card:hover { | .article-card:hover { | ||
transform: translateY(-4px); | transform: translateY(-4px); | ||
| വരി 80: | വരി 66: | ||
} | } | ||
/* ================ | /* ==================== FEATURED SECTION (2 in a row) ==================== */ | ||
.main-featured-grid { | |||
display: grid; | |||
. | grid-template-columns: repeat(2, 1fr); | ||
gap: 16px; | |||
padding: 12px; | |||
background-color: #f1f5f9; | |||
border-radius: 12px; | |||
margin-bottom: 30px; | |||
width: 100%; | |||
box-sizing: border-box; | |||
} | |||
.main-featured-grid .article-Image1 { | |||
max-height: 200px !important; | |||
} | |||
.main-featured-grid .article-title { | |||
font-size: 1.4em !important; | |||
} | |||
.author-grid { | |||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); | grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); | ||
gap: | gap: 20px; | ||
margin-bottom: | } | ||
/* ==================== TOP STORIES SECTION (3 in a row) ==================== */ | |||
.main-topstories-grid { | |||
display: grid; | |||
grid-template-columns: repeat(3, 1fr); | |||
gap: 16px; | |||
padding: 12px; | |||
background-color: #ffffff; | |||
border-radius: 12px; | |||
margin-bottom: 30px; | |||
width: 100%; | width: 100%; | ||
box-sizing: border-box; /* 🛠️ അലൈൻമെന്റ് കൃത്യമാക്കുന്നു */ | |||
} | } | ||
.main-topstories-title { | |||
. | font-size: 1.25em !important; | ||
} | } | ||
/* | .main-topstories-grid .article-image1 { | ||
.recent- | max-height: 150px !important; | ||
font-size: 1. | } | ||
/* ==================== RECENT PUBLICATIONS (4 in a row) ==================== */ | |||
.main-recent-grid { | |||
display: grid; | |||
grid-template-columns: repeat(4, 1fr); | |||
gap: 12px; | |||
padding: 10px; | |||
background-color: #f8fafc; | |||
border-radius: 12px; | |||
margin-bottom: 30px; | |||
width: 100%; | |||
box-sizing: border-box; /* 🛠️ മാർജിൻ പുറത്തേക്ക് പോകുന്നത് തടയുന്നു */ | |||
} | |||
.main-recent-grid .article-image1 { | |||
max-height: 110px !important; /* ചെറിയ ഇമേജ് ലുക്ക് */ | |||
} | |||
.main-recent-grid .article-title { | |||
font-size: 1.15em !important; | |||
line-height: 1.3; | line-height: 1.3; | ||
margin-bottom: 4px !important; | margin-bottom: 4px !important; | ||
} | } | ||
.main-recent-grid .article-intro-wrapper { | |||
max-height: 3.2em !important; /* ഇൻട്രോ കൃത്യമായി 2 വരികളിൽ ഒതുക്കുന്നു */ | |||
.recent | |||
max-height: 3.2em !important; /* 2 | |||
margin-bottom: 4px !important; | margin-bottom: 4px !important; | ||
} | } | ||
.main-recent-grid .article-info { | |||
padding: 12px !important; /* ഇൻഫോ ബോക്സിന്റെ പാഡിങ് കുറച്ചു */ | |||
.recent | |||
padding: 12px !important; | |||
} | } | ||
.main-recent-grid .article-meta-row { | |||
.recent | |||
padding-top: 4px !important; | padding-top: 4px !important; | ||
font-size: 0.9em; | font-size: 0.9em; | ||
} | } | ||
| വരി 136: | വരി 150: | ||
width: 100%; | width: 100%; | ||
} | } | ||
.category-box { | .category-box { | ||
display: inline-block; | |||
width: 100%; | |||
background: #f8fafc; | background: #f8fafc; | ||
border: 1px solid #e2e8f0; | border: 1px solid #e2e8f0; | ||
border-radius: 8px; | border-radius: 8px; | ||
text-align: center; | text-align: center; | ||
box-sizing: border-box; | |||
transition: all 0.2s ease-in-out; | transition: all 0.2s ease-in-out; | ||
} | } | ||
.category-box a { | .category-box a { | ||
display: block; | display: block; | ||
| വരി 153: | വരി 168: | ||
color: #2d3748 !important; | color: #2d3748 !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
line-height: 1.35; | |||
} | |||
/* Slightly enlarge the leading emoji/icon */ | |||
.category-box a::first-letter { | |||
font-size: 1.35em; | |||
margin-right: 0.18em; | |||
} | } | ||
.category-box:hover { | .category-box:hover { | ||
background: #3182ce; | background: #3182ce; | ||
| വരി 161: | വരി 181: | ||
box-shadow: 0 4px 6px rgba(0,0,0,0.05); | box-shadow: 0 4px 6px rgba(0,0,0,0.05); | ||
} | } | ||
.category-box:hover a { | .category-box:hover a { | ||
color: #ffffff !important; | color: #ffffff !important; | ||
} | } | ||
.category-grid p, | .category-grid p, | ||
.category-grid br { | .category-grid br { | ||
| വരി 174: | വരി 191: | ||
} | } | ||
. | /* Strict Cleanup: Target MediaWiki's auto-generated empty paragraph tags */ | ||
.mw-parser-output .main-featured-grid p:empty, | |||
.mw-parser-output .main-topstories-grid p:empty, | |||
.mw-parser-output .main-recent-grid p:empty, | |||
.mw-parser-output .main-featured-grid br, | |||
.mw-parser-output .main-topstories-grid br, | |||
.mw-parser-output .main-recent-grid br { | |||
display: none !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
height: 0 !important; | |||
} | } | ||
/* | /* മെയിൻ പേജിലെ എല്ലാ ഗ്രിഡ് ബോക്സുകളും ഒരേ മാർജിൻ ലൈനിൽ വരാൻ */ | ||
.main-featured-grid, | |||
.main-topstories-grid, | |||
.main-recent-grid { | |||
max-width: 100% !important; | |||
margin-left: 0 !important; | |||
margin-right: 0 !important; | |||
} | |||
/* ==================== RESPONSIVE OVERRIDES ==================== */ | |||
@media (max-width: 992px) { | |||
.main-recent-grid { grid-template-columns: repeat(2, 1fr); } | |||
} | |||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.featured-grid, | .main-featured-grid, | ||
. | .main-topstories-grid { | ||
grid-template-columns: 1fr; | |||
grid-template-columns: 1fr | |||
} | } | ||
.main-hero { | .main-hero { | ||
padding: 40px 15px; | padding: 40px 15px; | ||
margin-bottom: 25px; | margin-bottom: 25px; | ||
} | } | ||
.main-hero h1 { | .main-hero h1 { | ||
font-size: 2em; | font-size: 2em; | ||
} | } | ||
} | } | ||
/* 🛠️ ചിത്രങ്ങൾ കളയാതെ "... further results" ലിങ്ക് മാത്രം പൂർണ്ണമായി മറയ്ക്കുന്നു */ | |||
/* | .smw-template-furtherresults, | ||
.smw-furtherresults { | |||
. | |||
. | |||
. | |||
display: none !important; | display: none !important; | ||
visibility: hidden !important; | |||
height: 0 !important; | |||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
} | } | ||
@media (max-width: 768px) { | |||
.main-featured-grid, | |||
.main-topstories-grid, | |||
.main-recent-grid { | |||
padding: 8px; | |||
gap: 10px; | |||
} | |||
} | } | ||
. | |||
/* ========================================================================== | |||
HOMEPAGE SOCIAL MEDIA SHARING — VERSION 1.1 | |||
========================================================================== */ | |||
.homepage-share-section { | |||
margin-top: 28px; | |||
padding-top: 18px; | |||
border-top: 1px solid #e2e8f0; | |||
} | } | ||
. | |||
margin: | .homepage-share-heading { | ||
color: # | margin-bottom: 14px; | ||
font-size: 1.05rem; | |||
font-weight: 600; | |||
color: #2d3748; | |||
} | } | ||
. | |||
.homepage-share-buttons { | |||
display: flex; | |||
flex-wrap: wrap; | |||
align-items: center; | |||
gap: 10px; | |||
} | } | ||
. | |||
.homepage-share-button { | |||
display: inline-flex; | |||
align-items: center; | |||
justify-content: center; | |||
gap: 7px; | |||
padding: 9px 12px; | |||
border: 1px solid #d8dee8; | |||
border-radius: 9px; | |||
background: #ffffff; | |||
color: #2d3748; | color: #2d3748; | ||
font-size: 0.9rem; | |||
line-height: 1.4; | |||
cursor: pointer; | |||
transition: background-color 0.2s ease, border-color 0.2s ease; | |||
} | |||
.homepage-share-button:hover { | |||
background: #f7f9fc; | |||
border-color: #aeb9c8; | |||
} | |||
.homepage-share-button:focus { | |||
outline: 2px solid #3182ce; | |||
outline-offset: 2px; | |||
} | |||
.homepage-share-button .share-icon { | |||
display: inline-flex; | |||
align-items: center; | |||
justify-content: center; | |||
flex-shrink: 0; | |||
} | |||
.homepage-share-button .share-icon img { | |||
width: 19px; | |||
height: 19px; | |||
object-fit: contain; | |||
} | } | ||
. | |||
/* X temporarily hidden pending rich-preview verification */ | |||
.homepage-share-button.share-x { | |||
display: none !important; | |||
} | } | ||
. | |||
/* Mobile layout */ | |||
@media (max-width: 768px) { | |||
.homepage-share-section { | |||
margin-top: 24px; | |||
padding-top: 16px; | |||
} | |||
.homepage-share-buttons { | |||
gap: 13px; | |||
} | |||
.homepage-share-button { | |||
padding: 10px 12px; | |||
} | |||
} | } | ||
11:54, 15 നവംബർ 2026-നു നിലവിലുള്ള രൂപം
/* ================ INDEX PAGE STYLES (OVERHAULED & INTEGRATED) ================ */
/* Hero Section Banner */
.main-hero {
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
color: white;
padding: 60px 20px;
text-align: center;
border-radius: 12px;
margin-bottom: 40px;
}
.main-hero h1 {
font-family: 'Manjari', 'Meera', sans-serif !important;
font-size: 2.8em;
margin: 0 0 14px 0;
font-weight: 700;
}
.main-hero p {
font-family: 'Manjari', 'Meera', sans-serif !important;
font-size: 1.25em;
margin-bottom: 28px;
opacity: 0.95;
}
.homepage-intro{
margin:0 0 20px 0;
font-size:1.05rem;
line-height:1.65;
color:#4a5568;
}
/*
* Force MediaWiki Parser output to stretch cards evenly inside the grid.
* This fixes the height mismatch visible in your screenshot.
*/
.main-featured-grid > div,
.main-topstories-grid > div,
.main-recent-grid > div {
display: flex !important;
}
.article-card {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
width: 100%;
}
/* Alignment Fix: This forces the metadata row to anchor at the base */
.article-info {
display: flex !important;
flex-direction: column !important;
flex-grow: 0 !important; /* Forces layout box to expand fully */
}
/* Smooth hover effects on standard Article Cards */
.article-card {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.article-card:hover {
transform: translateY(-4px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
/* ==================== FEATURED SECTION (2 in a row) ==================== */
.main-featured-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
padding: 12px;
background-color: #f1f5f9;
border-radius: 12px;
margin-bottom: 30px;
width: 100%;
box-sizing: border-box;
}
.main-featured-grid .article-Image1 {
max-height: 200px !important;
}
.main-featured-grid .article-title {
font-size: 1.4em !important;
}
.author-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 20px;
}
/* ==================== TOP STORIES SECTION (3 in a row) ==================== */
.main-topstories-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
padding: 12px;
background-color: #ffffff;
border-radius: 12px;
margin-bottom: 30px;
width: 100%;
box-sizing: border-box; /* 🛠️ അലൈൻമെന്റ് കൃത്യമാക്കുന്നു */
}
.main-topstories-title {
font-size: 1.25em !important;
}
.main-topstories-grid .article-image1 {
max-height: 150px !important;
}
/* ==================== RECENT PUBLICATIONS (4 in a row) ==================== */
.main-recent-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
padding: 10px;
background-color: #f8fafc;
border-radius: 12px;
margin-bottom: 30px;
width: 100%;
box-sizing: border-box; /* 🛠️ മാർജിൻ പുറത്തേക്ക് പോകുന്നത് തടയുന്നു */
}
.main-recent-grid .article-image1 {
max-height: 110px !important; /* ചെറിയ ഇമേജ് ലുക്ക് */
}
.main-recent-grid .article-title {
font-size: 1.15em !important;
line-height: 1.3;
margin-bottom: 4px !important;
}
.main-recent-grid .article-intro-wrapper {
max-height: 3.2em !important; /* ഇൻട്രോ കൃത്യമായി 2 വരികളിൽ ഒതുക്കുന്നു */
margin-bottom: 4px !important;
}
.main-recent-grid .article-info {
padding: 12px !important; /* ഇൻഫോ ബോക്സിന്റെ പാഡിങ് കുറച്ചു */
}
.main-recent-grid .article-meta-row {
padding-top: 4px !important;
font-size: 0.9em;
}
/* ================ CATEGORY BUTTONS COMPACT STYLES ================ */
.category-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 16px;
margin-bottom: 40px;
width: 100%;
}
.category-box {
display: inline-block;
width: 100%;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 8px;
text-align: center;
box-sizing: border-box;
transition: all 0.2s ease-in-out;
}
.category-box a {
display: block;
padding: 14px 10px;
font-family: 'Manjari', 'Meera', sans-serif !important;
font-size: 1.1em;
font-weight: bold;
color: #2d3748 !important;
text-decoration: none !important;
line-height: 1.35;
}
/* Slightly enlarge the leading emoji/icon */
.category-box a::first-letter {
font-size: 1.35em;
margin-right: 0.18em;
}
.category-box:hover {
background: #3182ce;
border-color: #3182ce;
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.category-box:hover a {
color: #ffffff !important;
}
.category-grid p,
.category-grid br {
display: none !important;
margin: 0 !important;
padding: 0 !important;
}
/* Strict Cleanup: Target MediaWiki's auto-generated empty paragraph tags */
.mw-parser-output .main-featured-grid p:empty,
.mw-parser-output .main-topstories-grid p:empty,
.mw-parser-output .main-recent-grid p:empty,
.mw-parser-output .main-featured-grid br,
.mw-parser-output .main-topstories-grid br,
.mw-parser-output .main-recent-grid br {
display: none !important;
margin: 0 !important;
padding: 0 !important;
height: 0 !important;
}
/* മെയിൻ പേജിലെ എല്ലാ ഗ്രിഡ് ബോക്സുകളും ഒരേ മാർജിൻ ലൈനിൽ വരാൻ */
.main-featured-grid,
.main-topstories-grid,
.main-recent-grid {
max-width: 100% !important;
margin-left: 0 !important;
margin-right: 0 !important;
}
/* ==================== RESPONSIVE OVERRIDES ==================== */
@media (max-width: 992px) {
.main-recent-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
.main-featured-grid,
.main-topstories-grid {
grid-template-columns: 1fr;
}
.main-hero {
padding: 40px 15px;
margin-bottom: 25px;
}
.main-hero h1 {
font-size: 2em;
}
}
/* 🛠️ ചിത്രങ്ങൾ കളയാതെ "... further results" ലിങ്ക് മാത്രം പൂർണ്ണമായി മറയ്ക്കുന്നു */
.smw-template-furtherresults,
.smw-furtherresults {
display: none !important;
visibility: hidden !important;
height: 0 !important;
margin: 0 !important;
padding: 0 !important;
}
@media (max-width: 768px) {
.main-featured-grid,
.main-topstories-grid,
.main-recent-grid {
padding: 8px;
gap: 10px;
}
}
/* ==========================================================================
HOMEPAGE SOCIAL MEDIA SHARING — VERSION 1.1
========================================================================== */
.homepage-share-section {
margin-top: 28px;
padding-top: 18px;
border-top: 1px solid #e2e8f0;
}
.homepage-share-heading {
margin-bottom: 14px;
font-size: 1.05rem;
font-weight: 600;
color: #2d3748;
}
.homepage-share-buttons {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
}
.homepage-share-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
padding: 9px 12px;
border: 1px solid #d8dee8;
border-radius: 9px;
background: #ffffff;
color: #2d3748;
font-size: 0.9rem;
line-height: 1.4;
cursor: pointer;
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.homepage-share-button:hover {
background: #f7f9fc;
border-color: #aeb9c8;
}
.homepage-share-button:focus {
outline: 2px solid #3182ce;
outline-offset: 2px;
}
.homepage-share-button .share-icon {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.homepage-share-button .share-icon img {
width: 19px;
height: 19px;
object-fit: contain;
}
/* X temporarily hidden pending rich-preview verification */
.homepage-share-button.share-x {
display: none !important;
}
/* Mobile layout */
@media (max-width: 768px) {
.homepage-share-section {
margin-top: 24px;
padding-top: 16px;
}
.homepage-share-buttons {
gap: 13px;
}
.homepage-share-button {
padding: 10px 12px;
}
}