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

അഭിപ്രായവേദി സംരംഭത്തിൽ നിന്ന്
No edit summary
(ചെ.)No edit summary
 
(ഒരേ ചെയ്ത ഇടയ്ക്കുള്ള 92 നാൾപ്പതിപ്പുകൾ പ്രദർശിപ്പിക്കുന്നില്ല)
വരി 1: വരി 1:
/* ==========================================================================
  1. LOAD MALAYALAM GOOGLE FONTS
  ========================================================================== */
@import url('https://smc.org.in/fonts/manjari.css');


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


:lang(en) {
.article-content,
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
.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;
}
}


:lang(ml) {
  font-family: 'Manjari', 'Meera', 'Rachana', 'AnjaliOldLipi', 'Noto Sans Malayalam', sans-serif;
  line-height: 1.75;
}


/* GLOBAL MINOR TWEAKS */
body {
body {
  font-size: 17px;
    line-height: 1.7;
}
 
/*ARTICLE CONTAINER (Scoped Control)*/
 
.article-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}
.article-container .main-content {
  min-width: 0;  /* already present but essential */
}
 
.article-container * {
  box-sizing: border-box;
}
 
/* Basic spacing */
.article-container p {
  margin: 0 0 1em 0;
}
 
.article-container ul,
.article-container ol {
  padding-left: 1.2em;
  margin-bottom: 1em;
}
 
.article-container li {
  margin: 0.25em 0;
}
 
/* Headings */
.article-container h1,
.article-container h2,
.article-container h3,
.article-container h4 {
  margin: 0.6em 0 0.4em;
  line-height: 1.3;
  font-weight: 600;
}
 
.article-container .main-content::after {
  content: "";
  display: block;
  clear: both;
}
 
/*MEDIAWIKI IMAGE SYSTEM (CRITICAL — FIXED)*/
 
 
/* ===== CLEAN MEDIAWIKI IMAGE SYSTEM ===== */
 
.article-container .image-left {
  float: left;
  margin: 0 12px 8px 0;
  max-width: 45%;
}
 
/* FIGURE = single source of truth */
.article-container figure[typeof~='mw:File/Thumb'],
.article-container figure[typeof~='mw:File/Frame'] {
  display: block;
  margin: 0;
}
 
/* Make anchor behave correctly */
.article-container figure > a {
  display: block;
}
 
/* Image */
.article-container figure img {
  display: block;
  width: auto;        /* IMPORTANT: NOT 100% */
  max-width: 100%;    /* prevents overflow */
}
 
/* Caption */
.article-container figure figcaption {
  display: block;
  width: 100%;
  box-sizing: border-box;
 
  margin-top: 6px;
 
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
 
/*SIMPLE CONTENT LAYOUT*/
 
.article-container .content-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
 
.article-container .main-content {
  flex: 1 1 0;
  min-width: 0;
}
 
.article-container .right-sidebar {
  flex: 0 0 260px;  /* fixed width column */
}
 
/*AUTHOR BLOCK (cleaned)*/
 
.article-container .article-header {
  background: #C7D2FE;
  text-align: center;
  padding: 4px 0;
}
 
.article-container .author-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 1em;
  color: #444;
}
}
 
.article-content * {
.article-container .author-info span:not(:last-child)::after {
    line-height: 1.85 !important;
  content: "•";
  margin-left: 6px;
  color: #999;
}
}


.article-container .author-name {
/* ==========================================================================
  font-weight: 600;
  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 {
.article-container .date-info {
    font-size: 2.45em !important;
  font-size: 0.9em;
  color: #666;
}
}


/*INTRO BLOCK*/
/* HIDE NAMESPACE SUBTITLE FOR PUBLISHED ARTICLES */
 
.mw-displaytitle-subtitle {
.article-container .introduction-section {
    display: none !important;
  background: #f5f7fa;
  border-left: 4px solid #4a6edb;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 4px;
  line-height: 1.6;
}
}


/*SIDEBAR (Author Image)*/
/* ==========================================================================
 
  3. LAYOUT & SIDEBARS (FULL WIDTH)
.article-container .author-infobox {
  ========================================================================== */
  display: flex;
#mw-site-navigation, #mw-related-navigation {
  flex-direction: column;
    display: none !important;
  align-items: center;
}
}
 
#mw-content-container {
.article-container .author-photo {
    margin-left: 0 !important;
  border: 1px solid #ccc;
    margin-right: 0 !important;
  padding: 2px;
    padding-left: 1rem !important;
  max-width: 180px;
    padding-right: 1rem !important;
    max-width: 100% !important;
}
}
 
#content {
.article-container .author-photo img {
    max-width: 100% !important;
  display: block;
  max-width: 100%;
}
}


.article-container .author-name-box {
/* ==========================================================================
  text-align: center;
  4. FIXED: HIDE PAGE TABS FOR ANONYMOUS USERS ONLY
  margin-top: 6px;
  ========================================================================== */
.anon-visitor #mw-page-header-links,
.anon-visitor #siteSub {
    display: none !important;
}
}
 
.anon-visitor #mw-site-navigation,
/*HIGHLIGHT / KEYPOINT BOXES*/
.anon-visitor #mw-related-navigation {
 
    display: none !important;
.article-container .highlight-title {
  background: #00c49c;
  color: #333;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px 4px 0 0;
}
}
 
/* ==========================================================================
.article-container .keypoints-header {
  5. LOGO INTEGRATION FOR DISPLAY NAME PLACE
  background: #8ba2e8;
  ========================================================================== */
  color: #fff;
.mw-wiki-title {
  font-weight: bold;
    font-family: 'Manjari', sans-serif !important;
  padding: 4px 8px;
    font-weight: bold;
  border-radius: 4px 4px 0 0;
    font-size: 22px;
}
    color: #002B49 !important; /* Deep Navy */
.article-container .highlight-box {
  background: #ecfffb;          /* restore background */
  border-left: 5px solid #00c49c; /* restore accent */
  padding: 12px;
  margin: 12px 0;
  border-radius: 6px;
}
}
@media (max-width: 768px) {


.article-container .keypoints-float {
    #mw-content-container {
  background: #fff8e6;
        padding-left: 8px !important;
  border-left: 4px solid #8ba2e8;
        padding-right: 8px !important;
  padding: 14px;
    }
  border-radius: 6px;
}
#p-logo-text {
        min-width: auto !important;
        width: 240px !important;
        max-width: 240px !important;
    }


.article-container .highlight-title {
  color: #1f2937;
}
}


.article-container .keypoints-header {
@media (max-width: 768px) {
  color: #ffffff;
}
 
/*RESPONSIVE*/
 
@media (max-width: 900px) {
 
  .article-container .content-wrapper {
    flex-direction: column;
  }


  .article-container .right-sidebar {
    #p-banner {
    max-width: 100%;
        width: 240px !important;
  }
        height: 38px !important;
    }


.article-container figure {
    #simpleSearch {
  display: block;
        margin-left: 30px !important;
  max-width: 100%;
    }
}
}
@media screen and (max-width: 850px) {


/*ACCESSIBILITY (keep minimal)*/
    #p-logo-text {
        position: static !important;
        left: auto !important;
        top: auto !important;
    }


a:focus-visible,
button:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}
}

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" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്