MediaWiki:Common.css

From AbhiprayaVedi
Revision as of 18:20, 8 April 2026 by VijayanPN (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ================================================================
   AbhiprayaVedi - Ver4.1 — Timeless Skin, Gap Fix
   ================================================================ */

/* Reduce gap between tab bar and article content */
#firstHeading {
    margin-bottom: 4px;
    padding-bottom: 2px;
}

#mw-content-text,
.mw-body-content,
.mw-parser-output,
.page-content {
    padding-top: 0;
    margin-top: 0;
}

/* ================================================================
   BASE FONT SIZE
   ================================================================ */
body {
    font-size: 17px;
}
.mw-body {
    font-size: 1.05em;
}

/* ================================================================
   ARTICLE CONTAINER
   ================================================================ */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px 20px; /* top padding 0 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.05em;
}
.article-container[data-language="Malayalam"] {
    font-family: 'Manjari','Meera','Rachana','AnjaliOldLipi','Noto Sans Malayalam',sans-serif;
    line-height: 1.75;
}

/* ================================================================
   HEADER
   ================================================================ */
.article-container .article-header {
    background: #f8f9fa;
    border-bottom: 2px solid #495057;
    padding: 6px 16px;
    margin-top: 0;
    margin-bottom: 10px;
    border-radius: 6px;
}
.article-container .author-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    margin: 0;
    width: 100%;
}
.article-container .author-info > * {
    flex: 0 0 auto;
    width: auto;
    float: none;
}
.article-container .author-info .date-info {
    flex: 1 1 auto;
    text-align: center;
}

/* ================================================================
   INTRODUCTION
   ================================================================ */
.article-container .introduction-section {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 5px solid #f59e0b;
    padding: 5px 16px;
    margin-top: 0;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 1.12em;
    line-height: 1.65;
    color: #78350f;
    font-weight: 500;
}

/* ================================================================
   CONTENT LAYOUT
   ================================================================ */
.content-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}
.main-content { flex: 1 1 70%; min-width: 0; }
.right-sidebar { flex: 0 0 300px; }
@media (max-width: 968px) {
    .content-wrapper { flex-direction: column; }
    .right-sidebar { flex: 1 1 auto; max-width: 100%; }
}

/* ================================================================
   ARTICLE TEXT
   ================================================================ */
.article-text {
    font-size: 1.15em;
    line-height: 1.85;
    color: #212529;
    text-align: left;
}
.article-text p { margin-bottom: 1.2em; }
.article-text h2 {
    font-size: 1.6em;
    margin: 1.5em 0 0.8em;
    color: #212529;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.3em;
}
.article-text h3 {
    font-size: 1.3em;
    margin: 1.3em 0 0.7em;
    color: #495057;
}

/* ================================================================
   AUTHOR INFOBOX
   ================================================================ */
.author-infobox {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}
.author-photo { text-align: center; padding: 12px; background: white; border-bottom: 1px solid #dee2e6; }
.author-photo img { max-width: 100%; height: auto; border-radius: 6px; }
.author-name-box {
    text-align: center;
    padding: 10px 15px;
    font-size: 1.2em;
    font-weight: 500;
    color: #212529;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}
.author-name-box a { color: #0056b3; text-decoration: none; }
.author-name-box a:hover { text-decoration: underline; }
.author-bio { padding: 12px 15px; font-size: 1em; line-height: 1.65; color: #495057; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .article-container .author-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .article-container .author-info .date-info { text-align: left; }
    .article-container .author-info .category-badge { align-self: flex-start; }
}


/* ================================================================
   DEBUG OUTLINES — temporary visual aid
   ================================================================ */

.article-container {
    outline: 2px dashed red;       /* main container */
}

.article-header {
    outline: 2px dashed blue;      /* header box */
}

.author-info {
    outline: 2px dashed green;     /* author info flex container */
}

.author-info > * {
    outline: 1px solid orange;     /* each child inside author-info */
}

.introduction-section {
    outline: 2px dashed purple;    /* intro section */
}

.content-wrapper {
    outline: 2px dashed brown;     /* main content wrapper */
}

.right-sidebar {
    outline: 2px dashed teal;      /* sidebar */
}