2017-07-20 21:58:01 +00:00
|
|
|
@import 'mediawiki.ui/variables';
|
|
|
|
|
2019-09-18 22:26:38 +00:00
|
|
|
@font-size-root: 100%;
|
2018-10-09 19:29:58 +00:00
|
|
|
@font-size-browser: 16; // Assumed browser default of `16px`
|
2014-08-07 11:38:34 +00:00
|
|
|
|
2017-07-25 21:41:00 +00:00
|
|
|
@font-family-serif: 'Linux Libertine', 'Georgia', 'Times', serif;
|
2019-09-26 22:48:15 +00:00
|
|
|
// FIXME: Use WikimediaUI Base's OS specific default sans-serif fonts.
|
|
|
|
@font-family-sans: sans-serif;
|
|
|
|
@font-family-sans--fallback: sans-serif;
|
2017-07-25 21:41:00 +00:00
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
// Page content
|
2019-09-26 21:12:01 +00:00
|
|
|
@background-color-base: #fff;
|
|
|
|
@color-base: #222;
|
2019-09-30 06:36:58 +00:00
|
|
|
@color-base--emphasized: #000;
|
2019-09-26 21:12:01 +00:00
|
|
|
@color-link: #0645ad;
|
2019-09-30 06:36:58 +00:00
|
|
|
@color-link--visited: #0b0080;
|
|
|
|
@color-link-new: #a55858;
|
2019-09-26 21:12:01 +00:00
|
|
|
@color-link-selected: @color-base;
|
|
|
|
|
2019-09-26 23:43:42 +00:00
|
|
|
@font-size-base: unit( 14 / @font-size-browser, em ); // Equals `0.875em`.
|
|
|
|
@font-size-reset: @font-size-root;
|
2019-09-27 17:49:02 +00:00
|
|
|
@font-size-heading-1: 1.8em;
|
2019-09-26 23:43:42 +00:00
|
|
|
@font-size-heading-2: 1.5em;
|
|
|
|
@font-size-heading-3: 1.2em;
|
|
|
|
@font-size-notification: 0.8em;
|
|
|
|
@font-size-site-notice: 0.8em;
|
2019-09-27 04:25:59 +00:00
|
|
|
@line-height-base: 1.6;
|
|
|
|
@line-height-heading: 1.3;
|
|
|
|
@line-height-code: 1.3;
|
|
|
|
@line-height-footer-info: 1.4;
|
|
|
|
@line-height-footer-buttons: 2;
|
2019-09-26 23:43:42 +00:00
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
// FIXME: Use global variable since Echo and CentralNotice use this variable
|
2019-09-28 07:25:09 +00:00
|
|
|
@border-color-content: #a7d7f9;
|
2017-10-08 02:58:20 +00:00
|
|
|
// Due to darker background gradient, border needs to be darkened for aligned visual perception.
|
|
|
|
@border-color-content--tabs-inactive: darken( @border-color-content, 10% );
|
2014-08-07 11:38:34 +00:00
|
|
|
@content-line-height: 1.6;
|
2019-09-28 06:24:34 +00:00
|
|
|
@padding-content: 1em;
|
2014-08-07 11:38:34 +00:00
|
|
|
|
|
|
|
// Navigation
|
2019-09-26 21:12:01 +00:00
|
|
|
@background-color-secondary: #f6f6f6;
|
2019-09-29 20:21:41 +00:00
|
|
|
@color-nav-subtle: #444;
|
2019-09-27 04:25:59 +00:00
|
|
|
// Navigation `line-height` has to be set in `em`s due to a rendering calculation issue.
|
2019-09-29 20:21:41 +00:00
|
|
|
@line-height-nav: 1.125em;
|
2014-08-07 11:38:34 +00:00
|
|
|
|
2019-09-29 20:21:41 +00:00
|
|
|
// Navigation: Main
|
|
|
|
@font-size-nav-main: inherit;
|
2014-08-07 11:38:34 +00:00
|
|
|
|
2019-09-29 20:21:41 +00:00
|
|
|
@font-size-nav-main-heading: unit( 12 / @font-size-browser, em ); // Equals `0.75em`.
|
2014-08-07 11:38:34 +00:00
|
|
|
|
2019-09-29 20:21:41 +00:00
|
|
|
@font-size-nav-main-body: unit( 12 / @font-size-browser, em );
|
|
|
|
@margin-left-nav-main-body: 0.5em;
|
2014-08-07 11:38:34 +00:00
|
|
|
|
2019-09-29 20:21:41 +00:00
|
|
|
// Navigation: Personal tools
|
|
|
|
@background-position-nav-personal-icon: left ( 4 / @font-size-browser / @font-size-nav-personal );
|
|
|
|
@background-size-nav-personal-icon: 14 / @font-size-browser / @font-size-nav-personal;
|
|
|
|
@font-size-nav-personal: 0.75em;
|
2019-09-27 04:25:59 +00:00
|
|
|
// Using `unit()` without second parameter to achieve a unitless output for `line-height`.
|
2019-09-29 20:21:41 +00:00
|
|
|
@line-height-nav-personal: unit( 14 / @font-size-browser / @font-size-nav-personal ); // Equals `1.667`.
|
2019-09-18 22:26:38 +00:00
|
|
|
|
2019-09-26 23:43:42 +00:00
|
|
|
// Tabs
|
|
|
|
@font-size-tabs: unit( 13 / @font-size-browser, em ); // Equals `0.8125em`.
|
|
|
|
|
2019-09-18 22:26:38 +00:00
|
|
|
// Search
|
|
|
|
@width-search-button: 24 / @font-size-browser / @font-size-search-input;
|
|
|
|
@font-size-search-input: unit( 13 / @font-size-browser, em ); // Equals `0.8125em`.
|
2019-09-26 23:43:42 +00:00
|
|
|
|
|
|
|
// Footer
|
|
|
|
// FIXME: Currently calculates at 11.2px, which is worth nothing and unreadable for a big
|
|
|
|
// part of our audiences. Push up _at least_ to 12px.
|
|
|
|
@font-size-footer: 0.7em;
|