MediaWiki:Mobile.css:修订间差异

来自Arcaea中文维基
无编辑摘要
(// Edit via Wikiplus)
 
(未显示同一用户的29个中间版本)
第1行: 第1行:
/* 这里放置的CSS将影响使用移动版网站的用户 */
/* 这里放置的CSS将影响使用移动版网站的用户 */
/* From wjghj.cn under CC BY-NC-SA 4.0 */
.siteNoticeScroll {
  width: 100%;
  height: 25px;
  line-height: 25px;
  overflow: hidden
}
.siteNoticeScroll li {
  height: 25px;
  list-style: none;
  text-align: center
}
/* 防止pre模块溢出使得文本不可读*/
pre {overflow-x: auto;}
code, pre {word-break: break-word;}
/* 移动端Ambox */
.ambox{
margin-bottom:2px;
}
.mbox-text{
font: inherit;
border-collapse: collapse;
cursor: pointer;
color: #54595d;
font-size: 100%;
position: relative;
padding: 8px 0 8px 0;
}
.mbox-text-span{
border-collapse: collapse;
cursor: pointer;
color: #54595d;
margin: 0;padding: 0;border: 0;
font: inherit;
vertical-align: baseline;
background: none;
font-size: 0.8125em;
display: block;
max-height: 3.3em;
height: 3.3em;
overflow: hidden;
}
.mbox-small-left{
background-color:#F8F9FA;
margin-top:0;
margin-bottom:0;
}
/* 隐藏:了解更多和移动端mbox图片 */
.mw-ui-icon-minerva-issue-generic-defaultColor,.ambox-learn-more,.mbox-image,.mw-ui-icon-minerva-issue-severity-medium-mediumColor{
display:none;
}
/* 带图表格 双端切换 */
@media all and ( min-width: 720px ) {
.toppic {
   display: none;
   }
}
@media all and ( max-width: 720px ) {
.sidepic {
   display: none;
   }
  
}


/* The CSS of Navbox used for https://zh.wikipedia.org/wiki/MediaWiki:Mobile.css : */
/* The CSS of Navbox used for https://zh.wikipedia.org/wiki/MediaWiki:Mobile.css : */
第36行: 第115行:
}
}


/* Style for horizontal lists (separator following item).
/* 曲目信息模板 */
  @source mediawiki.org/wiki/Snippets/Horizontal_lists
 
  @revision 4.2 (2013-11-20)
.arcaeabox {
  @author: [[User:Edokter]]
display: grid;
*/
grid-template-columns: 1fr 2fr 2fr 2fr auto;
.hlist dl,
text-align: center;
.hlist ol,
border: 1px solid #a2a9b1;
.hlist ul {
background-color: #f8f9fa;
   margin: 0;
color: black;
   padding: 0;
color: #202122;
word-wrap: break-word;
font: inherit;
border-collapse: collapse;
box-sizing: border-box;
margin: 1em 0;
overflow: auto;
overflow-y: hidden;
overflow-x: auto;
float: none !important;
margin-left: 0 !important;
margin-right: 0 !important;
position: relative;
border: 1px solid #eaecf0;
margin-bottom: 2em;
background-color: #f8f9fa;
width: 100%;
max-width: 100% !important;
border-spacing: 3px;
font-size: small;
line-height: 1.5em;
}
}
/* Display list items inline */
 
.hlist dd,
.arcaeabox > div {
.hlist dt,
word-wrap: break-word;
.hlist li {
border-bottom: 1px solid #eaecf0;
    margin: 0;
padding: 5px 5px;
   display: inline;
border-collapse: collapse;
overflow-wrap: normal;
box-sizing: border-box;
}
 
.arcaeabox > .header,
.arcaeabox > .label,
.arcaeabox > .pst-label,
.arcaeabox > .prs-label,
.arcaeabox > .ftr-label,
.arcaeabox > .byd-label,
.arcaeabox > #right-image,
.arcaeabox > #top-image{
display: flex;
   justify-content: center;
   align-items: center;
}
 
.arcaeabox > .byd-label{
display:unset;
}
 
 
.arcaeabox.byd {
grid-template-columns: 1fr 2fr 2fr 2fr 2fr auto;
}
 
/* 背景色定义 */
 
.conflict>.label,
.conflict>#title,
.conflict>.header,
.conflict>div>div>.label-text,
.conflict>div>div>div>.label-text {
background-color: #b99afd;
}
 
 
.light>.label,
.light>#title,
.light>.header,
.light>div>div>.label-text,
.light>div>div>div>.label-text {
background-color: lightskyblue;
 
}
 
