User:Irukaza/common.css:修订间差异

H萌娘,万物皆可H的百科全书!
跳到导航 跳到搜索
imported>=海豚=
无编辑摘要
imported>=海豚=
无编辑摘要
(未显示同一用户的1个中间版本)
第1行: 第1行:
/* 模糊样式*/
/* Hide the images */
.fuzzy {filter:blur(3px); text-shadow: 0px 0px 5px white;transition: all 0.1s ease-in-out;}
.geo-nondefault, .geo-multi-punct,
.fuzzy:hover {filter:none;text-shadow:none;}
/* 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,
/* 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;
}
 
/* Tablet specific styling */
@media all and (min-width: 768px) {
#content .vertical-navbox,
#content .navbox {
display: inherit;
}
}


/* 热门评论*/
/* For linked citation numbers and document IDs, where
.comment-container-top>div:not(.comment-thread) {
  the number need not be shown on a screen or a handheld,
    background-color: rgba(68,135,223,0.8) !important;
  but should be included in the printed version
   color: white !important;
TODO: Move to Citation template when templates have stylesheets
    font-weight: bolder !important;
See https://www.mediawiki.org/wiki/Requests_for_comment/Allow_styling_in_templates
*/
@media screen, handheld {
    .citation *.printonly {
     display: none;
    }
}
}
.comment-thread.comment-popular {
/* Styling for citations (CSS3). Breaks long urls, etc., rather than overflowing box
    background-color: rgba(68,135,223,0.1) !important;
*/
.citation {
    word-wrap: break-word;
}
}


/* 评论边距 */
/* Default styling for Navbar template
.comment-container-top,
TODO: Move to Navbar template when templates have stylesheets
.comment-container {
See https://www.mediawiki.org/wiki/Requests_for_comment/Allow_styling_in_templates
margin-left: 2% !important;
*/
margin-right: 2% !important;
.navbar {
   display: inline;
   font-size: 88%;
   font-weight: normal;
}
.navbar ul {
   display: inline;
   white-space: nowrap;
}
}
 
.navbar li {
 
   word-spacing: -0.125em;
img, object {
  max-width: 100%;
  height: auto;
}
}
 
.navbar.mini li span {
/* 表格强制不换行,使用最小字体 */
   font-variant: small-caps;
.wikitable {
   white-space: nowrap;
}
}
 
/* Navbar styling when nested in infobox and navbox */
table.wraptable {
.infobox .navbar {
  white-space: normal;
   font-size: 100%;
}
}
/* 表格内图片设置最小宽度*/
.navbox .navbar {
.wikitable img {
   display: block;
  min-width: 24px;
   font-size: 100%;
}
}
 
.navbox-title .navbar {
/* Style for horizontal lists (separator following item) */
   /* @noflip */
.skin-monobook .hlist dl,
   float: left;
.skin-modern .hlist dl,
   /* @noflip */
.skin-vector .hlist dl {
   text-align: left;
  line-height: 1.5em;
   /* @noflip */
   margin-right: 0.5em;
   width: 6em;
}
}


/* Style for horizontal lists (separator following item).
  @source mediawiki.org/wiki/Snippets/Horizontal_lists
  @revision 4.2 (2013-11-20)
  @author: [[User:Edokter]]
*/
.hlist dl,
.hlist dl,
.hlist ol,
.hlist ol,
.hlist ul {
.hlist ul {
  margin: 0;
   margin: 0;
   padding: 0;
}
}
 
/* Display list items inline */
.hlist dd,
.hlist dd,
.hlist dt,
.hlist dt,
.hlist li {
.hlist li {
  display: inline;
   margin: 0;
  margin: 0;
   display: inline;
}
/* Display nested lists inline */
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
   display: inline;
}
/* Generate interpuncts */
.mw-parser-output .hlist dt:after {
   content: ": ";
}
.mw-parser-output .hlist dd:after,
.mw-parser-output .hlist li:after {
   content: " · ";
   font-weight: bold;
}
.mw-parser-output .hlist dd:last-child:after,
.mw-parser-output .hlist dt:last-child:after,
.mw-parser-output .hlist li:last-child:after {
   content: none;
}
/* 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,
.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 {
   content: " (";
   font-weight: normal;
}
.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 {
   content: ") ";
   font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.mw-parser-output .hlist ol {
   counter-reset: list-item;
}
.mw-parser-output .hlist ol > li {
   counter-increment: list-item;
}
.mw-parser-output .hlist ol > li:before {
   content: " " counter(list-item) " ";
}
}
/* 隐藏元素 */
.mw-parser-output .hlist dd ol > li:first-child:before,
.nomobile {
.mw-parser-output .hlist dt ol > li:first-child:before,
  display: none !important;
.mw-parser-output .hlist li ol > li:first-child:before {
   content: " (" counter(list-item) " ";
}
}
 
/* plainlist & plainlinks */
/* Unbulleted lists e.g. Barack Obama page */
.plainlist ul {
.plainlist ul {
  list-style: none;
   list-style: none;
  padding-left: 0;
}
}


.plainlinks a {
/*
  background: none !important;
Hatnotes and disambiguation notices
  padding: 0 !important;
Please review the default hatnote styles provided by MobileFrontend before adding here.
*/
.hatnote i {
font-style: normal;
}
}
/* *** */
.hatnote img {
body.page-首页 div#block-basenav tbody {
   display: none;
  vertical-align: top;
}
}


body.page- 首页_sandbox div#block-basenav tbody {
/* Geographical coordinates defaults. See [[Template:Coord/link]]
  vertical-align: top;
  for how these are used. The classes "geo", "longitude", and
  "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:
  1) Where desired
  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,
.wraplinks a {
   white-space: normal;
}
}


/* 使行宽占满表格 */
.client-js .content_block.coordinates {
th.fullline,
   display: none;
td.fullline {
   text-align: right;
width: 850px;
   margin-bottom: 0.5em;
   font-size: smaller;
}
}


