| 1 |
/* |
| 2 |
A file for css that optimises the Minerva skin on larger devices. |
| 3 |
*/ |
| 4 |
|
| 5 |
@import '../../../../minerva.less/minerva.variables.less'; |
| 6 |
@import '../../../../minerva.less/minerva.mixins.less'; |
| 7 |
|
| 8 |
@media screen and ( min-width: @min-width-breakpoint-tablet ) { |
| 9 |
.client-js #searchIcon { // stylelint-disable-line selector-max-id |
| 10 |
display: none; |
| 11 |
} |
| 12 |
|
| 13 |
// stylelint-disable selector-max-id |
| 14 |
// FIXME: Have a class that identifies all of these selectors |
| 15 |
.pre-content, |
| 16 |
/* Form only pages e.g. Special:MobileOptions */ |
| 17 |
.minerva-anon-talk-message, |
| 18 |
#mw-content-text > form, |
| 19 |
.content, |
| 20 |
.content-unstyled, |
| 21 |
.post-content { |
| 22 |
max-width: @max-width-content-tablet; |
| 23 |
margin: 0 @padding-content-tablet; |
| 24 |
} |
| 25 |
// stylelint-enable selector-max-id |
| 26 |
|
| 27 |
figure[ typeof~='mw:File/Thumb' ], |
| 28 |
figure[ typeof~='mw:File/Frame' ] { |
| 29 |
clear: right; |
| 30 |
clear: inline-end; |
| 31 |
float: right; |
| 32 |
float: inline-end; |
| 33 |
margin-left: 1.4em; |
| 34 |
margin-right: 0; |
| 35 |
margin-inline: 1.4em 0; |
| 36 |
} |
| 37 |
|
| 38 |
.content { |
| 39 |
// Classes added by thumbnails |
| 40 |
// e.g. [[File:Scholars mate animation.gif|frame|left|"[[Scholar's mate]]"]] |
| 41 |
// We use @noflip because we still want .tleft to be on the left and |
| 42 |
// .tright to be on the right in RTL languages. |
| 43 |
figure[ typeof~='mw:File/Thumb' ], |
| 44 |
figure[ typeof~='mw:File/Frame' ], |
| 45 |
.thumb { |
| 46 |
max-width: calc( @max-width-breakpoint-mobile - @margin-content ); |
| 47 |
|
| 48 |
&.mw-halign-left, |
| 49 |
&.tleft { |
| 50 |
/* @noflip */ |
| 51 |
float: left; |
| 52 |
/* @noflip */ |
| 53 |
clear: left; |
| 54 |
/* @noflip */ |
| 55 |
margin-left: 0; |
| 56 |
/* @noflip */ |
| 57 |
margin-right: 1.4em; |
| 58 |
} |
| 59 |
|
| 60 |
&.mw-halign-right, |
| 61 |
&.tright { |
| 62 |
/* @noflip */ |
| 63 |
float: right; |
| 64 |
/* @noflip */ |
| 65 |
clear: right; |
| 66 |
/* @noflip */ |
| 67 |
margin-left: 1.4em; |
| 68 |
/* @noflip */ |
| 69 |
margin-right: 0; |
| 70 |
} |
| 71 |
|
| 72 |
&.mw-halign-none { |
| 73 |
float: none; |
| 74 |
clear: none; |
| 75 |
margin-left: 0; |
| 76 |
margin-right: 0; |
| 77 |
} |
| 78 |
|
| 79 |
&.mw-halign-center { |
| 80 |
float: none; |
| 81 |
clear: none; |
| 82 |
margin-left: auto; |
| 83 |
margin-right: auto; |
| 84 |
} |
| 85 |
} |
| 86 |
|
| 87 |
table { |
| 88 |
caption { |
| 89 |
background: inherit; // T170344 |
| 90 |
} |
| 91 |
|
| 92 |
tbody { |
| 93 |
display: table-row-group; |
| 94 |
} |
| 95 |
} |
| 96 |
} |
| 97 |
|
| 98 |
a.last-modified-bar { |
| 99 |
background-color: transparent; |
| 100 |
padding-left: 0; |
| 101 |
padding-right: 0; |
| 102 |
font-size: 1em; |
| 103 |
} |
| 104 |
} |
| 105 |
|
| 106 |
@media screen and ( min-width: @max-width-content-tablet ) { |
| 107 |
// stylelint-disable-next-line selector-max-id |
| 108 |
.banner-container, |
| 109 |
.minerva-anon-talk-message, |
| 110 |
.minerva-header, |
| 111 |
.page-header-bar, |
| 112 |
.overlay-header, |
| 113 |
/* FIXME: Generic content class needed? */ |
| 114 |
.content, |
| 115 |
.overlay-content, |
| 116 |
.content-unstyled, |
| 117 |
.pre-content, |
| 118 |
.post-content, |
| 119 |
/* Form only pages e.g. Special:MobileOptions */ |
| 120 |
#mw-content-text > form { |
| 121 |
margin-left: auto; |
| 122 |
margin-right: auto; |
| 123 |
width: 90%; |
| 124 |
max-width: @max-width-content-tablet; |
| 125 |
} |
| 126 |
} |