Site Notice
hello, world
Difference between revisions of "MediaWiki:Css-ssi-modal-ooui-skin.css"
From Project-EPB Commons
m ([InPageEdit] 没有编辑摘要) |
m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
* ssi-modal OOUI skin | * ssi-modal OOUI skin | ||
**/ | **/ | ||
− | /* 标准窗口*/ | + | /* 标准窗口 */ |
.ssi-modal { | .ssi-modal { | ||
color: #252525; | color: #252525; | ||
+ | font-size: 16px; | ||
} | } | ||
+ | |||
.ssi-modal .ssi-modalWindow { | .ssi-modal .ssi-modalWindow { | ||
padding: 0; | padding: 0; | ||
border-radius: 0; | border-radius: 0; | ||
} | } | ||
+ | |||
+ | .ssi-backdrop, | ||
+ | .ssi-modalOuter { | ||
+ | z-index: 800; | ||
+ | } | ||
+ | |||
.ssi-modal .ssi-overflow { | .ssi-modal .ssi-overflow { | ||
− | background-image: radial-gradient(farthest-side at 50% 0, | + | background-image: radial-gradient( |
− | rgba(26,26,26,0.12),transparent),radial-gradient(farthest-side at 50% 100%,rgba(26,26,26,0.12), transparent); | + | farthest-side at 50% 0, |
− | background-position: 0 0,0 100%; | + | rgba(26, 26, 26, 0.12), |
+ | transparent | ||
+ | ), | ||
+ | radial-gradient( | ||
+ | farthest-side at 50% 100%, | ||
+ | rgba(26, 26, 26, 0.12), | ||
+ | transparent | ||
+ | ); | ||
+ | background-position: 0 0, 0 100%; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-size: 100% 9px; | background-size: 100% 9px; | ||
Line 24: | Line 40: | ||
padding-bottom: 0; | padding-bottom: 0; | ||
} | } | ||
+ | |||
.ssi-modal .ssi-overflow:before, | .ssi-modal .ssi-overflow:before, | ||
.ssi-modal .ssi-overflow:after { | .ssi-modal .ssi-overflow:after { | ||
− | content: | + | content: ""; |
display: block; | display: block; | ||
background-color: #fff; | background-color: #fff; | ||
Line 34: | Line 51: | ||
margin: 0 0 -30px; | margin: 0 0 -30px; | ||
} | } | ||
+ | |||
.ssi-modal .ssi-overflow:after { | .ssi-modal .ssi-overflow:after { | ||
margin: 0 0 -29px; | margin: 0 0 -29px; | ||
} | } | ||
+ | |||
+ | .ssi-center .ssi-modalContent { | ||
+ | max-height: 70vh; | ||
+ | overflow-y: auto; | ||
+ | } | ||
+ | |||
.ssi-modal .ssi-topIcons { | .ssi-modal .ssi-topIcons { | ||
− | |||
text-align: center; | text-align: center; | ||
} | } | ||
+ | |||
.ssi-modal .ssi-topIcons .ssi-closeIcon { | .ssi-modal .ssi-topIcons .ssi-closeIcon { | ||
− | background: | + | background: 0 0; |
color: #d33; | color: #d33; | ||
− | + | font-size: 20px; | |
− | + | margin: 0; | |
− | + | padding: 8px 12px; | |
− | |||
} | } | ||
+ | |||
.ssi-modal .ssi-topIcons .ssi-closeIcon:hover { | .ssi-modal .ssi-topIcons .ssi-closeIcon:hover { | ||
− | |||
color: #f22; | color: #f22; | ||
− | |||
− | |||
− | |||
− | |||
} | } | ||
+ | |||
.ssi-modal .ssi-closeIcon:before { | .ssi-modal .ssi-closeIcon:before { | ||
− | content: | + | content: "✕"; |
− | |||
display: unset !important; | display: unset !important; | ||
} | } | ||
+ | |||
.ssi-modal:not(.notify) .ssi-modalTitle { | .ssi-modal:not(.notify) .ssi-modalTitle { | ||
font-style: normal; | font-style: normal; | ||
Line 72: | Line 92: | ||
text-align: center; | text-align: center; | ||
} | } | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
.notify .ssi-modalTitle { | .notify .ssi-modalTitle { | ||
font-style: normal; | font-style: normal; | ||
font-family: inherit; | font-family: inherit; | ||
} | } | ||
− | .ssi-modal .ssi-modalTitle | + | |
+ | .ssi-modal .ssi-modalTitle .showEditNotice { | ||
font-size: small; | font-size: small; | ||
display: block; | display: block; | ||
line-height: 0; | line-height: 0; | ||
} | } | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
.ssi-modal h4 { | .ssi-modal h4 { | ||
margin: 2px 0 0 0; | margin: 2px 0 0 0; | ||
} | } | ||
+ | |||
.ssi-modal .btn { | .ssi-modal .btn { | ||
font-size: 16px; | font-size: 16px; | ||
Line 117: | Line 115: | ||
border-radius: 2px; | border-radius: 2px; | ||
padding: 0.25em 0.8em; | padding: 0.25em 0.8em; | ||
− | transition: all .1s; | + | transition: all 0.1s; |
} | } | ||
+ | |||
.ssi-modal .btn:focus { | .ssi-modal .btn:focus { | ||
box-shadow: inset 0 0 0 1px #36c; | box-shadow: inset 0 0 0 1px #36c; | ||
} | } | ||
+ | |||
.ssi-modal .btn.btn-primary { | .ssi-modal .btn.btn-primary { | ||
color: #fff; | color: #fff; | ||
Line 127: | Line 127: | ||
border-color: #36c; | border-color: #36c; | ||
} | } | ||
+ | |||
.ssi-modal .btn.btn-primary:hover { | .ssi-modal .btn.btn-primary:hover { | ||
background-color: #447ff5; | background-color: #447ff5; | ||
border-color: #447ff5; | border-color: #447ff5; | ||
} | } | ||
+ | |||
.ssi-modal .btn.btn-primary:active { | .ssi-modal .btn.btn-primary:active { | ||
background-color: #2a4b8d; | background-color: #2a4b8d; | ||
} | } | ||
+ | |||
.ssi-modal .btn.btn-secondary { | .ssi-modal .btn.btn-secondary { | ||
color: #252525; | color: #252525; | ||
Line 139: | Line 142: | ||
background-color: #f8f9fa; | background-color: #f8f9fa; | ||
} | } | ||
+ | |||
.ssi-modal .btn.btn-secondary:hover { | .ssi-modal .btn.btn-secondary:hover { | ||
background-color: #ffffff; | background-color: #ffffff; | ||
color: #454545; | color: #454545; | ||
} | } | ||
+ | |||
.ssi-modal .btn.btn-secondary:active { | .ssi-modal .btn.btn-secondary:active { | ||
border: 1px solid #36c; | border: 1px solid #36c; | ||
} | } | ||
+ | |||
.ssi-modal .btn.btn-danger { | .ssi-modal .btn.btn-danger { | ||
background: transparent; | background: transparent; | ||
Line 151: | Line 157: | ||
background-color: #f4f4f4; | background-color: #f4f4f4; | ||
} | } | ||
+ | |||
.ssi-modal .btn.btn-danger:hover { | .ssi-modal .btn.btn-danger:hover { | ||
color: #ff4242; | color: #ff4242; | ||
background-color: #fafafa; | background-color: #fafafa; | ||
} | } | ||
+ | |||
.ssi-modal .btn.btn-danger:active { | .ssi-modal .btn.btn-danger:active { | ||
color: #d00; | color: #d00; | ||
border: 1px solid #36c; | border: 1px solid #36c; | ||
} | } | ||
+ | |||
.ssi-modal .btn:disabled { | .ssi-modal .btn:disabled { | ||
background-color: #c8ccd1 !important; | background-color: #c8ccd1 !important; | ||
Line 164: | Line 173: | ||
cursor: not-allowed; | cursor: not-allowed; | ||
} | } | ||
+ | |||
.ssi-modal .btn:disabled:hover { | .ssi-modal .btn:disabled:hover { | ||
background-color: #c8ccd1 !important; | background-color: #c8ccd1 !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
} | } | ||
+ | |||
.ssi-modal .btn:disabled .ssi-countDown { | .ssi-modal .btn:disabled .ssi-countDown { | ||
color: #fff; | color: #fff; | ||
} | } | ||
+ | |||
.ssi-modal input { | .ssi-modal input { | ||
padding: 0.25em 0.35em; | padding: 0.25em 0.35em; | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
border-radius: 2px; | border-radius: 2px; | ||
− | transition: all .2s; | + | transition: all 0.2s; |
+ | line-height: 1.5em; | ||
} | } | ||
+ | |||
.ssi-modal input:focus { | .ssi-modal input:focus { | ||
border-color: #36c; | border-color: #36c; | ||
box-shadow: inset 0 0 0 1px #36c; | box-shadow: inset 0 0 0 1px #36c; | ||
} | } | ||
− | .ssi-modal .dialog .ssi-modalContent | + | |
+ | .ssi-modal .dialog .ssi-modalContent { | ||
padding-top: 18px; | padding-top: 18px; | ||
font-size: large; | font-size: large; | ||
} | } | ||
+ | |||
.ssi-modal .dialog .ssi-buttons .btn { | .ssi-modal .dialog .ssi-buttons .btn { | ||
margin: 0; | margin: 0; | ||
Line 194: | Line 210: | ||
width: 50%; | width: 50%; | ||
} | } | ||
+ | |||
.ssi-modal .dialog .ssi-buttons .btn:hover { | .ssi-modal .dialog .ssi-buttons .btn:hover { | ||
background: #f8f8f8 !important; | background: #f8f8f8 !important; | ||
} | } | ||
+ | |||
.ssi-modal .btn.btn-single { | .ssi-modal .btn.btn-single { | ||
width: 100% !important; | width: 100% !important; | ||
} | } | ||
+ | |||
.ssi-modal .dialog .ssi-buttons .btn.btn-danger { | .ssi-modal .dialog .ssi-buttons .btn.btn-danger { | ||
color: #c33; | color: #c33; | ||
} | } | ||
+ | |||
+ | .ssi-modal .btn.btn-primary.btn-danger { | ||
+ | background: #d33; | ||
+ | border-color: #d33; | ||
+ | color: #ffffff; | ||
+ | } | ||
+ | |||
+ | .ssi-modal .btn.btn-primary.btn-danger:hover { | ||
+ | background: #f33; | ||
+ | } | ||
+ | |||
+ | .ssi-modal .btn.btn-primary.btn-danger:focus { | ||
+ | background: #c22; | ||
+ | border-color: #c22; | ||
+ | box-shadow: inset 0 0 0 1px #fff; | ||
+ | } | ||
+ | |||
.ssi-modal .dialog .ssi-buttons { | .ssi-modal .dialog .ssi-buttons { | ||
padding: 0; | padding: 0; | ||
} | } | ||
+ | |||
.ssi-modal .dialog .ssi-buttons .ssi-rightButtons { | .ssi-modal .dialog .ssi-buttons .ssi-rightButtons { | ||
width: 100%; | width: 100%; | ||
} | } | ||
+ | |||
.ssi-modal-article-link-group:before { | .ssi-modal-article-link-group:before { | ||
− | content: | + | content: "["; |
} | } | ||
+ | |||
.ssi-modal-article-link-group:after { | .ssi-modal-article-link-group:after { | ||
− | content: | + | content: "]"; |
} | } | ||
+ | |||
.mw-editsection .ssi-modal-article-link-group:before { | .mw-editsection .ssi-modal-article-link-group:before { | ||
− | content: | + | content: " | "; |
} | } | ||
+ | |||
.mw-editsection .ssi-modal-article-link-group:after { | .mw-editsection .ssi-modal-article-link-group:after { | ||
− | content: | + | content: ""; |
} | } | ||
+ | |||
.mw-diff-undo .ssi-modal-article-link-group { | .mw-diff-undo .ssi-modal-article-link-group { | ||
display: none; | display: none; | ||
} | } | ||
+ | |||
.ssi-modal .detailArea { | .ssi-modal .detailArea { | ||
/* padding: 8px 0 0 4px; */ | /* padding: 8px 0 0 4px; */ | ||
} | } | ||
+ | |||
.ssi-modal .detailArea .detailBtnGroup { | .ssi-modal .detailArea .detailBtnGroup { | ||
margin-left: 1.25em; | margin-left: 1.25em; | ||
Line 245: | Line 289: | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
+ | |||
.ssi-progress .ssi-progress-bar { | .ssi-progress .ssi-progress-bar { | ||
height: 100%; | height: 100%; | ||
Line 252: | Line 297: | ||
opacity: 1; | opacity: 1; | ||
} | } | ||
+ | |||
.ssi-progress.done { | .ssi-progress.done { | ||
background: #3360c3; | background: #3360c3; | ||
transition: all 0.8s; | transition: all 0.8s; | ||
} | } | ||
+ | |||
.ssi-progress.done .ssi-progress-bar { | .ssi-progress.done .ssi-progress-bar { | ||
animation: none; | animation: none; | ||
Line 263: | Line 310: | ||
transition: all 0.8s; | transition: all 0.8s; | ||
} | } | ||
+ | |||
@keyframes progress { | @keyframes progress { | ||
from { | from { | ||
Line 268: | Line 316: | ||
margin-right: 110%; | margin-right: 110%; | ||
} | } | ||
+ | |||
to { | to { | ||
margin-left: 110%; | margin-left: 110%; | ||
Line 273: | Line 322: | ||
} | } | ||
} | } | ||
+ | |||
/* 通知框 */ | /* 通知框 */ | ||
.ssi-modal.notify { | .ssi-modal.notify { | ||
Line 278: | Line 328: | ||
font-family: unset; | font-family: unset; | ||
} | } | ||
+ | |||
.ssi-modal.notify .ssi-modalTitle { | .ssi-modal.notify .ssi-modalTitle { | ||
background: none; | background: none; | ||
color: unset; | color: unset; | ||
} | } | ||
+ | |||
/** 背景颜色 **/ | /** 背景颜色 **/ | ||
.ssi-backdrop { | .ssi-backdrop { | ||
− | background: rgba(255,255,255,0.5); | + | background: rgba(255, 255, 255, 0.5); |
} | } | ||
+ | |||
/** 修改checkbox样式 **/ | /** 修改checkbox样式 **/ | ||
− | .ssi-modal input[type=checkbox] + | + | .ssi-modal label input[type="checkbox"] + span { |
user-select: none; | user-select: none; | ||
line-height: 1.2em; | line-height: 1.2em; | ||
} | } | ||
− | .ssi-modal input[type=checkbox] + | + | |
− | content: "\a0"; | + | .ssi-modal label input[type="checkbox"] + span::before { |
+ | /* 不换行空格可以保持选择框的高度 */ | ||
+ | content: "\a0"; | ||
display: inline-block; | display: inline-block; | ||
width: 1.2em; | width: 1.2em; | ||
height: 1.2em; | height: 1.2em; | ||
− | margin-right: | + | margin-top: 0.15em; |
+ | margin-right: 0.375em; | ||
border-radius: 2px; | border-radius: 2px; | ||
background-color: #f8f8f8; | background-color: #f8f8f8; | ||
Line 303: | Line 359: | ||
transition: all 0.12s; | transition: all 0.12s; | ||
} | } | ||
− | .ssi-modal input[type="checkbox"]:checked + | + | |
+ | .ssi-modal label input[type="checkbox"]:checked + span::before { | ||
content: "\a0"; | content: "\a0"; | ||
background-color: #36c; | background-color: #36c; | ||
− | background-image: url(https:// | + | background-image: url(https://cdn.jsdelivr.net/gh/dragon-fish/inpageedit-v2@master/src/images/Checkmark.svg); |
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
} | } | ||
− | .ssi-modal input[type= | + | |
+ | .ssi-modal label input[type="checkbox"]:checked + span:hover:before { | ||
background-color: #447ff5; | background-color: #447ff5; | ||
} | } | ||
− | .ssi-modal input[type="checkbox"]:active + | + | |
− | .ssi-modal input[type="checkbox"]:focus + | + | .ssi-modal label input[type="checkbox"]:active + span::before, |
+ | .ssi-modal label input[type="checkbox"]:focus + span::before { | ||
box-shadow: inset 0 0px 0px 1px rgb(255, 255, 255); | box-shadow: inset 0 0px 0px 1px rgb(255, 255, 255); | ||
border-color: #3366cc; | border-color: #3366cc; | ||
} | } | ||
− | .ssi-modal input[type= | + | |
+ | .ssi-modal label input[type="checkbox"] { | ||
position: absolute; | position: absolute; | ||
− | clip:rect(0,0,0,0); | + | clip: rect(0, 0, 0, 0); |
} | } | ||
− | .ssi-modal input[type= | + | |
+ | .ssi-modal label input[type="checkbox"]:disabled + span::before { | ||
border-color: #d6d6d6; | border-color: #d6d6d6; | ||
} | } | ||
− | .ssi-modal input[type= | + | |
+ | .ssi-modal label input[type="checkbox"]:disabled:checked + span::before { | ||
background-color: #a0a0a0; | background-color: #a0a0a0; | ||
+ | } | ||
+ | |||
+ | /** | ||
+ | * Animate.css Lite | ||
+ | * Only zoomIn & zoomOut | ||
+ | **/ | ||
+ | @keyframes zoomIn { | ||
+ | from { | ||
+ | opacity: 0; | ||
+ | -webkit-transform: scale3d(0.3, 0.3, 0.3); | ||
+ | transform: scale3d(0.3, 0.3, 0.3); | ||
+ | } | ||
+ | |||
+ | 50% { | ||
+ | opacity: 1; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | .zoomIn { | ||
+ | -webkit-animation-name: zoomIn; | ||
+ | animation-name: zoomIn; | ||
+ | } | ||
+ | |||
+ | @keyframes zoomOut { | ||
+ | from { | ||
+ | opacity: 1; | ||
+ | } | ||
+ | |||
+ | 50% { | ||
+ | opacity: 0; | ||
+ | -webkit-transform: scale3d(0.3, 0.3, 0.3); | ||
+ | transform: scale3d(0.3, 0.3, 0.3); | ||
+ | } | ||
+ | |||
+ | to { | ||
+ | opacity: 0; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | .zoomOut { | ||
+ | -webkit-animation-name: zoomOut; | ||
+ | animation-name: zoomOut; | ||
+ | } | ||
+ | |||
+ | .animated { | ||
+ | -webkit-animation-duration: 1s; | ||
+ | animation-duration: 1s; | ||
+ | -webkit-animation-fill-mode: both; | ||
+ | animation-fill-mode: both; | ||
+ | } | ||
+ | |||
+ | .animated.faster { | ||
+ | -webkit-animation-duration: 500ms; | ||
+ | animation-duration: 500ms; | ||
} | } |
Latest revision as of 02:30, 16 April 2022
/**
*『Wjghj Project Static』
* This _CascadingStyleSheets_ code is from https://common.wjghj.cn
* CC BY_NC_SA
* ssi-modal OOUI skin
**/
/* 标准窗口 */
.ssi-modal {
color: #252525;
font-size: 16px;
}
.ssi-modal .ssi-modalWindow {
padding: 0;
border-radius: 0;
}
.ssi-backdrop,
.ssi-modalOuter {
z-index: 800;
}
.ssi-modal .ssi-overflow {
background-image: radial-gradient(
farthest-side at 50% 0,
rgba(26, 26, 26, 0.12),
transparent
),
radial-gradient(
farthest-side at 50% 100%,
rgba(26, 26, 26, 0.12),
transparent
);
background-position: 0 0, 0 100%;
background-repeat: no-repeat;
background-size: 100% 9px;
position: relative;
z-index: 1;
padding-top: 0;
padding-bottom: 0;
}
.ssi-modal .ssi-overflow:before,
.ssi-modal .ssi-overflow:after {
content: "";
display: block;
background-color: #fff;
height: 30px;
position: relative;
z-index: -1;
margin: 0 0 -30px;
}
.ssi-modal .ssi-overflow:after {
margin: 0 0 -29px;
}
.ssi-center .ssi-modalContent {
max-height: 70vh;
overflow-y: auto;
}
.ssi-modal .ssi-topIcons {
text-align: center;
}
.ssi-modal .ssi-topIcons .ssi-closeIcon {
background: 0 0;
color: #d33;
font-size: 20px;
margin: 0;
padding: 8px 12px;
}
.ssi-modal .ssi-topIcons .ssi-closeIcon:hover {
color: #f22;
}
.ssi-modal .ssi-closeIcon:before {
content: "✕";
display: unset !important;
}
.ssi-modal:not(.notify) .ssi-modalTitle {
font-style: normal;
font-family: sans-serif;
font-weight: bold;
background: #ffffff;
color: #252525;
font-size: 1.1em;
line-height: 1.8em;
text-align: center;
}
.notify .ssi-modalTitle {
font-style: normal;
font-family: inherit;
}
.ssi-modal .ssi-modalTitle .showEditNotice {
font-size: small;
display: block;
line-height: 0;
}
.ssi-modal h4 {
margin: 2px 0 0 0;
}
.ssi-modal .btn {
font-size: 16px;
font-weight: bold;
color: #222;
border: 1px solid transparent;
border-radius: 2px;
padding: 0.25em 0.8em;
transition: all 0.1s;
}
.ssi-modal .btn:focus {
box-shadow: inset 0 0 0 1px #36c;
}
.ssi-modal .btn.btn-primary {
color: #fff;
background-color: #36c;
border-color: #36c;
}
.ssi-modal .btn.btn-primary:hover {
background-color: #447ff5;
border-color: #447ff5;
}
.ssi-modal .btn.btn-primary:active {
background-color: #2a4b8d;
}
.ssi-modal .btn.btn-secondary {
color: #252525;
border-color: #c8ccd1;
background-color: #f8f9fa;
}
.ssi-modal .btn.btn-secondary:hover {
background-color: #ffffff;
color: #454545;
}
.ssi-modal .btn.btn-secondary:active {
border: 1px solid #36c;
}
.ssi-modal .btn.btn-danger {
background: transparent;
color: #d33;
background-color: #f4f4f4;
}
.ssi-modal .btn.btn-danger:hover {
color: #ff4242;
background-color: #fafafa;
}
.ssi-modal .btn.btn-danger:active {
color: #d00;
border: 1px solid #36c;
}
.ssi-modal .btn:disabled {
background-color: #c8ccd1 !important;
color: #ffffff !important;
cursor: not-allowed;
}
.ssi-modal .btn:disabled:hover {
background-color: #c8ccd1 !important;
color: #ffffff !important;
}
.ssi-modal .btn:disabled .ssi-countDown {
color: #fff;
}
.ssi-modal input {
padding: 0.25em 0.35em;
border: 1px solid #ccc;
border-radius: 2px;
transition: all 0.2s;
line-height: 1.5em;
}
.ssi-modal input:focus {
border-color: #36c;
box-shadow: inset 0 0 0 1px #36c;
}
.ssi-modal .dialog .ssi-modalContent {
padding-top: 18px;
font-size: large;
}
.ssi-modal .dialog .ssi-buttons .btn {
margin: 0;
padding: 0.5em;
background: transparent;
color: #252525;
border: 1px solid #efefef;
border-radius: 0;
width: 50%;
}
.ssi-modal .dialog .ssi-buttons .btn:hover {
background: #f8f8f8 !important;
}
.ssi-modal .btn.btn-single {
width: 100% !important;
}
.ssi-modal .dialog .ssi-buttons .btn.btn-danger {
color: #c33;
}
.ssi-modal .btn.btn-primary.btn-danger {
background: #d33;
border-color: #d33;
color: #ffffff;
}
.ssi-modal .btn.btn-primary.btn-danger:hover {
background: #f33;
}
.ssi-modal .btn.btn-primary.btn-danger:focus {
background: #c22;
border-color: #c22;
box-shadow: inset 0 0 0 1px #fff;
}
.ssi-modal .dialog .ssi-buttons {
padding: 0;
}
.ssi-modal .dialog .ssi-buttons .ssi-rightButtons {
width: 100%;
}
.ssi-modal-article-link-group:before {
content: "[";
}
.ssi-modal-article-link-group:after {
content: "]";
}
.mw-editsection .ssi-modal-article-link-group:before {
content: " | ";
}
.mw-editsection .ssi-modal-article-link-group:after {
content: "";
}
.mw-diff-undo .ssi-modal-article-link-group {
display: none;
}
.ssi-modal .detailArea {
/* padding: 8px 0 0 4px; */
}
.ssi-modal .detailArea .detailBtnGroup {
margin-left: 1.25em;
}
/** 快速差异 **/
.quick-diff .diff-hidden-history {
color: #a8a8a8;
text-decoration: line-through;
}
/** 进度条 **/
.ssi-progress {
height: 1em;
border: 1px solid #c5c5c5;
border-radius: 2px;
background: white;
overflow: hidden;
}
.ssi-progress .ssi-progress-bar {
height: 100%;
width: auto;
background: #3360c3;
animation: progress 2s linear infinite;
opacity: 1;
}
.ssi-progress.done {
background: #3360c3;
transition: all 0.8s;
}
.ssi-progress.done .ssi-progress-bar {
animation: none;
width: 0%;
margin: auto 0;
opacity: 0;
transition: all 0.8s;
}
@keyframes progress {
from {
margin-left: -40%;
margin-right: 110%;
}
to {
margin-left: 110%;
margin-right: -40%;
}
}
/* 通知框 */
.ssi-modal.notify {
border-radius: 0;
font-family: unset;
}
.ssi-modal.notify .ssi-modalTitle {
background: none;
color: unset;
}
/** 背景颜色 **/
.ssi-backdrop {
background: rgba(255, 255, 255, 0.5);
}
/** 修改checkbox样式 **/
.ssi-modal label input[type="checkbox"] + span {
user-select: none;
line-height: 1.2em;
}
.ssi-modal label input[type="checkbox"] + span::before {
/* 不换行空格可以保持选择框的高度 */
content: "\a0";
display: inline-block;
width: 1.2em;
height: 1.2em;
margin-top: 0.15em;
margin-right: 0.375em;
border-radius: 2px;
background-color: #f8f8f8;
border: 1px solid #72777d;
cursor: pointer;
transition: all 0.12s;
}
.ssi-modal label input[type="checkbox"]:checked + span::before {
content: "\a0";
background-color: #36c;
background-image: url(https://cdn.jsdelivr.net/gh/dragon-fish/inpageedit-v2@master/src/images/Checkmark.svg);
background-repeat: no-repeat;
}
.ssi-modal label input[type="checkbox"]:checked + span:hover:before {
background-color: #447ff5;
}
.ssi-modal label input[type="checkbox"]:active + span::before,
.ssi-modal label input[type="checkbox"]:focus + span::before {
box-shadow: inset 0 0px 0px 1px rgb(255, 255, 255);
border-color: #3366cc;
}
.ssi-modal label input[type="checkbox"] {
position: absolute;
clip: rect(0, 0, 0, 0);
}
.ssi-modal label input[type="checkbox"]:disabled + span::before {
border-color: #d6d6d6;
}
.ssi-modal label input[type="checkbox"]:disabled:checked + span::before {
background-color: #a0a0a0;
}
/**
* Animate.css Lite
* Only zoomIn & zoomOut
**/
@keyframes zoomIn {
from {
opacity: 0;
-webkit-transform: scale3d(0.3, 0.3, 0.3);
transform: scale3d(0.3, 0.3, 0.3);
}
50% {
opacity: 1;
}
}
.zoomIn {
-webkit-animation-name: zoomIn;
animation-name: zoomIn;
}
@keyframes zoomOut {
from {
opacity: 1;
}
50% {
opacity: 0;
-webkit-transform: scale3d(0.3, 0.3, 0.3);
transform: scale3d(0.3, 0.3, 0.3);
}
to {
opacity: 0;
}
}
.zoomOut {
-webkit-animation-name: zoomOut;
animation-name: zoomOut;
}
.animated {
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
.animated.faster {
-webkit-animation-duration: 500ms;
animation-duration: 500ms;
}