Site Notice
hello, world
Difference between revisions of "MediaWiki:Css-InPageEdit-v2.css"
From Project-EPB Commons
(//InPageEdit) |
([InPageEdit] 没有编辑摘要) |
||
(97 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
*『Wjghj Project Static』 | *『Wjghj Project Static』 | ||
* This _CascadingStyleSheets_ code is from https://common.wjghj.cn | * This _CascadingStyleSheets_ code is from https://common.wjghj.cn | ||
− | * | + | * GNU Public License |
+ | * InPageEdit default skin | ||
**/ | **/ | ||
+ | /* 字体 */ | ||
+ | @font-face { | ||
+ | font-family: 'Material Icons'; | ||
+ | font-style: normal; | ||
+ | font-weight: 400; | ||
+ | src: url(https://cdn.jsdelivr.net/gh/dragon-fish/inpageedit-v2@master/src/fonts/material-icons.woff2) format('woff2'); | ||
+ | } | ||
+ | .material-icons { | ||
+ | font-family: 'Material Icons'; | ||
+ | font-weight: normal; | ||
+ | font-style: normal; | ||
+ | font-size: 24px; | ||
+ | line-height: 1; | ||
+ | letter-spacing: normal; | ||
+ | text-transform: none; | ||
+ | display: inline-block; | ||
+ | white-space: nowrap; | ||
+ | word-wrap: normal; | ||
+ | direction: ltr; | ||
+ | text-rendering: optimizeLegibility; | ||
+ | -webkit-font-smoothing: antialiased; | ||
+ | } | ||
+ | |||
/* 编辑器 */ | /* 编辑器 */ | ||
+ | .in-page-edit .mw-editsection, | ||
+ | .in-page-edit .hide-for-guide { | ||
+ | display: none; | ||
+ | } | ||
.in-page-edit { | .in-page-edit { | ||
− | + | color: #252525; | |
+ | } | ||
+ | .in-page-edit .material-icons { | ||
+ | position: relative; | ||
+ | top: 2px; | ||
} | } | ||
.in-page-edit .ssi-modalWindow { | .in-page-edit .ssi-modalWindow { | ||
padding: 0; | padding: 0; | ||
border-radius: 0; | border-radius: 0; | ||
+ | } | ||
+ | .in-page-edit .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; | ||
+ | } | ||
+ | .in-page-edit .ssi-overflow:before, | ||
+ | .in-page-edit .ssi-overflow:after { | ||
+ | content: ""; | ||
+ | display: block; | ||
+ | background-color: #fff; | ||
+ | height: 30px; | ||
+ | position: relative; | ||
+ | z-index: -1; | ||
+ | margin: 0 0 -30px; | ||
+ | } | ||
+ | .in-page-edit .ssi-overflow:after { | ||
+ | margin: 0 0 -29px; | ||
+ | } | ||
+ | .ssi-center .ssi-modalContent { | ||
+ | max-height: 70vh; | ||
+ | overflow-y: auto; | ||
} | } | ||
.in-page-edit .ssi-topIcons { | .in-page-edit .ssi-topIcons { | ||
− | |||
text-align: center; | text-align: center; | ||
} | } | ||
.in-page-edit .ssi-topIcons .ssi-closeIcon { | .in-page-edit .ssi-topIcons .ssi-closeIcon { | ||
background: none; | background: none; | ||
− | color: # | + | color: #d33; |
− | height: | + | height: 24px; |
width: 36px; | width: 36px; | ||
font-size: 30px; | font-size: 30px; | ||
− | line-height: | + | line-height: 24px; |
} | } | ||
.in-page-edit .ssi-topIcons .ssi-closeIcon:hover { | .in-page-edit .ssi-topIcons .ssi-closeIcon:hover { | ||
background: none; | background: none; | ||
− | + | color: #f22; | |
− | + | height: 24px; | |
width: 36px; | width: 36px; | ||
font-size: 30px; | font-size: 30px; | ||
− | line-height: | + | line-height: 24px; |
} | } | ||
.in-page-edit .ssi-closeIcon:before { | .in-page-edit .ssi-closeIcon:before { | ||
− | content: | + | content: "✕"; |
− | font-family: | + | font-size: 16px; |
+ | display: unset !important; | ||
+ | } | ||
+ | .in-page-edit: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; | ||
+ | } | ||
+ | .ipe-editor .editTools { | ||
+ | background: #eaf3ff; | ||
+ | border: 1px solid #c8ccd1; | ||
+ | border-bottom: none; | ||
+ | float: left; | ||
+ | width: calc(100% - 1px); | ||
+ | } | ||
+ | .ipe-editor .editTools .btnGroup { | ||
+ | float: left; | ||
+ | padding-right: 6px; | ||
+ | border-right: 1px solid #c8ccd1; | ||
+ | margin: 3px; | ||
+ | } | ||
+ | .ipe-editor .editTools .btnGroup.special-tools { | ||
+ | border-right: none; | ||
+ | border-left: 1px solid #c8ccd1; | ||
+ | padding-right: 3px; | ||
+ | padding-left: 6px; | ||
+ | } | ||
+ | .ipe-editor .editTools .label { | ||
+ | color: #888; | ||
+ | padding-right: 6px; | ||
+ | cursor: default; | ||
+ | } | ||
+ | .ipe-editor .editTools .formatSelect { | ||
+ | margin: 0; | ||
+ | } | ||
+ | .ipe-editor .editTools .btn { | ||
+ | color: #47494d; | ||
+ | font-size: 18px; | ||
+ | background: none; | ||
+ | box-shadow: none; | ||
+ | margin: 0 2px; | ||
+ | padding: 2px 6px; | ||
+ | } | ||
+ | .ipe-editor .editTools .btn * { | ||
+ | font-size: 18px; | ||
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | } | ||
+ | .ipe-editor .editArea { | ||
+ | border: 1px solid #c8ccd1; | ||
+ | border-top: none; | ||
+ | border-radius: 0; | ||
+ | max-width: 100%; | ||
+ | min-width: 100%; | ||
+ | min-height: 350px; | ||
+ | margin: 0; | ||
} | } | ||
− | . | + | .notify .ssi-modalTitle { |
font-style: normal; | font-style: normal; | ||
− | font-family: | + | font-family: inherit; |
− | + | } | |
− | color: # | + | .in-page-edit .ssi-modalTitle #showEditNotice { |
+ | font-size: small; | ||
+ | display: block; | ||
+ | line-height: 0; | ||
+ | } | ||
+ | .in-page-edit .ssi-modalTitle #showEditNotice .material-icons { | ||
+ | font-size: small; | ||
+ | position: relative; | ||
+ | top: 2px; | ||
+ | } | ||
+ | .in-page-edit.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; | ||
+ | } | ||
+ | .in-page-edit .editSummary { | ||
+ | width: 98%; | ||
+ | margin: 4px auto 8px 0.5em | ||
} | } | ||
− | .in-page-edit | + | .in-page-edit .editOptionsLabel { |
− | + | margin: 0 auto 16px auto; | |
− | |||
− | |||
} | } | ||
− | .in-page-edit | + | .in-page-edit h4 { |
− | margin | + | margin: 2px 0 0 0; |
− | |||
} | } | ||
.in-page-edit .btn { | .in-page-edit .btn { | ||
− | |||
font-size: 16px; | font-size: 16px; | ||
font-weight: bold; | font-weight: bold; | ||
− | + | color: #222; | |
− | + | border: 1px solid transparent; | |
− | border-radius: 0. | + | border-radius: 2px; |
− | transition: all . | + | padding: 0.25em 0.8em; |
+ | transition: all .1s; | ||
+ | } | ||
+ | .in-page-edit .btn:focus { | ||
+ | box-shadow: inset 0 0 0 1px #36c; | ||
} | } | ||
.in-page-edit .btn.btn-primary { | .in-page-edit .btn.btn-primary { | ||
− | background: # | + | color: #fff; |
− | color: | + | background-color: #36c; |
+ | border-color: #36c; | ||
} | } | ||
.in-page-edit .btn.btn-primary:hover { | .in-page-edit .btn.btn-primary:hover { | ||
− | background: # | + | background-color: #447ff5; |
+ | border-color: #447ff5; | ||
+ | } | ||
+ | .in-page-edit .btn.btn-primary:active { | ||
+ | background-color: #2a4b8d; | ||
} | } | ||
.in-page-edit .btn.btn-secondary { | .in-page-edit .btn.btn-secondary { | ||
− | color: # | + | color: #252525; |
− | border: | + | border-color: #c8ccd1; |
+ | background-color: #f8f9fa; | ||
} | } | ||
.in-page-edit .btn.btn-secondary:hover { | .in-page-edit .btn.btn-secondary:hover { | ||
− | color: # | + | background-color: #ffffff; |
− | border: 1px solid # | + | color: #454545; |
+ | } | ||
+ | .in-page-edit .btn.btn-secondary:active { | ||
+ | border: 1px solid #36c; | ||
} | } | ||
.in-page-edit .btn.btn-danger { | .in-page-edit .btn.btn-danger { | ||
− | background: # | + | background: transparent; |
− | color: | + | color: #d33; |
+ | background-color: #f4f4f4; | ||
} | } | ||
.in-page-edit .btn.btn-danger:hover { | .in-page-edit .btn.btn-danger:hover { | ||
− | + | color: #ff4242; | |
− | color: | + | background-color: #fafafa; |
} | } | ||
− | .in-page-edit. | + | .in-page-edit .btn.btn-danger:active { |
− | + | color: #d00; | |
+ | border: 1px solid #36c; | ||
} | } | ||
− | .in-page-edit. | + | .in-page-edit .btn:disabled { |
+ | background-color: #c8ccd1 !important; | ||
+ | color: #ffffff !important; | ||
+ | cursor: not-allowed; | ||
+ | } | ||
+ | .in-page-edit .btn:disabled:hover { | ||
+ | background-color: #c8ccd1 !important; | ||
+ | color: #ffffff !important; | ||
+ | } | ||
+ | .in-page-edit .btn:disabled .ssi-countDown { | ||
+ | color: #fff; | ||
+ | } | ||
+ | .in-page-edit input { | ||
+ | padding: 0.25em 0.35em; | ||
+ | border: 1px solid #ccc; | ||
+ | border-radius: 2px; | ||
+ | transition: all .2s; | ||
+ | } | ||
+ | .in-page-edit input:focus { | ||
+ | border-color: #36c; | ||
+ | box-shadow: inset 0 0 0 1px #36c; | ||
+ | } | ||
+ | .in-page-edit .dialog .ssi-modalContent { | ||
padding-top: 18px; | padding-top: 18px; | ||
font-size: large; | font-size: large; | ||
− | font- | + | } |
+ | .in-page-edit .dialog .ssi-buttons .btn { | ||
+ | margin: 0; | ||
+ | padding: 0.5em; | ||
+ | background: transparent; | ||
+ | color: #252525; | ||
+ | border: 1px solid #efefef; | ||
+ | border-radius: 0; | ||
+ | width: 50%; | ||
+ | } | ||
+ | .in-page-edit .dialog .ssi-buttons .btn:hover { | ||
+ | background: #f8f8f8 !important; | ||
+ | } | ||
+ | .in-page-edit .btn.btn-single { | ||
+ | width: 100% !important; | ||
+ | } | ||
+ | .in-page-edit .dialog .ssi-buttons .btn.btn-danger { | ||
+ | color: #c33; | ||
+ | } | ||
+ | .in-page-edit .dialog .ssi-buttons { | ||
+ | padding: 0; | ||
+ | } | ||
+ | .in-page-edit .dialog .ssi-buttons .ssi-rightButtons { | ||
+ | width: 100%; | ||
+ | } | ||
+ | .in-page-edit-article-link-group:before { | ||
+ | content: "[" | ||
+ | } | ||
+ | .in-page-edit-article-link-group:after { | ||
+ | content: "]" | ||
+ | } | ||
+ | .mw-editsection .in-page-edit-article-link-group:before { | ||
+ | content: " | " | ||
+ | } | ||
+ | .mw-editsection .in-page-edit-article-link-group:after { | ||
+ | content:"" | ||
+ | } | ||
+ | .mw-diff-undo .in-page-edit-article-link-group { | ||
+ | display: none; | ||
+ | } | ||
+ | .in-page-edit .detailArea { | ||
+ | /* padding: 8px 0 0 4px; */ | ||
+ | } | ||
+ | .in-page-edit .detailArea .detailBtnGroup { | ||
+ | margin-left: 1.25em; | ||
+ | } | ||
+ | |||
+ | /** 快速差异 **/ | ||
+ | .quick-diff .diff-hidden-history { | ||
+ | color: #a8a8a8; | ||
+ | text-decoration: line-through; | ||
+ | } | ||
+ | |||
+ | /** 进度条 **/ | ||
+ | .ipe-progress { | ||
+ | height: 1em; | ||
+ | border: 1px solid #c5c5c5; | ||
+ | border-radius: 2px; | ||
+ | background: white; | ||
+ | overflow: hidden; | ||
+ | } | ||
+ | .ipe-progress .ipe-progress-bar { | ||
+ | height: 100%; | ||
+ | width: auto; | ||
+ | background: #3360c3; | ||
+ | animation: progress 2s linear infinite; | ||
+ | opacity: 1; | ||
+ | } | ||
+ | .ipe-progress.done { | ||
+ | background: #3360c3; | ||
+ | transition: all 0.8s; | ||
+ | } | ||
+ | .ipe-progress.done .ipe-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%; | ||
+ | } | ||
+ | } | ||
+ | /* 通知框 */ | ||
+ | .in-page-edit.notify { | ||
+ | border-radius: 0; | ||
+ | font-family: unset; | ||
+ | } | ||
+ | .in-page-edit.notify .ssi-modalTitle { | ||
+ | background: none; | ||
+ | color: unset; | ||
+ | } | ||
+ | /** 背景颜色 **/ | ||
+ | .ssi-backdrop { | ||
+ | background: rgba(255,255,255,0.5); | ||
+ | } | ||
+ | /** 修改checkbox样式 **/ | ||
+ | .in-page-edit label input[type="checkbox"] +span { | ||
+ | user-select: none; | ||
+ | line-height: 1.2em; | ||
+ | } | ||
+ | .in-page-edit label input[type="checkbox"] + span::before { | ||
+ | content: "\a0"; /* 不换行空格可以保持选择框的高度 */ | ||
+ | display: inline-block; | ||
+ | width: 1.2em; | ||
+ | height: 1.2em; | ||
+ | margin-top: .15em; | ||
+ | margin-right: .375em; | ||
+ | border-radius: 2px; | ||
+ | background-color: #f8f8f8; | ||
+ | border: 1px solid #72777d; | ||
+ | cursor: pointer; | ||
+ | transition: all 0.12s; | ||
+ | } | ||
+ | .in-page-edit label input[type="checkbox"]:checked + span::before { | ||
+ | content: "\a0"; | ||
+ | background-color: #36c; | ||
+ | background-image: url(https://common.wjghj.cn/images/8/8f/Checkmark.svg); | ||
+ | background-repeat: no-repeat; | ||
+ | } | ||
+ | .in-page-edit label input[type="checkbox"]:checked + span:hover:before { | ||
+ | background-color: #447ff5; | ||
+ | } | ||
+ | .in-page-edit label input[type="checkbox"]:active + span::before, | ||
+ | .in-page-edit label input[type="checkbox"]:focus + span::before { | ||
+ | box-shadow: inset 0 0px 0px 1px rgb(255, 255, 255); | ||
+ | border-color: #3366cc; | ||
+ | } | ||
+ | .in-page-edit label input[type="checkbox"] { | ||
+ | position: absolute; | ||
+ | clip:rect(0,0,0,0); | ||
+ | } | ||
+ | .in-page-edit label input[type="checkbox"]:disabled + span::before { | ||
+ | border-color: #d6d6d6; | ||
+ | } | ||
+ | .in-page-edit label input[type="checkbox"]:disabled:checked + span::before { | ||
+ | background-color: #a0a0a0; | ||
} | } | ||
/* 右下角小工具箱 */ | /* 右下角小工具箱 */ | ||
#ipe-edit-toolbox { | #ipe-edit-toolbox { | ||
position: fixed; | position: fixed; | ||
− | right: | + | right: 32px; |
− | bottom: | + | bottom: 32px; |
user-select: none; | user-select: none; | ||
z-index: 199; | z-index: 199; | ||
} | } | ||
− | #ipe-edit-toolbox | + | #ipe-edit-toolbox .ipe-toolbox-btn { |
− | |||
− | |||
− | |||
− | |||
color: white; | color: white; | ||
background: #bebebe; | background: #bebebe; | ||
− | + | text-align: center; | |
− | height: | + | height: 45px; |
− | + | width: 45px; | |
− | line-height: | + | font-size: 30px; |
+ | line-height: 50px; | ||
+ | border: 0; | ||
border-radius: 50%; | border-radius: 50%; | ||
box-shadow: 0 0 5px gray; | box-shadow: 0 0 5px gray; | ||
text-shadow: 0 0 2px #4c4c4c; | text-shadow: 0 0 2px #4c4c4c; | ||
− | padding | + | padding: 0; |
− | margin | + | margin: 0; |
cursor: pointer; | cursor: pointer; | ||
} | } | ||
− | #ipe-edit-toolbox #btn-group { | + | #ipe-edit-toolbox #toolbox-toggle { |
− | #width: | + | transition: all .26s ease-in-out; |
− | height: | + | transform: rotate(0deg); |
− | # | + | } |
− | # | + | #ipe-edit-toolbox #toolbox-toggle.opened { |
− | + | transform: rotate(45deg); | |
+ | } | ||
+ | #ipe-edit-toolbox .btn-group.group1 .btn-tip-group { | ||
+ | transform: translate3d(0, 100%, 0); | ||
+ | } | ||
+ | #ipe-edit-toolbox .btn-group.group2 .btn-tip-group { | ||
+ | transform: translate3d(100%, 0, 0); | ||
+ | } | ||
+ | #ipe-edit-toolbox .btn-group .btn-tip-group { | ||
+ | transition-timing-function: ease-in-out; | ||
+ | transition-duration: .3s; | ||
+ | opacity: 0; | ||
+ | } | ||
+ | #ipe-edit-toolbox .btn-group.opened .btn-tip-group { | ||
+ | transform: translate3d(0, 0, 0); | ||
+ | opacity: 1; | ||
+ | } | ||
+ | #ipe-edit-toolbox .btn-group.opened .btn-tip-group:nth-of-type(1), | ||
+ | #ipe-edit-toolbox .btn-group:not(.opened) .btn-tip-group:nth-of-type(3) { | ||
+ | transition-delay: 0s; | ||
+ | } | ||
+ | #ipe-edit-toolbox .btn-group .btn-tip-group:nth-of-type(2) { | ||
+ | transition-delay: .06s; | ||
+ | } | ||
+ | #ipe-edit-toolbox .btn-group:not(.opened) .btn-tip-group:nth-of-type(1), | ||
+ | #ipe-edit-toolbox .btn-group.opened .btn-tip-group:nth-of-type(3) { | ||
+ | transition-delay: .108s | ||
+ | } | ||
+ | /* 不显示时使其完全缩小到没有,以防被点到 */ | ||
+ | #ipe-edit-toolbox .btn-group:not(.opened) { | ||
+ | transform: scaleZ(0); | ||
+ | transition-delay: .408s; | ||
+ | } | ||
+ | #ipe-edit-toolbox .btn-group.opened { | ||
+ | transform: scaleZ(1); | ||
+ | } | ||
+ | #ipe-edit-toolbox .ipe-toolbox-btn#toolbox-toggle { | ||
+ | position: absolute; | ||
+ | right: 0; | ||
+ | bottom: 0; | ||
+ | width: 50px; | ||
+ | height: 50px; | ||
+ | background: #bebebe; | ||
+ | font-size: 40px; | ||
+ | line-height: 56px; | ||
+ | margin: 0; | ||
+ | } | ||
+ | #ipe-edit-toolbox .ipe-toolbox-btn#toolbox-toggle.click { | ||
+ | box-shadow: 0 0 4px gray, 0 0 10px #444 inset; | ||
+ | } | ||
+ | #toolbox-toggle.click:before { | ||
+ | content: "lock"; | ||
+ | display: block; | ||
+ | position: absolute; | ||
+ | bottom: 0; | ||
+ | right: 0; | ||
+ | font-size: 12px; | ||
+ | transform: rotateZ(-45deg) | ||
+ | } | ||
+ | #ipe-edit-toolbox .ipe-toolbox-btn#edit-btn { | ||
+ | background: #45a8ff; | ||
+ | } | ||
+ | #ipe-edit-toolbox .ipe-toolbox-btn#redirectfrom-btn { | ||
+ | background: #ffa530; | ||
+ | } | ||
+ | #ipe-edit-toolbox .ipe-toolbox-btn#redirectto-btn { | ||
+ | background: #ff4985; | ||
+ | } | ||
+ | #ipe-edit-toolbox .ipe-toolbox-btn#preference-btn { | ||
+ | background: #4caf50; | ||
+ | } | ||
+ | #ipe-edit-toolbox .ipe-toolbox-btn#deletepage-btn { | ||
+ | background: #f00000; | ||
+ | } | ||
+ | #ipe-edit-toolbox .ipe-toolbox-btn#renamepage-btn { | ||
+ | background: #ca7efe; | ||
+ | } | ||
+ | #ipe-edit-toolbox .ipe-toolbox-btn.not-allowed { | ||
+ | background: #cdcdcd !important; | ||
} | } | ||
− | #ipe-edit-toolbox | + | #ipe-edit-toolbox .ipe-toolbox-btn.not-allowed:before { |
+ | content: "add"; | ||
+ | color: red; | ||
display: block; | display: block; | ||
+ | font-size: 86px; | ||
+ | position: absolute; | ||
+ | transform: rotate(45deg); | ||
+ | margin-top: 2px; | ||
+ | margin-left: -22px; | ||
+ | } | ||
+ | #ipe-edit-toolbox .btn-group { | ||
+ | position: absolute; | ||
+ | float: right; | ||
+ | list-style: none; | ||
+ | margin: 0; | ||
+ | } | ||
+ | #ipe-edit-toolbox .btn-group.group1 { | ||
+ | bottom: calc(50px + 6px); | ||
+ | right: 2px; | ||
+ | } | ||
+ | #ipe-edit-toolbox .btn-group.group2 { | ||
+ | bottom: 0; | ||
+ | right: calc(50px + 6px); | ||
+ | } | ||
+ | #ipe-edit-toolbox .btn-group.group1 .btn-tip-group { | ||
+ | margin-bottom: 6px; | ||
+ | } | ||
+ | #ipe-edit-toolbox .btn-group.group2 .btn-tip-group { | ||
+ | margin-right: 6px; | ||
+ | } | ||
+ | #ipe-edit-toolbox .btn-group.opened { | ||
+ | visibility: visible | ||
} | } | ||
#ipe-edit-toolbox .btn-tip-group .btn-tip { | #ipe-edit-toolbox .btn-tip-group .btn-tip { | ||
Line 140: | Line 560: | ||
} | } | ||
#ipe-edit-toolbox .btn-tip-group:hover .btn-tip { | #ipe-edit-toolbox .btn-tip-group:hover .btn-tip { | ||
− | display: | + | display: block; |
+ | } | ||
+ | #ipe-edit-toolbox .btn-tip-group .btn-tip:after { | ||
+ | content: ""; | ||
+ | display: block; | ||
+ | border: 5px solid transparent; | ||
+ | border-right-color: #fff; | ||
+ | border-bottom-color: #fff; | ||
+ | position: absolute; | ||
+ | bottom: -4px; | ||
+ | left: calc(50% - 2.5px); | ||
+ | transform: rotate(45deg); | ||
+ | } | ||
+ | /** | ||
+ | * 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 04:32, 13 April 2020
/**
*『Wjghj Project Static』
* This _CascadingStyleSheets_ code is from https://common.wjghj.cn
* GNU Public License
* InPageEdit default skin
**/
/* 字体 */
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url(https://cdn.jsdelivr.net/gh/dragon-fish/inpageedit-v2@master/src/fonts/material-icons.woff2) format('woff2');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
/* 编辑器 */
.in-page-edit .mw-editsection,
.in-page-edit .hide-for-guide {
display: none;
}
.in-page-edit {
color: #252525;
}
.in-page-edit .material-icons {
position: relative;
top: 2px;
}
.in-page-edit .ssi-modalWindow {
padding: 0;
border-radius: 0;
}
.in-page-edit .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;
}
.in-page-edit .ssi-overflow:before,
.in-page-edit .ssi-overflow:after {
content: "";
display: block;
background-color: #fff;
height: 30px;
position: relative;
z-index: -1;
margin: 0 0 -30px;
}
.in-page-edit .ssi-overflow:after {
margin: 0 0 -29px;
}
.ssi-center .ssi-modalContent {
max-height: 70vh;
overflow-y: auto;
}
.in-page-edit .ssi-topIcons {
text-align: center;
}
.in-page-edit .ssi-topIcons .ssi-closeIcon {
background: none;
color: #d33;
height: 24px;
width: 36px;
font-size: 30px;
line-height: 24px;
}
.in-page-edit .ssi-topIcons .ssi-closeIcon:hover {
background: none;
color: #f22;
height: 24px;
width: 36px;
font-size: 30px;
line-height: 24px;
}
.in-page-edit .ssi-closeIcon:before {
content: "✕";
font-size: 16px;
display: unset !important;
}
.in-page-edit: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;
}
.ipe-editor .editTools {
background: #eaf3ff;
border: 1px solid #c8ccd1;
border-bottom: none;
float: left;
width: calc(100% - 1px);
}
.ipe-editor .editTools .btnGroup {
float: left;
padding-right: 6px;
border-right: 1px solid #c8ccd1;
margin: 3px;
}
.ipe-editor .editTools .btnGroup.special-tools {
border-right: none;
border-left: 1px solid #c8ccd1;
padding-right: 3px;
padding-left: 6px;
}
.ipe-editor .editTools .label {
color: #888;
padding-right: 6px;
cursor: default;
}
.ipe-editor .editTools .formatSelect {
margin: 0;
}
.ipe-editor .editTools .btn {
color: #47494d;
font-size: 18px;
background: none;
box-shadow: none;
margin: 0 2px;
padding: 2px 6px;
}
.ipe-editor .editTools .btn * {
font-size: 18px;
margin: 0;
padding: 0;
}
.ipe-editor .editArea {
border: 1px solid #c8ccd1;
border-top: none;
border-radius: 0;
max-width: 100%;
min-width: 100%;
min-height: 350px;
margin: 0;
}
.notify .ssi-modalTitle {
font-style: normal;
font-family: inherit;
}
.in-page-edit .ssi-modalTitle #showEditNotice {
font-size: small;
display: block;
line-height: 0;
}
.in-page-edit .ssi-modalTitle #showEditNotice .material-icons {
font-size: small;
position: relative;
top: 2px;
}
.in-page-edit.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;
}
.in-page-edit .editSummary {
width: 98%;
margin: 4px auto 8px 0.5em
}
.in-page-edit .editOptionsLabel {
margin: 0 auto 16px auto;
}
.in-page-edit h4 {
margin: 2px 0 0 0;
}
.in-page-edit .btn {
font-size: 16px;
font-weight: bold;
color: #222;
border: 1px solid transparent;
border-radius: 2px;
padding: 0.25em 0.8em;
transition: all .1s;
}
.in-page-edit .btn:focus {
box-shadow: inset 0 0 0 1px #36c;
}
.in-page-edit .btn.btn-primary {
color: #fff;
background-color: #36c;
border-color: #36c;
}
.in-page-edit .btn.btn-primary:hover {
background-color: #447ff5;
border-color: #447ff5;
}
.in-page-edit .btn.btn-primary:active {
background-color: #2a4b8d;
}
.in-page-edit .btn.btn-secondary {
color: #252525;
border-color: #c8ccd1;
background-color: #f8f9fa;
}
.in-page-edit .btn.btn-secondary:hover {
background-color: #ffffff;
color: #454545;
}
.in-page-edit .btn.btn-secondary:active {
border: 1px solid #36c;
}
.in-page-edit .btn.btn-danger {
background: transparent;
color: #d33;
background-color: #f4f4f4;
}
.in-page-edit .btn.btn-danger:hover {
color: #ff4242;
background-color: #fafafa;
}
.in-page-edit .btn.btn-danger:active {
color: #d00;
border: 1px solid #36c;
}
.in-page-edit .btn:disabled {
background-color: #c8ccd1 !important;
color: #ffffff !important;
cursor: not-allowed;
}
.in-page-edit .btn:disabled:hover {
background-color: #c8ccd1 !important;
color: #ffffff !important;
}
.in-page-edit .btn:disabled .ssi-countDown {
color: #fff;
}
.in-page-edit input {
padding: 0.25em 0.35em;
border: 1px solid #ccc;
border-radius: 2px;
transition: all .2s;
}
.in-page-edit input:focus {
border-color: #36c;
box-shadow: inset 0 0 0 1px #36c;
}
.in-page-edit .dialog .ssi-modalContent {
padding-top: 18px;
font-size: large;
}
.in-page-edit .dialog .ssi-buttons .btn {
margin: 0;
padding: 0.5em;
background: transparent;
color: #252525;
border: 1px solid #efefef;
border-radius: 0;
width: 50%;
}
.in-page-edit .dialog .ssi-buttons .btn:hover {
background: #f8f8f8 !important;
}
.in-page-edit .btn.btn-single {
width: 100% !important;
}
.in-page-edit .dialog .ssi-buttons .btn.btn-danger {
color: #c33;
}
.in-page-edit .dialog .ssi-buttons {
padding: 0;
}
.in-page-edit .dialog .ssi-buttons .ssi-rightButtons {
width: 100%;
}
.in-page-edit-article-link-group:before {
content: "["
}
.in-page-edit-article-link-group:after {
content: "]"
}
.mw-editsection .in-page-edit-article-link-group:before {
content: " | "
}
.mw-editsection .in-page-edit-article-link-group:after {
content:""
}
.mw-diff-undo .in-page-edit-article-link-group {
display: none;
}
.in-page-edit .detailArea {
/* padding: 8px 0 0 4px; */
}
.in-page-edit .detailArea .detailBtnGroup {
margin-left: 1.25em;
}
/** 快速差异 **/
.quick-diff .diff-hidden-history {
color: #a8a8a8;
text-decoration: line-through;
}
/** 进度条 **/
.ipe-progress {
height: 1em;
border: 1px solid #c5c5c5;
border-radius: 2px;
background: white;
overflow: hidden;
}
.ipe-progress .ipe-progress-bar {
height: 100%;
width: auto;
background: #3360c3;
animation: progress 2s linear infinite;
opacity: 1;
}
.ipe-progress.done {
background: #3360c3;
transition: all 0.8s;
}
.ipe-progress.done .ipe-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%;
}
}
/* 通知框 */
.in-page-edit.notify {
border-radius: 0;
font-family: unset;
}
.in-page-edit.notify .ssi-modalTitle {
background: none;
color: unset;
}
/** 背景颜色 **/
.ssi-backdrop {
background: rgba(255,255,255,0.5);
}
/** 修改checkbox样式 **/
.in-page-edit label input[type="checkbox"] +span {
user-select: none;
line-height: 1.2em;
}
.in-page-edit label input[type="checkbox"] + span::before {
content: "\a0"; /* 不换行空格可以保持选择框的高度 */
display: inline-block;
width: 1.2em;
height: 1.2em;
margin-top: .15em;
margin-right: .375em;
border-radius: 2px;
background-color: #f8f8f8;
border: 1px solid #72777d;
cursor: pointer;
transition: all 0.12s;
}
.in-page-edit label input[type="checkbox"]:checked + span::before {
content: "\a0";
background-color: #36c;
background-image: url(https://common.wjghj.cn/images/8/8f/Checkmark.svg);
background-repeat: no-repeat;
}
.in-page-edit label input[type="checkbox"]:checked + span:hover:before {
background-color: #447ff5;
}
.in-page-edit label input[type="checkbox"]:active + span::before,
.in-page-edit label input[type="checkbox"]:focus + span::before {
box-shadow: inset 0 0px 0px 1px rgb(255, 255, 255);
border-color: #3366cc;
}
.in-page-edit label input[type="checkbox"] {
position: absolute;
clip:rect(0,0,0,0);
}
.in-page-edit label input[type="checkbox"]:disabled + span::before {
border-color: #d6d6d6;
}
.in-page-edit label input[type="checkbox"]:disabled:checked + span::before {
background-color: #a0a0a0;
}
/* 右下角小工具箱 */
#ipe-edit-toolbox {
position: fixed;
right: 32px;
bottom: 32px;
user-select: none;
z-index: 199;
}
#ipe-edit-toolbox .ipe-toolbox-btn {
color: white;
background: #bebebe;
text-align: center;
height: 45px;
width: 45px;
font-size: 30px;
line-height: 50px;
border: 0;
border-radius: 50%;
box-shadow: 0 0 5px gray;
text-shadow: 0 0 2px #4c4c4c;
padding: 0;
margin: 0;
cursor: pointer;
}
#ipe-edit-toolbox #toolbox-toggle {
transition: all .26s ease-in-out;
transform: rotate(0deg);
}
#ipe-edit-toolbox #toolbox-toggle.opened {
transform: rotate(45deg);
}
#ipe-edit-toolbox .btn-group.group1 .btn-tip-group {
transform: translate3d(0, 100%, 0);
}
#ipe-edit-toolbox .btn-group.group2 .btn-tip-group {
transform: translate3d(100%, 0, 0);
}
#ipe-edit-toolbox .btn-group .btn-tip-group {
transition-timing-function: ease-in-out;
transition-duration: .3s;
opacity: 0;
}
#ipe-edit-toolbox .btn-group.opened .btn-tip-group {
transform: translate3d(0, 0, 0);
opacity: 1;
}
#ipe-edit-toolbox .btn-group.opened .btn-tip-group:nth-of-type(1),
#ipe-edit-toolbox .btn-group:not(.opened) .btn-tip-group:nth-of-type(3) {
transition-delay: 0s;
}
#ipe-edit-toolbox .btn-group .btn-tip-group:nth-of-type(2) {
transition-delay: .06s;
}
#ipe-edit-toolbox .btn-group:not(.opened) .btn-tip-group:nth-of-type(1),
#ipe-edit-toolbox .btn-group.opened .btn-tip-group:nth-of-type(3) {
transition-delay: .108s
}
/* 不显示时使其完全缩小到没有,以防被点到 */
#ipe-edit-toolbox .btn-group:not(.opened) {
transform: scaleZ(0);
transition-delay: .408s;
}
#ipe-edit-toolbox .btn-group.opened {
transform: scaleZ(1);
}
#ipe-edit-toolbox .ipe-toolbox-btn#toolbox-toggle {
position: absolute;
right: 0;
bottom: 0;
width: 50px;
height: 50px;
background: #bebebe;
font-size: 40px;
line-height: 56px;
margin: 0;
}
#ipe-edit-toolbox .ipe-toolbox-btn#toolbox-toggle.click {
box-shadow: 0 0 4px gray, 0 0 10px #444 inset;
}
#toolbox-toggle.click:before {
content: "lock";
display: block;
position: absolute;
bottom: 0;
right: 0;
font-size: 12px;
transform: rotateZ(-45deg)
}
#ipe-edit-toolbox .ipe-toolbox-btn#edit-btn {
background: #45a8ff;
}
#ipe-edit-toolbox .ipe-toolbox-btn#redirectfrom-btn {
background: #ffa530;
}
#ipe-edit-toolbox .ipe-toolbox-btn#redirectto-btn {
background: #ff4985;
}
#ipe-edit-toolbox .ipe-toolbox-btn#preference-btn {
background: #4caf50;
}
#ipe-edit-toolbox .ipe-toolbox-btn#deletepage-btn {
background: #f00000;
}
#ipe-edit-toolbox .ipe-toolbox-btn#renamepage-btn {
background: #ca7efe;
}
#ipe-edit-toolbox .ipe-toolbox-btn.not-allowed {
background: #cdcdcd !important;
}
#ipe-edit-toolbox .ipe-toolbox-btn.not-allowed:before {
content: "add";
color: red;
display: block;
font-size: 86px;
position: absolute;
transform: rotate(45deg);
margin-top: 2px;
margin-left: -22px;
}
#ipe-edit-toolbox .btn-group {
position: absolute;
float: right;
list-style: none;
margin: 0;
}
#ipe-edit-toolbox .btn-group.group1 {
bottom: calc(50px + 6px);
right: 2px;
}
#ipe-edit-toolbox .btn-group.group2 {
bottom: 0;
right: calc(50px + 6px);
}
#ipe-edit-toolbox .btn-group.group1 .btn-tip-group {
margin-bottom: 6px;
}
#ipe-edit-toolbox .btn-group.group2 .btn-tip-group {
margin-right: 6px;
}
#ipe-edit-toolbox .btn-group.opened {
visibility: visible
}
#ipe-edit-toolbox .btn-tip-group .btn-tip {
position: absolute;
text-align: center;
font-size: 12px;
width: 6em;
right: -12px;
top: -2em;
background: white;
padding: 0px 4px;
box-shadow: 0 0 4px gray;
display: none;
}
#ipe-edit-toolbox .btn-tip-group:hover .btn-tip {
display: block;
}
#ipe-edit-toolbox .btn-tip-group .btn-tip:after {
content: "";
display: block;
border: 5px solid transparent;
border-right-color: #fff;
border-bottom-color: #fff;
position: absolute;
bottom: -4px;
left: calc(50% - 2.5px);
transform: rotate(45deg);
}
/**
* 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;
}