"മീഡിയവിക്കി:Common.css" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

അഭിപ്രായവേദി സംരംഭത്തിൽ നിന്ന്
No edit summary
(ചെ.)No edit summary
 
(ഒരേ ചെയ്ത ഇടയ്ക്കുള്ള 178 നാൾപ്പതിപ്പുകൾ പ്രദർശിപ്പിക്കുന്നില്ല)
വരി 1: വരി 1:
/* ================================================================
/* ==========================================================================
   LANGUAGE-AWARE TYPOGRAPHY & COLOR VARIABLES
   1. LOAD MALAYALAM GOOGLE FONTS
   ================================================================ */
   ========================================================================== */
.mw-body[lang="en"],
@import url('https://smc.org.in/fonts/manjari.css');
.article-container[lang="en"],
.right-sidebar[lang="en"],
#mw-content-text[lang="en"],
#mw-navigation[lang="en"],
.form-container[lang="en"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  --color-primary: #212529;
  --color-secondary: #667eea;
  --color-accent: #17a2b8;
  --color-neutral: #f8f9fa;
}


.mw-body[lang="ml"],
/* GLOBAL FONTS FORCE (Combined to eliminate duplications) */
.article-container[lang="ml"],
:lang(ml), :lang(ml) *,
.right-sidebar[lang="ml"],
body:lang(ml), .mw-body:lang(ml), .mw-body-content:lang(ml), #content:lang(ml),
#mw-content-text[lang="ml"],
.mw-parser-output:lang(ml), .article-content:lang(ml), .article-content *,
#mw-navigation[lang="ml"],
.intro-box:lang(ml), p:lang(ml), span:lang(ml), div:lang(ml),
.form-container[lang="ml"] {
h1:lang(ml), h2:lang(ml), h3:lang(ml), h4:lang(ml),
  font-family: 'Manjari','Meera','Rachana','AnjaliOldLipi','Noto Sans Malayalam',sans-serif;
#firstHeading, .mw-first-heading, .firstHeading {
  line-height: 1.75;
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', 'Nirmala UI', sans-serif !important;
  --color-primary: #4a2f87;
  --color-secondary: #f59e0b;
  --color-accent: #78350f;
  --color-neutral: #f8f9fa;
}
}


/* ================================================================
.article-content,
  ARTICLE LAYOUT
.article-byline,
  ================================================================ */
.author-profile-bio,
.article-container {
.author-card,
  display: flex;
.author-card-name,
  flex-direction: column;
.author-card-bio,
  gap: 20px;
.article-title,
.related-heading,
.author-heading,
.article-meta-row,
.article-author {
    font-family: 'Manjari',
                'Meera',
                'Rachana',
                'Noto Sans Malayalam',
                sans-serif !important;
}
}


/* Header: single line, styled */
.article-header {
  background: var(--color-neutral);
  border-bottom: 2px solid var(--color-primary);
  padding: 8px 16px;
  border-radius: 6px;
}


.article-header .author-info {
/* GLOBAL MINOR TWEAKS */
  display: flex;
body {
  align-items: center;
    line-height: 1.7;
  gap: 12px; /* inline spacing */
}
}
 
.article-content * {
.author-name {
    line-height: 1.85 !important;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}
}


.date-info {
/* ==========================================================================
  font-size: 1rem;
  2. HEADINGS & TITLES
  color: #6c757d;
  ========================================================================== */
#firstHeading, .mw-first-heading, .firstHeading {
    font-size: 2.35em !important;
    font-weight: 700 !important;
    margin-bottom: 0.4em !important;
    color: #222;
    border-bottom: solid 4px #36c;
}
}
 
:lang(en) #firstHeading, :lang(en) .mw-first-heading {
.category-badge {
    font-size: 2.45em !important;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--color-secondary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
}
}


/* Intro section */
/* HIDE NAMESPACE SUBTITLE FOR PUBLISHED ARTICLES */
.introduction-section {
.mw-displaytitle-subtitle {
  background: var(--color-neutral);
    display: none !important;
  border-left: 4px solid var(--color-secondary);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.5;
}
}


