| 1 |
// stylelint-disable selector-max-id |
| 2 |
@import '../../minerva.less/minerva.variables.less'; |
| 3 |
@import '../../minerva.less/minerva.mixins.less'; |
| 4 |
@import 'mediawiki.mixins.less'; |
| 5 |
|
| 6 |
.ns-special { |
| 7 |
.mw-body .mw-first-heading { |
| 8 |
font-size: 1.5em; |
| 9 |
font-weight: bold; |
| 10 |
} |
| 11 |
|
| 12 |
.heading-holder { |
| 13 |
padding-top: 26px; |
| 14 |
// prevents margin collapsing. i.e. makes .heading-holder height match |
| 15 |
// the bottom margin on .page-header, a child element. |
| 16 |
overflow: auto; |
| 17 |
} |
| 18 |
|
| 19 |
.pre-content h1, |
| 20 |
.content .mw-heading1, |
| 21 |
.content h1, |
| 22 |
.content .mw-heading2, |
| 23 |
.content h2 { |
| 24 |
// Consistent header font across special pages |
| 25 |
font-family: @font-family-base; |
| 26 |
} |
| 27 |
|
| 28 |
.content-header { |
| 29 |
h1, |
| 30 |
h2 { |
| 31 |
text-align: center; |
| 32 |
} |
| 33 |
|
| 34 |
.mw-mf-user::before { |
| 35 |
opacity: @opacity-icon-subtle; |
| 36 |
} |
| 37 |
} |
| 38 |
} |
| 39 |
|
| 40 |
// Used by MobileSpecialPageFeed.php in MobileFrontend |
| 41 |
.truncated-text { |
| 42 |
.text-overflow( @visible: false ); |
| 43 |
|
| 44 |
// FIXME: this works only in WebKit |
| 45 |
&.multi-line { |
| 46 |
white-space: normal; |
| 47 |
display: -webkit-box; |
| 48 |
-webkit-box-orient: vertical; |
| 49 |
} |
| 50 |
|
| 51 |
&.two-line { |
| 52 |
-webkit-line-clamp: 2; |
| 53 |
// fallback for non-WebKit |
| 54 |
max-height: 2.6em; |
| 55 |
} |
| 56 |
} |
| 57 |
|
| 58 |
/* Watchlist with AMC disabled */ |
| 59 |
html.mw-mf-amc-clientpref-0 body.mw-special-Watchlist { |
| 60 |
#mw-content-subtitle { |
| 61 |
margin: 0; |
| 62 |
} |
| 63 |
|
| 64 |
.watchlistDetails, |
| 65 |
.mw-rcfilters-head, |
| 66 |
.mw-fr-reviewlink, |
| 67 |
.mw-rcfilters-spinner, |
| 68 |
.mw-rcfilters-container { |
| 69 |
display: none; |
| 70 |
} |
| 71 |
|
| 72 |
.mw-rcfilters-ui-changesListWrapperWidget { |
| 73 |
border-top: 1px solid @border-color-subtle; |
| 74 |
margin: 20px 0 0; |
| 75 |
width: 100%; |
| 76 |
max-width: none; |
| 77 |
} |
| 78 |
} |
| 79 |
|
| 80 |
/* Hide edit raw watchlist and clear watchlist options for non-advanced logged in users */ |
| 81 |
html.mw-mf-amc-clientpref-0 { |
| 82 |
body.mw-special-Watchlist, |
| 83 |
body.mw-special-EditWatchlist { |
| 84 |
/* Hide third and forth tabs */ |
| 85 |
#p-associated-pages .minerva__tab:nth-child( 3 ), |
| 86 |
#p-associated-pages .minerva__tab:nth-child( 4 ) { |
| 87 |
display: none; |
| 88 |
} |
| 89 |
} |
| 90 |
} |
| 91 |
|
| 92 |
body.mw-special-Newpages { |
| 93 |
.mw-contributions-list { |
| 94 |
padding: 0; |
| 95 |
margin: 0; |
| 96 |
|
| 97 |
li { |
| 98 |
.changeslist-row(); |
| 99 |
} |
| 100 |
} |
| 101 |
|
| 102 |
.mw-index-pager-list-header { |
| 103 |
.changeslist-header(); |
| 104 |
box-sizing: border-box; |
| 105 |
} |
| 106 |
|
| 107 |
.mw-newpages-pagename { |
| 108 |
font-weight: bold; |
| 109 |
} |
| 110 |
|
| 111 |
.mw-newpages-time, |
| 112 |
.mw-userlink, |
| 113 |
.mw-newpages-pagename { |
| 114 |
display: block; |
| 115 |
} |
| 116 |
|
| 117 |
.comment, |
| 118 |
.mw-userlink, |
| 119 |
.mw-usertoollinks { |
| 120 |
float: left; |
| 121 |
padding: 0; |
| 122 |
} |
| 123 |
|
| 124 |
.comment { |
| 125 |
clear: both; |
| 126 |
} |
| 127 |
|
| 128 |
.mw-usertoollinks { |
| 129 |
margin-left: 8px; |
| 130 |
} |
| 131 |
|
| 132 |
.mw-changeslist-date { |
| 133 |
display: none; |
| 134 |
} |
| 135 |
|
| 136 |
.mw-changeslist-time { |
| 137 |
display: inline-block; |
| 138 |
} |
| 139 |
} |
| 140 |
|
| 141 |
.mw-mf-special-page { |
| 142 |
#bodyContent.content { |
| 143 |
max-width: none; |
| 144 |
margin: 0; |
| 145 |
width: auto; |
| 146 |
|
| 147 |
ul { |
| 148 |
list-style: none; |
| 149 |
padding: 0; |
| 150 |
} |
| 151 |
|
| 152 |
// override core .content li rule |
| 153 |
.page-header-bar li { |
| 154 |
margin-bottom: 0; |
| 155 |
} |
| 156 |
|
| 157 |
.mw-mf-history-wrap-link { |
| 158 |
@media all and ( min-width: @min-width-breakpoint-desktop ) { |
| 159 |
margin: 0; |
| 160 |
max-width: none; |
| 161 |
} |
| 162 |
} |
| 163 |
} |
| 164 |
} |