| 1 |
@import 'minerva.variables.less'; |
| 2 |
|
| 3 |
.editor-textarea() { |
| 4 |
box-sizing: border-box; |
| 5 |
width: 100%; |
| 6 |
// Note if a textarea has a .mw-ui-input class, this may be overridden |
| 7 |
padding: 10px @padding-content 10px @padding-content; |
| 8 |
// stylelint-disable-next-line plugin/no-unsupported-browser-features |
| 9 |
resize: none; |
| 10 |
} |
| 11 |
|
| 12 |
.clearfix() { |
| 13 |
display: block; |
| 14 |
content: ''; |
| 15 |
clear: both; |
| 16 |
} |
| 17 |
|
| 18 |
// Mixins for history, contributions, watchlist and recent changes' changes list |
| 19 |
.changeslist-minor-edit() { |
| 20 |
background-color: @background-color-interactive; |
| 21 |
position: absolute; |
| 22 |
bottom: 10px; |
| 23 |
left: 85px; |
| 24 |
border-radius: @border-radius-base; |
| 25 |
padding: 0 6px 1px; |
| 26 |
font-size: @font-size-minerva-small; |
| 27 |
font-weight: bold; |
| 28 |
} |
| 29 |
|
| 30 |
.changeslist-make-row-linkable() { |
| 31 |
position: absolute; |
| 32 |
right: 0; |
| 33 |
left: 0; |
| 34 |
top: 0; |
| 35 |
bottom: 0; |
| 36 |
// !important to override any link styles. |
| 37 |
color: transparent !important; |
| 38 |
z-index: @z-index-above-content; |
| 39 |
} |
| 40 |
|
| 41 |
.changeslist-meta() { |
| 42 |
position: absolute; |
| 43 |
left: 0; |
| 44 |
font-size: @font-size-minerva-small; |
| 45 |
} |
| 46 |
|
| 47 |
.changeslist-row() { |
| 48 |
font-size: 0.85em; |
| 49 |
list-style: none; |
| 50 |
position: relative; |
| 51 |
min-height: 80px; |
| 52 |
width: 100%; |
| 53 |
/* !important to override the too-specific rule .content ol li, .content ul li */ |
| 54 |
margin: 0 !important; |
| 55 |
padding: 12px 0; |
| 56 |
border-bottom: @border-width-base @border-style-base @border-color-muted; |
| 57 |
|
| 58 |
&::before, |
| 59 |
&::after { |
| 60 |
.clearfix(); |
| 61 |
} |
| 62 |
} |
| 63 |
|
| 64 |
.changeslist-row-item() { |
| 65 |
color: #72777d; |
| 66 |
margin: 0.5em 0; |
| 67 |
padding-left: 85px; |
| 68 |
font-size: @font-size-minerva-small; |
| 69 |
} |
| 70 |
|
| 71 |
.changeslist-header() { |
| 72 |
background-color: @background-color-interactive; |
| 73 |
color: @color-subtle; |
| 74 |
display: block; |
| 75 |
width: 100%; |
| 76 |
padding: 0.5em 16px 0.4em; |
| 77 |
font-size: 0.85em; |
| 78 |
font-weight: bold; |
| 79 |
} |
| 80 |
|
| 81 |
// Generic mixin for applying styles to text that accompanies/adds context to workflows |
| 82 |
.secondary-text() { |
| 83 |
font-size: @font-size-minerva-small; |
| 84 |
color: #72777d; |
| 85 |
margin-top: 0.5em; |
| 86 |
line-height: 1.4; |
| 87 |
} |
| 88 |
|
| 89 |
.night-mode-invert-image() { |
| 90 |
filter: invert( 1 ) hue-rotate( 180deg ); |
| 91 |
} |
| 92 |
|
| 93 |
/** This mixin should only be used where it's safe to do so. It should not be applied |
| 94 |
to content which may have important information. */ |
| 95 |
.night-mode-strip-all-colors-when-safe() { |
| 96 |
background: inherit !important; |
| 97 |
color: inherit !important; |
| 98 |
/* If a border is defined retain it but make it black. If no border this won't do anything. */ |
| 99 |
border-color: @border-color-subtle !important; |
| 100 |
} |