/* Reset default paragraph spacing/indent */
/* ==========================================================================
.article-header p,
  3. LAYOUT & SIDEBARS (FULL WIDTH)
.introduction-section p,
  ========================================================================== */
.article-text p {
#mw-site-navigation, #mw-related-navigation {
  margin: 0;
    display: none !important;
  text-indent: 0;
  line-height: 1.5;
}
}
 
#mw-content-container {
.article-text p:first-of-type {
    margin-left: 0 !important;
  margin-top: 0;
    margin-right: 0 !important;
  font-size: 1rem;
    padding-left: 1rem !important;
  line-height: 1.6;
    padding-right: 1rem !important;
    max-width: 100% !important;
}
}
 
#content {
/* Content wrapper: two-column layout */
    max-width: 100% !important;
.content-wrapper {
  display: flex;
  gap: 20px;
}
}


/* Main content */
/* ==========================================================================
.main-content {
  4. FIXED: HIDE PAGE TABS FOR ANONYMOUS USERS ONLY
  flex: 3;
  ========================================================================== */
.anon-visitor #mw-page-header-links,
.anon-visitor #siteSub {
    display: none !important;
}
}
 
.anon-visitor #mw-site-navigation,
.article-text {
.anon-visitor #mw-related-navigation {
  font-size: 1rem;
    display: none !important;
  line-height: 1.6;
  margin-bottom: 20px;
}
}
 
/* ==========================================================================
/* Sidebar fixed to the right */
  5. LOGO INTEGRATION FOR DISPLAY NAME PLACE
.right-sidebar {
  ========================================================================== */
  flex: 1;
.mw-wiki-title {
  background: var(--color-neutral);
    font-family: 'Manjari', sans-serif !important;
  padding: 12px;
    font-weight: bold;
  border-radius: 6px;
    font-size: 22px;
  display: flex;
    color: #002B49 !important; /* Deep Navy */
  flex-direction: column;
  gap: 15px;
}
}
/* Responsive: stack sidebar below on small screens */
@media (max-width: 768px) {
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }
  .right-sidebar {
    order: 2;
  }
}


/* ================================================================
    #mw-content-container {
  FIRST HEADING (Article Title)
        padding-left: 8px !important;
  ================================================================ */
        padding-right: 8px !important;
.mw-body h1.firstHeading {
    }
  font-weight: 700;
  line-height: 1.3;
#p-logo-text {
  margin: 0.4em 0;
        min-width: auto !important;
  color: var(--color-primary);
        width: 240px !important;
}
        max-width: 240px !important;
    }


/* ================================================================
  SIDEBAR & CATEGORY LISTINGS
  ================================================================ */
.right-sidebar,
.right-sidebar .mw-category,
.right-sidebar .mw-list-item {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-primary);
}
}


/* ================================================================
@media (max-width: 768px) {
  NAVIGATION TABS
  ================================================================ */
#mw-navigation .tab {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--color-neutral);
  color: var(--color-primary);
}


#mw-navigation .tab.active {
    #p-banner {
  background: var(--color-secondary);
        width: 240px !important;
  color: #fff;
        height: 38px !important;
}
    }


#mw-navigation .tab:hover {
    #simpleSearch {
  background: var(--color-accent);
        margin-left: 30px !important;
  color: #fff;
    }
}
}
@media screen and (max-width: 850px) {


/* ================================================================
    #p-logo-text {
  FORM USABILITY (Form:Article, Submit:Article)
        position: static !important;
  ================================================================ */
        left: auto !important;
.form-container {
        top: auto !important;
  max-width: 900px;
    }
  margin: 0 auto;
  padding: 20px;
}
 
.form-header {
  background: var(--color-primary);
  color: #fff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
  text-align: center;
}
 
.form-section {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
}
 
.form-required {
  border-left: 5px solid #dc3545; /* red for required */
}
 
.form-optional {
  border-left: 5px solid #28a745; /* green for optional */
}
 
.form-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}
 
.form-label {
  width: 180px;
  text-align: right;
  padding: 10px 15px 10px 0;
  vertical-align: top;
}
 
.form-field {
  padding: 10px 0;
}
 