.label-text {
   padding: 1px 5px 1px 5px;
    margin: 0 5px 0 5px;
}
 
.prs-data,
.pst-data,
.pst-label,
.prs-label,
.byd>.ftr-data,
.byd>.ftr-label,
.mobile-byd-date>#mobile-date-normal,
.byd>#ns-date-normal,
.bg-ftr>#bg-normal{
border-right: 1px solid #eaecf0;
}
 
 
 
.data {
grid-column: 2 / 5;
 
}
 
.byd>.data {
grid-column: 2 / 6;
}
 
.label {
grid-column: 1 / 2;
}
 
.header {
grid-column: 1 / 5;
font-size: medium;
height: 25px !important;
}
 
.byd>.header {
grid-column: 1 / 6;
}
 
#top-image {
margin: 4px 0px;
grid-column: 1 / 5;
}
 
.byd>#top-image {
grid-column: 1 / 6;
}
 
#top-image>div>img,
#right-image>div>img {
margin: 0 auto;
}
 
#title {
font-size: large;
grid-column: 1 / 6;
padding: 7px 10px;
max-width: 100%;
}
 
.byd>#title {
grid-column: 1 / 7;
}
 
.img-text {
font-weight: bold;
}
 
.img-tab-part {
align-items: center;
display: inline-flex;
font-size: 14px;
font-weight: 500;
height: 40px;
letter-spacing: .5px;
margin: 0 11px;
text-align: center;
text-decoration: none;
transition: color .1s;
white-space: nowrap;
margin-left: 3px;
margin-right: 3px;
cursor: default;
}
 
.img-tab-part.normal {
border-bottom: 1.5px solid #a040a0;
}
}
/* Display nested lists inline */
 
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.img-tab-part.byd {
.hlist ol dl, .hlist ol ol, .hlist ol ul,
border-bottom: 1.5px solid #a04040;
.hlist ul dl, .hlist ul ol, .hlist ul ul {
   display: inline;
}
}
/* Generate interpuncts */
 
.mw-parser-output .hlist dt:after {
.img-tab-part.pst {
   content: ": ";
border-bottom: 1.5px solid #40a0a0;
}
}
.mw-parser-output .hlist dd:after,
 
.mw-parser-output .hlist li:after {
.img-tab-part.prs {
   content: " · ";
border-bottom: 1.5px solid #40a040;
   font-weight: bold;
}
}
.mw-parser-output .hlist dd:last-child:after,
 
.mw-parser-output .hlist dt:last-child:after,
.img-tab-part.ftr {
.mw-parser-output .hlist li:last-child:after {
border-bottom: 1.5px solid #a040a0;
   content: none;
}
 
 
@media all and (min-width: 950px) {
.arcaeabox {
width: min-content;
min-width: 800px;
}
 
#top-image {
display: none !important;
}
 
#right-image {
grid-column: 5 / 6;
grid-row: 2 / 25;
border-left: 1px solid #eaecf0;
}
 
.byd>#right-image {
grid-column: 6 / 7;
}
 
#title {
grid-column: 1 / 6;
}
 
#image-info {
grid-column: 5 / 6 !important;
border-left: 1px solid #eaecf0;
}
}
}
/* Add parentheses around nested lists */
 
.mw-parser-output .hlist dd dd:first-child:before, .mw-parser-output .hlist dd dt:first-child:before, .mw-parser-output .hlist dd li:first-child:before,
@media all and (max-width: 950px) {
.mw-parser-output .hlist dt dd:first-child:before, .mw-parser-output .hlist dt dt:first-child:before, .mw-parser-output .hlist dt li:first-child:before,
 
.mw-parser-output .hlist li dd:first-child:before, .mw-parser-output .hlist li dt:first-child:before, .mw-parser-output .hlist li li:first-child:before {
#right-image,
   content: " (";
#image-info {
   font-weight: normal;
display: none !important;
}
 
}
}
.mw-parser-output .hlist dd dd:last-child:after, .mw-parser-output .hlist dd dt:last-child:after, .mw-parser-output .hlist dd li:last-child:after,
 
.mw-parser-output .hlist dt dd:last-child:after, .mw-parser-output .hlist dt dt:last-child:after, .mw-parser-output .hlist dt li:last-child:after,
 
.mw-parser-output .hlist li dd:last-child:after, .mw-parser-output .hlist li dt:last-child:after, .mw-parser-output .hlist li li:last-child:after {
.tab-text-a,
   content: ") ";
.tab-text-b,
   font-weight: normal;
.tab-text-c {
display: none;
}
}
/* Put ordinals in front of ordered list items */
 
