پرش به محتوا

الگو:صفحهٔ اصلی/styles.css: تفاوت میان نسخه‌ها

از ویکی البرز
صفحه‌ای تازه حاوی «body.page-صفحهٔ_اصلی #mp-topbanner { clear: both; } body.page-صفحهٔ_اصلی #ca-delete, body.page-صفحهٔ_اصلی #deleteconfirm, body.page-صفحهٔ_اصلی #t-cite, body.page-صفحهٔ_اصلی #lastmod, body.page-صفحهٔ_اصلی #siteSub, body.page-صفحهٔ_اصلی #contentSub, body.page-صفحهٔ_اصلی #catlinks, body.page-صفحهٔ_اصلی h1.firstHeading, body.page-صفحهٔ_اصلی #central...» ایجاد کرد
 
جزبدون خلاصۀ ویرایش
 
(۵ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۱: خط ۱:
body.page-صفحهٔ_اصلی #mp-topbanner {
html {
clear: both;
    box-sizing: border-box;
}
}


body.page-صفحهٔ_اصلی #ca-delete,
*,
body.page-صفحهٔ_اصلی #deleteconfirm,
*::before,
body.page-صفحهٔ_اصلی #t-cite,
*::after {
body.page-صفحهٔ_اصلی #lastmod,
     box-sizing: inherit;
body.page-صفحهٔ_اصلی #siteSub,
body.page-صفحهٔ_اصلی #contentSub,
body.page-صفحهٔ_اصلی #catlinks,
body.page-صفحهٔ_اصلی h1.firstHeading,
body.page-صفحهٔ_اصلی #centralNotice {
     display: none !important;
}
}


body.page-صفحهٔ_اصلی #ca-history,
/* ===== Top Banner ===== */
body.page-صفحهٔ_اصلی #pagehistory {
 
display: none;
.mp-topbanner {
    text-align: center;
    padding: 24px;
    margin-bottom: 4px;
 
    background: linear-gradient(#fff, #c6defe);
    border: 1px solid #a8d7fc;
    border-top: 0;
 
    border-radius: 3px;
}
}


.mp-box {
/* ===== Typography ===== */
border: 1px solid #eaecf0;
 
padding: 0 0.5em 0.5em;
.mp-welcome {
margin-top: 4px;
    font-family:
        Nastaliq,
        "IranNastaliq",
        "Traditional Arabic",
        "Scheherazade",
        serif;
 
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
 
    color: #445577;
}
}


.mp-h2,
.mp-description {
body.skin-timeless .mp-h2 {  
    padding: 5px 0 10px;
border: 1px solid #fff;
    border-bottom: 1px solid #c6defe;
margin: 0.5em 0;
padding: 0.2em 0.4em;
font-size: 120%;
font-weight: bold;
font-family: inherit;
}
}


.mp-later {
.mp-menu {
font-size: 85%;
    padding-top: 5px;
font-weight: normal;
}
}


#mp-topbanner {
/* ===== Layout ===== */
background: #f9f9f9;
 
     border-color: #ddd;
#mp-upper,
#mp-bottom {
    display: flex;
     gap: 8px;
}
}


#mp-welcomecount {
#mp-article,
text-align: center;
#mp-help {
     margin: 0.4em;
    flex: 1 1 67%;
    display: flex;
     flex-direction: column;
}
}


#mp-welcome {
#mp-sidebar {
padding: 10px 0 15px;
    flex: 1 1 33%;
}
}


/* clear fix */
/* ===== Boxes ===== */
.mp-contains-float::after {
 
  content: "";
#mp-article-box,
  display: block;
#mp-help-box,
  clear: both;
.mp-sidebar-box {
    margin-bottom: 1em;
    padding: 1em;
 
    background: #fff;
 
    border: 1px solid #eaecf0;
    border-radius: 3px;
}
}


#mp-banner {
/* ===== Headers ===== */
background: #fffaf5;
 
border-color: #f2e0ce;
.mp-h2 {
    margin-bottom: 10px;
    padding: .6em .5em;
 
    background: #c6defe;
 
    border: 1px solid #a8d7fc;
    border-left: 0;
 
    border-radius: 0 12px 0 24px;
}
}


#mp-right {
.mp-h2 span {
background: #f5fffa;
    position: relative;
border-color: #cef2e0;
 
    padding-right: 44px;
 
    font-size: 15px;
    color: #445577;
}
}


#mp-right .mp-h2 {
.mp-h2 span::before {
background: #cef2e0;
    content: "";
border-color: #a3bfb1;
 
    position: absolute;
    top: -8px;
    right: 0;
 
    width: 40px;
    height: 40px;
}
}


#mp-left {
/* ===== CategoryTree ===== */
background: #f5faff;
 
border-color: #cedff2;
.mp-categorytree {
    overflow: auto;
    max-height: 420px;
}
}


#mp-left .mp-h2 {
/* ===== Misc ===== */
background: #cedff2;
 
