MediaWiki:Common.css: Difference between revisions
Appearance
Created page with "→CSS placed here will be applied to all skins: .mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4, .mw-body #firstHeading, .mw-body .mw-editsection, .mw-body .mw-editsection-like, .mw-body #toc h2, .mw-body .toc h2, #documentation-meta-data, .vector-sticky-header-context-bar-primary { font-family: tahoma; } @media screen { .nochecker .gallerybox .thumb img { background-image: none; } } →اصلاح صفحات مرتبط در نسخه ۱.۴۳: .cdx-card {..." |
Nazarzadeh (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
/* | * { | ||
box-sizing: border-box; | |||
} | |||
/* 1.40 vectore */ | |||
.vector-menu-tabs .mw-list-item.vector-tab-noicon a { | |||
border-bottom: none; | |||
margin-top: 20px; | |||
} | |||
.vector-page-titlebar::after { | |||
height: 0; | |||
} | |||
.vector-page-toolbar-container { | |||
box-shadow: none; | |||
} | |||
/* For portals, added 2011-12-07 -bv | |||
On wide screens, show these as two columns | |||
On narrow and mobile screens, let them collapse into a single column */ | |||
.mainpage-portals { | |||
float: right; | |||
width: 12.5%; | |||
margin: 12px auto; | |||
} | |||
.portal-container-2 { | |||
display: grid; | |||
grid-gap: 15px; | |||
grid-template-columns: repeat(2, auto); | |||
grid-template-rows: auto; | |||
width: 100% | |||
} | |||
.portal-container-3 { | |||
display: grid; | |||
grid-gap: 15px; | |||
grid-template-columns: repeat(3, auto); | |||
grid-template-rows: auto; | |||
width: 100% | |||
} | |||
.portal-container-4 { | |||
display: grid; | |||
grid-gap: 15px; | |||
grid-template-columns: repeat(4, auto); | |||
grid-template-rows: auto; | |||
width: 100% | |||
} | |||
.portal-container-5 { | |||
display: grid; | |||
grid-gap: 15px; | |||
grid-template-columns: repeat(5, auto); | |||
grid-template-rows: auto; | |||
width: 100% | |||
} | |||
.portal-container-6 { | |||
display: grid; | |||
grid-gap: 15px; | |||
grid-template-columns: repeat(6, auto); | |||
grid-template-rows: auto; | |||
width: 100% | |||
} | |||
.portal-container-7 { | |||
display: grid; | |||
grid-gap: 15px; | |||
grid-template-columns: repeat(7, auto); | |||
grid-template-rows: auto; | |||
width: 100% | |||
} | |||
.portal-column-2-3 { | |||
grid-column-end: span 2; | |||
} | |||
.portal-column-3-4 { | |||
grid-column-end: span 3; | |||
} | |||
.portal-column-1-2, | |||
.portal-column-1-3, | |||
.portal-column-1-4, | |||
.portal-column-1-5, | |||
.portal-column-1-6, | |||
.portal-column-1-7 { | |||
grid-column-end: span 1; | |||
} | |||
.portal-column-2-2 { | |||
grid-column-end: span 2; | |||
} | |||
.portal-column-3-3 { | |||
grid-column-end: span 3; | |||
} | |||
.portal-column-4-4 { | |||
grid-column-end: span 4; | |||
} | |||
.portal-column-5-5 { | |||
grid-column-end: span 5; | |||
} | |||
.portal-column-6-6 { | |||
grid-column-end: span 6; | |||
} | |||
.portal-column-7-7 { | |||
grid-column-end: span 7; | |||
} | |||
@media only screen and (max-width: 700px) { | |||
.mainpage-portals { | |||
width: 25%; | |||
} | |||
/* Decouple the columns on narrow screens */ | |||
.portal-container-2, | |||
.portal-container-3, | |||
.portal-container-4, | |||
.portal-container-5, | |||
.portal-container-6, | |||
.portal-container-7 { | |||
display: block; | |||
} | |||
.portal-column-1-2, | |||
.portal-column-3-4, | |||
.portal-column-1-3, | |||
.portal-column-2-3, | |||
.portal-column-2-2, | |||
.portal-column-3-3, | |||
.portal-column-4-4, | |||
.portal-column-5-5, | |||
.portal-column-6-6, | |||
.portal-column-7-7 { | |||
flo at: inherit; | |||
wid th: 100%; | |||
margin-top: 16px; | |||
display: block !important; | |||
text-align: center; | |||
} | |||
.portal-column-1-4 { | |||
wid th: calc(50% - 16px); | |||
} | |||
.portal-column-1-6 { | |||
wid th: calc(33.3% - 16px); | |||
} | |||
.portal-column-1-7 { | |||
flo at: right; | |||
wid th: calc(25% - 16px); | |||
} | |||
} | |||
@media only screen and (max-width: 600px) { | |||
.portal-column-1-4, | |||
.portal-column-1-6, | |||
.portal-column-1-5 { | |||
float: inherit; | |||
width: 100%; | |||
margin: 0; | |||
display: block !important; | |||
text-align: center; | |||
} | |||
} | |||
.mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4, .mw-body #firstHeading, | .mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4, .mw-body #firstHeading, | ||
.mw-body .mw-editsection, .mw-body .mw-editsection-like, | .mw-body .mw-editsection, .mw-body .mw-editsection-like, |
Revision as of 10:07, 11 May 2025
* {
box-sizing: border-box;
}
/* 1.40 vectore */
.vector-menu-tabs .mw-list-item.vector-tab-noicon a {
border-bottom: none;
margin-top: 20px;
}
.vector-page-titlebar::after {
height: 0;
}
.vector-page-toolbar-container {
box-shadow: none;
}
/* For portals, added 2011-12-07 -bv
On wide screens, show these as two columns
On narrow and mobile screens, let them collapse into a single column */
.mainpage-portals {
float: right;
width: 12.5%;
margin: 12px auto;
}
.portal-container-2 {
display: grid;
grid-gap: 15px;
grid-template-columns: repeat(2, auto);
grid-template-rows: auto;
width: 100%
}
.portal-container-3 {
display: grid;
grid-gap: 15px;
grid-template-columns: repeat(3, auto);
grid-template-rows: auto;
width: 100%
}
.portal-container-4 {
display: grid;
grid-gap: 15px;
grid-template-columns: repeat(4, auto);
grid-template-rows: auto;
width: 100%
}
.portal-container-5 {
display: grid;
grid-gap: 15px;
grid-template-columns: repeat(5, auto);
grid-template-rows: auto;
width: 100%
}
.portal-container-6 {
display: grid;
grid-gap: 15px;
grid-template-columns: repeat(6, auto);
grid-template-rows: auto;
width: 100%
}
.portal-container-7 {
display: grid;
grid-gap: 15px;
grid-template-columns: repeat(7, auto);
grid-template-rows: auto;
width: 100%
}
.portal-column-2-3 {
grid-column-end: span 2;
}
.portal-column-3-4 {
grid-column-end: span 3;
}
.portal-column-1-2,
.portal-column-1-3,
.portal-column-1-4,
.portal-column-1-5,
.portal-column-1-6,
.portal-column-1-7 {
grid-column-end: span 1;
}
.portal-column-2-2 {
grid-column-end: span 2;
}
.portal-column-3-3 {
grid-column-end: span 3;
}
.portal-column-4-4 {
grid-column-end: span 4;
}
.portal-column-5-5 {
grid-column-end: span 5;
}
.portal-column-6-6 {
grid-column-end: span 6;
}
.portal-column-7-7 {
grid-column-end: span 7;
}
@media only screen and (max-width: 700px) {
.mainpage-portals {
width: 25%;
}
/* Decouple the columns on narrow screens */
.portal-container-2,
.portal-container-3,
.portal-container-4,
.portal-container-5,
.portal-container-6,
.portal-container-7 {
display: block;
}
.portal-column-1-2,
.portal-column-3-4,
.portal-column-1-3,
.portal-column-2-3,
.portal-column-2-2,
.portal-column-3-3,
.portal-column-4-4,
.portal-column-5-5,
.portal-column-6-6,
.portal-column-7-7 {
flo at: inherit;
wid th: 100%;
margin-top: 16px;
display: block !important;
text-align: center;
}
.portal-column-1-4 {
wid th: calc(50% - 16px);
}
.portal-column-1-6 {
wid th: calc(33.3% - 16px);
}
.portal-column-1-7 {
flo at: right;
wid th: calc(25% - 16px);
}
}
@media only screen and (max-width: 600px) {
.portal-column-1-4,
.portal-column-1-6,
.portal-column-1-5 {
float: inherit;
width: 100%;
margin: 0;
display: block !important;
text-align: center;
}
}
.mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4, .mw-body #firstHeading,
.mw-body .mw-editsection, .mw-body .mw-editsection-like,
.mw-body #toc h2, .mw-body .toc h2,
#documentation-meta-data, .vector-sticky-header-context-bar-primary {
font-family: tahoma;
}
@media screen {
.nochecker .gallerybox .thumb img {
background-image: none;
}
}
/*اصلاح صفحات مرتبط در نسخه ۱.۴۳*/
.cdx-card {
border: 1px solid #ccc!important;
border-radius: 8px!important;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1)!important;
transition: transform 0.3s!important;
overflow: hidden!important;
/*margin-bottom: 20px!important;*/
background-color: #fff!important;
display: flex!important;
align-items: center!important;
height: 100px!important;
padding: 0px!important;
}
.cdx-card:hover {
transform: translateY(-5px)!important;
}
.cdx-card__thumbnail {
flex: 0 0 80px!important; /* عرض ثابت برای تصویر */
height: 80px!important; /* ارتفاع ثابت برای تصویر */
background-size: cover!important;
background-position: center!important;
margin-left: 15px!important; /* فاصله از متن */
margin-right: 15px!important; /* فاصله از متن */
}
.cdx-thumbnail__image {
width: 100%!important;
height: 100%!important;
}
.cdx-card__text {
flex: 1!important;
padding: 0 0!important;
display: flex!important;
flex-direction: column!important;
justify-content: center!important;
}
.cdx-card__text__title {
font-size: 15px !important;
font-weight: bold !important;
color: #333 !important;
font-family: 'IRANBold'!important;
}
.cdx-card__text__description {
font-size: 0.77rem!important;
color: #666!important;
line-height: 1.4!important;
}
.cdx-card__thumbnail.cdx-thumbnail .cdx-thumbnail__placeholder {
width: 100%!important;
height: 100%!important;
}