.mw-parser-output .hlist ol {
.container .active {
   counter-reset: list-item;
display: block;
}
}
.mw-parser-output .hlist ol > li {
 
   counter-increment: list-item;
.play-diff {
float: right;
 
}
}
.mw-parser-output .hlist ol > li:before {
 
   content: " " counter(list-item) " ";
.date-box {
flex-wrap: wrap;
}
}
.mw-parser-output .hlist dd ol > li:first-child:before,
 
.mw-parser-output .hlist dt ol > li:first-child:before,
div:not(.byd)>.byd-data,
.mw-parser-output .hlist li ol > li:first-child:before {
div:not(.byd)>.byd-label{
   content: " (" counter(list-item) " ";
display: none;
}
}
 
/* Unbulleted lists e.g. Barack Obama page */
#update-data-label {
.plainlist ul {
grid-row-end: span 2;
   list-style: none;
}
}


/*
.mobile-byd-date > #mobile-date-normal,
Hatnotes and disambiguation notices
#ns-date-normal {
Please review the default hatnote styles provided by MobileFrontend before adding here.
grid-column: 2 / 5;
*/
.hatnote i {
font-style: normal;
}
}
.hatnote img {
 
   display: none;
#mobile-date-byd,
#ns-date-byd {
grid-column: 5 / 6;
}
}


/* Geographical coordinates defaults. See [[Template:Coord/link]]
div:not(.byd) > #ns-date-byd{
  for how these are used. The classes "geo", "longitude", and
display:none;
  "latitude" are used by the [[Geo microformat]]. */
}
.geo-default, .geo-dms, .geo-dec  { display: inline; }
.longitude, .latitude       { white-space: nowrap; }


/* Prevent line breaks in silly places:
div:not(.mobile-byd-date) > #mobile-date-byd{
  1) Where desired
display: none;
  2) Links when we don't want them to
  3) Bold "links" to the page itself
  4) Ref tags with group names <ref group="Note"> --> "[Note 1]"
Please document here what pages use this
*/
.nowrap,
.nowraplinks a,
.nowraplinks .selflink,
sup.reference a {
   white-space: nowrap;
}
}
/* But allow wrapping where desired: */
 
.wrap,
div:not(.ns-box) > .ns,
.wraplinks a {
#all-play-header{
   white-space: normal;
display: none;
}
}


.client-js .content_block.coordinates {
.ns-same > .ns,
   display: none;
.ns-same > #mobile-play-header{
   text-align: right;
display: none;
   margin-bottom: 0.5em;
   font-size: smaller;
}
}


.client-js .content_block.coordinates .latitude {
.ns-same > #ns-date-normal,
   display:none;
.ns-same.byd > #ns-date-byd{
   padding-left: 20px;
display: unset;
   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 */
.ns-same > #all-play-header{
.alpha #li-coordinates {
display: unset;
   display: list-item;
}
}


.client-js .beta .content_block.coordinates {
.pst-label{
   display: block;
color: #40a0a0;
}
}


.client-js .beta .content_block.coordinates .latitude {
.prs-label{
   display:inline;
color: #40a040;
}
}


/* hidden sortkey for tablesorter */
.ftr-label{
td .sortkey,
color: #a040a0;
th .sortkey {
   display: none;
   speak: none;
}
}


/* For the new main page design */
.byd-label{
#mainpage .floatleft,
color: #a04040;
#mainpage .floatright,
#mp-2012-body .floatleft,
#mp-2012-body .floatright {
text-align: center;
}
}


/* HACK to workaround VE and badly written CGroups */
.ns-date-span > #ns-date-byd{
.noteTA {
display:none;
   display: none;
}
}


.mw-newarticletext {
.ns-date-span > #ns-date-normal{
   padding: 0 2.5em;
grid-column: 2 / 6;
   border: solid 1px #a2a9b1;
}
}
.mw-newarticletext .title {
 
   margin: 1em 0;
.no-mobile > #mobile-date-normal,
   padding: 0;
.no-mobile > #mobile-date-byd{
   color: #d33;
display:none;
   font-size: 1.5em;
   border: none;
   text-align: center;
}
}
.mw-newarticletext li {
 
   margin: 0.4em 0;
#bg-ftr{
display: none;
}
}
.mw-newarticletext .buttons {
 
   margin: 1.5em 0;
.bg-ftr > #bg-ftr{
   text-align: center;
display: unset;
grid-column: 4 / 5;
}
}
.mw-newarticletext .buttons a {
 
   margin: 0.25em;
.bg-ftr > #bg-normal{
   display: inline-block;
grid-column: 2 / 4;
}
}
.mw-newarticletext .note {
 
   color: #72777d;
/* 曲目信息模板 arcaea V4.0 */
   font-size: 87.5%;
 
.colorless>.label,
.colorless>#title,
.colorless>.header,
.colorless>div>div>.label-text,
.colorless>div>div>div>.label-text {
background-color: #f4d2f8;
}
}

