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

No edit summary
No edit summary
 
(3 ഉപയോക്താക്കൾ ചെയ്ത ഇടയ്ക്കുള്ള 36 നാൾപ്പതിപ്പുകൾ പ്രദർശിപ്പിക്കുന്നില്ല)
വരി 3: വരി 3:


/*Total Website Font control*/
/*Total Website Font control*/
html, body {font-size:1.05em !important;}
html, body {font-size:1.1em !important;}
p {
font-size:1.1em;
line-height:1.6;
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
-o-hyphens: auto;
hyphens: auto;
}


/* പ്രധാന താളിലെ “പ്രധാന താൾ“ എന്ന തലക്കെട്ട് ഒഴിവാകാൻ - To remove Main page title */
/* പ്രധാന താളിലെ “പ്രധാന താൾ“ എന്ന തലക്കെട്ട് ഒഴിവാകാൻ - To remove Main page title */
വരി 15: വരി 24:
body.page-പ്രധാനതാൾ #breadcrumbs2 {display: none !important;}
body.page-പ്രധാനതാൾ #breadcrumbs2 {display: none !important;}
span.Uniq1234 a { color: #fff !important; font-size:0.9em; font-weight:normal;  }
span.Uniq1234 a { color: #fff !important; font-size:0.9em; font-weight:normal;  }
 
/*add a nice bar on header*/
 
.vector-header-container {border-bottom:3px solid #ccc;}
/* wikitable/prettytable class for skinning normal tables */
/* wikitable/prettytable class for skinning normal tables */


വരി 44: വരി 53:
   margin-right: inherit;
   margin-right: inherit;
   font-weight: bold;
   font-weight: bold;
}
/* Style for horizontal lists (separator following item) */
.skin-monobook .hlist dl,
.skin-modern .hlist dl,
.skin-vector .hlist dl {
    line-height: 1.5em;
}
.hlist dl,
.hlist ol,
.hlist ul {
    margin: 0;
}
.hlist dd,
.hlist dt,
.hlist li {
    display: inline;
    margin: 0;
}
/* Display nested lists inline */
.hlist dl dl,
.hlist ol ol,
.hlist ul ul {
    display: inline;
}
/* Nowrap list items */
.hlist dd,
.hlist dt,
.hlist li {
    white-space: nowrap;
    white-space: normal !ie;  /* IE < 8 no-wraps entire list, so disable it */
}
/* But allow parent list items to be wrapped */
.hlist dd dl,
.hlist dt dl,
.hlist li ol,
.hlist li ul {
    white-space: normal;
}
/* Generate interpuncts */
.hlist dt:after {
    content: ":";
}
.hlist dd:after,
.hlist li:after {
    content: " ·";
    font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
    content: none;
}
/* Add parens around nested lists */
.hlist dl dl dd:first-child:before,
.hlist ol ol li:first-child:before,
.hlist ul ul li:first-child:before {
    content: "(";
}
.hlist dl dl dd:last-child:after,
.hlist ol ol li:last-child:after,
.hlist ul ul li:last-child:after {
    content: ")";
    font-weight: normal;
}
/* Put numbers in ordered lists */
.hlist.hnum ol li {
    counter-increment: level1;
}
.hlist.hnum ol li:before {
    content: counter(level1) " ";
}
.hlist.hnum ol ol li {
    counter-increment: level2;
}
.hlist.hnum ol ol li:first-child:before {
    content: "(" counter(level2) " ";
}
.hlist.hnum ol ol li:before {
    content: counter(level2) " ";
}
/* Unbulleted lists */
.plainlist ul {
    line-height: inherit;
    list-style: none none;
    margin: 0;
}
.plainlist ul li {
    margin-bottom: 0;
}
}


വരി 185: വരി 286:
   clear: right;
   clear: right;
}
}
.infobox th{font-size:0.8em;font-weight:bold;}
.infobox td,
.infobox td,
.infobox th {
.infobox th {
   vertical-align: top;
   vertical-align: top;
  border-top: solid 1px #ccd2d9;
  text-align: left;
  padding-left:6px;
  font-size:0.9em;
}
}
.infobox caption {
.infobox caption {
വരി 496: വരി 602:
}
}


div.firstBoxes {font-size:1.6em;margin:0.5em 0;text-align:center;font-weight:bold;width:25%;float:left;}
div.firstBoxes {font-size:1.6em;margin:0.5em 0;text-align:center;font-weight:bold;width:25%;float:left;min-height:200px;}
 
div.firstBoxes a {font-size:0.7em; line-height:0.8;}
#firstHeading {font-weight:700; font-size:2em;padding:22px 12px !important;}
#wikiEditor-0-dialog-summary {width:400px !important;}
#wikiEditor-0-dialog-summary {width:400px !important;}
#wpTextbox1 {font-size:1.2em;}
#wpTextbox1 {font-size:1.2em;}
#t-upload{display:none !important;}
/* For showing the location on top of the page */
.location {
    position: absolute;
    top: -50px;
    right: 10px;
}
/* ===== SchoolWiki Sitenotice Section ===== */
/* =====================================================
  SchoolWiki – Sitenotice Layout (Desktop + Mobile)
  ===================================================== */
