“mw:Common.css”的版本间的差异
来自中药图谱资源库
小 |
|||
(未显示同一用户的48个中间版本) | |||
第1行: | 第1行: | ||
− | /* | + | /* disable copying/pasting and downloading */ |
+ | * { | ||
+ | -webkit-touch-callout:none; | ||
+ | -webkit-user-select:none; | ||
+ | -moz-user-select:none; | ||
+ | -ms-user-select:none; | ||
+ | user-select:none; | ||
+ | /*overflow-anchor: none;*/ | ||
+ | } | ||
+ | /* but enable searching and editing */ | ||
+ | input, textarea { | ||
+ | -webkit-touch-callout: default; | ||
+ | -moz-user-select: text; | ||
+ | -webkit-user-select: text; | ||
+ | -ms-user-select: text; | ||
+ | user-select: text; | ||
+ | } | ||
+ | /* chinese paragrams */ | ||
p { text-indent: 2em; } | p { text-indent: 2em; } | ||
+ | .gallerytext > p { text-indent: 0em!important;} | ||
+ | /* smaller heads */ | ||
.mw-body h1, .mw-body #firstHeading { | .mw-body h1, .mw-body #firstHeading { | ||
font-size: 2em; | font-size: 2em; | ||
} | } | ||
+ | /* more category columns on norrow screens */ | ||
+ | .ns-14 .mw-category { | ||
+ | column-width: 10em!important; | ||
+ | } | ||
+ | |||
+ | .ns-14 #mw-pages>h2 {display:none!important;} | ||
h2{font-size:1.2em;} | h2{font-size:1.2em;} | ||
第11行: | 第36行: | ||
.mw-redirectedfrom {display:none;} | .mw-redirectedfrom {display:none;} | ||
+ | body .p-navbar { | ||
+ | background-color: transparent; | ||
+ | } | ||
+ | |||
+ | /* universal paper-like backgroud, traditional chinese style of footer and header */ | ||
+ | body { background-color: #f9f6e7; background: url(/images/8/8e/Bar_header.png) repeat-x, url(/images/4/4e/Bar_footer.jpg) repeat-x bottom, url(/images/thumb/6/6c/Bg_main.jpg/800px-Bg_main.jpg) repeat fixed; background-size: 20px, 30px, cover; } | ||
+ | |||
+ | /* main page css */ | ||
body.page-首页.action-view h1.firstHeading, body.page-首页.action-submit h1.firstHeading { display: none; } | body.page-首页.action-view h1.firstHeading, body.page-首页.action-submit h1.firstHeading { display: none; } | ||
body.page-首页 p { text-indent: 0} | body.page-首页 p { text-indent: 0} | ||
− | body.page-首页 { background: url( | + | |
− | + | body.page-首页 .flex-fill {background: url(images/5/5c/Bg_lt.png) no-repeat left top, url(images/b/b4/Bg_rt.png) no-repeat right top, url(images/6/6e/Bg_rb.png) no-repeat right bottom, url(images/a/a6/Bg_lb.png) no-repeat left bottom; | |
− | background-size: | + | background-size: 50% auto, 30% auto, 40% auto, 50% auto;} |
− | body.page-首页 . | + | |
− | + | body.page-首页 .flex-fill .mw-ui-button { background-color: #caa783; border-radius: 6px; border: 1px solid #532d16;} | |
+ | body.page-首页 .searchboxInput:focus { | ||
+ | border-color: #532e16; | ||
+ | box-shadow: 0 0 0 3px rgb(194 79 25 / 0.24) | ||
} | } | ||
+ | |||
body.page-首页 #p-search {visibility: hidden;} | body.page-首页 #p-search {visibility: hidden;} | ||
img.site-name { max-width: calc(100% - 8px); height: auto;} | img.site-name { max-width: calc(100% - 8px); height: auto;} | ||
第28行: | 第65行: | ||
#ca-history { display:none!important; } | #ca-history { display:none!important; } | ||
− | |||
.ns-4 h5, .ns-4 h1, .ns-4 h2 { color: #4b0d09; } | .ns-4 h5, .ns-4 h1, .ns-4 h2 { color: #4b0d09; } | ||
.ns-4 .toctitle h2 { font-size:1.2em; margin-top:5px;} | .ns-4 .toctitle h2 { font-size:1.2em; margin-top:5px;} | ||
− | /* | + | |
+ | /* toc css */ | ||
#toc { background-color:#8c6c49; } | #toc { background-color:#8c6c49; } | ||
#toc > .toctitle > .toctoggle { display:none; } | #toc > .toctitle > .toctoggle { display:none; } | ||
第47行: | 第84行: | ||
body.mw-special-Search .search-types ul li:last-child { display:none; } | body.mw-special-Search .search-types ul li:last-child { display:none; } | ||
− | + | /* image info pages */ | |
+ | .ns-6 #file a {pointer-events: none; cursor: default;} | ||
+ | .ns-6 #content img {max-width: 100% !important; height:auto !important;} | ||
+ | .ns-6 #mw-imagepage-section-filehistory, .ns-6 #filetoc, .ns-6 .mw-filepage-resolutioninfo, .ns-6 .fullMedia, .ns-6 #filehistory, .ns-6 #mw-imagepage-upload-disallowed {display:none;} | ||
+ | |||
+ | /*body.mw-special-Userlogin .mw-userlogin-help { display:none !important; }not working*/ |
2021年12月29日 (三) 17:13的最新版本
/* disable copying/pasting and downloading */ * { -webkit-touch-callout:none; -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none; /*overflow-anchor: none;*/ } /* but enable searching and editing */ input, textarea { -webkit-touch-callout: default; -moz-user-select: text; -webkit-user-select: text; -ms-user-select: text; user-select: text; } /* chinese paragrams */ p { text-indent: 2em; } .gallerytext > p { text-indent: 0em!important;} /* smaller heads */ .mw-body h1, .mw-body #firstHeading { font-size: 2em; } /* more category columns on norrow screens */ .ns-14 .mw-category { column-width: 10em!important; } .ns-14 #mw-pages>h2 {display:none!important;} h2{font-size:1.2em;} h3{font-size:1.1em;} #content.mw-body {padding:0;} .mw-redirectedfrom {display:none;} body .p-navbar { background-color: transparent; } /* universal paper-like backgroud, traditional chinese style of footer and header */ body { background-color: #f9f6e7; background: url(/images/8/8e/Bar_header.png) repeat-x, url(/images/4/4e/Bar_footer.jpg) repeat-x bottom, url(/images/thumb/6/6c/Bg_main.jpg/800px-Bg_main.jpg) repeat fixed; background-size: 20px, 30px, cover; } /* main page css */ body.page-首页.action-view h1.firstHeading, body.page-首页.action-submit h1.firstHeading { display: none; } body.page-首页 p { text-indent: 0} body.page-首页 .flex-fill {background: url(images/5/5c/Bg_lt.png) no-repeat left top, url(images/b/b4/Bg_rt.png) no-repeat right top, url(images/6/6e/Bg_rb.png) no-repeat right bottom, url(images/a/a6/Bg_lb.png) no-repeat left bottom; background-size: 50% auto, 30% auto, 40% auto, 50% auto;} body.page-首页 .flex-fill .mw-ui-button { background-color: #caa783; border-radius: 6px; border: 1px solid #532d16;} body.page-首页 .searchboxInput:focus { border-color: #532e16; box-shadow: 0 0 0 3px rgb(194 79 25 / 0.24) } body.page-首页 #p-search {visibility: hidden;} img.site-name { max-width: calc(100% - 8px); height: auto;} .catlinks { display: none; } #ca-talk { display:none!important; } #ca-viewsource { display:none!important; } #ca-history { display:none!important; } .ns-4 h5, .ns-4 h1, .ns-4 h2 { color: #4b0d09; } .ns-4 .toctitle h2 { font-size:1.2em; margin-top:5px;} /* toc css */ #toc { background-color:#8c6c49; } #toc > .toctitle > .toctoggle { display:none; } #toc a { color: white; text-decoration: none; } #toc a:hover { color:yellow; } #toc .tocnumber { display: none; } #mw-normal-catlinks { display: none; } #mw-indicator-mw-helplink {display:none!important; } .mw-userlogin-help {display:none!important; } body.mw-special-Search .search-types ul li:last-child { display:none; } /* image info pages */ .ns-6 #file a {pointer-events: none; cursor: default;} .ns-6 #content img {max-width: 100% !important; height:auto !important;} .ns-6 #mw-imagepage-section-filehistory, .ns-6 #filetoc, .ns-6 .mw-filepage-resolutioninfo, .ns-6 .fullMedia, .ns-6 #filehistory, .ns-6 #mw-imagepage-upload-disallowed {display:none;} /*body.mw-special-Userlogin .mw-userlogin-help { display:none !important; }not working*/