2022年8月9日 (二) 15:00的最新版本

/* 这里放置的CSS将影响使用移动版网站的用户 */

/* From wjghj.cn under CC BY-NC-SA 4.0 */

.siteNoticeScroll {
  width: 100%;
  height: 25px;
  line-height: 25px;
  overflow: hidden
}

.siteNoticeScroll li {
  height: 25px;
  list-style: none;
  text-align: center
}

/* 防止pre模块溢出使得文本不可读*/
pre {overflow-x: auto;}
code, pre {word-break: break-word;}

/* 移动端Ambox */

.ambox{
	margin-bottom:2px;
}

.mbox-text{
	font: inherit;
	border-collapse: collapse;
	cursor: pointer;
	color: #54595d;
	font-size: 100%;
	position: relative;
	padding: 8px 0 8px 0;
}

.mbox-text-span{
	border-collapse: collapse;
	cursor: pointer;
	color: #54595d;
	margin: 0;padding: 0;border: 0;
	font: inherit;
	vertical-align: baseline;
	background: none;
	font-size: 0.8125em;
	display: block;
	max-height: 3.3em;
	height: 3.3em;
	overflow: hidden;
}

.mbox-small-left{
	background-color:#F8F9FA;
	margin-top:0;
	margin-bottom:0;
}

/* 隐藏:了解更多和移动端mbox图片 */

.mw-ui-icon-minerva-issue-generic-defaultColor,.ambox-learn-more,.mbox-image,.mw-ui-icon-minerva-issue-severity-medium-mediumColor{
	display:none;
}


/* 带图表格 双端切换 */

@media all and ( min-width: 720px ) {
.toppic {
    display: none;
    }

}

@media all and ( max-width: 720px ) {
.sidepic {
    display: none;
    }
    
}

/* The CSS of Navbox used for https://zh.wikipedia.org/wiki/MediaWiki:Mobile.css : */

.navbar {
    display: inline;
    font-size: 88%;
    font-weight: normal;
}
.navbar ul {
    display: inline;
    white-space: nowrap;
}
.navbar li {
    word-spacing: -0.125em;
}
.navbar.mini li span {
  font-variant: small-caps;
}
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
    font-size: 100%;
}
.navbox .navbar {
    display: block;
    font-size: 100%;
}
.navbox-title .navbar {
    /* @noflip */
    float: left;
    /* @noflip */
    text-align: left;
    /* @noflip */
    margin-right: 0.5em;
    width: 6em;
}

/* 曲目信息模板 */

.arcaeabox {
	display: grid;
	grid-template-columns: 1fr 2fr 2fr 2fr auto;
	text-align: center;
	border: 1px solid #a2a9b1;
	background-color: #f8f9fa;
	color: black;
	color: #202122;
	word-wrap: break-word;
	font: inherit;
	border-collapse: collapse;
	box-sizing: border-box;
	margin: 1em 0;
	overflow: auto;
	overflow-y: hidden;
	overflow-x: auto;
	float: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	position: relative;
	border: 1px solid #eaecf0;
	margin-bottom: 2em;
	background-color: #f8f9fa;
	width: 100%;
	max-width: 100% !important;
	border-spacing: 3px;
	font-size: small;
	line-height: 1.5em;
}

.arcaeabox > div {
	word-wrap: break-word;
	border-bottom: 1px solid #eaecf0;
	padding: 5px 5px;
	border-collapse: collapse;
	overflow-wrap: normal;
	box-sizing: border-box;
}

.arcaeabox > .header,
.arcaeabox > .label,
.arcaeabox > .pst-label,
.arcaeabox > .prs-label,
.arcaeabox > .ftr-label,
.arcaeabox > .byd-label,
.arcaeabox > #right-image,
.arcaeabox > #top-image{
	display: flex;
    justify-content: center;
    align-items: center;
}

.arcaeabox > .byd-label{
	display:unset;
}


.arcaeabox.byd {
	grid-template-columns: 1fr 2fr 2fr 2fr 2fr auto;
}

/* 背景色定义 */

.conflict>.label,
.conflict>#title,
.conflict>.header,
.conflict>div>div>.label-text,
.conflict>div>div>div>.label-text {
	background-color: #b99afd;
}


.light>.label,
.light>#title,
.light>.header,
.light>div>div>.label-text,
.light>div>div>div>.label-text {
	background-color: lightskyblue;

}

