User:SunAfterRain/js/AntiVandal.css
外观
< User:SunAfterRain | js
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
/* from https://en.wikipedia.org/w/index.php?title=User:Ingenuity/AntiVandal.js&oldid=1207939150 */
/* general */
body,
html {
width: 100%;
height: 100%;
font-family: Arial, Helvetica, sans-serif;
overflow-x: hidden;
margin: 0;
}
* {
box-sizing: border-box;
}
.unbold {
font-weight: initial;
}
.sectionHeading {
margin: 0;
display: inline-block;
font-size: 1em;
}
.centered {
text-align: center;
}
/* login form */
.loginFormContainer {
display: flex;
flex-direction: column;
justify-content: center;
padding: 30px;
width: 50%;
min-width: 400px;
height: 100%;
margin: auto;
}
.loginFormInput:not([type=checkbox]) {
display: block;
}
.loginFormInput:not([type=checkbox]) {
margin-bottom: 10px;
padding: 5px;
border: 1px solid #ccc;
}
.loginFormButton {
display: block;
width: 100%;
height: 30px;
text-align: center;
margin-top: 10px;
}
.loginFormCheckboxContainer {
margin-bottom: 10px;
}
.loginFormLabel {
font-size: 0.9em;
}
.loginError {
color: red;
font-size: 0.9em;
}
/* main */
.queueContainer,
.infoContainer {
width: 25%;
max-width: 300px;
height: 100%;
}
.queueContainer {
overflow-y: scroll;
overflow-x: hidden;
}
.diffContainer {
width: 50%;
border-left: 1px solid #ccc;
border-right: 1px solid #ccc;
flex-grow: 2;
}
.mainContainer {
display: flex;
}
.mainFullHeight {
height: 100%;
}
/* queue */
.newPageWarning {
background: yellow;
position: absolute;
top: 10px;
left: 10px;
padding: 5px;
border-radius: 5px;
}
.queueItem,
.abuseFilterDisallow {
padding: 10px;
border-bottom: 1px solid #ccc;
position: relative;
}
.abuseFilterDisallow {
padding: 10px 10px 10px 5px;
border-left: 5px solid red;
}
.queueItemTitle,
.queueItemUser,
.infoItemTitle {
text-decoration: none;
color: black;
font-size: 0.9em;
text-overflow: clip;
white-space: nowrap;
overflow: hidden;
width: fit-content;
display: block;
}
.queueItemTitle span,
.queueItemUser span {
margin-right: 10px;
}
.queueItemUser,
.infoItemTitle {
margin-top: 5px;
font-size: 0.8em;
}
.queueItemChange {
width: 75px;
height: 100%;
position: absolute;
top: 0;
left: calc(100% - 75px);
font-size: 0.9em;
display: flex;
align-items: center;
justify-content: right;
padding-right: 10px;
background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}
.queueItemChangeText {
position: relative;
z-index: 3;
}
.queueItemTag {
border-radius: 3px;
background: #ddd;
padding: 2px 4px;
margin: 3px;
font-size: 0.7em;
position: relative;
z-index: 2;
}
.queueItemTags {
white-space: nowrap;
}
.queueControls,
.diffToolbar {
padding: 10px;
font-size: 1em;
font-weight: bold;
height: 50px;
position: sticky;
background: white;
z-index: 4;
border-bottom: 1px solid #ccc;
top: 0;
}
.queueControls .sectionHeading {
margin-top: 5px;
}
.queueControl {
float: right;
padding: 5px;
font-size: 1.2em;
cursor: pointer;
}
.currentQueueItem {
background: #eee;
}
.queueStatusContainer {
top: calc(100% - 60px);
z-index: 5;
position: fixed;
font-size: 0.8em;
width: 25%;
max-width: 300px;
text-align: center;
}
.queueStatus {
background: #888;
color: white;
border-radius: 7px;
padding: 8px;
width: fit-content;
margin: auto;
}
/* diff viewer */
.diffContainer {
overflow-y: auto;
}
.diffContainer td,
.diffContainer tr {
overflow-wrap: anywhere;
}
.diff-addedline {
background: rgba(0, 255, 0, 0.3);
}
ins {
background: rgba(0, 255, 0, 0.5);
text-decoration: none;
}
.diff-deletedline {
background: rgba(255, 0, 0, 0.3);
}
del {
background: rgba(255, 0, 0, 0.5);
text-decoration: none;
}
.diff-lineno {
border-bottom: 1px dashed grey;
background: rgba(0, 0, 0, 0.2);
}
.diffChangeContainer table,
.diffChangeContainer tbody {
font-family: monospace;
vertical-align: baseline;
}
.diffToolbar {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
position: fixed;
width: calc(100% - 300px);
}
.diffToolbarItem {
color: black;
text-decoration: none;
margin: 0 10px;
}
.diffToolbarItem a {
color: black;
text-decoration: none;
}
.diffChangeContainer td:not(.diff-marker) {
width: 50%;
}
.diffToolbarOverlay {
flex-basis: 100%;
display: flex;
justify-content: center;
font-weight: normal;
padding: 0 20px;
white-space: nowrap;
overflow: hidden;
}
.diffChangeContainer {
margin-top: 50px;
position: relative;
}
.diffContainer {
max-height: calc(100% - 40px);
}
.diffActionContainer {
position: fixed;
height: 40px;
top: calc(100% - 40px);
background: white;
display: flex;
align-items: center;
border-top: 1px solid #ccc;
width: calc(100% - 602px);
}
.diffActionItem {
height: 100%;
width: fit-content;
cursor: pointer;
user-select: none;
padding: 0 15px;
display: flex;
align-items: center;
text-align: center;
position: relative;
z-index: 5;
}
.diffActionBox {
position: absolute;
left: 0;
top: -410px;
height: 410px;
width: 390px;
border: 1px solid #ccc;
cursor: initial;
user-select: initial;
text-align: left;
display: none;
padding: 15px;
background: white;
overflow-y: scroll;
overflow-x: hidden;
}
.diffActionItem:hover {
background: #eee;
}
.diffWarning {
padding: 5px;
border-radius: 3px;
width: 35px;
display: inline-block;
font-size: 0.8em;
user-select: none;
cursor: pointer;
text-align: center;
}
.diffWarningLabel {
font-size: 0.9em;
white-space: nowrap;
}
.diffProgressContainer {
position: fixed;
top: calc(100% - 80px);
height: 40px;
display: flex;
justify-content: flex-end;
align-items: center;
width: calc(100% - 600px);
padding: 0px 20px;
}
.diffProgressBar {
border-radius: 5px;
width: 150px;
height: 25px;
background: #ddd;
font-size: 0.8em;
display: flex;
align-items: center;
justify-content: center;
position: relative;
margin-left: 10px;
opacity: 1;
transition: 0.3s;
}
.diffProgressBarOverlay {
position: absolute;
top: 0;
left: 0;
border-radius: 5px;
width: 0px;
transition: 0.3s;
height: 100%;
background: rgb(0, 170, 255);
}
#aivReportIcon,
#uaaReportIcon {
margin-left: 10px;
}
.diffActionBox a {
color: black;
}
.diffProgressBarText {
position: relative;
}
.diffWarningsContainer td {
padding: 2px;
}
.warningLevel1 {
background: rgb(138, 203, 223);
}
.warningLevel2 {
background: rgb(215, 223, 138);
}
.warningLevel3 {
background: rgb(226, 170, 97);
}
.warningLevel4 {
background: rgb(224, 82, 64);
}
.warningLevel5 {
color: white;
background: rgb(0, 0, 0);
}
/* info container */
.infoContainer {
margin-top: 50px;
height: calc(100% - 50px);
}
.infoContainerItem {
height: 50%;
overflow-y: scroll;
overflow-x: hidden;
border-bottom: 1px solid #ccc;
}
.infoItemTitle {
margin-bottom: 3px;
}
.infoItemTitle .fas {
width: 20px;
}
.infoItemTime {
font-size: 0.8em;
}
.infoContainerItemHeading {
padding: 10px;
border-bottom: 1px solid #ccc;
}
.infoEditCount,
.infoWarnLevel {
font-size: 0.8em;
}
.infoEditCount {
margin-right: 10px;
}
/* settings */
.settings,
.changelog {
display: none;
align-items: center;
justify-content: center;
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 10;
}
.changelog {
display: flex;
}
.changelogContainer {
display: block !important;
padding: 20px;
}
.settingsContainer,
.changelogContainer {
width: 60%;
min-width: 800px;
height: 60%;
min-height: 600px;
background: white;
border: 1px solid #bbb;
position: relative;
display: flex;
flex-wrap: wrap;
}
.settings input {
position: relative;
z-index: 10;
}
.settingsSectionContainer {
width: 150px;
border-right: 1px solid #ccc;
height: 100%;
position: relative;
z-index: 10;
}
.settingsSection {
border-bottom: 1px solid #ccc;
padding: 10px;
user-select: none;
cursor: pointer;
}
.settingsSectionSelected {
background: #ddd;
}
.settingsButton {
width: 100px;
height: 30px;
}
.settingsButtonContainer,
.settingsCloseContainer {
text-align: right;
position: absolute;
top: calc(100% - 40px);
width: calc(100% - 10px);
left: 0;
user-select: none;
flex-basis: 100%;
}
.settingsCloseContainer {
top: 10px;
}
.settingsClose {
cursor: pointer;
font-size: 1.5em;
}
.selectedSettings {
padding: 15px;
max-width: calc(100% - 150px);
}
.setControls {
padding: 5px 10px;
background: #ddd;
border-radius: 3px;
cursor: pointer;
user-select: none;
text-align: center;
width: 150px;
font-size: 0.9em;
}
.palette {
display: flex;
border-radius: 7px;
margin: 10px;
cursor: pointer;
overflow: hidden;
}
.paletteColor {
width: 30px;
height: 30px;
}
.controlsSettings table td,
.controlsSettings table th {
padding: 5px;
}
.message {
position: absolute;
text-align: right;
left: 0;
width: calc(100% - 20px);
}
#reportIcon {
margin-left: 10px;
}
#user-being-reported,
#report-notice {
font-size: 0.8em;
}
.ores {
height: 5px;
background: #ddd;
position: absolute;
top: calc(100% - 5px);
left: 0;
width: 100%;
}
.ores-red {
background: red;
}
.ores-orange {
background: orange;
}
.ores-yellow {
background: yellow;
}
label[for=minORES] {
display: block;
}
#queueItems {
font-weight: normal;
}
#revert-summary {
width: 100%;
height: 2em;
padding: 5px;
margin: 10px 0;
}
.paletteCheck {
padding: 6px;
}
@media screen and (max-width: 1200px) {
.diffActionContainer {
width: calc(50% - 2px);
}
.diffToolbar {
width: calc(75%);
}
}