2020-09-25 18:17:15 +00:00
|
|
|
|
@import 'mediawiki.skin.variables.less';
|
2017-08-16 19:30:33 +00:00
|
|
|
|
|
2019-01-17 08:46:26 +00:00
|
|
|
|
/**
|
|
|
|
|
* System font stack for sans-serif fonts
|
|
|
|
|
*
|
2019-03-27 22:35:33 +00:00
|
|
|
|
* `-apple-system` ('San Francisco') – Support: Safari 9+ macOS and iOS, Firefox macOS
|
|
|
|
|
* `BlinkMacSystemFont` ('San Francisco') – Chrome 48+ macOS and iOS
|
2019-01-17 08:46:26 +00:00
|
|
|
|
* `Segoe UI` – Windows Vista & newer
|
2019-03-27 22:35:33 +00:00
|
|
|
|
* `Roboto` – Android 4.0
|
|
|
|
|
* `Lato` – Wikimedia Design choice, OFL licensed
|
2019-01-17 08:46:26 +00:00
|
|
|
|
* `Helvetica, Arial, sans-serif` – (Generic) Web fallback
|
|
|
|
|
* Note that CSS Fonts Module Level 4's `system-ui` value has resulted in unresolved
|
2019-03-27 22:35:33 +00:00
|
|
|
|
* side-effects in certain OS/language combinations and is therefore not included as of now.
|
2019-01-17 08:46:26 +00:00
|
|
|
|
*/
|
2020-03-08 03:34:44 +00:00
|
|
|
|
@font-family-base: @font-family-system-sans;
|
2019-07-18 15:27:18 +00:00
|
|
|
|
|
2019-07-31 17:59:52 +00:00
|
|
|
|
@font-size-browser: 16; // Assumed browser default of `16px`.
|
2019-12-06 05:46:50 +00:00
|
|
|
|
@font-size-root: 100%;
|
2021-07-17 02:31:56 +00:00
|
|
|
|
// T282315: Use rem instead of em to avoid font-size compounding, resulting in smaller than intended text
|
|
|
|
|
@font-size-minerva-small: unit( 14 / @font-size-browser, rem ); // Equals `14px` at `16px` browser default.
|
|
|
|
|
@font-size-minerva-smallest: unit( 13 / @font-size-browser, rem ); // Equals `13px` at `16px` browser default.
|
2017-08-16 19:30:33 +00:00
|
|
|
|
|
2019-09-13 20:29:14 +00:00
|
|
|
|
//
|
|
|
|
|
// Icons
|
|
|
|
|
//
|
2024-01-31 15:06:56 +00:00
|
|
|
|
@icon-padding-medium: @size-75;
|
|
|
|
|
@icon-size-medium: @size-icon-medium;
|
|
|
|
|
@min-size-icon: @min-size-icon-medium;
|
2023-04-09 13:49:29 +00:00
|
|
|
|
@size-icon: 1.5em;
|
|
|
|
|
@width-icon-gutter: 1em;
|
2019-09-13 20:29:14 +00:00
|
|
|
|
|
2017-07-12 15:12:40 +00:00
|
|
|
|
// Navigation Drawers
|
2024-01-31 15:06:56 +00:00
|
|
|
|
@drawer-width-right: 60%;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
|
|
// Headings
|
2024-01-31 15:06:56 +00:00
|
|
|
|
@font-size-h1: 1.7em;
|
|
|
|
|
@font-size-h2: 1.5em;
|
|
|
|
|
@font-size-h3: 1.2em;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
|
|
// Content
|
2024-01-31 15:06:56 +00:00
|
|
|
|
@padding-content: 16px;
|
|
|
|
|
@margin-content: 16px;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
|
|
// Header
|
2024-01-31 15:06:56 +00:00
|
|
|
|
@height-site-header: unit( 54 / @font-size-browser, em );
|
|
|
|
|
@height-overlay-header: unit( 48 / @font-size-browser, em );
|
|
|
|
|
@padding-vertical-header: 0.15em;
|
|
|
|
|
@width-search-box: 375/16em;
|
2023-11-07 09:03:29 +00:00
|
|
|
|
@device-width-tablet-ems: unit( @min-width-breakpoint-tablet / @font-size-browser, em );
|
|
|
|
|
// This is the minimum width at which the logo can be rendered safely for logged in users,
|
|
|
|
|
// using advanced mobile mode,
|
|
|
|
|
// without overflowing the viewport at @min-width-breakpoint-tablet.
|
|
|
|
|
//
|
|
|
|
|
// This is calculated by taking @min-width-breakpoint-tablet and counting the space available
|
|
|
|
|
// after accounting for 3 icons - main menu, notification bell and user menu icon,
|
|
|
|
|
// and the search bar.
|
|
|
|
|
@min-size-interactive-touch-ems: unit( @min-size-interactive-touch / @font-size-browser, em );
|
|
|
|
|
@min-width-branding-box-ems: @device-width-tablet-ems - ( 3 * @min-size-interactive-touch-ems ) - @width-search-box;
|
|
|
|
|
// FIXME: This is the min-width before T349793 was merged. Remove when T366859 is resolved.
|
|
|
|
|
@T366859-min-width-branding-box-ems: 10.0625em;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
2024-01-31 15:06:56 +00:00
|
|
|
|
@top-spacing-title-section: @spacing-125;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
2019-01-10 22:59:56 +00:00
|
|
|
|
// Page actions
|
2023-04-09 13:49:29 +00:00
|
|
|
|
// TODO: Replace by `@font-size-minerva-small`.
|
2024-01-31 15:06:56 +00:00
|
|
|
|
@font-size-tag-line: 0.85em;
|
2019-01-10 22:59:56 +00:00
|
|
|
|
|
2017-07-12 15:12:40 +00:00
|
|
|
|
// colors
|
2024-01-31 15:06:56 +00:00
|
|
|
|
@opaque: rgba( 0, 0, 0, 0.8 );
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
2023-04-09 13:49:29 +00:00
|
|
|
|
@background-color-toast-notification: #202122;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
2019-12-06 05:12:46 +00:00
|
|
|
|
// Typography
|
|
|
|
|
@line-height-content: 1.65;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
2024-01-31 15:06:56 +00:00
|
|
|
|
@margin-heading: 0.5em;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
2018-10-13 18:55:34 +00:00
|
|
|
|
// blockquote
|
2024-01-31 15:06:56 +00:00
|
|
|
|
@padding-start-blockquote: @spacing-200;
|
2020-10-19 22:05:45 +00:00
|
|
|
|
// Make it a tad smaller on mobile to fit more contents.
|
2024-01-31 15:06:56 +00:00
|
|
|
|
@padding-end-blockquote: @spacing-150;
|
|
|
|
|
@padding-vertical-blockquote: @spacing-50;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
|
|
// custom tablet styling
|
2024-01-31 15:06:56 +00:00
|
|
|
|
@padding-content-tablet: 3.35em;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
2023-11-07 09:03:29 +00:00
|
|
|
|
// This value was previously derived from taking the old tablet breakpoint of 720px
|
|
|
|
|
// and subtracting ( 2 * @padding-content-tablet ) ) to account for the lack of
|
|
|
|
|
// view border box.
|
|
|
|
|
// This may be reassessed in phab:T366860.
|
|
|
|
|
@max-width-content-tablet: 993.3px;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
|
|
// Wiki specific variables
|
2024-01-31 15:06:56 +00:00
|
|
|
|
@width-infobox: 320px;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
2023-05-26 15:29:03 +00:00
|
|
|
|
// z-index:
|
2024-01-31 15:06:56 +00:00
|
|
|
|
@z-index-occluded: -1;
|
|
|
|
|
@z-index-base: 0;
|
|
|
|
|
@z-index-above-content: 1;
|
|
|
|
|
@z-index-drawer: 2;
|
|
|
|
|
@z-index-overlay: 3;
|
|
|
|
|
@z-index-over-overlay: 4;
|
2023-05-26 15:29:03 +00:00
|
|
|
|
|
2019-10-23 04:01:22 +00:00
|
|
|
|
// Animations & Transitions
|
2022-09-17 06:53:13 +00:00
|
|
|
|
// Transitions > Timing Functions
|
2019-10-24 21:50:38 +00:00
|
|
|
|
@transition-timing-function-menu: ease-in-out;
|
2023-04-09 13:49:29 +00:00
|
|
|
|
|
|
|
|
|
// = Print
|
|
|
|
|
@color-print: #000;
|
|
|
|
|
@color-print-subtle: #999;
|
|
|
|
|
@border-color-print: #999;
|