.label-text {
    padding: 1px 5px 1px 5px;
    margin: 0 5px 0 5px;
}

.prs-data,
.pst-data,
.pst-label,
.prs-label,
.byd>.ftr-data,
.byd>.ftr-label,
.mobile-byd-date>#mobile-date-normal,
.byd>#ns-date-normal,
.bg-ftr>#bg-normal{
	border-right: 1px solid #eaecf0;
}



.data {
	grid-column: 2 / 5;

}

.byd>.data {
	grid-column: 2 / 6;
}

.label {
	grid-column: 1 / 2;
}

.header {
	grid-column: 1 / 5;
	font-size: medium;
	height: 25px !important;
}

.byd>.header {
	grid-column: 1 / 6;
}

#top-image {
	margin: 4px 0px;
	grid-column: 1 / 5;
}

.byd>#top-image {
	grid-column: 1 / 6;
}

#top-image>div>img,
#right-image>div>img {
	margin: 0 auto;
}

#title {
	font-size: large;
	grid-column: 1 / 6;
	padding: 7px 10px;
	max-width: 100%;
}

.byd>#title {
	grid-column: 1 / 7;
}

.img-text {
	font-weight: bold;
}

.img-tab-part {
	align-items: center;
	display: inline-flex;
	font-size: 14px;
	font-weight: 500;
	height: 40px;
	letter-spacing: .5px;
	margin: 0 11px;
	text-align: center;
	text-decoration: none;
	transition: color .1s;
	white-space: nowrap;
	margin-left: 3px;
	margin-right: 3px;
	cursor: default;
}

.img-tab-part.normal {
	border-bottom: 1.5px solid #a040a0;
}

.img-tab-part.byd {
	border-bottom: 1.5px solid #a04040;
}

.img-tab-part.pst {
	border-bottom: 1.5px solid #40a0a0;
}

.img-tab-part.prs {
	border-bottom: 1.5px solid #40a040;
}

.img-tab-part.ftr {
	border-bottom: 1.5px solid #a040a0;
}


@media all and (min-width: 950px) {
	.arcaeabox {
		width: min-content;
		min-width: 800px;
	}

	#top-image {
		display: none !important;
	}

	#right-image {
		grid-column: 5 / 6;
		grid-row: 2 / 25;
		border-left: 1px solid #eaecf0;
	}

	.byd>#right-image {
		grid-column: 6 / 7;
	}

	#title {
		grid-column: 1 / 6;
	}

	#image-info {
		grid-column: 5 / 6 !important;
		border-left: 1px solid #eaecf0;
	}
}

@media all and (max-width: 950px) {

	#right-image,
	#image-info {
		display: none !important;
	}

}


.tab-text-a,
.tab-text-b,
.tab-text-c {
	display: none;
}

.container .active {
	display: block;
}

.play-diff {
	float: right;

}

.date-box {
	flex-wrap: wrap;
}

div:not(.byd)>.byd-data,
div:not(.byd)>.byd-label{
	display: none;
}

#update-data-label {
	grid-row-end: span 2;
}

.mobile-byd-date > #mobile-date-normal,
#ns-date-normal {
	grid-column: 2 / 5;
}

#mobile-date-byd,
#ns-date-byd {
	grid-column: 5 / 6;
}

div:not(.byd) > #ns-date-byd{
	display:none;
}

div:not(.mobile-byd-date) > #mobile-date-byd{
	display: none;
}

div:not(.ns-box) > .ns,
#all-play-header{
	display: none;
}

.ns-same > .ns,
.ns-same > #mobile-play-header{
	display: none;
}

.ns-same > #ns-date-normal,
.ns-same.byd > #ns-date-byd{
	display: unset;
}

.ns-same > #all-play-header{
	display: unset;
}

.pst-label{
	color: #40a0a0;
}

.prs-label{
	color: #40a040;
}

.ftr-label{
	color: #a040a0;
}

.byd-label{
	color: #a04040;
}

.ns-date-span > #ns-date-byd{
	display:none;
}

.ns-date-span > #ns-date-normal{
	grid-column: 2 / 6;
}

.no-mobile > #mobile-date-normal,
.no-mobile > #mobile-date-byd{
	display:none;
}

#bg-ftr{
	display: none;
}

.bg-ftr > #bg-ftr{
	display: unset;
	grid-column: 4 / 5;
}

.bg-ftr > #bg-normal{
	grid-column: 2 / 4;
}

/* 曲目信息模板 arcaea V4.0 */

.colorless>.label,
.colorless>#title,
.colorless>.header,
.colorless>div>div>.label-text,
.colorless>div>div>div>.label-text {
	background-color: #f4d2f8;
}