پرش به محتوا

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

از ویکی البرز
جزبدون خلاصۀ ویرایش
جزبدون خلاصۀ ویرایش
 
(۳ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۱: خط ۱:
* {
html {
     box-sizing: border-box;
     box-sizing: border-box;
}
}
*,
*::before,
*::after {
    box-sizing: inherit;
}
/* ===== Top Banner ===== */


.mp-topbanner {
.mp-topbanner {
     text-align: center;
     text-align: center;
     padding: 25px 25px 20px 25px;
     padding: 24px;
     margin-bottom: 5px;
     margin-bottom: 4px;
    text-shadow: 1px 1px 2px #f8f9fa;
 
     background: linear-gradient(to bottom, #fff, #c6defe);
     background: linear-gradient(#fff, #c6defe);
     border-bottom: solid 1px #a8d7fc;
     border: 1px solid #a8d7fc;
     border-radius: 3.0125px;
     border-top: 0;
     box-shadow: 0 .1em .1em #eaecf0;
 
     border-radius: 3px;
}
}
/* ===== Typography ===== */


.mp-welcome {
.mp-welcome {
     font-family: Nastaliq, "IranNastaliq", "Traditional Arabic", "Scheherazade", serif;
     font-family:
    font-kerning: auto;
        Nastaliq,
        "IranNastaliq",
        "Traditional Arabic",
        "Scheherazade",
        serif;
 
     font-size: 40px;
     font-size: 40px;
    font-synthesis: none;
     font-style: normal;
     font-style: normal;
     font-weight: normal;
     font-weight: 400;
    line-height: 1.4;
 
     color: #445577;
     color: #445577;
}
}


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


خط ۳۲: خط ۴۹:
     padding-top: 5px;
     padding-top: 5px;
}
}
/* ===== Layout ===== */


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


خط ۴۱: خط ۶۱:
#mp-help {
#mp-help {
     flex: 1 1 67%;
     flex: 1 1 67%;
    margin-left: 2px;
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
}
}
#mp-sidebar {
    flex: 1 1 33%;
}
/* ===== Boxes ===== */


#mp-article-box,
#mp-article-box,
#mp-help-box,
#mp-help-box,
#mp-sidebar-box {
.mp-sidebar-box {
     margin-bottom: 1em;
     margin-bottom: 1em;
     padding: 1em;
     padding: 1em;
    border: 1px solid #eaecf0;
 
    border-radius: 3.0125px;
     background: #fff;
     background: #fff;
}


#mp-sidebar-box {
    border: 1px solid #eaecf0;
     margin-right: .3em;
     border-radius: 3px;
}
}


#mp-sidebar {
/* ===== Headers ===== */
    flex: 1 1 33%;
}


.mp-h2 {
.mp-h2 {
    padding: .59em .5em;
     margin-bottom: 10px;
     margin-bottom: 10px;
     border-bottom: solid 1px #a8d7fc;
     padding: .6em .5em;
 
     background: #c6defe;
     background: #c6defe;
     border-top-right-radius: 12.05px;
 
     border-top-left-radius: 50.2px;
     border: 1px solid #a8d7fc;
     border-right: solid 1px #a8d7fc;
     border-left: 0;
    box-shadow: .2em .2em .3em #eaecf0;
 
     border-radius: 0 12px 0 24px;
}
}


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


.mp-h2 span:before {
.mp-h2 span::before {
     width: 43px;
     content: "";
    height: 43px;
 
     position: absolute;
     position: absolute;
     right: -1px;
    top: -8px;
     top: -9px;
     right: 0;
     content: " ";
 
    width: 40px;
     height: 40px;
}
 
/* ===== CategoryTree ===== */
 
.mp-categorytree {
    overflow: auto;
     max-height: 420px;
}
}
/* ===== Misc ===== */


#mp-more {
#mp-more {
     float: left;
     text-align: left;
    margin-left: 10px;
}
}


خط ۱۰۵: خط ۱۳۹:
}
}


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


#badge {
#badge {
     font-weight: bold;
     font-weight: 700;
     color: goldenrod;
     color: goldenrod;
}
}
خط ۱۲۲: خط ۱۵۹:
.clearfix::after {
.clearfix::after {
     content: "";
     content: "";
    display: block;
     clear: both;
     clear: both;
    display: table;
}
}
/* ===== Responsive ===== */


@media (max-width: 875px) {
@media (max-width: 875px) {
     .mp-topbanner {
     .mp-topbanner {
         margin: 5px 0;
         margin: 5px 0;
        padding: 20px 16px;
     }
     }


     .mp-welcome {
     .mp-welcome {
         font-size: 36px;
         font-size: 34px;
    }
 
    .mp-menu {
        border-bottom: 0;
    }
 
    .mp-menu .hlist > ul li {
        margin-left: 0;
     }
     }


خط ۱۴۶: خط ۱۷۹:
     #mp-bottom {
     #mp-bottom {
         flex-direction: column;
         flex-direction: column;
        gap: 0;
     }
     }


     #mp-sidebar-box {
     #mp-article,
        margin-right: 0;
    #mp-help,
    }
     #mp-sidebar {
 
         width: 100%;
     #mp-help-box {
         background: #fff;
     }
     }
}
}

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

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%;
    }
}