/* 侧栏调整 */
.client-js .content_block.coordinates .latitude {
.navigation-enabled #mw-mf-viewport {
   display:none;
  overflow: hidden;
   padding-left: 20px;
  min-height: 100%;
   background-image: url(//upload.wikimedia.org/wikipedia/commons/thumb/5/57/Edge-firefox.png/50px-Edge-firefox.png);
  height: 100% !important;
   background-repeat: no-repeat;
   -webkit-background-size: auto 15px;
   background-size: auto 15px;
}
}
/* 首页背景调整 */
 
body.page-首页>#mw-mf-viewport>#mw-mf-page-center>#content,
/* Until Geohack is mobile optimised and/or there is a nice alternative e.g. map namespace */
body.page-首页_sandbox>#mw-mf-viewport>#mw-mf-page-center>#content {
.alpha #li-coordinates {
  background-color: #f8f8f8;
   display: list-item;
}
}


/* 隐藏首页和sandbox顶部内容 */
.client-js .beta .content_block.coordinates {
body.page- 首页 .pre-content,
   display: block;
body.page-首页_sandbox .pre-content {
display: none;
}
}


/* 隐藏首页和sandbox的编辑按钮 */
.client-js .beta .content_block.coordinates .latitude {
body.page- 首页 .edit-page,
   display:inline;
body.page-首页_sandbox .edit-page {
display: none;
}
}


/* 隐藏首页和sandbox目录 */
/* hidden sortkey for tablesorter */
body.page-首页 .toc-mobile,
td .sortkey,
body.page-首页_sandbox .toc-mobile {
th .sortkey {
display: none;
   display: none;
}
   speak: none;
/* 隐藏首页和sandbox讨论按钮 */
body.page-首页 #page-secondary-actions,
body.page-首页_sandbox #page-secondary-actions {
display: none;
}
}


/* 隐藏首页和sandbox最后编辑栏 */
/* For the new main page design */
body.page-首页 .last-modified-bar,
#mainpage .floatleft,
body.page-首页_sandbox .last-modified-bar {
#mainpage .floatright,
display: none;
#mp-2012-body .floatleft,
#mp-2012-body .floatright {
text-align: center;
}
}


/* 缩小显示表格 */
/* HACK to workaround VE and badly written CGroups */
table.scaletable {
.noteTA {
transform: scale(0.5);
   display: none;
transform-origin: top left;
width: 200% !important;
}
}

2020年3月20日 (五) 20:53的版本

/* 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-accountcreator.css]] and
   [[MediaWiki:Group-autoconfirmed.css]]. */
.sysop-show,
.accountcreator-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;
}

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

/* For linked citation numbers and document IDs, where
   the number need not be shown on a screen or a handheld,
   but should be included in the printed version
TODO: Move to Citation template when templates have stylesheets
See https://www.mediawiki.org/wiki/Requests_for_comment/Allow_styling_in_templates
*/
@media screen, handheld {
    .citation *.printonly {
        display: none;
    }
}
/* Styling for citations (CSS3). Breaks long urls, etc., rather than overflowing box
*/
.citation {
    word-wrap: break-word;
}

/* Default styling for Navbar template
TODO: Move to Navbar template when templates have stylesheets
See https://www.mediawiki.org/wiki/Requests_for_comment/Allow_styling_in_templates
*/
.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;
}

/* Style for horizontal lists (separator following item).
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @revision 4.2 (2013-11-20)
   @author: [[User:Edokter]]
*/
.hlist dl,
.hlist ol,
.hlist ul {
    margin: 0;
    padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
    margin: 0;
    display: inline;
}
/* Display nested lists inline */
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
    display: inline;
}
/* Generate interpuncts */
.mw-parser-output .hlist dt:after {
    content: ": ";
}
.mw-parser-output .hlist dd:after,
.mw-parser-output .hlist li:after {
    content: " · ";
    font-weight: bold;
}
.mw-parser-output .hlist dd:last-child:after,
.mw-parser-output .hlist dt:last-child:after,
.mw-parser-output .hlist li:last-child:after {
    content: none;
}
/* 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,
.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 {
    content: " (";
    font-weight: normal;
}
.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 {
    content: ") ";
    font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.mw-parser-output .hlist ol {
    counter-reset: list-item;
}
.mw-parser-output .hlist ol > li {
    counter-increment: list-item;
}
.mw-parser-output .hlist ol > li:before {
    content: " " counter(list-item) " ";
}
.mw-parser-output .hlist dd ol > li:first-child:before,
.mw-parser-output .hlist dt ol > li:first-child:before,
.mw-parser-output .hlist li ol > li:first-child:before {
    content: " (" counter(list-item) " ";
}
 
/* Unbulleted lists e.g. Barack Obama page */
.plainlist ul {
    list-style: none;
}

/*
Hatnotes and disambiguation notices
Please review the default hatnote styles provided by MobileFrontend before adding here.
*/
.hatnote i {
	font-style: normal;
}
.hatnote img {
    display: none;
}

/* Geographical coordinates defaults. See [[Template:Coord/link]]
   for how these are used. The classes "geo", "longitude", and
   "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:
   1) Where desired
   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,
.wraplinks a {
    white-space: normal;
}

.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-left: 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;
}

/* hidden sortkey for tablesorter */
td .sortkey,
th .sortkey {
    display: none;
    speak: none;
}

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

/* HACK to workaround VE and badly written CGroups */
.noteTA {
    display: none;
}