پرش به محتوا

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

از ویکی البرز
جزبدون خلاصۀ ویرایش
جزبدون خلاصۀ ویرایش
 
(۲ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۱: خط ۱:
/* ====================== Reset & Base ====================== */
html {
* {
     box-sizing: border-box;
     box-sizing: border-box;
}
}


/* ====================== Top Banner ====================== */
*,
*::before,
*::after {
    box-sizing: inherit;
}
 
/* ===== Top Banner ===== */
 
.mp-topbanner {
.mp-topbanner {
     text-align: center;
     text-align: center;
     padding: 25px 25px 20px;
     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: 1px solid #a8d7fc;
     border: 1px solid #a8d7fc;
    border-top: 0;
 
     border-radius: 3px;
     border-radius: 3px;
    box-shadow: 0 0.1em 0.1em #eaecf0;
}
}


/* ====================== Typography ====================== */
/* ===== 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;
}
}


/* ====================== Description & Menu ====================== */
.mp-description {
.mp-description {
    padding: 5px 0 10px;
     border-bottom: 1px solid #c6defe;
     border-bottom: 1px solid #c6defe;
    padding: 5px 0 10px 0;
}
}


خط ۳۷: خط ۵۰:
}
}


/* ====================== Main Layout ====================== */
/* ===== 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;
    background: #fff;
     border: 1px solid #eaecf0;
     border: 1px solid #eaecf0;
     border-radius: 3px;
     border-radius: 3px;
    background: #fff;
}
}


#mp-sidebar-box {
/* ===== Headers ===== */
    margin-right: 0.3em;
}


#mp-sidebar {
    flex: 1 1 33%;
}
/* ====================== Headings ====================== */
.mp-h2 {
.mp-h2 {
    padding: 0.59em 0.5em;
     margin-bottom: 10px;
     margin-bottom: 10px;
     border-bottom: 1px solid #a8d7fc;
     padding: .6em .5em;
 
     background: #c6defe;
     background: #c6defe;
     border-top-right-radius: 12px;
 
     border-top-left-radius: 50px;
     border: 1px solid #a8d7fc;
     border-right: 1px solid #a8d7fc;
     border-left: 0;
    box-shadow: 0.2em 0.2em 0.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 {
     content: "";
     content: "";
    width: 43px;
 
    height: 43px;
     position: absolute;
     position: absolute;
     right: -1px;
    top: -8px;
     top: -9px;
     right: 0;
 
    width: 40px;
    height: 40px;
}
 
/* ===== CategoryTree ===== */
 
.mp-categorytree {
    overflow: auto;
     max-height: 420px;
}
 
/* ===== Misc ===== */
 
#mp-more {
    text-align: left;
}
}


/* ====================== New Items List ====================== */
#mp-new ol {
#mp-new ol {
     margin: 10px 10px 0 0;
     margin: 10px 10px 0 0;
خط ۱۰۷: خط ۱۳۹:
}
}


#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;
    border-radius: 50%;
    float: right;
    margin: 8px 7px 0 7px;
}


/* ====================== Misc ====================== */
     margin: 7px 0 0 7px;
#mp-more {
 
     float: left;
     background: #00528c;
     margin-left: 10px;
}
}


#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 Design ====================== */
/* ===== 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-upper,
     #mp-upper,
     #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%;
    }
}