Debian Codegraph @

skins/MinervaNeue/minerva.less/minerva.variables.less

raw
1 @import 'mediawiki.skin.variables.less';
2
3 /**
4 * System font stack for sans-serif fonts
5 *
6 * `-apple-system` ('San Francisco') – Support: Safari 9+ macOS and iOS, Firefox macOS
7 * `BlinkMacSystemFont` ('San Francisco') – Chrome 48+ macOS and iOS
8 * `Segoe UI` – Windows Vista & newer
9 * `Roboto` – Android 4.0
10 * `Lato` – Wikimedia Design choice, OFL licensed
11 * `Helvetica, Arial, sans-serif` – (Generic) Web fallback
12 * Note that CSS Fonts Module Level 4's `system-ui` value has resulted in unresolved
13 * side-effects in certain OS/language combinations and is therefore not included as of now.
14 */
15 @font-family-base: @font-family-system-sans;
16
17 @font-size-browser: 16; // Assumed browser default of `16px`.
18 @font-size-root: 100%;
19 // T282315: Use rem instead of em to avoid font-size compounding, resulting in smaller than intended text
20 @font-size-minerva-small: unit( 14 / @font-size-browser, rem ); // Equals `14px` at `16px` browser default.
21 @font-size-minerva-smallest: unit( 13 / @font-size-browser, rem ); // Equals `13px` at `16px` browser default.
22
23 //
24 // Icons
25 //
26 @icon-padding-medium: @size-75;
27 @icon-size-medium: @size-icon-medium;
28 @min-size-icon: @min-size-icon-medium;
29 @size-icon: 1.5em;
30 @width-icon-gutter: 1em;
31
32 // Navigation Drawers
33 @drawer-width-right: 60%;
34
35 // Headings
36 @font-size-h1: 1.7em;
37 @font-size-h2: 1.5em;
38 @font-size-h3: 1.2em;
39
40 // Content
41 @padding-content: 16px;
42 @margin-content: 16px;
43
44 // Header
45 @height-site-header: unit( 54 / @font-size-browser, em );
46 @height-overlay-header: unit( 48 / @font-size-browser, em );
47 @padding-vertical-header: 0.15em;
48 @width-search-box: 375/16em;
49 @device-width-tablet-ems: unit( @min-width-breakpoint-tablet / @font-size-browser, em );
50 // This is the minimum width at which the logo can be rendered safely for logged in users,
51 // using advanced mobile mode,
52 // without overflowing the viewport at @min-width-breakpoint-tablet.
53 //
54 // This is calculated by taking @min-width-breakpoint-tablet and counting the space available
55 // after accounting for 3 icons - main menu, notification bell and user menu icon,
56 // and the search bar.
57 @min-size-interactive-touch-ems: unit( @min-size-interactive-touch / @font-size-browser, em );
58 @min-width-branding-box-ems: @device-width-tablet-ems - ( 3 * @min-size-interactive-touch-ems ) - @width-search-box;
59 // FIXME: This is the min-width before T349793 was merged. Remove when T366859 is resolved.
60 @T366859-min-width-branding-box-ems: 10.0625em;
61
62 @top-spacing-title-section: @spacing-125;
63
64 // Page actions
65 // TODO: Replace by `@font-size-minerva-small`.
66 @font-size-tag-line: 0.85em;
67
68 // colors
69 @opaque: rgba( 0, 0, 0, 0.8 );
70
71 @background-color-toast-notification: #202122;
72
73 // Typography
74 @line-height-content: 1.65;
75
76 @margin-heading: 0.5em;
77
78 // blockquote
79 @padding-start-blockquote: @spacing-200;
80 // Make it a tad smaller on mobile to fit more contents.
81 @padding-end-blockquote: @spacing-150;
82 @padding-vertical-blockquote: @spacing-50;
83
84 // custom tablet styling
85 @padding-content-tablet: 3.35em;
86
87 // This value was previously derived from taking the old tablet breakpoint of 720px
88 // and subtracting ( 2 * @padding-content-tablet ) ) to account for the lack of
89 // view border box.
90 // This may be reassessed in phab:T366860.
91 @max-width-content-tablet: 993.3px;
92
93 // Wiki specific variables
94 @width-infobox: 320px;
95
96 // z-index:
97 @z-index-occluded: -1;
98 @z-index-base: 0;
99 @z-index-above-content: 1;
100 @z-index-drawer: 2;
101 @z-index-overlay: 3;
102 @z-index-over-overlay: 4;
103
104 // Animations & Transitions
105 // Transitions > Timing Functions
106 @transition-timing-function-menu: ease-in-out;
107
108 // = Print
109 @color-print: #000;
110 @color-print-subtle: #999;
111 @border-color-print: #999;