Site Notice
hello, world
Difference between revisions of "MediaWiki:Css-ssi-modal-ooui-skin.css"
From Project-EPB Commons
([InPageEdit] 没有编辑摘要) |
m ([InPageEdit] 没有编辑摘要) |
||
Line 5: | Line 5: | ||
* ssi-modal OOUI skin | * ssi-modal OOUI skin | ||
**/ | **/ | ||
+ | /* 标准窗口*/ | ||
.ssi-modal { | .ssi-modal { | ||
color: #252525; | color: #252525; | ||
Line 13: | Line 14: | ||
} | } | ||
.ssi-modal .ssi-overflow { | .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), | + | 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:before, | ||
Line 58: | Line 58: | ||
} | } | ||
.ssi-modal .ssi-closeIcon:before { | .ssi-modal .ssi-closeIcon:before { | ||
− | content: ' | + | content: '✕'; |
font-size: 16px; | font-size: 16px; | ||
display: unset !important; | display: unset !important; | ||
Line 71: | Line 71: | ||
line-height: 1.8em; | line-height: 1.8em; | ||
text-align: center; | text-align: center; | ||
+ | } | ||
+ | .ssi-modal .editArea { | ||
+ | max-width:100%; | ||
+ | min-width:100%; | ||
+ | min-height:350px; | ||
+ | margin: 1em 0 0 0; | ||
+ | } | ||
+ | .notify .ssi-modalTitle { | ||
+ | font-style: normal; | ||
+ | font-family: inherit; | ||
+ | } | ||
+ | .ssi-modal .ssi-modalTitle #showEditNotice { | ||
+ | font-size: small; | ||
+ | display: block; | ||
+ | line-height: 0; | ||
+ | } | ||
+ | .ssi-modal .ssi-modalTitle #showEditNotice .material-icons { | ||
+ | font-size: small; | ||
+ | position: relative; | ||
+ | top: 2px; | ||
+ | } | ||
+ | .ssi-modal.ipe-editor .ssi-buttons { | ||
+ | background-color: #eaecf0; | ||
+ | color: #222; | ||
+ | /* border: 1px solid #c8ccd1; */ | ||
+ | border-top: 0; | ||
+ | padding: 1em 1em 0.5em 1em; | ||
+ | margin-bottom: 0; | ||
+ | } | ||
+ | .ssi-modal .editSummary { | ||
+ | width: 98%; | ||
+ | margin: 4px auto 8px 0.5em | ||
+ | } | ||
+ | .ssi-modal .editOptionsLabel { | ||
+ | margin: 0 auto 16px auto; | ||
+ | } | ||
+ | .ssi-modal h4 { | ||
+ | margin: 2px 0 0 0; | ||
} | } | ||
.ssi-modal .btn { | .ssi-modal .btn { | ||
Line 82: | Line 120: | ||
} | } | ||
.ssi-modal .btn:focus { | .ssi-modal .btn:focus { | ||
− | box-shadow: inset 0 0 0 | + | box-shadow: inset 0 0 0 1px #36c; |
} | } | ||
.ssi-modal .btn.btn-primary { | .ssi-modal .btn.btn-primary { | ||
Line 126: | Line 164: | ||
cursor: not-allowed; | cursor: not-allowed; | ||
} | } | ||
− | .ssi-modal .btn:hover | + | .ssi-modal .btn:disabled:hover { |
background-color: #c8ccd1 !important; | background-color: #c8ccd1 !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
Line 143: | Line 181: | ||
box-shadow: inset 0 0 0 1px #36c; | box-shadow: inset 0 0 0 1px #36c; | ||
} | } | ||
− | .ssi-modal. | + | .ssi-modal .dialog .ssi-modalContent { |
− | |||
− | |||
− | |||
padding-top: 18px; | padding-top: 18px; | ||
font-size: large; | font-size: large; | ||
Line 157: | Line 192: | ||
border: 1px solid #efefef; | border: 1px solid #efefef; | ||
border-radius: 0; | border-radius: 0; | ||
− | 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 . | + | .ssi-modal .btn.btn-single { |
− | width: 100%; | + | width: 100% !important; |
} | } | ||
.ssi-modal .dialog .ssi-buttons .btn.btn-danger { | .ssi-modal .dialog .ssi-buttons .btn.btn-danger { | ||
Line 172: | Line 207: | ||
} | } | ||
.ssi-modal .dialog .ssi-buttons .ssi-rightButtons { | .ssi-modal .dialog .ssi-buttons .ssi-rightButtons { | ||
− | width:100%; | + | 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; | ||
} | } | ||
/** 进度条 **/ | /** 进度条 **/ | ||
− | .progress { | + | .ssi-progress { |
height: 1em; | height: 1em; | ||
border: 1px solid #c5c5c5; | border: 1px solid #c5c5c5; | ||
Line 183: | Line 245: | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
− | .progress .progress-bar { | + | .ssi-progress .ssi-progress-bar { |
height: 100%; | height: 100%; | ||
width: auto; | width: auto; | ||
Line 190: | Line 252: | ||
opacity: 1; | opacity: 1; | ||
} | } | ||
− | .progress.done { | + | .ssi-progress.done { |
background: #3360c3; | background: #3360c3; | ||
transition: all 0.8s; | transition: all 0.8s; | ||
} | } | ||
− | .progress.done .progress-bar { | + | .ssi-progress.done .ssi-progress-bar { |
animation: none; | animation: none; | ||
width: 0%; | width: 0%; | ||
Line 211: | Line 273: | ||
} | } | ||
} | } | ||
− | |||
/* 通知框 */ | /* 通知框 */ | ||
.ssi-modal.notify { | .ssi-modal.notify { | ||
Line 221: | Line 282: | ||
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] + label { | .ssi-modal input[type=checkbox] + label { | ||
user-select: none; | user-select: none; | ||
+ | line-height: 1.2em; | ||
} | } | ||
.ssi-modal input[type=checkbox] + label::before { | .ssi-modal input[type=checkbox] + label::before { | ||
− | content: "\a0"; | + | content: "\a0"; /* 不换行空格可以保持选择框的高度 */ |
display: inline-block; | display: inline-block; | ||
− | + | width: 1.2em; | |
− | width: | + | height: 1.2em; |
− | height: | ||
margin-right: 5px; | margin-right: 5px; | ||
border-radius: 2px; | border-radius: 2px; | ||
background-color: #f8f8f8; | background-color: #f8f8f8; | ||
− | |||
− | |||
border: 1px solid #72777d; | border: 1px solid #72777d; | ||
cursor: pointer; | cursor: pointer; | ||
Line 247: | Line 304: | ||
} | } | ||
.ssi-modal input[type="checkbox"]:checked + label::before { | .ssi-modal input[type="checkbox"]:checked + label::before { | ||
− | content: "\ | + | content: "\a0"; |
− | |||
− | |||
background-color: #36c; | background-color: #36c; | ||
− | + | background-image: url(https://common.wjghj.cn/images/8/8f/Checkmark.svg); | |
+ | background-repeat: no-repeat; | ||
} | } | ||
.ssi-modal input[type='checkbox']:checked + label:hover:before { | .ssi-modal input[type='checkbox']:checked + label:hover:before { |
Revision as of 07:01, 5 April 2020
/**
*『Wjghj Project Static』
* This _CascadingStyleSheets_ code is from https://common.wjghj.cn
* CC BY_NC_SA
* ssi-modal OOUI skin
**/
/* 标准窗口*/
.ssi-modal {
color: #252525;
}
.ssi-modal .ssi-modalWindow {
padding: 0;
border-radius: 0;
}
.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-modal .ssi-topIcons {
#background: #808080;
text-align: center;
}
.ssi-modal .ssi-topIcons .ssi-closeIcon {
background: none;
color: #d33;
height: 24px;
width: 36px;
font-size: 30px;
line-height: 24px;
}
.ssi-modal .ssi-topIcons .ssi-closeIcon:hover {
background: none;
color: #f22;
height: 24px;
width: 36px;
font-size: 30px;
line-height: 24px;
}
.ssi-modal .ssi-closeIcon:before {
content: '✕';
font-size: 16px;
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;
}
.ssi-modal .editArea {
max-width:100%;
min-width:100%;
min-height:350px;
margin: 1em 0 0 0;
}
.notify .ssi-modalTitle {
font-style: normal;
font-family: inherit;
}
.ssi-modal .ssi-modalTitle #showEditNotice {
font-size: small;
display: block;
line-height: 0;
}
.ssi-modal .ssi-modalTitle #showEditNotice .material-icons {
font-size: small;
position: relative;
top: 2px;
}
.ssi-modal.ipe-editor .ssi-buttons {
background-color: #eaecf0;
color: #222;
/* border: 1px solid #c8ccd1; */
border-top: 0;
padding: 1em 1em 0.5em 1em;
margin-bottom: 0;
}
.ssi-modal .editSummary {
width: 98%;
margin: 4px auto 8px 0.5em
}
.ssi-modal .editOptionsLabel {
margin: 0 auto 16px auto;
}
.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 .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 .2s;
}
.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 .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 input[type=checkbox] + label {
user-select: none;
line-height: 1.2em;
}
.ssi-modal input[type=checkbox] + label::before {
content: "\a0"; /* 不换行空格可以保持选择框的高度 */
display: inline-block;
width: 1.2em;
height: 1.2em;
margin-right: 5px;
border-radius: 2px;
background-color: #f8f8f8;
border: 1px solid #72777d;
cursor: pointer;
transition: all 0.12s;
}
.ssi-modal input[type="checkbox"]:checked + label::before {
content: "\a0";
background-color: #36c;
background-image: url(https://common.wjghj.cn/images/8/8f/Checkmark.svg);
background-repeat: no-repeat;
}
.ssi-modal input[type='checkbox']:checked + label:hover:before {
background-color: #447ff5;
}
.ssi-modal input[type="checkbox"]:active + label::before,
.ssi-modal input[type="checkbox"]:focus + label::before {
box-shadow: inset 0 0px 0px 1px rgb(255, 255, 255);
border-color: #3366cc;
}
.ssi-modal input[type='checkbox'] {
position: absolute;
clip:rect(0,0,0,0);
}
.ssi-modal input[type='checkbox']:disabled + label::before {
border-color: #d6d6d6;
}
.ssi-modal input[type='checkbox']:disabled:checked + label::before {
background-color: #a0a0a0;
}