مدیاویکی:Mobile.css: تفاوت میان نسخهها
جز
بدون خلاصۀ ویرایش
جز (اصلاح رنگ ستون سمت راست صفحه اصلی) |
جزبدون خلاصۀ ویرایش |
||
| خط ۲۴: | خط ۲۴: | ||
url('/w/resources/fonts/KFGQPCUthmanTahaNaskh.ttf') format('truetype'), | url('/w/resources/fonts/KFGQPCUthmanTahaNaskh.ttf') format('truetype'), | ||
url('/w/resources/fonts/KFGQPCUthmanTahaNaskh.svg#KFGQPCUthmanTahaNaskh') format('svg'); | url('/w/resources/fonts/KFGQPCUthmanTahaNaskh.svg#KFGQPCUthmanTahaNaskh') format('svg'); | ||
font-weight: normal; | font-weight: normal; | ||
font-style: normal; | font-style: normal; | ||
| خط ۱۰۹: | خط ۹۹: | ||
/* --------------------- Begin Main Page Style ----------------- */ | /* --------------------- Begin Main Page Style ----------------- */ | ||
.mainPage { | |||
display: flex; | |||
flex-direction: row; | |||
} | } | ||
.mainRight { | .mainRight { | ||
display: flex; | |||
flex-direction: column; | |||
flex: 75%; | |||
margin: 6px 4px; | |||
} | } | ||
.mainLeft { | .mainLeft { | ||
box-shadow: 0 0 0.3rem #999; | |||
border-radius: 0.2rem; | |||
padding: 1.2rem; | |||
flex: 25%; | |||
margin: 6px 4px; | |||
} | } | ||
.selectedArticle { | .selectedArticle { | ||
box-shadow: 0 0 0.3rem #999; | |||
height: | border-radius: 0.2rem; | ||
padding: 1.2rem; | |||
margin-bottom: | margin: 4px 0px; | ||
} | |||
.helpBox{ | |||
line-height: 2em; | |||
box-shadow: 0 0 0.3rem #999; | |||
border-radius: 0.2rem; | |||
padding: 1.2rem; | |||
margin-bottom: 1.6rem; | |||
} | } | ||
| خط ۱۳۵: | خط ۱۳۷: | ||
padding: 10px; | padding: 10px; | ||
border-radius: 2px; | border-radius: 2px; | ||
margin: 0 0 20px 0; | |||
box-shadow: 0 0 0.3rem #999; | |||
} | } | ||
.boxHeader span { | .boxHeader span { | ||
padding-right: 45px; | padding-right: 45px; | ||
font: 1.03em samim; | |||
position: relative; | position: relative; | ||
} | } | ||
.boxTitle { | .boxTitle { | ||
padding: 5px; | padding: 5px; | ||
border-radius: 2px; | border-radius: 2px; | ||
margin: 15px 0 20px 0; | margin: 15px 0 20px 0; | ||
border-bottom: solid 0.2rem #bdd8fb; | |||
} | } | ||
.selectedArticle .boxHeader span:before, | .selectedArticle .boxHeader span:before,.boxHeader span:before, | ||
.topArticles .boxHeader span:before, | .topArticles .boxHeader span:before, .boxHeader span:before { | ||
width: 43px; | width: 43px; | ||
height: 43px; | height: 43px; | ||
| خط ۱۷۰: | خط ۱۶۶: | ||
.selectedArticle .boxHeader span:before { | .selectedArticle .boxHeader span:before { | ||
background: url('/w/resources/assets/favorite.png') no-repeat center center; | background: url('/w/resources/assets/favorite.png') no-repeat center center; | ||
} | } | ||
| خط ۱۸۰: | خط ۱۷۲: | ||
} | } | ||
.topArticles { | |||
width: 100%; | width: 100%; | ||
height: auto; | height: auto; | ||
| خط ۱۹۰: | خط ۱۷۸: | ||
} | } | ||
. | .readmoreButton { | ||
box-shadow: 0 0 0.3rem #999; | |||
display: inline-block; | |||
min-width: 4em; | |||
max-width: 28.75em; | |||
. | padding: 0.546875em 1em; | ||
line-height: 1.286; | |||
box-sizing: border-box; | |||
vertical-align: middle; | |||
text-align: center; | |||
font-weight: bold; | |||
cursor: pointer; | |||
border-radius: 0.2rem; | |||
margin: 5px 0 0 0; | |||
font-family: inherit; | |||
font-size: 1em; | |||
} | } | ||
/* --------------------- End Main Page Style ----------------- */ | /* --------------------- End Main Page Style ----------------- */ | ||
/* --------------------- Begin Main Page Style ----------------- */ | |||
/* to prevent double welcome! */ | /* to prevent double welcome! */ | ||
.page-Main_Page #section_0 { display: none } | .page-Main_Page #section_0 { display: none } | ||
/* | /** | ||
.mobile-float-reset { | You are editing the global css file for all mobile site users. | ||
With Great Power Comes Great Responsibility. | |||
Some words of caution: | |||
* Avoid any changes which impact layout on a mobile device. | |||
** Please be careful not to introduce any margin / padding rules. These should be done inside the template itself via an inline style. | |||
** Be especially cautious when a template is likely to be used within the top 480px of the screen (the content that the user will see first on a mobile device). | |||
* Do not use display:none. Instead edit the template and markup the element you want to hide with the `nomobile` class. | |||
* Try to keep rules as generic and minimal as possible. Do not have 2 selectors doing the same thing. Introduce a common class and use that instead. | |||
* For big changes consult the [https://grafana.wikimedia.org/dashboard/db/mobile-2g grafana dashboard] to ensure you don't introduce any performance regressions. | |||
* Group common css rules together where possible. | |||
If you are looking for .mobile-float-reset (see [[:phab:T56176]]), use TemplateStyles instead. | |||
.mobile-float-reset { | |||
float: none !important; | |||
width: 100% !important; | |||
} | |||
*/ | |||
/* Hide the images */ | |||
.geo-nondefault, .geo-multi-punct, | |||
/* Hide stuff meant for accounts with special permissions. Made visible again in | |||
[[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-patroller.css]] and | |||
[[MediaWiki:Group-autoconfirmed.css]]. */ | |||
.checkuser-show, | |||
.sysop-show, | |||
.templateeditor-show, | |||
.extendedmover-show, | |||
.patroller-show, | |||
.extendedconfirmed-show, | |||
.autoconfirmed-show, | |||
/* Copied from Common.css - allow for hiding text in compact form e.g. clean up templates */ | |||
.hide-when-compact, | |||
/* portal pages are badly formatted. Until this changes these should be hidden. (see https://phabricator.wikimedia.org/T86495) */ | |||
.noprint.portal { | |||
display: none; | |||
} | |||
/* | |||
.infobox | |||
DO NOT style infobox's here. That should be taken care of in the associated templates via template styles. Styles here will lead to flash of unstyled content on mobile. | |||
*/ | |||
/* removed inline from module as we work toward Tstyles support | |||
* Use three classes to match specificity of MobileFrontend/Minerva selectors */ | |||
.content .mw-parser-output .infobox-header, | |||
.content .mw-parser-output .infobox-subheader, | |||
.content .mw-parser-output .infobox-above, | |||
.content .mw-parser-output .infobox-title, | |||
.content .mw-parser-output .infobox-image, | |||
.content .mw-parser-output .infobox-full-data, | |||
.content .mw-parser-output .infobox-below { | |||
text-align: center; | |||
} | } | ||
| خط ۳۲۳: | خط ۳۵۹: | ||
} | } | ||
/* Generate interpuncts */ | /* Generate interpuncts */ | ||
# | #bodyContent .hlist dt:after { | ||
content: ":"; | content: ":"; | ||
} | } | ||
# | #bodyContent .hlist dd:after, | ||
# | #bodyContent .hlist li:after { | ||
content: " ·"; | content: " ·"; | ||
font-weight: bold; | font-weight: bold; | ||
| خط ۴۹۹: | خط ۵۳۵: | ||
} | } | ||
/* | /* To changing arabic numeral format in all oredred lists to persian numeral format on Mobile View */ | ||
#content ol { | |||
list-style-type:-moz-persian !important; /* To override some codes that avoids this one to be used on Mozilla Firefox */ | |||
list-style-type:persian; | |||
/* | |||
/ | |||
} | } | ||
. | .mw-ui-icon:before { top: 0; } | ||
} | |||
/* | /* عدم نمایش زیرعنوان واکشی شده از ویکیداده که در صفحههای قفل شده سوژهٔ خرابکاری و | ||
. | باعث پیدا شدن شیوهای برای انجام خرابکاری شده است تا یافتن راهحل بهتر */ | ||
/* | .ns-0 .page-heading div { display: none; } | ||
/* --------------------- End Font Style ----------------- */ | |||