الگو:صفحهٔ اصلی/styles.css: تفاوت میان نسخهها
ظاهر
جزبدون خلاصۀ ویرایش |
جزبدون خلاصۀ ویرایش |
||
| (۴ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد) | |||
| خط ۱: | خط ۱: | ||
html { | |||
box-sizing: border-box; | |||
} | |||
*, | |||
*::before, | |||
*::after { | |||
box-sizing: inherit; | |||
} | |||
/* ===== Top Banner ===== */ | |||
.mp-topbanner { | .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 { | .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 { | .mp-description { | ||
padding: 5px 0 10px; | |||
border-bottom: 1px solid #c6defe; | |||
} | } | ||
.mp-menu { | .mp-menu { | ||
padding-top: 5px; | |||
} | } | ||
#mp-upper, #mp-bottom { | /* ===== Layout ===== */ | ||
#mp-upper, | |||
#mp-bottom { | |||
display: flex; | |||
gap: 8px; | |||
} | } | ||
#mp-article, #mp-help { | #mp-article, | ||
#mp-help { | |||
flex: 1 1 67%; | |||
display: flex; | |||
flex-direction: column; | |||
} | } | ||
#mp-sidebar { | |||
flex: 1 1 33%; | |||
} | } | ||
#mp-sidebar-box { | /* ===== 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 { | .mp-h2 { | ||
margin-bottom: 10px; | margin-bottom: 10px; | ||
padding: .6em .5em; | |||
background: #c6defe; | background: #c6defe; | ||
border | |||
border | border: 1px solid #a8d7fc; | ||
border- | border-left: 0; | ||
border-radius: 0 12px 0 24px; | |||
} | } | ||
.mp-h2 span { | .mp-h2 span { | ||
position: relative; | |||
padding-right: 44px; | |||
font-size: 15px; | |||
color: #445577; | |||
} | } | ||
.mp-h2 span:before { | .mp-h2 span::before { | ||
content: ""; | |||
position: absolute; | position: absolute; | ||
right: | top: -8px; | ||
right: 0; | |||
width: 40px; | |||
height: 40px; | |||
} | } | ||
/* ===== CategoryTree ===== */ | |||
.mp-categorytree { | |||
overflow: auto; | |||
max-height: 420px; | |||
} | |||
/* ===== Misc ===== */ | |||
#mp-more { | #mp-more { | ||
text-align: left; | |||
} | } | ||
#mp-new ol { | #mp-new ol { | ||
margin: 10px 10px 0 0; | |||
padding: 0; | |||
} | } | ||
#mp-new ol li { | #mp-new ol li { | ||
list-style: none; | |||
} | } | ||
#mp-new ol li:before { | #mp-new ol li::before { | ||
content: ""; | content: ""; | ||
display: inline-block; | |||
width: 5px; | width: 5px; | ||
height: 5px; | height: 5px; | ||
margin: 7px 0 0 7px; | margin: 7px 0 0 7px; | ||
background: #00528c; | |||
} | } | ||
#badge { | #badge { | ||
font-weight: 700; | |||
color: goldenrod; | |||
} | |||
.clearfix::after { | |||
content: ""; | |||
display: block; | |||
clear: both; | |||
} | } | ||
/* ===== Responsive ===== */ | |||
@media (max-width: 875px) { | @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%; | |||
} | |||
} | } | ||
نسخهٔ کنونی تا ۲۸ مهٔ ۲۰۲۶، ساعت ۲۰:۵۲
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%;
}
}