User:Muausees/sandbox:MainPage/styles.css
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:按 Ctrl-F5。
/* ====== 2.0 ======= */
.gallery.mw-gallery-slideshow.nochecker.bordered-images.whitebg{
margin:0px!important;
}
.btn {
color: #0099CC;
background: transparent;
border: 2px solid #0099CC;
border-radius: 6px;
border: none;
color: white;
padding: 3px 8px;
margin:10px 0px;
text-align: center;
display: inline-block;
margin: 4px 2px;
transition-duration: 0.4s;
cursor: pointer;
text-decoration: none;
}
.btn1 {
background-color: white;
color: black;
border: 2px solid #008CBA;
}
/* 悬停样式 */
.btn1:hover {
background-color: #008CBA;
color: white;
}
#mp-topbanner {
position: relative;
box-sizing: border-box;
border-color: #ddd;
/* background-color: #f9f9f9 ;*/
}
#mp-topbanner,
.mp-h2,
#mp-left {
color: #000;
}
.mp-bordered,
.mp-h2,
body.skin-timeless .mp-h2 {
border-width: 1px;
border-style: solid;
}
#mp-welcomecount {
margin-top: 0.8em;
width: 20em;
text-align: center;
}
#mp-welcome {
font-size: 162%;
padding: 0.1em;
}
#mp-free {
font-size: 95%;
}
#articlecount {
font-size: 85%;
}
#mp-portals {
position: absolute;
right: 1.6em;
top: 0;
bottom: 0;
height: min-content;
margin-top:auto;
margin-bottom:auto;
font-size: 95%;
}
.mp-editsection-fake{
margin-left: 1em;
user-select: none;
white-space: nowrap;
font-family: sans-serif;
font-size: small;
font-weight: normal;
vertical-align: baseline;
line-height: 1em;
}
@media all and ( max-width: 720px ) {
#mp-topbanner {
word-wrap: break-word;
margin: 0;
padding: 0;
border: 0;
font: inherit;
font-size: 100%;
vertical-align: baseline;
background: none;
border-width: 1px;
border-style: solid;
position: relative;
box-sizing: border-box;
border-color: #ddd;
background-color: #f9f9f9;
color: #000;
min-width: 0;
margin-bottom:1em;
}
#mp-topbanner > p, #mp-topbanner > div {
margin-left: 0.4em;
margin-right: 0.4em;
}
#mp-portals {
word-wrap: break-word;
color: #000;
border: 0;
font: inherit;
vertical-align: baseline;
background: none;
list-style: none;
list-style-type: disc;
right: -1em;
top: 50%;
font-size: 95%;
position: static;
width: auto;
min-width: 0;
text-align: center;
border-top: 1px solid #ddd;
padding: 0.4em 0;
margin: 0 0.4em;
}
#mp-portals li {
position: static;
display: inline;
padding: 0 5px;
white-space: nowrap;
}
#mp-about-title {
margin: 0.4em;
text-align: center;
border-bottom: 1px solid #ddd;
}
#mp-welcomecount {
width: auto;
}
}
/* ====== 以下内容为新版主页内容 ======= */
@media all and ( max-width: 1440px ) {
.newspic img{
width:100%;
height:auto;
object-fit:cover;
margin: 1em 0;
}
}
@media all and ( min-width: 1440px ) {
.newspic img{
width:100%;
height:100%;
object-fit:cover;
margin: 1em 0;
}
}
.random-box{
padding: 1em;
width: auto;
text-align:center;
margin: 0 auto
}
.random-pic{
margin:0 5px 0 5px;
}
/* The following content is adapted from Wikipedia */
/* 总 */
#mp h1{
font-weight: bold;
border: none;
}
/* 移动端相关链接 */
#mp-links table {
font-size: .95em;
margin: 0 auto;
}
#mp-links td {
width: 33.3%;
vertical-align: top;
}
#mp-links h3 {
font-size: .98em;
font-weight: bold;
color: #6B6B6B;
padding-bottom: .2em;
border-bottom: 1px solid #EEE;
margin-bottom: .8em;
}
@media all and ( min-width: 720px ) {
/* 总 */
#mp,
#mp-body {
clear: both;
}
#mp h2 {
font-weight: bold;
border: none;
}
#mp h2 {
font-size: 1.16em;
margin-bottom: .8em;
letter-spacing: .1em;
}
#mp-body {
clear: both;
}
/* 左 */
#mp-left {
float: left;
width: 64.9%;
}
#mp-left > div {
margin-right: 1.6em;
}
#mp-body h2,
#mp-left h2,
#mp-left h2 a {
color: #259;
}
.mp-bordered {
margin: 0 0 1.6em;
padding: .8em 1.6em 1.6em;
line-height: 1.5em;
}
#mp-topbanner {
border: 1px solid #E8E8E8;
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);
background: #FFF;
}
#mp-portals {
column-count: 3;
column-gap: 0;
}
.mp-left-block {
margin: 0 0 1.6em;
padding: .8em 1.6em 1.6em;
line-height: 1.5em;
}
/* 左方框 */
#mp-left-box-a {
border: 1px solid #E8E8E8;
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);
background: #FFF;
}
#mp-left-box-b {
border: 1px solid #CADEED;
box-shadow: 0px 1px 3px #DDE6ED;
background: #FFF;
background: linear-gradient(#fff 65%,#EFF6FA 100%);
clear: both;
}
#mp-left-box-c {
border: 1px solid transparent;
margin-bottom: .4em;
clear: both;
}
/* 右 */
#mp-right {
float: right;
width: 35%;
}
#mp-right h2,
#mp-right h2 a {
color: #5c5c5c;
}
#mp-right .mp-2012-text {
font-size: .98em;
}
.mp-right-block {
margin: 0 0 1.6em;
padding: .8em 1.6em 1.6em;
}
#mp-right-block-a {
border: 1px solid #E8E8E8;
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);
background: #FFF;
}
#mp-right-block-b {
border: 1px solid #CADEED;
box-shadow: 0px 1px 3px #DDE6ED;
background: #FFF;
background: linear-gradient(#fff 65%,#EFF6FA 100%);
clear: both;
}
#mp-right-block-c {
border: 1px solid transparent;
margin-bottom: .4em;
clear: both;
}
/* 相关链接 */
#mp-links {
margin-bottom: .8em;
overflow: hidden;
clear: left;
}
/* 电脑端快速链接 */
.linktitle {
display:none;
}
/* Deprecated link style, but the original content should be deleted indeed if it's been unavailabled for too long time. */
.deprecated-link{
color: #9EA0A1 !important;
text-decoration: line-through !important;
}
#mp-links table {
padding: .8em 1.6em;
font-size: .95em;
width: 96%;
border: 1px solid #EEE;
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
background: #f8f9fa;
margin: 0 auto;
}
#mp-links td {
width: 33.3%;
vertical-align: top;
}
#mp-links h3 {
font-size: .98em;
font-weight: bold;
color: #6B6B6B;
padding-bottom: .2em;
border-bottom: 1px solid #EEE;
margin-bottom: .8em;
}
/* 标题右侧编辑按钮 */
.edittext{
direction: ltr;
user-select: none;
font-size: small;
font-weight: normal;
line-height: 1em;
font-family: sans-serif;
white-space: nowrap;
text-decoration: none;
color: #0645ad;
background: none;
}
}
/* ====== 以上内容为新版主页内容 ======= */
.mainpage_row {
display: flex;
flex-direction: row;
flex-flow: row wrap;
justify-content: space-between;
padding: 0;
margin: 0 -5px 0 -5px;
}
.mainpage_box {
flex: 1;
margin: 5px;
min-width: 250px;
border: 1px solid #CCC;
padding: 0 10px 10px 10px;
box-shadow: 0 2px 2px
rgba(0,0,0,0.1);
}
.mainpage_box h3 {
/* Reset padding so is equal across skins */
padding: 0;
margin: 0.5em 0;
}
.mainpage_box h3 .header_icon {
float: left;
margin-right: 5px;
}
.mainpage_box .items {
border-top: 1px solid #CCC;
padding-top: 0.5em;
}
.mainpage_box p:last-child {
margin-bottom: 0;
}
.mainpage_boxcontents_small {
font-size: 95%;
}
/* Style the "other languages" box the same way as other boxes on the main page */
.mw-pt-languages {
display: block;
background: none;
border: 1px solid #CCC;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
width: auto;
}
.mw-pt-languages-label {
background: none;
border-right: none;
}
@media screen and (max-width: 719px) {
.thumb {
float: none;
}
.thumb, .thumbinner {
margin-left: auto;
margin-right: auto;
}
}