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