| 1 |
@import 'mediawiki.skin.variables.less'; |
| 2 |
|
| 3 |
/* This code initially was stolen shamelessly from enwikipedia's Common.css */ |
| 4 |
table.mw-abuselog-details { |
| 5 |
margin: 1em 1em 1em 0; |
| 6 |
background: @background-color-interactive-subtle; |
| 7 |
border: @border-base; |
| 8 |
border-collapse: collapse; |
| 9 |
width: 100%; |
| 10 |
table-layout: fixed; |
| 11 |
|
| 12 |
th, |
| 13 |
td { |
| 14 |
border: @border-base; |
| 15 |
padding: 0.2em; |
| 16 |
} |
| 17 |
|
| 18 |
th { |
| 19 |
background: @background-color-interactive; |
| 20 |
text-align: center; |
| 21 |
} |
| 22 |
|
| 23 |
caption { |
| 24 |
font-weight: bold; |
| 25 |
} |
| 26 |
} |
| 27 |
|
| 28 |
.mw-abusefilter-log-hidden-entry { |
| 29 |
text-decoration: line-through; |
| 30 |
color: @color-disabled; |
| 31 |
font-style: italic; |
| 32 |
} |
| 33 |
|
| 34 |
body td.mw-abusefilter-history-changed { |
| 35 |
background: @background-color-destructive-subtle; |
| 36 |
font-weight: bold; |
| 37 |
} |
| 38 |
|
| 39 |
.mw-abuselog-var-value { |
| 40 |
white-space: pre-wrap; |
| 41 |
font-family: monospace; |
| 42 |
} |
| 43 |
|
| 44 |
div.mw-abuselog-var-value { |
| 45 |
max-height: 25em; |
| 46 |
max-width: 100%; |
| 47 |
overflow: auto; |
| 48 |
} |
| 49 |
|
| 50 |
td.mw-abuselog-var { |
| 51 |
width: 30%; |
| 52 |
} |
| 53 |
|
| 54 |
table.mw-abusefilter-list-scrollable { |
| 55 |
display: block; |
| 56 |
border: 0; |
| 57 |
overflow-x: auto; |
| 58 |
} |
| 59 |
|
| 60 |
.client-nojs .mw-abusefilter-javascript-tools { |
| 61 |
display: none; |
| 62 |
} |
| 63 |
|
| 64 |
#mw-abusefilter-throttle-parameters, |
| 65 |
#mw-abusefilter-warn-parameters, |
| 66 |
#mw-abusefilter-disallow-parameters, |
| 67 |
#mw-abusefilter-tag-parameters, |
| 68 |
#mw-abusefilter-block-parameters { |
| 69 |
width: 50%; |
| 70 |
padding-left: 3em; |
| 71 |
} |
| 72 |
|
| 73 |
.mw-abusefilter-preview-buttons { |
| 74 |
text-align: center; |
| 75 |
} |
| 76 |
|
| 77 |
#mw-abusefilter-warn-preview, |
| 78 |
#mw-abusefilter-disallow-preview { |
| 79 |
border: @border-base; |
| 80 |
margin: 2em; |
| 81 |
padding: 1em; |
| 82 |
} |
| 83 |
|
| 84 |
.client-nojs #mw-abusefilter-export-link, |
| 85 |
.client-js #mw-abusefilter-export { |
| 86 |
display: none; |
| 87 |
} |
| 88 |
|
| 89 |
tr.mw-abusefilter-list-disabled, |
| 90 |
tr.mw-abusefilter-list-disabled td { |
| 91 |
color: @color-disabled; |
| 92 |
} |
| 93 |
|
| 94 |
tr.mw-abusefilter-list-deleted, |
| 95 |
tr.mw-abusefilter-list-deleted td { |
| 96 |
color: @color-subtle; |
| 97 |
} |
| 98 |
|
| 99 |
tr.mw-abusefilter-list-throttled, |
| 100 |
tr.mw-abusefilter-list-throttled td { |
| 101 |
color: @color-error; |
| 102 |
} |
| 103 |
|
| 104 |
.mw-abusefilter-examine-match, |
| 105 |
.mw-abusefilter-syntaxresult-ok, |
| 106 |
li.mw-abusefilter-changeslist-match { |
| 107 |
/* @embed */ |
| 108 |
background-image: url( yes_check.png ); |
| 109 |
} |
| 110 |
|
| 111 |
.mw-abusefilter-examine-nomatch, |
| 112 |
.mw-abusefilter-syntaxresult-error, |
| 113 |
li.mw-abusefilter-changeslist-nomatch { |
| 114 |
/* @embed */ |
| 115 |
background-image: url( red_x.png ); |
| 116 |
} |
| 117 |
|
| 118 |
#mw-abusefilter-edit-rules .mw-input { |
| 119 |
width: 100%; /* So that we can use relative width for mw-abusefilter-editor */ |
| 120 |
} |
| 121 |
|
| 122 |
#mw-abusefilter-editing-form .mw-label { |
| 123 |
/* See T231962, the 100% width set above may squeeze the labels */ |
| 124 |
white-space: nowrap; |
| 125 |
} |
| 126 |
|
| 127 |
div.mw-abusefilter-editor { |
| 128 |
width: 90%; /* Same as wpFilterRules and mw-abusefilter-notes-editor */ |
| 129 |
height: 30em; /* Similar to wpFilterRules */ |
| 130 |
line-height: 1.5em; |
| 131 |
border: @border-base; |
| 132 |
display: none; |
| 133 |
} |
| 134 |
|
| 135 |
#wpFilterRules { |
| 136 |
width: 90%; /* Same as mw-abusefilter-editor */ |
| 137 |
height: 27em; /* Same as mw-abusefilter-editor, minus extra space */ |
| 138 |
} |
| 139 |
|
| 140 |
#mw-abusefilter-notes-editor, |
| 141 |
#mw-abusefilter-edit-description-input, |
| 142 |
#mw-abusefilter-edit-group-input { |
| 143 |
width: 90%; /* Same as mw-abusefilter-editor */ |
| 144 |
max-width: none; /* OOUI's default of 50em is too low for this field */ |
| 145 |
} |
| 146 |
|
| 147 |
#mw-abusefilter-switcheditor { |
| 148 |
/* Hidden until the click handler is installed */ |
| 149 |
display: none; |
| 150 |
} |
| 151 |
|
| 152 |
fieldset.mw-abusefilter-edit-buttons { |
| 153 |
margin-top: 1em; |
| 154 |
} |
| 155 |
|
| 156 |
.mw-abusefilter-load-filter-id { |
| 157 |
max-width: 50em; |
| 158 |
} |
| 159 |
|
| 160 |
.client-nojs .mw-abusefilter-load-filter-id { |
| 161 |
display: none; |
| 162 |
} |
| 163 |
|
| 164 |
/* Needs reinforced CSS selectors to override MonoBook's .special li */ |
| 165 |
/* @see T78304, T331211 */ |
| 166 |
#mw-abusefilter-syntaxresult, |
| 167 |
#mw-content-text li.mw-abusefilter-changeslist-nomatch, |
| 168 |
#mw-content-text li.mw-abusefilter-changeslist-match { |
| 169 |
/* Do not consolidate these into a "background:" rule; it will override the background-image: settings in above rulesets */ |
| 170 |
background-repeat: no-repeat; |
| 171 |
padding-left: 25px; |
| 172 |
background-position: left center; |
| 173 |
} |
| 174 |
|
| 175 |
/* Name is in site content language */ |
| 176 |
/* @noflip */ |
| 177 |
.sitedir-ltr .TablePager_col_af_public_comments { /* stylelint-disable-line selector-class-pattern */ |
| 178 |
direction: ltr; |
| 179 |
} |
| 180 |
|
| 181 |
/* @noflip */ |
| 182 |
.sitedir-rtl .TablePager_col_af_public_comments { /* stylelint-disable-line selector-class-pattern */ |
| 183 |
direction: rtl; |
| 184 |
} |
| 185 |
|
| 186 |
#mw-abusefilter-filter-tools { |
| 187 |
display: inline; |
| 188 |
} |
| 189 |
|
| 190 |
#mw-abusefilter-expr-result { |
| 191 |
word-break: break-all; |
| 192 |
/* Shown dinamically via JS */ |
| 193 |
display: none; |
| 194 |
} |
| 195 |
|
| 196 |
.mw-abusefilter-history-buttons { |
| 197 |
text-align: center; |
| 198 |
} |
| 199 |
|
| 200 |
.mw-abusefilter-tools-error { |
| 201 |
color: @color-error; |
| 202 |
} |
| 203 |
|
| 204 |
/* Ace highlight customisation */ |
| 205 |
|
| 206 |
span.ace_invalid.ace_deprecated { /* stylelint-disable-line selector-class-pattern */ |
| 207 |
color: #fe6767; |
| 208 |
background-color: initial; |
| 209 |
} |
| 210 |
|
| 211 |
span.ace_support.ace_function { /* stylelint-disable-line selector-class-pattern */ |
| 212 |
color: #495dd0; |
| 213 |
} |