/* Outer full-width sitenotice container */
.sw-sitenotice-outer {
  background: #ffffff;
  border-bottom: 1px solid #dcdcdc;
}
/* Centered grid container */
.sw-sitenotice-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 4fr 1fr; /* LEFT 80% | RIGHT 20% */
  gap: 16px;
  align-items: start;
}
/* =====================================================
  LEFT: Main Notice Card
  ===================================================== */
.sw-main-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 2px solid #ff3396;
  border-radius: 12px;
  background: #ffffff;
}
.sw-main-image img {
  max-width: 64px;
  height: auto;
}
.sw-main-content {
  flex: 1;
}
.sw-main-title {
  font-size: 120%;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  border-bottom:2px solid #aaa;
}


#t-upload{display:none !important;}
.sw-main-links {
  font-size: 90%;
  line-height: 1.6;
}
 
/* =====================================================
  RIGHT: Help / Login Panel
  ===================================================== */
 
.sw-login-box {
  background: #fffbd6;
  border: 1px solid #e6e0a3;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 85%;
}
 
.sw-login-box div {
  margin: 6px 0;
}
 
.sw-login-box a {
  text-decoration: none;
  color: #0645ad;
  display: inline-block;
}
 
.sw-login-box a:hover {
  text-decoration: underline;
}
 
/* =====================================================
  Mobile / Small Screen Behavior
  ===================================================== */
 
@media (max-width: 720px) {
 
  /* Stack layout */
  .sw-sitenotice-grid {
    grid-template-columns: 1fr;
  }
 
  /* Center everything on mobile */
  .sw-main-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
 
  .sw-main-image img {
    max-width: 56px;
  }
 
  .sw-login-box {
    text-align: center;
    font-size: 80%;
  }
 
  .sw-login-box div {
    margin: 4px 0;
  }
}
 
/* =========================================================
  MOBILE OPTIMIZATION LAYER
  ========================================================= */
 
/* Improve base readability on small screens */
@media (max-width: 768px) {
 
  html, body {
    font-size: 1em !important;
  }
 
  p {
    font-size: 1em;
    line-height: 1.7;
  }
 
  #firstHeading {
    font-size: 1.5em !important;
    padding: 12px !important;
  }
 
  /* Disable problematic floats */
  .infobox,
  .messagebox.small-talk,
  .location {
    float: none !important;
    margin: 0.5em auto !important;
    width: 100% !important;
    position: static !important;
  }
 
  /* Navigation boxes */
  .navbox,
  .navbox-inner,
  .navbox-subgroup {
    font-size: 95%;
  }
 
  /* Tables: prevent overflow */
  table.wikitable,
  table.prettytable,
  table.infobox {
    display: block;
    overflow-x: auto;
    width: 100% !important;
  }
 
  /* Remove fixed widths */
  .messagebox {
    width: 100% !important;
  }
 
  /* Hide non-essential elements on mobile */
  #t-upload {
    display: none !important;
  }
}
 
/* =========================================================
  WIKIMEDIA COMMONS GALLERY (RESPONSIVE)
  ========================================================= */
 
.commons-gallery {
  width: 100%;
  margin: 1em 0;
}
 
.commons-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
 
.commons-gallery-item {
  margin: 0;
}
 
.commons-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
 
.commons-gallery-item figcaption {
  font-size: 0.75em;
  line-height: 1.3;
  text-align: center;
  padding-top: 4px;
}
 
/* Extra tightening for very small screens */
@media (max-width: 480px) {
 
  .commons-gallery-grid {
    gap: 6px;
  }
 
  .commons-gallery-item figcaption {
    font-size: 0.7em;
  }
 
  div.firstBoxes {
    width: 100% !important;
    float: none !important;
    min-height: auto;
  }
}
 
/* =========================================================
  Commons Gallery Lightbox (FULL, ENHANCED)
  ========================================================= */
 
#commons-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
 
  /* Enhancements */
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}
 
#commons-lightbox.active {
  display: block;
}
 
/* Backdrop */
#commons-lightbox .clb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
 
/* Content container */
#commons-lightbox .clb-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1em;
}
 
/* Image */
#commons-lightbox .clb-image {
  max-width: 95vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}
 
/* Caption */
#commons-lightbox .clb-caption {
  color: #ffffff;
  font-size: 0.85em;
  text-align: center;
  margin-top: 0.5em;
  line-height: 1.4;
  max-width: 90vw;
}
 
/* Close button */
#commons-lightbox .clb-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
}
 
/* Navigation buttons */
#commons-lightbox .clb-prev,
#commons-lightbox .clb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 12px;
  z-index: 2;
}
 
#commons-lightbox .clb-prev {
  left: 10px;
}
 
#commons-lightbox .clb-next {
  right: 10px;
}
 
/* Hover feedback (desktop only) */
@media (hover: hover) {
  #commons-lightbox .clb-prev:hover,
  #commons-lightbox .clb-next:hover,
  #commons-lightbox .clb-close:hover {
    opacity: 0.75;
  }
}
 
/* Mobile adjustments */
@media (max-width: 600px) {
  #commons-lightbox .clb-prev,
  #commons-lightbox .clb-next {
    font-size: 28px;
  }
}
 
@media (max-width: 480px) {
  #commons-lightbox .clb-caption {
    font-size: 0.8em;
  }
}
"https://schoolwiki.in/മീഡിയവിക്കി:Common.css" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്