MediaWiki:Common.css
From Sanatan Hindu Dharma
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)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */
.flex-fill.container,.flex-fill.container{ max-width:100% !important}
.p-navbar .navbar-brand.p-logo {
height: 3rem;
}
.p-navbar .navbar-brand img {
height: 3.5rem;
}
.p-logo {
height: 6rem;
}
.p-logo img {
padding-left:30px;
height: 5.5rem;
margin-top:.2rem;
}
.bodyContent{ border:1px solid rgba(0,0,0,0.1); padding:16px; border-radius:.25rem;}
.firstHeading,h2,h3,h4{font-weight: 700;}
.mw-parser-output a.extiw:visited, .mw-parser-output a.external:visited, a, a[href].new {
color: #1b599b;
text-decoration: none;
background-color: transparent
}
a:hover, a[href].new:hover {
color: #10345a;
text-decoration: underline
}
a:visited, a[href].new:visited {
color: #1b599b;
}
.footercontainer{max-width:100%;}
.mw-body.content{max-width:1140px; margin:0 auto;}
.tableVideo{text-align : center; margin: 0 auto;}
.embedvideo-wrapper{ border:1px solid #ccc;}
.embedvideo-loader__footer{display : none !important}
.panchangimg img{max-width:800px; width:100%; height:auto; margin:10px auto; display:table;}
.panchangimg a[href].external{ position: fixed; bottom: 20px; right: 20px; background-color:#1B599B; color: #ffffff; padding: 10px 20px; border-radius: 5px; box-shadow: 0px 0px 4px #d1d1d1; font-weight: 600;z-index: 9;}
.p-navbar.collapsible .navbar-nav .dropdown-menu{height:auto; max-height:95vh; overflow: auto;}
/* Hide the entire page tools section (content navigation) for users not logged in */
body:not(.mw-editable) #p-contentnavigation {
display: none !important;
}
span.mw-editsection {
display: none !important;
}
@media (min-width: 1105px) {
.navbar-expand-cmln, .p-navbar.collapsible {flex-flow: row wrap;}
.navbar-expand-cmln .navbar-nav, .p-navbar.collapsible .navbar-nav {flex-wrap: wrap; justify-content: center;}
}
@media (max-width: 575.98px) {
.flex-fill.container .row:first-child {justify-content: center;}
.tableVideo {
max-width: 300px;
width: 100% !important;
height: 169px !important
}
.embedvideo-wrapper, .embedvideo {
max-width: 300px;
width: 100% !important;
height: 169px !important
}
.panchangimg a[href].external{ bottom: 20px; right: 20px; padding: 10px 15px; border-radius: 4px;;}
.panchangimg img{width:100%; height:auto;}
}
.page-title, .firstHeading, #firstHeading {
display: none !important;
}
.mw-headline,
.page-title,
.firstHeading,
h1, h2, h3 {
border: none !important;
box-shadow: none !important;
}
/* Remove default footer */
.footercontainer {
display: none !important;
}
.thumb,
.thumbinner,
.image,
img.thumbimage {
background: none !important;
border: none !important;
box-shadow: none !important;
padding: 0 !important;
margin: 0 auto !important;
}
/* Clean up MediaWiki layout spacing */
html, body {
margin: 0 !important;
padding: 0 !important;
overflow-x: hidden !important;
box-sizing: border-box;
}
.mw-body,
.mw-body-content,
.mw-parser-output,
#content,
#bodyContent,
#mw-content-text {
margin: 0 !important;
padding: 0 !important;
border: none !important;
background: none !important;
box-sizing: border-box;
max-width: none !important;
width: 100% !important;
}
/* Full width Slider */
/* Full-bleed slider (stretches to viewport edges while remaining inside the page flow) */
.mw-fullslider {
position: relative;
width: 100vw;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
box-sizing: border-box;
background: #111;
color: #fff;
overflow: visible;
--fs-height: 420px; /* desktop height; adjust as needed */
}
/* Viewport and track */
.mw-fullslider-viewport {
overflow: hidden;
width: 100%;
box-sizing: border-box;
}
.mw-fullslider-track {
display: flex;
gap: 0;
transition: transform 500ms cubic-bezier(.22,.9,.2,1);
will-change: transform;
align-items: stretch;
flex-wrap: nowrap;
}
/* Single slide: full viewport width */
.mw-fullslide {
flex: 0 0 100%;
display: grid;
grid-template-columns: 1fr;
align-items: center;
min-height: var(--fs-height);
box-sizing: border-box;
position: relative;
}
/* Image wrapper enforces consistent size */
.mw-fullslide .fs-img {
position: absolute;
inset: 0;
overflow: hidden;
height: 100%;
width: 100%;
z-index: 0;
}
.mw-fullslide .fs-img img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
display: block;
}
/* Text overlay area */
.mw-fullslide .fs-text {
position: relative;
z-index: 2;
padding: 36px;
max-width: 1200px;
margin: 0 auto;
color: #fff;
text-shadow: 0 6px 22px rgba(0,0,0,.6);
box-sizing: border-box;
}
.mw-fullslide h2 { margin: 0 0 8px; font-size: 2rem; }
.mw-fullslide p { margin: 0; font-size: 1rem; opacity: .95; }
/* Buttons */
.mw-fullslider-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 10;
width: 48px;
height: 48px;
border-radius: 50%;
border: none;
background: rgba(0,0,0,0.45);
color: #fff;
font-size: 28px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.mw-fullslider-btn.prev { left: 12px; }
.mw-fullslider-btn.next { right: 12px; }
.mw-fullslider-btn:disabled { opacity: .35; cursor: default; }
/* Pagination dots */
.mw-fullslider-dots {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 14px;
display: flex;
gap: 8px;
z-index: 12;
}
.mw-fullslider-dots .dot {
width: 10px;
height: 10px;
border-radius: 999px;
border: none;
background: rgba(255,255,255,0.45);
cursor: pointer;
padding: 0;
}
.mw-fullslider-dots .dot[aria-pressed="true"],
.mw-fullslider-dots .dot.active {
background: #fff;
width: 12px;
height: 12px;
}
/* Small-screen / responsive tweaks */
@media (max-width: 900px) {
.mw-fullslider { --fs-height: 320px; }
.mw-fullslide h2 { font-size: 1.5rem; }
.mw-fullslide .fs-text { padding: 20px; }
.mw-fullslider-btn { width: 44px; height: 44px; font-size: 24px; }
}
@media (max-width: 480px) {
.mw-fullslider { --fs-height: 220px; }
.mw-fullslide h2 { font-size: 1.15rem; }
.mw-fullslide p { font-size: .95rem; }
.mw-fullslider-btn { width: 40px; height: 40px; }
.mw-fullslider-dots { bottom: 10px; }
}
/* Accessibility focus styles */
.mw-fullslider-btn:focus,
.mw-fullslider-dots .dot:focus { outline: 3px solid rgba(255,255,255,0.16); outline-offset: 2px; }
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
.mw-fullslider-track { transition: none !important; }
}
.hero-section {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
width: 100%;
margin: 0 auto;
padding: 100px 20px;
background-image: url('https://palegoldenrod-hawk-418440.hostingersite.com/wp-content/uploads/2025/10/19376570_w66m_ob1h_190906-scaled.jpg');
background-size: cover;
background-position: center;
background-attachment: fixed;
text-align: center;
color: #fff;
box-sizing: border-box;
overflow: hidden;
}
/* Dark overlay for readability */
.hero-section::before {
content: "";
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.4);
z-index: 1;
}
.hero-content {
position: relative;
z-index: 2;
max-width: 800px;
width: 90%;
margin: 0 auto;
}
.hero-content h1 {
font-size: 3rem;
font-weight: 800;
color: #fff;
margin-bottom: 15px;
}
.hero-content p {
font-size: 1.3rem;
font-weight: 600;
line-height: 1.6;
color: #FFE687;
}
/* ----------------------------- */
/* 4️⃣ Responsive adjustments */
/* ----------------------------- */
@media (max-width: 1024px) {
.hero-section {
background-attachment: scroll;
padding: 80px 15px;
}
.hero-content h1 { font-size: 2.4rem; }
.hero-content p { font-size: 1.1rem; }
}
@media (max-width: 768px) {
.hero-section {
min-height: 70vh;
padding: 70px 15px;
}
.hero-content h1 { font-size: 2rem; }
.hero-content p { font-size: 1rem; }
}
@media (max-width: 480px) {
.hero-section {
padding: 60px 10px;
}
.hero-content h1 { font-size: 1.6rem; }
.hero-content p { font-size: 0.95rem; }
}
/* Clean up MediaWiki layout spacing */
html, body {
margin: 0 !important;
padding: 0 !important;
overflow-x: hidden !important;
box-sizing: border-box;
}
.mw-body,
.mw-body-content,
.mw-parser-output,
#content,
#bodyContent,
#mw-content-text {
margin: 0 !important;
padding: 0 !important;
border: none !important;
background: none !important;
box-sizing: border-box;
max-width: none !important;
width: 100% !important;
}
/* Two-column layout container */
.custom-two-column {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 20px;
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
box-sizing: border-box;
}
/* Left column - holds image */
.custom-two-column .left-column {
flex: 1 1 45%;
text-align: center;
}
.custom-two-column .left-column img {
width: 100%;
height: auto;
max-width: 500px;
border-radius: 12px;
display: block;
margin: 0 auto;
}
/* Right column - list of articles */
.custom-two-column .right-column {
flex: 1 1 50%;
display: flex;
flex-direction: column;
justify-content: center;
align-items:center;
padding: 10px;
box-sizing: border-box;
}
.custom-two-column .right-column h2 {
font-size: 1.8rem;
font-weight: 700;
color: #222;
margin-bottom: 15px;
border-bottom: 2px solid #FFD44C;
display: inline-block;
padding-bottom: 5px;
}
.custom-two-column .right-column ul {
list-style: none;
margin: 0;
padding: 0;
}
.custom-two-column .right-column li {
margin: 10px 0;
}
.custom-two-column .right-column a {
text-decoration: none;
font-weight: 600;
font-size: 1.1rem;
color: #0056b3;
transition: color 0.2s ease;
}
.custom-two-column .right-column a:hover {
color: #FFD44C;
}
/* Responsive Design */
@media (max-width: 992px) {
.custom-two-column {
flex-direction: column;
text-align: center;
}
.custom-two-column .right-column h2 {
text-align: center;
}
.custom-two-column .right-column ul {
display: inline-block;
text-align: left;
}
}
.engage-section {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 35px 20px;
text-align: center;
}
.engage-section h1 {
color: maroon;
font-size: 2.5rem;
margin-bottom: 10px;
font-weight: bold;
}
.engage-section h2 {
color: #333;
font-size: 1.4rem;
font-weight: normal;
margin: 0;
}
/* Mobile responsiveness */
@media (max-width: 600px) {
.engage-section {
padding: 30px 15px;
}
.engage-section h1 {
font-size: 1.8rem;
}
.engage-section h2 {
font-size: 1.1rem;
}
}
/* Core categories section */
.three-cards-wrap {
width: 100%;
max-width: 1320px;
margin: 40px auto;
padding: 0px 30px;
box-sizing: border-box;
/* remove outer gaps — if you want inner page padding, wrap this in .container */
}
/* row */
.three-cards-row {
display: flex;
flex-wrap: wrap;
margin: 0;
padding: 0;
gap: 0; /* no gap between children */
}
/* each card: exactly one-third width on desktop (no gap) */
.three-cards-row .card {
box-sizing: border-box;
flex: 0 0 calc(33.3333%); /* three equal columns */
padding: 0; /* no padding between cards */
margin: 0;
border: none;
background: #fffcef;
/* subtle divider between cards (optional). If you truly want no visual gap set border:none;*/
/* border-left: 1px solid rgba(0,0,0,0.03); */
display: flex;
flex-direction: column;
align-items: stretch;
justify-content:center;
}
/* remove default link/image frames added by wiki/skin when using [[File:...]] */
.three-cards-row .card img,
.three-cards-row .card .thumbimage,
.three-cards-row .card .thumbinner {
border: none !important;
background: none !important;
box-shadow: none !important;
padding: 0 !important;
margin: 0 auto;
display: block;
}
/* image area */
.card .card-image {
width: 100%;
height: 220px;
align-items:center;
justify-content: center; /* image box height */
overflow: hidden;
flex: 0 0 auto;
}
.card .card-image img {
width: 150px;
object-fit: cover;
vertical-align: middle; /* keeps image aspect and fills area */
display: block;
}
/* content area */
.card .card-body {
padding: 28px 24px;
text-align: center;
flex: 1 1 auto;
display: flex;
flex-direction: column;
justify-content: space-between;
}
/* title / paragraph */
.card h3 {
margin: 0 0 12px 0;
font-size: 1.25rem;
color: #222;
font-weight: 700;
}
.card p {
margin: 0 0 20px 0;
color: #555;
line-height: 1.6;
font-size: 0.98rem;
}
/* button */
.card .card-btn {
display: inline-block;
text-decoration: none;
background: #0b66d1;
color: #fff;
padding: 10px 18px;
border-radius: 6px;
font-weight: 600;
transition: background .15s ease, transform .12s ease;
align-self: center;
}
.card .card-btn:hover { background: #085bb0; transform: translateY(-2px); }
/* ===== Responsive adjustments ===== */
@media (max-width: 1024px) {
.three-cards-row .card {
flex: 0 0 calc(50%); /* two columns */
}
.card .card-image { height: 200px; }
}
@media (max-width: 640px) {
.three-cards-wrap { margin: 20px auto; }
.three-cards-row .card {
flex: 0 0 100%; /* one column */
}
.card .card-image { height: 180px; }
.card .card-body { padding: 20px; }
.card h3 { font-size: 1.1rem; }
.card p { font-size: 0.95rem; }
}
/* sanatan Knowledge */
/* Sanatan Dharma two-column section */
.sdh-section {
width: 100%;
background: #fffaf0;
padding: 40px 20px;
box-sizing: border-box;
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
margin: 40px auto;
max-width: 1200px;
}
.sdh-title {
text-align: center;
font-size: 2rem;
color: #800000;
font-weight: 700;
margin-bottom: 30px;
font-family: "Georgia", serif;
}
.sdh-columns {
display: flex;
justify-content: space-between;
gap: 30px;
flex-wrap: wrap;
}
.sdh-column {
flex: 1 1 45%;
background: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.sdh-column ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.sdh-column li {
font-size: 1.05rem;
color: #333;
padding: 10px 0;
border-bottom: 1px solid #eee;
line-height: 1.5;
}
.sdh-column li:last-child {
border-bottom: none;
}
/* Responsive Design */
@media (max-width: 900px) {
.sdh-columns {
flex-direction: column;
gap: 20px;
}
.sdh-column {
flex: 1 1 100%;
}
}
/* For Content Writers */
.content_writing1{
Display :flex;
Min-height:100vh;
Background-color:#FFF9E5;
}
/* Custom Page Footer * /
.Custom-footer{
display:flex;
background: #ffd38c;
background: linear-gradient(90deg,rgba(255, 211, 140, 1) 0%, rgba(255, 244, 199, 1) 54%, rgba(255, 206, 122, 1) 100%);
padding: 40px 20px 20px;
}
.footer-top {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
max-width: 1200px;
margin: 0 auto 30px;
}
.footer-column {
flex: 1 1 20%;
min-width: 180px;
margin-bottom: 2px;
}
.footer-column h4 {
margin-bottom: 15px;
font-size: 1.1rem;
color: maroon;
border-bottom: 1px solid #54545427;
padding-bottom: 8px;
}
.footer-column ul {
list-style: none;
padding: 0;
margin: 0;
}
.footer-column ul li {
margin-bottom: 10px;
}
.footer-column ul li a {
color: black;
text-decoration: none;
font-size: 0.95rem;
font-weight: 500;
transition: color 0.3s ease;
}
.footer-column ul li a:hover,
.footer-column ul li a:focus {
color: #fff;
outline: none;
}
.footer-bottom {
border-top: 1px solid #54545427;
max-width: 1200px;
margin: 0;
padding-top: 15px;
display: flex;
flex-wrap: wrap;
justify-content: space-between; /* links left, copyright right */
align-items: center;
}
.footer-bottom-links {
display: flex;
flex-wrap: wrap;
gap: 15px;
}
.footer-bottom-links a {
color: #4e1111;
font-size: 0.9rem;
text-decoration: none;
transition: color 0.3s ease;
}
.footer-bottom-links a:hover,
.footer-bottom-links a:focus {
color: #000;
outline: none;
}
.copyright {
color: #4e1111;
font-size: 0.9rem;
margin-top: 10px;
}
/* Responsive */
@media (max-width: 900px) {
.footer-top {
justify-content: center;
}
.footer-column {
flex: 1 1 45%;
max-width: 45%;
margin-bottom: 30px;
}
.footer-bottom {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.copyright {
margin-top: 0;
}
}
@media (max-width: 480px) {
.footer-column {
flex: 1 1 100%;
max-width: 100%;
}
.footer-bottom-links {
flex-direction: column;
gap: 8px;
}
}
/* Slider One */
.slider {
max-width: 1200px;
margin: 40px auto;
overflow: hidden;
position: relative;
}
.slider-track {
display: flex;
padding-left: 100px;
padding-right: 100px;
transition: transform 0.4s ease-in-out;
}
.slide {
flex: 0 0 33.333%; /* show 3 slides at a time on desktop */
padding: 15px;
}
.slide-content {
background: #fff;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
overflow: hidden;
display: flex;
flex-direction: column;
height: 100%;
}
.slide img {
width: 100%;
height: 180px;
object-fit: cover;
display: block;
}
.slide h3 {
margin: 15px;
font-size: 1.2rem;
color: #333;
}
.slide p {
margin: 0 15px 15px;
color: #666;
flex-grow: 1;
}
/* Navigation Buttons */
.nav-btn {
z-index: 10;
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(255,255,255,0.8);
border: none;
padding: 7px 15px;
cursor: pointer;
border-radius: 50%;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
font-size: 18px;
user-select: none;
}
.nav-btn:focus {
outline: none;
background-color: #ffd476;
}
.nav-prev {
left: 40px;
}
.nav-next {
right: 40px;
}
/* Responsive */
@media (max-width: 768px) {
.slide {
flex: 0 0 50%; /* show 2 slides at a time */
}
.slide img {
height: 140px;
}
}
@media (max-width: 480px) {
.slide {
flex: 0 0 100%; /* show 1 slide at a time */
}
.slide img {
height: 200px;
}
}
/* Slider base */
.mw-slider {
position: relative;
--gap: 16px;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
/* Buttons */
.mw-slider-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 10;
width: 40px;
height: 40px;
border-radius: 50%;
border: none;
background: rgba(0,0,0,0.6);
color: white;
font-size: 22px;
line-height: 1;
display: flex;
align-items:center;
justify-content:center;
cursor: pointer;
}
.mw-slider-btn.prev { left: 8px; }
.mw-slider-btn.next { right: 8px; }
.mw-slider-btn:disabled { opacity: 0.35; cursor: default; }
/* Viewport and track */
.mw-slider-viewport {
overflow: hidden;
padding: 8px 56px; /* space for buttons */
}
.mw-slider-track {
display: flex;
gap: var(--gap);
transition: transform 350ms cubic-bezier(.22,.9,.2,1);
will-change: transform;
align-items: stretch;
padding-bottom: 8px;
}
/* Item */
.mw-slider-item {
background: #fff;
border-radius: 8px;
box-shadow: 0 6px 18px rgba(0,0,0,0.08);
overflow: hidden;
display: flex;
flex-direction: column;
flex: 0 0 calc((100% - (2 * var(--gap))) / 3); /* default: 3 items */
box-sizing: border-box;
}
/* Image */
.mw-slider-item img {
width: 100%;
height: auto;
display: block;
object-fit: cover;
}
/* Text */
.mw-slider-item h3 {
margin: 12px 12px 6px;
font-size: 1.05rem;
}
.mw-slider-item p {
margin: 0 12px 12px;
font-size: 0.95rem;
color: #444;
line-height: 1.3;
}
/* Responsive breakpoints */
@media (max-width: 900px) {
.mw-slider-item { flex: 0 0 calc((100% - var(--gap)) / 2); } /* 2 items */
.mw-slider-viewport { padding: 8px 46px; }
}
@media (max-width: 600px) {
.mw-slider-item { flex-basis: 100%; }
.mw-slider-viewport { padding: 8px 56px; } /* leave room for arrows on both sides */
.mw-slider-btn {
display: flex;
width: 48px;
height: 48px;
border-radius: 50%;
top: 50%;
transform: translateY(-50%);
background: rgba(0,0,0,0.55);
font-size: 24px;
align-items: center;
justify-content: center;
z-index: 30;
touch-action: manipulation;
-webkit-tap-highlight-color: transparent;
}
.mw-slider-btn.prev { left: 8px; }
.mw-slider-btn.next { right: 8px; }
/* Slightly larger hit area for accessibility */
.mw-slider-btn::after {
content: "";
position: absolute;
inset: -6px; /* increases clickable area without changing visual size */
border-radius: 50%;
}
}
/* Image wrapper: enforces same aspect ratio and prevents layout shifts */
.mw-slider-item .img-wrap {
width: 100%;
overflow: hidden;
position: relative;
/* Preferred modern API */
aspect-ratio: 4 / 3;
/* Fallback for older browsers: padding-top for 4:3 */
height: 0;
padding-top: 75%; /* 3/4 = 75% */
}
/* Make the image fill the wrapper and crop while keeping center */
.mw-slider-item .img-wrap img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
display: block;
-webkit-user-drag: none;
user-select: none;
}
/* Responsive: slightly wider on narrower screens (16:9) */
@media (max-width: 900px) {
.mw-slider-item .img-wrap {
aspect-ratio: 16 / 9;
padding-top: 56.25%; /* 9/16 = 56.25% */
}
}
/* Small tweak for mobile rendering smoothness */
@media (max-width: 600px) {
.mw-slider-item .img-wrap {
aspect-ratio: 16 / 9;
padding-top: 56.25%;
}
.mw-slider-item .img-wrap img {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
}
/* Small accessibility tweak */
.mw-slider-item:focus { outline: 3px solid rgba(21,156,228,0.35); }
/* === Custom Navbar Styling === */