.form-hint {
  color: #666;
  font-size: 0.85rem;
  margin-top: 4px;
  display: block;
}
 
/* Tightened rhythm for inputs */
.mw-htmlform-field label,
.mw-htmlform-field input,
.mw-htmlform-field textarea,
.mw-htmlform-field select {
  line-height: 1.3;
  font-size: 1rem;
}
 
/* Submission controls */
.form-controls {
  text-align: center;
  padding: 25px;
  background: var(--color-neutral);
  border-radius: 8px;
}


.form-controls p {
  margin-bottom: 15px;
  color: #666;
}
}

11:55, 22 ജൂൺ 2026-നു നിലവിലുള്ള രൂപം

/* ==========================================================================
   1. LOAD MALAYALAM GOOGLE FONTS
   ========================================================================== */
@import url('https://smc.org.in/fonts/manjari.css');

/* GLOBAL FONTS FORCE (Combined to eliminate duplications) */
:lang(ml), :lang(ml) *,
body:lang(ml), .mw-body:lang(ml), .mw-body-content:lang(ml), #content:lang(ml),
.mw-parser-output:lang(ml), .article-content:lang(ml), .article-content *,
.intro-box:lang(ml), p:lang(ml), span:lang(ml), div:lang(ml),
h1:lang(ml), h2:lang(ml), h3:lang(ml), h4:lang(ml),
#firstHeading, .mw-first-heading, .firstHeading {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', 'Nirmala UI', sans-serif !important;
}

.article-content,
.article-byline,
.author-profile-bio,
.author-card,
.author-card-name,
.author-card-bio,
.article-title,
.related-heading,
.author-heading,
.article-meta-row,
.article-author {
    font-family: 'Manjari',
                 'Meera',
                 'Rachana',
                 'Noto Sans Malayalam',
                 sans-serif !important;
}


/* GLOBAL MINOR TWEAKS */
body {
    line-height: 1.7;
}
.article-content * {
    line-height: 1.85 !important;
}

/* ==========================================================================
   2. HEADINGS & TITLES
   ========================================================================== */
#firstHeading, .mw-first-heading, .firstHeading {
    font-size: 2.35em !important;
    font-weight: 700 !important;
    margin-bottom: 0.4em !important;
    color: #222;
    border-bottom: solid 4px #36c;
}
:lang(en) #firstHeading, :lang(en) .mw-first-heading {
    font-size: 2.45em !important;
}

/* HIDE NAMESPACE SUBTITLE FOR PUBLISHED ARTICLES */
.mw-displaytitle-subtitle {
    display: none !important;
}

/* ==========================================================================
   3. LAYOUT & SIDEBARS (FULL WIDTH)
   ========================================================================== */
#mw-site-navigation, #mw-related-navigation {
    display: none !important;
}
#mw-content-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
}
#content {
    max-width: 100% !important;
}

/* ==========================================================================
   4. FIXED: HIDE PAGE TABS FOR ANONYMOUS USERS ONLY
   ========================================================================== */
.anon-visitor #mw-page-header-links,
.anon-visitor #siteSub {
    display: none !important;
}
.anon-visitor #mw-site-navigation,
.anon-visitor #mw-related-navigation {
    display: none !important;
}
/* ==========================================================================
   5. LOGO INTEGRATION FOR DISPLAY NAME PLACE
   ========================================================================== */
.mw-wiki-title {
    font-family: 'Manjari', sans-serif !important;
    font-weight: bold;
    font-size: 22px;
    color: #002B49 !important; /* Deep Navy */
}
@media (max-width: 768px) {

    #mw-content-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
 
#p-logo-text {
        min-width: auto !important;
        width: 240px !important;
        max-width: 240px !important;
    }

}

@media (max-width: 768px) {

    #p-banner {
        width: 240px !important;
        height: 38px !important;
    }

    #simpleSearch {
        margin-left: 30px !important;
    }
}
@media screen and (max-width: 850px) {

    #p-logo-text {
        position: static !important;
        left: auto !important;
        top: auto !important;
    }

}
"https://abhiprayavedi.org/index.php?title=മീഡിയവിക്കി:Common.css&oldid=2243" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്