مدیاویکی:Mobile.css

از ویکی شیعه

نکته: پس از انتشار ممکن است برای دیدن تغییرات نیاز باشد که حافظهٔ نهانی مرورگر خود را پاک کنید.

  • فایرفاکس / سافاری: کلید Shift را نگه دارید و روی دکمهٔ Reload کلیک کنید، یا کلید‌های Ctrl-F5 یا Ctrl-R را با هم فشار دهید (در رایانه‌های اپل مکینتاش کلید‌های ⌘-R)
  • گوگل کروم: کلیدهای Ctrl+Shift+R را با هم فشار دهید (در رایانه‌های اپل مکینتاش کلید‌های ⌘-Shift-R)
  • اینترنت اکسپلورر/ Edge: کلید Ctrl را نگه‌دارید و روی دکمهٔ Refresh کلیک کنید، یا کلید‌های Ctrl-F5 را با هم فشار دهید
  • اپرا: Ctrl-F5 را بفشارید.
@import url("//commons.wikishia.net/w/index.php?title=MediaWiki:RTL-Font_Mobile.css&action=raw&ctype=text/css") screen;
@import url("//commons.wikishia.net/w/index.php?title=MediaWiki:RTL-Catrgory.css&action=raw&ctype=text/css") screen;
@import url("//commons.wikishia.net/w/index.php?title=MediaWiki:RTL-Infobox.css&action=raw&ctype=text/css") screen;
@import url("//commons.wikishia.net/w/index.php?title=MediaWiki:RTL-Navbox.css&action=raw&ctype=text/css") screen;
@import url("//commons.wikishia.net/w/index.php?title=MediaWiki:RTL-Hlist.css&action=raw&ctype=text/css") screen;
@import url("//commons.wikishia.net/w/index.php?title=MediaWiki:RTL-MainPage.css&action=raw&ctype=text/css") screen;
@import url("//commons.wikishia.net/w/index.php?title=MediaWiki:RTL-Portals.css&action=raw&ctype=text/css") screen;*/

.mw-references-columns {
    list-style: persian;
}

:target {
  background-color: #def;
}
/* اسکرول سایت */
.scroller::-webkit-scrollbar{
	width:4px;height:4px;
}
.scroller::-webkit-scrollbar-track{
	background:#f1f1f1;
}
.scroller::-webkit-scrollbar-thumb{
	background:#b6babe;
}
.scroller::-webkit-scrollbar-thumb:hover{
	background:#555;
}
.scroller{
	scrollbar-width:thin;
	scrollbar-color:#b6babe #bfc8bf1c;
}

#footer-poweredbyico, #footer-places-privacy, #footer-places-disclaimer{
    display: none;
}

.mw-content-container {
  font-size: larger;
}
p {
	line-height: 2;
}

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

/* Temporary fix for bug 53437 - nav boxes can disrupt reading experience on smaller screens
TODO: Update template to have nomobile class */
#content .vertical-navbox,
#content .navbox {
	display: none;
}

/* Tablet specific styling */
@media all and (min-width: 768px) {
	#content .vertical-navbox,
	#content .navbox {
		display: inherit;
	}
}

#mw-mf-last-modified { display: none; }

@media screen, handheld {
    .citation *.printonly {
        display: none;
    }
}

.citation {
    word-wrap: break-word;
}

/* Generate interpuncts */
#bodyContent .hlist dt:after {
    content: ":";
}
#bodyContent .hlist dd:after,
#bodyContent .hlist li:after {
    content: " ·";
    font-weight: bold;
}
#content .hlist dd:last-child:after,
#content .hlist dt:last-child:after,
#content .hlist li:last-child:after {
    content: none;
}
/* Add parentheses around nested lists */
#content .hlist dd dd:first-child:before, #content .hlist dd dt:first-child:before, #content .hlist dd li:first-child:before,
#content .hlist dt dd:first-child:before, #content .hlist dt dt:first-child:before, #content .hlist dt li:first-child:before,
#content .hlist li dd:first-child:before, #content .hlist li dt:first-child:before, #content .hlist li li:first-child:before {
    content: "(";
    font-weight: normal;
}
#content .hlist dd dd:last-child:after, #content .hlist dd dt:last-child:after, #content .hlist dd li:last-child:after,
#content .hlist dt dd:last-child:after, #content .hlist dt dt:last-child:after, #content .hlist dt li:last-child:after,
#content .hlist li dd:last-child:after, #content .hlist li dt:last-child:after, #content .hlist li li:last-child:after {
    content: ")";
    font-weight: normal;
}
/* Put ordinals in front of ordered list items */
#content .hlist ol {
    counter-reset: list-item;
}
#content .hlist ol > li {
    counter-increment: list-item;
}
#content .hlist ol > li:before {
    content: counter(list-item) " ";
}
#content .hlist dd ol > li:first-child:before,
#content .hlist dt ol > li:first-child:before,
#content .hlist li ol > li:first-child:before {
    content: "(" counter(list-item) " ";
}
 
