پرش به محتوا

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

از ویکی البرز
جزبدون خلاصۀ ویرایش
جزبدون خلاصۀ ویرایش
 
(۴ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۱: خط ۱:
html {
    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;
    font-family:
font-kerning: auto;
        Nastaliq,
font-size: 40px;
        "IranNastaliq",
font-synthesis: none;
        "Traditional Arabic",
font-style: normal;
        "Scheherazade",
font-weight: normal;
        serif;
color: #457;
 
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
 
    color: #445577;
}
}


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


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


#mp-upper, #mp-bottom {
/* ===== Layout ===== */
display: flex;
 
#mp-upper,
#mp-bottom {
    display: flex;
    gap: 8px;
}
}


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


#mp-article-box, #mp-help-box, #mp-sidebar-box {
#mp-sidebar {
margin-bottom: 1em;
     flex: 1 1 33%;
padding: 1em;
    border: 1px solid #eaecf0;
     border-radius: 3.0125px;
}
}


#mp-sidebar-box {
/* ===== Boxes ===== */
margin-right: .3em;
 
}
#mp-article-box,
#mp-help-box,
.mp-sidebar-box {
    margin-bottom: 1em;
    padding: 1em;
 
    background: #fff;


#mp-article-box, #mp-help-box, #mp-sidebar-box {
    border: 1px solid #eaecf0;
background: #fff;
    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 {
font-size: 15px;
    position: relative;
position: relative;
 
padding-right: 45px;
    padding-right: 44px;
color: #457;
 
    font-size: 15px;
    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 {
#mp-new ol {
margin: 10px 10px 0 0;
    margin: 10px 10px 0 0;
padding: 0;
    padding: 0;
}
}


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


#mp-new ol li:before {  
#mp-new ol li::before {
     content: "";
     content: "";
     line-height: 1em;
 
     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 {
    content: "";
    display: block;
    clear: both;
}
}
/* ===== Responsive ===== */


@media (max-width: 875px) {
@media (max-width: 875px) {
.mp-topbanner {
margin: 5px 0;
}
.mp-welcome {
font-size: 36px;
}
.mp-menu {
border-bottom: 0;
}
.mp-menu .hlist > ul li {
margin-left: 0;
}


#mp-upper, #mp-bottom {
    .mp-topbanner {
  flex-direction: column;
        margin: 5px 0;
}
        padding: 20px 16px;
    }
 
    .mp-welcome {
        font-size: 34px;
    }
 
    #mp-upper,
    #mp-bottom {
        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%;
    }
}