Merge "resourceloader: Configure eslint to disallow $ and require inside startup"
[lhc/web/wiklou.git] / resources / lib / ooui / wikimedia-ui-base.less
1 /**
2 * WikimediaUI Base v0.12.0
3 * Wikimedia Foundation user interface base variables
4 */
5
6 // == Breakpoints ==
7 // The following numbers are prone to change with new information.
8
9 // Minimum available screen width at which a device can be considered a mobile device
10 // Many older feature phones have screens smaller than this value.
11 @width-breakpoint-mobile: 320px;
12
13 // Minimum available screen width at which a device can be considered a tablet
14 // The number is currently based on the device width of a Samsung Galaxy S5 mini and is low
15 // enough to cover iPad (768px).
16 @width-breakpoint-tablet: 720px;
17
18 // Minimum available screen width at which a device can be considered a desktop
19 @width-breakpoint-desktop: 1000px;
20
21 // Wider desktop breakpoint, currently used in Flow.
22 @width-breakpoint-desktop-wide: 1200px;
23
24 // Extra wide desktop breakpoint
25 @width-breakpoint-desktop-extrawide: 2000px;
26
27
28 // == Colors ==
29 // WikimediaUI (WMUI) color palette
30 // Don't use those variables directly, instead define your vars
31 // referring to them as applied further below
32
33 @wmui-color-base0: #000; // = HSB 0°, 0%, 0%
34 @wmui-color-base10: #222; // = HSB 0°, 0%, 13%
35 @wmui-color-base20: #54595d; // = HSB 207°, 10%, 36%; WCAG 2.0 level AAA 7.09:1 contrast ratio on `#fff`
36 @wmui-color-base30: #72777d; // = HSB 210°, 9%, 49%; WCAG 2.0 level AA at 4.52:1 contrast ratio on `#fff`
37 @wmui-color-base50: #a2a9b1; // = HSB 212°, 8%, 69%
38 @wmui-color-base70: #c8ccd1; // = HSB 213°, 4%, 82%
39 @wmui-color-base80: #eaecf0; // = HSB 220°, 3%, 94%
40 @wmui-color-base90: #f8f9fa; // = HSB 210°, 1%, 98%
41 @wmui-color-base100: #fff; // = HSB 0°, 0%, 100%
42
43 @wmui-color-accent30: #2a4b8d; // = HSB 220°, 70%, 55%
44 @wmui-color-accent50: #36c; // = HSB 220°, 75%, 80%
45 @wmui-color-accent90: #eaf3ff; // = HSB 214°, 8%, 100%
46
47 @wmui-color-red30: #b32424; // = HSB 360°, 80%, 70%
48 @wmui-color-red50: #d33; // = HSB 360°, 77%, 87%
49 @wmui-color-red90: #fee7e6; // = HSB 3°, 9%, 100%
50
51 @wmui-color-yellow30: #ac6600; // = HSB 36°, 100%, 67%
52 @wmui-color-yellow50: #fc3; // = HSB 45°, 80%, 100%
53 @wmui-color-yellow90: #fef6e7; // = HSB 39°, 9%, 100%
54
55 @wmui-color-green30: #14866d; // = HSB 167°, 85%, 53%
56 @wmui-color-green50: #00af89; // = HSB 167°, 100%, 69%
57 @wmui-color-green90: #d5fdf4; // = HSB 166°, 16%, 99%
58
59 // Background Colors
60 @background-color-base: @wmui-color-base100;
61 @background-color-base--hover: @wmui-color-base80;
62 @background-color-base--disabled: @wmui-color-base80;
63 @background-color-code: @wmui-color-base90;
64 // 'Framed' UI elements (Framed Buttons, Dropdowns, ToggleSwitches…)
65 @background-color-framed: @wmui-color-base90;
66 @background-color-framed--hover: @wmui-color-base100;
67 @background-color-framed--active: @wmui-color-base70;
68 // 'Filled' UI elements (Checkboxes, Radios, ProgressBars…)
69 @background-color-filled--disabled: @wmui-color-base70;
70 // Toolbar and Tools
71 @background-color-toolbar: @background-color-base;
72 @background-color-tool--hover: @background-color-base--hover;
73 @background-color-tool--active: @background-color-primary;
74 @background-color-tool--active-hover: @background-color-primary--hover;
75 // Tabs Navigation Background Color
76 @background-color-tabs: @wmui-color-base80;
77 // Highlight Colors, RGBA Colors include hex fallback on `#fff` for IE 6/7/8
78 @background-color-highlight: rgba( 255, 182, 13, 0.4 );
79 @background-color-highlight--fallback: #ffe29e;
80
81 // Foreground Colors
82 @color-base: @wmui-color-base10;
83 @color-base--hover: #444;
84 @color-base--active: @wmui-color-base0;
85 @color-base--inverted: @wmui-color-base100;
86 @color-base--emphasized: @wmui-color-base0;
87 @color-base--subtle: @wmui-color-base30;
88 @color-base--disabled: @wmui-color-base30;
89 @color-filled--disabled: @color-base--inverted;
90 @color-placeholder: @wmui-color-base30;
91 // Primary 'Progressive' Color, Background Color and states
92 @background-color-primary: @wmui-color-accent90;
93 @background-color-primary--hover: rgba( 41, 98, 204, 0.1 );
94 @color-primary: @wmui-color-accent50;
95 @color-primary--hover: #447ff5; // = `lighten( @color-primary, 3 )`
96 @color-primary--active: @wmui-color-accent30;
97 @color-primary--focus: @color-primary;
98 // 'Destructive' Color, Background Color and states
99 @background-color-destructive: @wmui-color-red90;
100 @color-destructive: @wmui-color-red50;
101 @color-destructive--hover: #ff4242;
102 @color-destructive--active: @wmui-color-red30;
103 @color-destructive--focus: @color-destructive;
104 // Secondary Color and states (links only)
105 @color-secondary: @wmui-color-green50;
106 @color-secondary--hover: #1c6665;
107 @color-secondary--active: @wmui-color-green30;
108 @color-secondary--focus: @color-secondary;
109 // Validation error feedback
110 @color-erroneous: @wmui-color-red50;
111 // Toolbar and Tools
112 @color-tool--hover: @color-base--emphasized; // Used here in combination with `:hover` background-color turning light grey
113 @color-tool--active: @color-primary;
114
115
116 // Opacity
117 @opacity-base: 1;
118 @opacity-base--disabled: 0.51; // = `#7d7d7d` on `background-color: #fff`; HSB 0°, 0%, 49%
119 @opacity-icon-base: 0.87; // = `#222` on `background-color: #fff`
120 @opacity-icon-base--hover: 0.73; // = `#454545` on `background-color: #fff`, closest to `#444`
121 @opacity-icon-base--selected: 1;
122
123
124 // == Positioning ==
125 // Z-Index
126 @z-index-base: 0;
127
128
129 // == Box Model properties ==
130 // `@*size` variables are used for `*width` & `*height` properties
131 @size-base: 32px;
132
133 @min-size-icon: 20px; // values used for `min-*` are defined in `px`, see T130691
134 @min-size-indicator: 12px;
135
136 @size-icon: 20px;
137 @size-indicator: 12px;
138 @size-tool: 42px;
139
140 // Max Widths
141 @max-width-base: 50em;
142 @max-width-button: 28.75em; // = `460px` at `16px` base, see T95367
143 @max-width-input: @max-width-base;
144 @max-width-input-inline: 100%;
145
146 // Border
147 @border-base: @border-width-base @border-style-base @border-color-base;
148 @border-dialog: @border-base;
149 @border-menu: @border-base;
150 // Border Colors
151 @border-color-base: @wmui-color-base50;
152 @border-color-base--hover: @wmui-color-base50;
153 @border-color-base--active: @wmui-color-base30;
154 @border-color-base--disabled: @wmui-color-base70;
155 @border-color-filled--disabled: @color-filled--disabled;
156 @border-color-primary--active: #859dcc;
157 @border-color-destructive--active: #b77c79;
158 @border-color-inset--focus: @color-base--inverted;
159 @border-color-heading: @wmui-color-base70;
160 @border-color-wikitable: rgba( 84, 89, 93, 0.3 ); // See T168029
161 // Border Styles
162 @border-style-base: solid;
163 // Border Widths
164 @border-width-base: 1px;
165 // Border Radius
166 @border-radius-base: 2px;
167
168 // Box Shadows
169 @box-shadow-base--focus: inset 0 0 0 1px @wmui-color-accent50;
170 @box-shadow-primary--focus: inset 0 0 0 1px @color-primary, inset 0 0 0 2px @color-base--inverted;
171 @box-shadow-inset--inverted: inset 0 0 0 1px @color-base--inverted;
172 @box-shadow-filled--disabled: inset 0 0 0 1px @color-filled--disabled;
173 @box-shadow-card: 0 1px 1px rgba( 0, 0, 0, 0.15 );
174 @box-shadow-dialog: 0 2px 2px 0 rgba( 0, 0, 0, 0.25 );
175 @box-shadow-menu: @box-shadow-dialog;
176
177
178 // == Typography incl. print properties ==
179 // Font Families
180 @font-family-base: @font-family-sans;
181 @font-family-heading-main: @font-family-serif;
182 @font-family-sans: 'Helvetica Neue', 'Helvetica', 'Nimbus Sans L', 'Arial', 'Liberation Sans', sans-serif;
183 @font-family-sans--fallback: sans-serif;
184 @font-family-serif: 'Linux Libertine', 'Georgia', 'Times', serif;
185 @font-family-serif--fallback: serif;
186 @font-family-monospace: monospace, monospace; // See T176636
187 // Line Heights
188 @line-height-base: 1.6;
189 @line-height-heading: 1.25;
190 @text-decoration-link--hover: none;
191 // Text Shadows
192 @text-shadow-base: 0 1px 1px @color-base--inverted; // 'coined' effect
193 @text-shadow-base--disabled: @text-shadow-base;
194
195
196 // == Other Properties ==
197 // Cursors
198 @cursor-base--disabled: default;
199
200
201 // == Animation & Transition ==
202 // Transitions
203 @transition-base: @transition-duration-base; // `ease` is the initial value
204 @transition-ease-medium: @transition-duration-medium;
205 // `ease-out` is preferably used on human initiated transitions, for example dialogs
206 @transition-ease-out-medium: ease-out @transition-duration-medium;
207 // Transitions > Durations
208 @transition-duration-base: 100ms;
209 @transition-duration-medium: 250ms;