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