/* Unbulleted lists e.g. Barack Obama page */
.plainlist ul {
    list-style: none;
}

/* CODE FOR COMPACT AMBOX */
/* Hide the images */
.compact-ambox table .mbox-image,
.compact-ambox table .mbox-imageright,
.compact-ambox table .mbox-empty-cell {
    display: none;
}
/* Remove borders, backgrounds, padding, etc.
Please document here what pages use this
*/
.compact-ambox table.ambox {
    border: none;
    border-collapse: collapse;
    background: transparent;
    margin: 0 1.6em 0 !important;
    padding: 0 !important;
    width: auto;
    display: block;
}
.compact-ambox table.mbox-small-left {
    font-size: 100%;
    width: auto;
    margin: 0;
}
/* Style the text cell as a list item and remove its padding */
.compact-ambox table .mbox-text {
    padding: 0 !important;
    margin: 0 !important;
}
.compact-ambox table .mbox-text-span {
    display: list-item;
    line-height: 1.5em;
    list-style-type: square;
    list-style-image: url("data:image/gif;base64,R0lGODlhBQANAIAAAGOMnP///yH5BAEAAAEALAAAAAAFAA0AAAIJjI+pu+APo4SpADs=");
}
/* Allow for hiding text in compact form */
.compact-ambox .hide-when-compact {
    display: none;
}

.rellink,
.dablink {
    font-style: italic;
    margin-bottom: 0.5em;
}
.rellink i,
.dablink i {
    font-style: normal;
}

.geo-default, .geo-dms, .geo-dec  { display: inline; }
.geo-nondefault, .geo-multi-punct { display: none; }
.longitude, .latitude             { white-space: nowrap; }

.nowrap,
.nowraplinks a,
.nowraplinks .selflink,
sup.reference a {
    white-space: nowrap;
}
/* But allow wrapping where desired: */
.wrap,
.wraplinks a {
    white-space: normal;
}

/* Hide stuff meant for accounts with special permissions. Made visible again in
   [[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-accountcreator.css]] and
   [[MediaWiki:Group-autoconfirmed.css]]. */
.sysop-show,
.accountcreator-show,
.autoconfirmed-show {
    display: none;
}

#li-coordinates {
    background-image: url(//upload.wikimedia.org/wikipedia/commons/thumb/5/57/Edge-firefox.png/80px-Edge-firefox.png);
    float: right;
    display: none;
    -webkit-background-size: auto 30px;
    background-size: auto 30px;
}

.client-js .content_block.coordinates {
    display: none;
    text-align: right;
    margin-bottom: 0.5em;
    font-size: smaller;
}

.client-js .content_block.coordinates .latitude {
    display:none;
    padding-right: 20px;
    background-image: url(//upload.wikimedia.org/wikipedia/commons/thumb/5/57/Edge-firefox.png/50px-Edge-firefox.png);
    background-repeat: no-repeat;
    -webkit-background-size: auto 15px;
    background-size: auto 15px;
}

/* Until Geohack is mobile optimised and/or there is a nice alternative e.g. map namespace */
.alpha #li-coordinates {
    display: list-item;
}

.client-js .beta .content_block.coordinates {
    display: block;
}

.client-js .beta .content_block.coordinates .latitude {
    display:inline;
}

.topicon {
    display: none;
}

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

/* Making .tmbox visible on mobile devices */
.content .tmbox {
  display: block !important;
}
/*اصلاح لینک نامجود در موبایل که قرمز نیست*/
.drawer.references-drawer a.new {
    color: #dd3333;
}

@media ( max-width: 450px ) {
	body.skin-minerva .template-calendar {
		width: 100%!important;
	}
}