MediaWiki:Common.css

From Sanatan Hindu Dharma
Revision as of 13:33, 20 November 2025 by Balaji (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)
  • 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 */


/* Hide the entire page tools section (content navigation) for users not logged in */
body:not(.mw-editable) #p-contentnavigation {
    display: none !important;
}


/* body:not(.group-sysop) #mw-navigation {
    display: none !important;
} */

/* Hide "Page", "Discussion", "View source", "View history" bar for anonymous visitors */
body:not(.logged-in) .page-tools,
body:not(.logged-in) .chameleon-page-tools,
body:not(.logged-in) .mw-portlet-page-tools {
    display: none !important;
}

.mw-body a, 
.mw-body a:visited,
.mw-body a:hover,
.mw-body a:active,
.mw-body a:focus,
.mw-body a.external:visited{color:#1B599B;}
.mw-parser-output  > .mw-empty-elt {display: none;}


/* Start Pushkar Dayal Code */
body {font-family: "Poppins", sans-serif; font-weight: 400; font-style: normal; font-size: 1rem;}

body.skin-chameleon .col > #content.mw-body{padding: 0px !important}



.container.flex-fill{ max-width: 1351px !important; width: 100% !important; margin: 0 auto !important; padding: 0 15px !important; /* overflow:hidden; */}

.container.flex-fill > .row:last-child{ overflow: hidden; padding-bottom:20px;}

.p-navbar .navbar-brand.p-logo { height: 3rem; }
.p-navbar .navbar-brand img { height: 3rem; }


.p-logo a {display: block;}
.p-logo a:hover,
.p-logo a:focus,
.p-logo a:active,
.p-logo a:focus-visible { outline: 0;}
.p-logo img  {height: 6.5rem; padding: 5px 0;}
#p-personal {padding:5px 0}

#p-personal .p-personal-tools > *, 
.p-personal .p-personal-tools > * { margin-left: 0.35rem !important; margin-right: 0.35rem !important; display: flex ; align-items: center ;}

#p-personal.pull-right .p-personal-tools, .p-personal.pull-right .p-personal-tools{ align-items:center; }

#mw-navigation { padding-right: 0.7rem !important; background: #fff;}
#mw-navigation a.dropdown-toggle,
#p-personal #pt-createaccount a,
#p-personal #pt-login a,
#p-personal #pt-logout a{ background: #f87d22 !important; border: none!important; padding: 10px 15px !important; color: #fff; border-radius:5px; display: flex; align-items: center; gap: 5px; height: 41px; }

#mw-navigation .nav-link::before, a.pt-createaccount:before { margin-right: 0;}
#mw-navigation a.dropdown-toggle::after {font-family: "Font Awesome 6 Free" !important; content: '\f078'; border: none !important; font-weight: 900;}

#mw-navigation a.dropdown-toggle:hover, 
#mw-navigation a.dropdown-toggle:focus, 
#mw-navigation a.dropdown-toggle:active,

#p-personal #pt-createaccount a:hover, 
#p-personal #pt-createaccount a:focus, 
#p-personal #pt-createaccount a:active,
#p-personal #pt-login a:hover, 
#p-personal #pt-login a:focus, 
#p-personal #pt-login a:active,
#p-personal #pt-logout a a:hover, 
#p-personal #pt-logout a a:focus, 
#p-personal #pt-logout a a:active{background: #da670f !important; box-shadow: none !important; text-decoration: none !important; color: #fff;}

#p-personal #pt-login a::before,
#p-personal #pt-logout a::before { margin-right: 0; font-family: "Font Awesome 6 Free"!important; content: '\f007'; border:none !important; font-weight: 400;}


/* === Custom Navbar Styling === */
.navbar-light .navbar-toggler, .p-navbar .navbar-toggler {color: #fff;  border-color: rgba(255, 255, 255, 0.5); }
.main-navbar {background: #531101; padding: 8px 5px; margin:0 -15px !important }
.main-navbar a { color: #fff !important; font-weight: 400; }
.main-navbar a:hover, .main-navbar a:active { color: #fefefe !important;}

.main-navbar .dropdown-menu { background-color: #fff !important; border: 1px solid #ccc; border-radius: 5px; }
.main-navbar .dropdown-menu .dropdown-item, .main-navbar .dropdown-menu a { color: #000 !important;    padding: .35rem 1.5rem !important; }

.main-navbar .dropdown-menu .dropdown-item, .main-navbar .dropdown-menu a:hover,
.main-navbar .dropdown-menu .dropdown-item, .main-navbar .dropdown-menu a:active{ color: #000 !important; background: #e9ecef !important; }

.main-navbar .dropdown-toggle{ display:flex}
.main-navbar .dropdown-toggle::after{
font-family: "Font Awesome 6 Free"!important; content: '\f078'; border:none !important; font-weight: 900;}



.navbar-nav > .mw-list-item:nth-child(1) { order: 1;}
.navbar-nav > .mw-list-item:nth-child(2) { order: 6;}
.navbar-nav > .mw-list-item:nth-child(2) a{ display: flex; background: #f87d22; border-radius: 5px; gap: 5px; align-items: center; color: #fff;}
.navbar-nav > .mw-list-item:nth-child(2) a::before{
font-family: "Font Awesome 6 Free"!important; content: '\f004'; border:none !important; font-weight: 900;}

.navbar-nav > .nav-item.dropdown:nth-child(3) { order: 2;}
.navbar-nav > .nav-item.dropdown:nth-child(4) { order: 3;}
.navbar-nav > .nav-item.dropdown:nth-child(5) { order: 4;}
.navbar-nav > .nav-item.dropdown:nth-child(6) { order: 5;}
.navbar-nav > .nav-item.dropdown:nth-child(7) { order: 7;}
.navbar-nav > .nav-item.p-tb-dropdown { order: 8;}



/* -- Slick Core Styles -- */
@import url('https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css');
@import url('https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick-theme.css');

.p-search { margin-bottom:7px;}
.p-search .input-group > .form-control{ height:40px;}
.p-search .searchGoButton {background: #f87d22 !important; border: none!important; padding: 8px 15px !important; margin-left: auto; color: #fff !important; border-radius: 0 .25rem .25rem 0 !important;}
.p-search .searchGoButton:hover,.p-search .searchGoButton:focus,.p-search .searchGoButton:focus:active{background: #da670f !important; box-shadow: none !important; text-decoration: none !important; color: #fff !important;}


.btn{padding: 15px 40px;}
.btn-primary,.btn-donate { background: #f87d22 !important; color:#fff !important; border: none!important;}
.btn-primary{width: 100%;}
.btn-primary:hover,.btn-primary:focus,
.btn-primary:focus:active,
.btn-donate:hover,.btn-donate:focus,
.btn-donate:focus:active {background: #da670f !important; color:#fff !important; box-shadow: none !important; text-decoration: none !important;}
.btn-donate span{ display: flex !important; align-items: center !important; gap: 5px !important;}

.mw-body .mw-indicators{ display: none !important; position: absolute !important; z-index: -1;}


body.page-Main_Page #firstHeading{display: none}
#p-contentnavigation{ margin-top: 15px;}
.hero-banner-section{margin: 0 -15px;}
.hero-banner-section .container{max-width: 1351px !important; padding: 0 !important;}
.hero-banner-section .adsBannerSliderHero  {position: relative;} /* -- Slick Wisdom Slider -- */
.hero-banner-section .slick-track{display: flex;}
.hero-banner-section .adsBannerSliderHero .slick-slide{position: relative; display: inline-block; width:1351px !important}
.hero-banner-section img{ width: 100%; height: 450px; object-fit: cover;}
.hero-banner-block { position: absolute; background: rgba(0,0,0,.5); text-align: center; max-width: 1000px; width: 100%; color: #fff; bottom: 0; left: 50%; transform: translate(-50%,-150px); padding: 20px; border-radius: 5px}

.hero-banner-heading {font-size: 2.6rem; font-weight: 700; margin-bottom: 10px;}
.hero-banner-subheading {font-size: 1.8rem; font-weight: 600}

 h2.section-heading{ font-size: 2.5rem; font-weight: 700; color: #531101; padding-top:25px; margin-top:0; margin-bottom: 30px !important; text-align: center; border:0;}

.discover-Learn-Live-section{padding: 40px 40px 10px 40px; background: #ffffff; color:#000;}
.discover-Learn-Live-section .section-heading{ text-align: left; margin-bottom: 30px; margin-top: 0; padding-top: 5px;}
.discover-Learn-Live-section img {width: 100%; max-width: 539px;}
.discover-Learn-Live-btn{ background: #531101; width: 200px; border-radius: .5rem; display: table; padding: 1rem; margin: 20px auto 0 auto; text-align: center; text-decoration: none; color: #fff !important; font-size: 1rem; white-space: nowrap;}
.discover-Learn-Live-btn:visited{ color: #fff !important;}
.discover-Learn-Live-btn:hover{ color: #fff; background: #410d01;}

.sanatan-circle { position: relative; width: 520px; height: 488px; margin: 0px auto 30px auto; font-family: "Poppins", sans-serif;}
.center-text {position: absolute; top: 50%; left: 0%; width: 175px; height: 175px; transform: translate(-0%, -50%); border-radius: 50%; background: #fff; color: #333; font-size: 14px; font-weight: 500; line-height: 1.4; text-align: center; display: flex; align-items: center; justify-content: center; padding: 15px; box-shadow: 0 0 15px rgba(0, 0, 0, 0.15); z-index: 2;}
.dotted-arc {position: absolute; top: 50%; left: 0%; width: 245px; height: 245px; transform: translate(-12%, -50%); border: 2px dashed #531101; border-radius: 50%;  clip-path: inset(0 0 0 50%); /* show only right half */ z-index: 1;}

.icon {position: absolute; width: 77px; height: 77px; box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, .15); border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; z-index: 3;}

.icon img { width: 40px; height: 40px;}

.icon1 { top: 20px; left: 10%; }
.icon2 { top: 50px; left: 30%;}
.icon3 {top: 135px; left: 44%;}
.icon4 { top: 245px; left: 45%;}
.icon5 {top: 345px; left: 35%;}
.icon6 {top: 393px; left: 15%;}

.roundbullet{ position: absolute; width: 8px; height: 8px; border-radius: 4px; background-color: #531101;}
.roundbullet1 {left: 36px; top: 99px;}
.roundbullet2 {left: 6px; top: 92px;}
.roundbullet3 {left: -25px; top: 65px;}
.roundbullet4 {left: -28px; top: 30px;}
.roundbullet5 {left: -20px; top: -8px;}
.roundbullet6 {left: 14px; top: -31px;}

.iconTextBlock { position: absolute;}
.iconText1 {left:83px; top:-25px; width: 305px;}
.iconText2 {left:87px; top:13px; width: 300px; }
.iconText3 {left:87px; top:10px; width: 250px; }
.iconText4 {left:87px; top:10px; width: 280px;}
.iconText5 {left: 88px; top:18px; width: 250px;}
.iconText6 {left:90px; top:40px; width: 320px;}

@media screen and (max-width:400px) {
.sanatan-circle {margin: 20px 0 30px 0; width: 100%; height: 360px; }
.center-text {width: 145px; height: 145px; font-size: 12px;}
.dotted-arc {width: 185px; height: 185px; border: 1px dashed #531101;}

.icon {width: 45px; height: 45px;}
.icon img { width: 24px; height: 24px;}
.icon1 {top: 28px; left: 14%;}
.icon2 {top: 48px; left: 34%;}
.icon3 {top: 105px; left: 49%;}
.icon4 {top: 180px; left: 52%;}
.icon5 {top: 249px;left: 42%;}
.icon6 {top: 287px; left: 22%;}

.roundbullet {width: 6px; height: 6px; border-radius: 3px;}
.roundbullet1 {left: 23px; top: 56px;}
.roundbullet2 {left: 7px; top: 52px;}
.roundbullet3 {left: -8px; top: 40px;}
.roundbullet4 {left: -15px; top: 21px;}
.roundbullet5 {left: -10px; top: -3px;}
.roundbullet6 {left: 0px; top: -18px;}

.iconTextBlock{font-size: 11px;}
.iconText1 {left: 50px;top: -30px; width: 200px;}
.iconText2 {left: 56px; top: 5px; width: 165px;}
.iconText3 {left: 55px; top: -5px;  width: 118px;}
.iconText4 {left: 55px; top: 0;width: 110px;}
.iconText5 {left: 58px;top: 12px; width: 135px;}
.iconText6 {left: 56px; top: 20px; width: 200px;}
}

.explore-sanatan-wisdom-section{/*padding: 0px 40px 0 40px;*/ padding: 0px; background: #ffffff;}
.sanatanWisdomSlider {position: relative;} /* -- Slick Wisdom Slider -- */
.sanatanWisdomSlider .slick-track{display: flex; gap:30px;}
.sanatanWisdomSlider .slick-track div{display: inline-block;}
.sanatanWisdomSlider a{background: #fff !important; display: block; text-decoration: none; color: #000; border-radius: 10px; overflow: hidden; box-shadow: 0px 0px 10px 0px rgba(0,0,0,.2); margin-bottom: 20px;}
.sanatanWisdomSlider a .sanatan-wisdom-title{ padding: 15px; color:#000000; display: block; text-align: center; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; text-overflow: ellipsis; height:54px; line-height:32px;}
.sanatanWisdomSlider img {width: 100%;height: auto; display: block;}


.latest-articles-section { padding: 0px 40px 40px 40px; background: #ffffff;}
.latestArticlesSlider {position: relative;} /* -- Latest Articles Slider -- */
.latestArticlesSlider .slick-track{display: flex; gap:20px;}
.latestArticlesSlider .slick-track div{display: inline-block;}
.latestArticlesSlider a{white-space: nowrap; text-align: center; background: #f87d22 !important; padding: 8px 20px; display: block; text-decoration: none; color: #fff; border-radius: 5px;}
.latestArticlesSlider a:hover{ color: #fff; background: #531101 !important}


.slick-arrow { position: absolute; z-index: 999; color: #fff; top: 50%; width: 25px; height: 30px; border: 0; background: rgba(0, 0, 0, .3); transform: translate(0, -50%);}
.prev-arrow {left: 0; border-radius: 5px; padding: 0;}
.next-arrow {right: 0; border-radius: 5px; padding: 0;}


.featured-and-highlights-section{padding: 0px 40px 40px 40px; margin: 0 -15px; background: #fff4f2;}
.featured-and-highlights-section img {width: 100%; overflow: hidden; border-radius: 15px; object-fit: cover; height: 345px;}
.home-featured-content{margin: 20px 0; padding: 0 20px; text-align: center; color: #000; height: 45px; line-height: 22px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; text-overflow: ellipsis;}


.home-featured-btn{ background: #531101; width: 200px; border-radius: .5rem; display: table; padding: 1rem 2rem; margin: 0 auto; text-align: center; text-decoration: none; color: #fff !important; font-size: 1rem;}
.home-featured-btn:hover,
.home-featured-btn:active{color: #fff; background: #410d01 !important;}
.home-featured-btn:visited{color: #fff !important;}

.join-and-collaborate-section {padding: 0px 40px 40px 40px; text-align: center; background: #ffffff;}
.join-and-collaborate-section .btn-coin-collaborate-block { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center;}
.join-and-collaborate-section .btn-coin-collaborate-block a{background: #f87d22 !important; border: none !important; padding: 1rem 2rem; color: #fff; font-size: 1.5rem; font-weight: 600; text-decoration: none; width: 325px; border-radius: .5rem; display: flex; align-items: center; justify-content: center; gap:20px;}
.join-and-collaborate-section .btn-coin-collaborate-block a:hover,
.join-and-collaborate-section .btn-coin-collaborate-block a:active{color: #fff; background: #da670f !important;}
.join-and-collaborate-section .btn-coin-collaborate-block a:visited{color: #fff !important;}



.firstHeading, h1, h2, h3, h4{font-weight: 700; }
h2, h3, h4{ border-bottom:0 !important}
#bodyContent ul,#bodyContent ol{margin-bottom: 1rem;}
#bodyContent ul li,#bodyContent ol li{margin-bottom: 1rem;}


.right-template-category-block{float:right; width:300px; border:1px solid #ccc; background-color:#f9f9f9; padding:10px; margin:10px; border-radius:8px;}
.right-template-category-block h2{ font-weight: bold;
    margin-bottom: 8px;
    background: #e9e9e9;
    padding: 15px 10px;
    border-radius: 4px;
    margin: 0 0 15px 0;
    font-size: 1.3rem;}

.right-template-category-block ul li,
.right-template-category-block ol li { margin-bottom: .5rem; font-size: .9rem;}
.right-template-category-block a { font-weight: 400;}

.panchang_block,.panchangimg { display: flex; gap:15px; flex-direction: column; align-items: center;}

#mw-custom-footer { background-color: #531101;}
.footer{ background-color: #531101; color: #fff; font-size: .9rem; font-weight: 300; line-height: 1.8;  margin:0 auto; max-width:1351px !important; padding: 15px 15px 0 15px !important;}
.footer h3{ font-size: 1rem; font-weight: 600; margin-top: 10px; margin-bottom: 15px; color: #fff;}
.footer ul { margin: 0; padding: 0; list-style: none;}
.footer ul.need-help li {display: flex; align-items: baseline; gap:10px; margin-bottom: 5px;}
.footer a { text-decoration: none; color:#fff !important;}
.footer a:hover{ color: #fff; text-decoration: underline;}
.footer .form-text{ color: #fff;}
.footer .form-control, 
.footer .form-control:hover, 
.footer .form-control:focus, 
.footer .form-control:active{ height: 50px; border: none; box-shadow: none;}
.footer ul.social-media{display: flex; gap:15px; margin-top: 10px; font-size: 1.6rem;}
.footer .footerBottom {padding:30px 0; border-top: 1px solid #fff;margin-top: 20px;}
.footer .footerBottom ul{ margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap:10px; line-height: 1;}
.footer .footerBottom ul li:not(:last-child) {border-right: 1px solid #fff; padding-right: 10px;}

@media (max-width: 767px) {
.container.flex-fill .row:nth-child(1) {justify-content:center;}
.container.flex-fill .row:nth-child(1) .align-items-center {flex-direction: column;}
.p-personal.pull-right {float:inherit !important}
#p-personal.pull-right .p-personal-tools, .p-personal.pull-right .p-personal-tools {justify-content:center}

.top-head{ justify-content: center; gap: 10px;}


.navbar-nav { align-items:flex-start; width: 100%; padding: 0 15px;}
.navbar-nav > .mw-list-item:nth-child(1), .navbar-nav > .mw-list-item:nth-child(2)
.navbar-nav #n-Home, .navbar-nav #n-Donate, .navbar-nav .nav-item {width:100%}
#n-Donate a {padding-left:15px; padding-right:15px;}

.hero-banner-section img{ height: 350px;}
.hero-banner-block {transform: translate(-50%, -90px);}
.hero-banner-heading {font-size: 1.6rem;}
.hero-banner-subheading {font-size: 1.2rem;}
.discover-Learn-Live-section .section-heading{ margin-top:1rem; padding-top:0.5rem; }
h2.section-heading{font-size: 1.9rem;}

.featured-and-highlights-section{margin: 0;}
.discover-Learn-Live-section,.explore-sanatan-wisdom-section, .latest-articles-section, .featured-and-highlights-section, .join-and-collaborate-section{padding: 0 0 40px 0;}
.home-featured-content{ padding: 0; max-height: 65; height: auto;}
.latest-articles-section h2.section-heading{padding-top:0 !important;}
.join-and-collaborate .btn-coin-collaborate-block a{ padding: 1rem 2rem; width: 100%;}

}

/* End Pushkar Dayal Code */

#floatingCreateBtn { animation: floatUp 0.3s ease-in-out; }
@keyframes floatUp { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#createPopupBox input:focus { border-color: #0078D7; outline: none;
}

/* Balaji code (Dont change it) starting */
.mw-editsection {
    display: none !important;
}

body.page-Special_TeamDashboard #firstHeading,
body.page-Special_TeamDashboard #contentSub {
    display: none !important;
}


/* ------------------- FLOATING RELATED LINKS BOX (Desktop) ------------------- */

.related-links-box {
    float: right;
    width: 30%;
    max-width: 380px;

    position: sticky;
    top: 120px;

    margin-left: 25px;
    margin-bottom: 25px;

    background: #ffffff;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}

/* Heading with MAROON color */
.related-links-box h2 {
    font-size: 1.45rem;
    margin-bottom: 16px;
    font-weight: 700;
    color: #7b1e21;
    border-bottom: 2px solid #e4c5c6;
    padding-bottom: 5px;
}

/* Remove underline from clickable heading */
.related-links-box h2 a {
    color: inherit;
    text-decoration: none;
}

/* ------------------- LINKS LIST STYLE ------------------- */

.related-links-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-links-list li {
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}

.related-links-list li:hover {
    background: #f7e9ea;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.related-links-list a {
    color: #0054a6;
    text-decoration: none;
    font-weight: 500;
}

.related-links-list a:hover {
    color: #003d78;
    text-decoration: underline;
}

/* ------------------- MOBILE: ACCORDION MODE ------------------- */

@media (max-width: 900px) {

    .related-links-box {
        float: none;
        width: 100%;
        max-width: 100%;
        position: static;
        margin-left: 0;
        margin-top: 20px;
    }

    /* Hide list by default */
    .related-links-list {
        display: none;
        padding-top: 10px;
    }

    /* Make header clickable */
    .related-links-box h2 {
        cursor: pointer;
        position: relative;
    }

    /* Add ▼ arrow */
    .related-links-box h2::after {
        content: "▼";
        position: absolute;
        right: 0;
        top: 0;
        font-size: 1rem;
        transition: transform 0.25s;
    }

    /* Open accordion using :target */
    #related-links:target .related-links-list {
        display: block;
    }

    /* Rotate arrow when open */
    #related-links:target h2::after {
        transform: rotate(180deg);
    }
}





/* End (Balaji) */