Set top offset for notifications
Set the top offset for notifications to match the height of the top tab and link area. Also move this height to a common Less variable to use in both places it's used. Bug: T260262 Depends-On: I12db7c1745d17851f6421123a145de4cb916ad51 Change-Id: I679b7bba8d0c43c36c5911b30540e86a77125497
This commit is contained in:
parent
3bed284b37
commit
9086f450af
4 changed files with 18 additions and 4 deletions
|
@ -2,13 +2,15 @@
|
||||||
** Desktop-specific styles for MonoBook
|
** Desktop-specific styles for MonoBook
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@import 'variables.less';
|
||||||
|
|
||||||
#column-content {
|
#column-content {
|
||||||
float: right;
|
float: right;
|
||||||
margin: 0 0 0.6em -12.2em;
|
margin: 0 0 0.6em -12.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mw-body {
|
.mw-body {
|
||||||
margin: 2.8em 0 0 12.2em;
|
margin: @top-area-height 0 0 12.2em;
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,16 @@
|
||||||
/* mediawiki.notification */
|
/* mediawiki.notification */
|
||||||
|
|
||||||
|
@import '../variables.less';
|
||||||
|
|
||||||
|
.mw-notification-area {
|
||||||
|
// To match #globalWrapper (see screen-common.less).
|
||||||
|
font-size: 127%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mw-notification-area-layout {
|
||||||
|
top: @top-area-height + 0.1em;
|
||||||
|
}
|
||||||
|
|
||||||
.mw-notification {
|
.mw-notification {
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// Variables for common colours and things
|
// Variables for common colours and things
|
||||||
// Note that this does not affect screen-desktop.css and IEFixes files; update those separately.
|
|
||||||
|
|
||||||
@import 'mediawiki.mixins';
|
@import 'mediawiki.mixins';
|
||||||
|
|
||||||
|
@ -14,6 +13,8 @@
|
||||||
@link-visited: #5a3696;
|
@link-visited: #5a3696;
|
||||||
@link-new: #c20;
|
@link-new: #c20;
|
||||||
|
|
||||||
|
@top-area-height: 2.8em;
|
||||||
|
|
||||||
// mobile objects
|
// mobile objects
|
||||||
@top-position: 5px;
|
@top-position: 5px;
|
||||||
@block-size: 35px;
|
@block-size: 35px;
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
"resources/screen-common.less": {
|
"resources/screen-common.less": {
|
||||||
"media": "screen"
|
"media": "screen"
|
||||||
},
|
},
|
||||||
"resources/screen-desktop.css": {
|
"resources/screen-desktop.less": {
|
||||||
"media": "screen"
|
"media": "screen"
|
||||||
},
|
},
|
||||||
"resources/print-common.less": {
|
"resources/print-common.less": {
|
||||||
|
@ -71,7 +71,7 @@
|
||||||
"resources/screen-common.less": {
|
"resources/screen-common.less": {
|
||||||
"media": "screen"
|
"media": "screen"
|
||||||
},
|
},
|
||||||
"resources/screen-desktop.css": {
|
"resources/screen-desktop.less": {
|
||||||
"media": "screen and (min-width: 551px)"
|
"media": "screen and (min-width: 551px)"
|
||||||
},
|
},
|
||||||
"resources/screen-mobile.less": {
|
"resources/screen-mobile.less": {
|
||||||
|
|
Loading…
Reference in a new issue