MediaWiki:Common.css:修订间差异

HW
HW留言 | 贡献
HW
HW留言 | 贡献
 
(未显示同一用户的6个中间版本)
第103行: 第103行:
}
}


.scp-image-block.block-right,
.scp-image-block.block-,
.image-container.floatright {
.image-container.floatright {
     float: right;
     float: right;
第109行: 第109行:
}
}


.scp-image-block.block-left,
.scp-image-block.block-,
.image-container.floatleft {
.image-container.floatleft {
     float: left;
     float: left;
第115行: 第115行:
}
}


.scp-image-block.block-center {
.scp-image-block.block-居中 {
     margin: 1rem auto;
     margin: 1rem auto;
}
}
第121行: 第121行:


@media only screen and (max-width: 540px) {
@media only screen and (max-width: 540px) {
     .scp-image-block.block-right, .scp-image-block.block-left {
     .scp-image-block.block-, .scp-image-block.block-{
         float: none;
         float: none;
         margin: 0.1rem auto;
         margin: 0.1rem auto;
第269行: 第269行:
     border-bottom: 1px solid var(--background-color-neutral, #eaecf0);
     border-bottom: 1px solid var(--background-color-neutral, #eaecf0);
}
}
 
/*
.mw-references-wrap .references {
.mw-references-wrap .references {
     margin-top: 0;
     margin-top: 0;
     padding-left: 0;
     padding-left: 0;
}
}
*/


/*分页优化*/
/*分页优化*/


.tabber__tab, .tabber__tab:visited {
.tabber__tab, .tabber__tab:visited {
    transition: all ease 0.3s;
transition: all ease 0.3s;
     color: var(--color-base, #202122);
     color: var(--color-base, #202122);
     background: transparent;
     background: transparent;
第286行: 第286行:
     border: none;
     border: none;
     cursor: pointer;
     cursor: pointer;
    z-index: 1;
}
}


.tabber__tab[aria-selected='true'],  
.tabber__tab[aria-selected='true'], .tabber__tab[aria-selected='true']:visited {
.tabber__tab[aria-selected='true']:visited {
color: var(--background-color-neutral-subtle, #f8f9fa);
    color: var(--background-color-neutral-subtle, #f8f9fa);
     background: var(--color-progressive, #36c);
     background: var(--color-progressive, #36c);
}
.tabber__tab[aria-selected='true']::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--background-color-neutral-subtle, #f8f9fa);
    transition: width 0.3s ease;
}
}


第307行: 第297行:
     content: '';
     content: '';
     position: absolute;
     position: absolute;
     bottom: 0;
     top: 0;
     left: 0;
     left: 0;
     width: 0;
     width: 0;
     height: 2px;
     height: 100%;
     background: var(--box-shadow-color-progressive-selected--hover, #447ff5);
     background: var(--box-shadow-color-progressive-selected--hover, #447ff5);
     transition: width 0.3s ease;
     transition: width 0.3s ease;
    z-index: -1;
}
}


.tabber__tab:hover {
.tabber__tab:hover {
     color: var(--color-progressive--hover, #447ff5);
     color: var(--background-color-neutral-subtle, #f8f9fa) !important;
}
}
.tabber__tab:hover::after {
.tabber__tab:hover::after {
     width: 100%; /* hover 时下划线从左到右展开 */
     width: 100%;
}
 
.tabber__tab[aria-selected='true']::after {
    width: 100%;
    background: var(--color-progressive, #36c);
}
}


第325行: 第322行:
     color: var(--background-color-neutral-subtle, #f8f9fa);
     color: var(--background-color-neutral-subtle, #f8f9fa);
}
}
.tabber__tab[aria-selected='true']:hover::after {
    background: var(--background-color-neutral-subtle, #f8f9fa);
}


/*维基语法里用的CSS*/
/*维基语法里用的CSS*/