border-color: #a3b0bf;
#mp-more {
    text-align: left;
}
}


#mp-lower {
#mp-new ol {
background: #faf5ff;
    margin: 10px 10px 0 0;
border-color: #ddcef2;
    padding: 0;
}
}


#mp-lower .mp-h2 {
#mp-new ol li {
background: #ddcef2;
    list-style: none;
border-color: #afa3bf;
}
}


#mp-bottom {
#mp-new ol li::before {
border-color: #e2e2e2;
    content: "";
 
    display: inline-block;
 
    width: 5px;
    height: 5px;
 
    margin: 7px 0 0 7px;
 
    background: #00528c;
}
}


#mp-bottom .mp-h2 {
#badge {
background: #eee;
    font-weight: 700;
border-color: #ddd;
    color: goldenrod;
}
}


#interwiki-completelist {
.clearfix::after {
     font-weight: bold;
     content: "";
    display: block;
    clear: both;
}
}
/* ===== Responsive ===== */


@media (max-width: 875px) {
@media (max-width: 875px) {
/* We need to improve Template:POTD as used on the main page so that these
* hacks aren't necessary */
#mp-tfp table,
#mp-tfp tr,
#mp-tfp td,
#mp-tfp tbody {
display: block !important;
width: 100% !important;
box-sizing: border-box;
}


#mp-tfp tr:first-child td:first-child a {
    .mp-topbanner {
text-align: center;
        margin: 5px 0;
display: table;
        padding: 20px 16px;
margin: 0 auto;
    }
}
 
}
    .mp-welcome {
        font-size: 34px;
    }
 
    #mp-upper,
    #mp-bottom {
        flex-direction: column;
        gap: 0;
    }


@media (min-width: 875px) {
    #mp-article,
#mp-upper {
    #mp-help,
display: flex;
    #mp-sidebar {
}
        width: 100%;
    }
#mp-right {
flex: 1 1 52%;
margin-left: 2px;
}
#mp-left {
  flex: 1 1 48%;
  margin-right: 2px;
}
}
}

نسخهٔ کنونی تا ‏۲۸ مهٔ ۲۰۲۶، ساعت ۲۰:۵۲

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* ===== Top Banner ===== */

.mp-topbanner {
    text-align: center;
    padding: 24px;
    margin-bottom: 4px;

    background: linear-gradient(#fff, #c6defe);
    border: 1px solid #a8d7fc;
    border-top: 0;

    border-radius: 3px;
}

/* ===== Typography ===== */

.mp-welcome {
    font-family:
        Nastaliq,
        "IranNastaliq",
        "Traditional Arabic",
        "Scheherazade",
        serif;

    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;

    color: #445577;
}

.mp-description {
    padding: 5px 0 10px;
    border-bottom: 1px solid #c6defe;
}

.mp-menu {
    padding-top: 5px;
}

/* ===== Layout ===== */

#mp-upper,
#mp-bottom {
    display: flex;
    gap: 8px;
}

#mp-article,
#mp-help {
    flex: 1 1 67%;
    display: flex;
    flex-direction: column;
}

#mp-sidebar {
    flex: 1 1 33%;
}

/* ===== Boxes ===== */

#mp-article-box,
#mp-help-box,
.mp-sidebar-box {
    margin-bottom: 1em;
    padding: 1em;

    background: #fff;

    border: 1px solid #eaecf0;
    border-radius: 3px;
}

/* ===== Headers ===== */

.mp-h2 {
    margin-bottom: 10px;
    padding: .6em .5em;

    background: #c6defe;

    border: 1px solid #a8d7fc;
    border-left: 0;

    border-radius: 0 12px 0 24px;
}

.mp-h2 span {
    position: relative;

    padding-right: 44px;

    font-size: 15px;
    color: #445577;
}

.mp-h2 span::before {
    content: "";

    position: absolute;
    top: -8px;
    right: 0;

    width: 40px;
    height: 40px;
}

/* ===== CategoryTree ===== */

.mp-categorytree {
    overflow: auto;
    max-height: 420px;
}

/* ===== Misc ===== */

#mp-more {
    text-align: left;
}

#mp-new ol {
    margin: 10px 10px 0 0;
    padding: 0;
}

#mp-new ol li {
    list-style: none;
}

#mp-new ol li::before {
    content: "";

    display: inline-block;

    width: 5px;
    height: 5px;

    margin: 7px 0 0 7px;

    background: #00528c;
}

#badge {
    font-weight: 700;
    color: goldenrod;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* ===== Responsive ===== */

@media (max-width: 875px) {

    .mp-topbanner {
        margin: 5px 0;
        padding: 20px 16px;
    }

    .mp-welcome {
        font-size: 34px;
    }

    #mp-upper,
    #mp-bottom {
        flex-direction: column;
        gap: 0;
    }

    #mp-article,
    #mp-help,
    #mp-sidebar {
        width: 100%;
    }
}