"ഫലകം:IndexPage/styles.css" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

അഭിപ്രായവേദി സംരംഭത്തിൽ നിന്ന്
No edit summary
(ചെ.)No edit summary
 
(ഒരേ ചെയ്ത ഇടയ്ക്കുള്ള 28 നാൾപ്പതിപ്പുകൾ പ്രദർശിപ്പിക്കുന്നില്ല)
വരി 1: വരി 1:
/* ===== Global ===== */
/* ================ INDEX PAGE STYLES (OVERHAULED & INTEGRATED) ================ */
.index-container {
 
  max-width: 1200px;
/* Hero Section Banner */
  margin: 0 auto;
.main-hero {
  font-family: 'Noto Sans', 'Noto Sans Malayalam', sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  padding: 10px 15px 20px;     /* top 10px, sides 15px, bottom 20px */
    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;
}
}


.section-title {
/*
  font-size: 1.8em;
* Force MediaWiki Parser output to stretch cards evenly inside the grid.
  margin: 20px 0 20px;         
* This fixes the height mismatch visible in your screenshot.
  padding-bottom: 8px;
*/
  border-bottom: 3px solid #3498db;
.main-featured-grid > div,
  color: #2c3e50;
.main-topstories-grid > div,
.main-recent-grid > div {
    display: flex !important;
}
}


/* Reset h3 margins in cards */
.article-card {
.index-card-text h3 {
    height: 100% !important;
  margin: 0 0 8px;
    display: flex !important;
  font-size: 1.3em;           /* slightly smaller overall */
    flex-direction: column !important;
  line-height: 1.3;
    width: 100%;
}
}


/* Specific overrides for featured (larger cards) */
/* Alignment Fix: This forces the metadata row to anchor at the base */
.featured-card .index-card-text h3 {
.article-info {
  font-size: 1.5em;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 0 !important; /* Forces layout box to expand fully */
}
}


/* Intro text */
/* Smooth hover effects on standard Article Cards */
.index-card-intro {
.article-card {
  color: #555;
    background: #ffffff;
  line-height: 1.6;
    border: 1px solid #e2e8f0;
  margin-bottom: 10px;
    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);
}
}


/* Author name */
/* ==================== FEATURED SECTION (2 in a row) ==================== */
.index-card-author {
.main-featured-grid {
  font-size: 0.95em;
    display: grid;
  color: #7f8c8d;
    grid-template-columns: repeat(2, 1fr);
  margin-top: auto;           /* Push author to bottom if intro is short */
    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;
}
}


/* ===== Featured Section ===== */
/* ==================== TOP STORIES SECTION (3 in a row) ==================== */
.featured-grid {
.main-topstories-grid {
  display: grid;
    display: grid;
  grid-template-columns: 1fr 1fr;
    grid-template-columns: repeat(3, 1fr);
  gap: 25px;
    gap: 16px;
  align-items: stretch;       /* Force both cards to equal height */
    padding: 12px;
    background-color: #ffffff;
    border-radius: 12px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box; /* 🛠️ അലൈൻമെന്റ് കൃത്യമാക്കുന്നു */
}
.main-topstories-grid .article-image1 {
    max-height: 150px !important;
}
}


.featured-card {
/* ==================== RECENT PUBLICATIONS (4 in a row) ==================== */
  background: #fff;
.main-recent-grid {
  border-radius: 10px;
    display: grid;
  overflow: hidden;
    grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    gap: 12px;
  display: flex;
    padding: 10px;
  flex-direction: column;
    background-color: #f8fafc;
  height: 100%;               /* Fill the grid cell */
    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 {
.featured-card:hover {
    font-size: 1.1em !important;
  transform: translateY(-3px);
    line-height: 1.3;
    margin-bottom: 4px !important;
}
}
 
.main-recent-grid .article-intro-wrapper {
.featured-image {
    max-height: 3.2em !important; /* ഇൻട്രോ കൃത്യമായി 2 വരികളിൽ ഒതുക്കുന്നു */
  width: 100%;
    margin-bottom: 4px !important;
  aspect-ratio: 16 / 9;       /* uniform 16:9 box */
  overflow: hidden;
}
}
 
.main-recent-grid .article-info {
.featured-image img {
    padding: 12px !important; /* ഇൻഫോ ബോക്സിന്റെ പാഡിങ് കുറച്ചു */
  width: 100%;
  height: 100%;
  object-fit: cover;
}
}
 
.main-recent-grid .article-meta-row {
.featured-text {
    padding-top: 4px !important;
  padding: 20px;
    font-size: 0.9em;
  flex: 1;                    /* Take remaining vertical space */
  display: flex;
  flex-direction: column;
}
}


.featured-text h3 {
/* ================ CATEGORY BUTTONS COMPACT STYLES ================ */
  margin: 0 0 8px;
.category-grid {
  font-size: 1.5em;
    display: grid;
  line-height: 1.3;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
    width: 100%;
}
}
 
.category-box {
.featured-text h3 a {
    display: inline-block;
  color: #2c3e50;
    width: 100%;
  text-decoration: none;
    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 {
/*.featured-meta {
    display: block;
  font-size: 0.9em;
    padding: 14px 10px;
  color: #7f8c8d;
    font-family: 'Manjari', 'Meera', sans-serif !important;
  margin-bottom: 10px;
    font-size: 1.1em;
}*/
    font-weight: bold;
 
    color: #2d3748 !important;
.featured-intro {
    text-decoration: none !important;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
  /* Let the intro be its natural height.
    The equal‑height grid will keep both cards aligned. */
}
}
 
.category-box:hover {
/* ===== Top Stories ===== */
    background: #3182ce;
.top-stories-grid {
    border-color: #3182ce;
  display: grid;
    transform: translateY(-2px);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  gap: 25px;
}
}
 
.category-box:hover a {
.story-card {
    color: #ffffff !important;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}
}
 
.category-grid p,
.story-card:hover {
.category-grid br {
  transform: translateY(-2px);
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
}


.story-image img {
/* Strict Cleanup: Target MediaWiki's auto-generated empty paragraph tags */
  width: 100%;
.mw-parser-output .main-featured-grid p:empty,
  height: 180px;
.mw-parser-output .main-topstories-grid p:empty,
  object-fit: cover;
.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;
}
}


.story-card h4 {
/* ================ CATEGORY PAGE SPECIFIC STYLES ================ */
  margin: 15px 15px 5px;
.category-page-header {
  font-size: 1.2em;
    background: #edf2f7;
    padding: 30px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 5px solid #3182ce;
}
}
 
.category-page-header h1 {
.story-card h4 a {
    font-family: 'Manjari', 'Meera', sans-serif !important;
  color: #2c3e50;
    margin: 0 0 8px 0;
  text-decoration: none;
    color: #1a202c;
}
}
 
.category-page-header p {
.story-meta {
    margin: 0;
  margin: 0 15px 15px;
    color: #4a5568;
  font-size: 0.85em;
  color: #7f8c8d;
}
}
 
.older-articles-section {
.lang-badge {
    margin-top: 40px;
  display: inline-block;
    padding-top: 20px;
  background: #3498db;
    border-top: 2px dashed #e2e8f0;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em;
  text-transform: uppercase;
}
}
 
.older-articles-section h3 {
/* ===== Recent Articles ===== */
    font-family: 'Manjari', sans-serif !important;
.recent-list {
    color: #2d3748;
  list-style: none;
    margin-bottom: 15px;
  padding: 0;
  margin: 0;
}
}
 
.older-articles-list ul {
.recent-item {
    list-style-type: square;
  padding: 12px 0;
    padding-left: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}
}
 
.older-articles-list li {
.recent-title {
    font-family: 'Manjari', sans-serif !important;
  font-weight: bold;
    font-size: 1.05em;
    margin-bottom: 10px;
    color: #4a5568;
}
}


.recent-title a {
/* മെയിൻ പേജിലെ എല്ലാ ഗ്രിഡ് ബോക്സുകളും ഒരേ മാർജിൻ ലൈനിൽ വരാൻ */
  color: #2c3e50;
.main-featured-grid,
  text-decoration: none;
.main-topstories-grid,
.main-recent-grid {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
}


.recent-meta {
/* ==================== RESPONSIVE OVERRIDES ==================== */
  font-size: 0.85em;
@media (max-width: 992px) {
  color: #7f8c8d;
    .main-recent-grid { grid-template-columns: repeat(2, 1fr); }
}
}
 
@media (max-width: 768px) {
/* ===== Category Directory ===== */
    .main-featured-grid,
.category-grid {
    .main-topstories-grid {  
  columns: 3;
        grid-template-columns: 1fr;  
  column-gap: 30px;
    }
  margin-top: 15px;
    .main-hero {
        padding: 40px 15px;
        margin-bottom: 25px;
    }
    .main-hero h1 {
        font-size: 2em;
    }
}
}
 
/* 🛠️ ചിത്രങ്ങൾ കളയാതെ "... further results" ലിങ്ക് മാത്രം പൂർണ്ണമായി മറയ്ക്കുന്നു */
.category-grid ul {
.smw-template-furtherresults,
  list-style: none;
.smw-furtherresults {
  padding: 0;
    display: none !important;
  margin: 0;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
}
@media (max-width: 768px) {


.category-grid li {
    .main-featured-grid,
  break-inside: avoid;
    .main-topstories-grid,
  margin-bottom: 8px;
    .main-recent-grid {
}


.category-grid a {
        padding: 8px;
  text-decoration: none;
        gap: 10px;
  color: #2980b9;
    }
}


/* ===== Responsive ===== */
@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .top-stories-grid {
    grid-template-columns: 1fr;
  }
  .category-grid {
    columns: 2;
  }
}
}

11:56, 21 ജൂൺ 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;
}

/* 
 * 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;
}

/* ==================== 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-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.1em !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;
}
.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;
}

/* ================ CATEGORY PAGE SPECIFIC STYLES ================ */
.category-page-header {
    background: #edf2f7;
    padding: 30px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 5px solid #3182ce;
}
.category-page-header h1 {
    font-family: 'Manjari', 'Meera', sans-serif !important;
    margin: 0 0 8px 0;
    color: #1a202c;
}
.category-page-header p {
    margin: 0;
    color: #4a5568;
}
.older-articles-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px dashed #e2e8f0;
}
.older-articles-section h3 {
    font-family: 'Manjari', sans-serif !important;
    color: #2d3748;
    margin-bottom: 15px;
}
.older-articles-list ul {
    list-style-type: square;
    padding-left: 20px;
}
.older-articles-list li {
    font-family: 'Manjari', sans-serif !important;
    font-size: 1.05em;
    margin-bottom: 10px;
    color: #4a5568;
}

/* മെയിൻ പേജിലെ എല്ലാ ഗ്രിഡ് ബോക്സുകളും ഒരേ മാർജിൻ ലൈനിൽ വരാൻ */
.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;
    }

}
"https://abhiprayavedi.org/index.php?title=ഫലകം:IndexPage/styles.css&oldid=2218" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്