umberto 4.4.0 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/themes/umberto/layout/page.pug +0 -1
- package/themes/umberto/src/css/_api-info-box.scss +14 -10
- package/themes/umberto/src/css/_api-props-filter.scss +26 -71
- package/themes/umberto/src/css/_api-subheader.scss +7 -4
- package/themes/umberto/src/css/_api-tree.scss +21 -16
- package/themes/umberto/src/css/_badge.scss +16 -12
- package/themes/umberto/src/css/_code-switcher.scss +15 -8
- package/themes/umberto/src/css/_collapsinglist.scss +34 -29
- package/themes/umberto/src/css/_content.scss +50 -43
- package/themes/umberto/src/css/_docsearch.scss +9 -6
- package/themes/umberto/src/css/_dropdown.scss +8 -5
- package/themes/umberto/src/css/_feedback-widget.scss +6 -3
- package/themes/umberto/src/css/_font-external.scss +8 -0
- package/themes/umberto/src/css/_footer.scss +21 -16
- package/themes/umberto/src/css/_formatted.scss +48 -40
- package/themes/umberto/src/css/_guide-content.scss +5 -2
- package/themes/umberto/src/css/_guide-sdk-tree.scss +3 -3
- package/themes/umberto/src/css/_main.scss +20 -15
- package/themes/umberto/src/css/_navigation.scss +11 -7
- package/themes/umberto/src/css/_notice.scss +35 -30
- package/themes/umberto/src/css/_prism.scss +5 -3
- package/themes/umberto/src/css/_rwd-breadcrumbs.scss +3 -1
- package/themes/umberto/src/css/_rwd-menu.scss +20 -15
- package/themes/umberto/src/css/_secondary-navigation.scss +44 -38
- package/themes/umberto/src/css/_toggler.scss +6 -4
- package/themes/umberto/src/css/_top.scss +49 -43
- package/themes/umberto/src/css/_tree.scss +24 -21
- package/themes/umberto/src/css/_warning-banner.scss +6 -3
- package/themes/umberto/src/css/helpers/_color.scss +4 -1
- package/themes/umberto/src/css/helpers/_font.scss +15 -12
- package/themes/umberto/src/css/helpers/_globals.scss +10 -9
- package/themes/umberto/src/css/helpers/_spacing.scss +3 -1
- package/themes/umberto/src/css/pages/_sdk.scss +12 -8
- package/themes/umberto/src/css/styles.scss +48 -47
- package/themes/umberto/src/js/_codeswitcherbuttons.js +12 -2
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
// Copyright (c) 2017-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
// For licensing, see LICENSE.md or http://ckeditor.com/license
|
|
3
3
|
|
|
4
|
+
@use 'helpers/color';
|
|
5
|
+
@use 'helpers/font';
|
|
6
|
+
@use 'helpers/globals';
|
|
7
|
+
@use 'helpers/spacing';
|
|
8
|
+
@use 'sass:math';
|
|
9
|
+
|
|
4
10
|
$u-button-size-width: 72px;
|
|
5
11
|
$u-space-between: 15px;
|
|
6
12
|
$u-icon-size: 36px;
|
|
7
13
|
$u-rwd-button-size: 24px;
|
|
8
14
|
|
|
9
15
|
.top {
|
|
10
|
-
background: u-color( 'primary' );
|
|
16
|
+
background: color.u-color( 'primary' );
|
|
11
17
|
position: fixed;
|
|
12
18
|
top: 0;
|
|
13
19
|
left: 0;
|
|
@@ -15,7 +21,7 @@ $u-rwd-button-size: 24px;
|
|
|
15
21
|
z-index: 9999; // Render it above CKEditor's UI.
|
|
16
22
|
align-items: center;
|
|
17
23
|
|
|
18
|
-
@include u-responsive-tablet {
|
|
24
|
+
@include globals.u-responsive-tablet {
|
|
19
25
|
background: transparent;
|
|
20
26
|
|
|
21
27
|
&.rwd-menu-active {
|
|
@@ -48,7 +54,7 @@ $u-rwd-button-size: 24px;
|
|
|
48
54
|
}
|
|
49
55
|
|
|
50
56
|
.header__main {
|
|
51
|
-
padding: u-spacing( -2 ) u-spacing( 0 );
|
|
57
|
+
padding: spacing.u-spacing( -2 ) spacing.u-spacing( 0 );
|
|
52
58
|
display: flex;
|
|
53
59
|
justify-content: space-between;
|
|
54
60
|
background-color: inherit;
|
|
@@ -56,9 +62,9 @@ $u-rwd-button-size: 24px;
|
|
|
56
62
|
z-index: inherit;
|
|
57
63
|
|
|
58
64
|
// handle header on smaller viewport
|
|
59
|
-
@include u-responsive-tablet {
|
|
60
|
-
height:
|
|
61
|
-
background-color: u-color( 'primary' );
|
|
65
|
+
@include globals.u-responsive-tablet {
|
|
66
|
+
height: globals.$u-top-main;
|
|
67
|
+
background-color: color.u-color( 'primary' );
|
|
62
68
|
padding: 10px;
|
|
63
69
|
flex-wrap: wrap;
|
|
64
70
|
align-items: center;
|
|
@@ -71,13 +77,13 @@ $u-rwd-button-size: 24px;
|
|
|
71
77
|
&-rwd-button {
|
|
72
78
|
display: none;
|
|
73
79
|
|
|
74
|
-
@include u-responsive-tablet {
|
|
80
|
+
@include globals.u-responsive-tablet {
|
|
75
81
|
position: absolute;
|
|
76
82
|
display: block;
|
|
77
83
|
width: $u-rwd-button-size;
|
|
78
84
|
height: $u-rwd-button-size;
|
|
79
|
-
margin-left: u-spacing( -2 );
|
|
80
|
-
@include u-v-center;
|
|
85
|
+
margin-left: spacing.u-spacing( -2 );
|
|
86
|
+
@include globals.u-v-center;
|
|
81
87
|
|
|
82
88
|
a {
|
|
83
89
|
margin-top: 2px;
|
|
@@ -90,7 +96,7 @@ $u-rwd-button-size: 24px;
|
|
|
90
96
|
|
|
91
97
|
span {
|
|
92
98
|
position: absolute;
|
|
93
|
-
background: u-color( 'background-bright' );
|
|
99
|
+
background: color.u-color( 'background-bright' );
|
|
94
100
|
width: 100%;
|
|
95
101
|
height: 3px;
|
|
96
102
|
border-radius: 5px;
|
|
@@ -102,7 +108,7 @@ $u-rwd-button-size: 24px;
|
|
|
102
108
|
}
|
|
103
109
|
}
|
|
104
110
|
|
|
105
|
-
@include u-responsive-mobile {
|
|
111
|
+
@include globals.u-responsive-mobile {
|
|
106
112
|
margin-left: 0;
|
|
107
113
|
}
|
|
108
114
|
}
|
|
@@ -122,16 +128,16 @@ $u-rwd-button-size: 24px;
|
|
|
122
128
|
&-home {
|
|
123
129
|
font-size: 1.5em;
|
|
124
130
|
text-decoration: none;
|
|
125
|
-
color: u-color( 'background-hue-light' );
|
|
131
|
+
color: color.u-color( 'background-hue-light' );
|
|
126
132
|
|
|
127
|
-
@include u-responsive-tablet {
|
|
128
|
-
font-size: u-font-size( 2 );
|
|
133
|
+
@include globals.u-responsive-tablet {
|
|
134
|
+
font-size: font.u-font-size( 2 );
|
|
129
135
|
|
|
130
136
|
// We need to add margin in case of rwd button.
|
|
131
|
-
margin-left: u-spacing( 2 ) * 2;
|
|
137
|
+
margin-left: spacing.u-spacing( 2 ) * 2;
|
|
132
138
|
}
|
|
133
139
|
|
|
134
|
-
@include u-responsive-mobile {
|
|
140
|
+
@include globals.u-responsive-mobile {
|
|
135
141
|
display: none;
|
|
136
142
|
}
|
|
137
143
|
}
|
|
@@ -190,24 +196,24 @@ $u-rwd-button-size: 24px;
|
|
|
190
196
|
|
|
191
197
|
|
|
192
198
|
.header__sub {
|
|
193
|
-
height:
|
|
199
|
+
height: globals.$u-top-sub;
|
|
194
200
|
display: flex;
|
|
195
|
-
background: u-color( 'background-dark' );
|
|
196
|
-
border-bottom: 1px solid u-color( 'background-hue' );
|
|
201
|
+
background: color.u-color( 'background-dark' );
|
|
202
|
+
border-bottom: 1px solid color.u-color( 'background-hue' );
|
|
197
203
|
position: relative;
|
|
198
204
|
|
|
199
|
-
@include u-responsive-tablet {
|
|
205
|
+
@include globals.u-responsive-tablet {
|
|
200
206
|
display: none;
|
|
201
207
|
}
|
|
202
208
|
}
|
|
203
209
|
|
|
204
210
|
&__logo {
|
|
205
211
|
// NOTE: IE11 does not support calc() here in flex.
|
|
206
|
-
flex: 0 0
|
|
212
|
+
flex: 0 0 globals.$u-sidebar-width;
|
|
207
213
|
|
|
208
214
|
&__product-title {
|
|
209
215
|
display: block;
|
|
210
|
-
font-size: u-font-size( 2 );
|
|
216
|
+
font-size: font.u-font-size( 2 );
|
|
211
217
|
}
|
|
212
218
|
}
|
|
213
219
|
|
|
@@ -216,7 +222,7 @@ $u-rwd-button-size: 24px;
|
|
|
216
222
|
margin: 0;
|
|
217
223
|
list-style: none;
|
|
218
224
|
|
|
219
|
-
@include u-responsive-tablet {
|
|
225
|
+
@include globals.u-responsive-tablet {
|
|
220
226
|
flex-wrap: wrap;
|
|
221
227
|
}
|
|
222
228
|
|
|
@@ -228,23 +234,23 @@ $u-rwd-button-size: 24px;
|
|
|
228
234
|
}
|
|
229
235
|
|
|
230
236
|
&--active {
|
|
231
|
-
background: u-color( 'text-invert' );
|
|
237
|
+
background: color.u-color( 'text-invert' );
|
|
232
238
|
|
|
233
239
|
svg {
|
|
234
|
-
fill: u-color( 'primary' );
|
|
240
|
+
fill: color.u-color( 'primary' );
|
|
235
241
|
}
|
|
236
242
|
}
|
|
237
243
|
}
|
|
238
244
|
|
|
239
245
|
li {
|
|
240
|
-
margin-right: u-spacing( 0 );
|
|
246
|
+
margin-right: spacing.u-spacing( 0 );
|
|
241
247
|
|
|
242
248
|
&.top__menu-project-logo
|
|
243
249
|
a {
|
|
244
250
|
padding-left: 65px;
|
|
245
251
|
background-size: 38px;
|
|
246
252
|
background-repeat: no-repeat;
|
|
247
|
-
background-position: u-spacing( 1 ) 5px;
|
|
253
|
+
background-position: spacing.u-spacing( 1 ) 5px;
|
|
248
254
|
|
|
249
255
|
/* Disable hover/focus border on project logo href. */
|
|
250
256
|
border-bottom: 0;
|
|
@@ -254,22 +260,22 @@ $u-rwd-button-size: 24px;
|
|
|
254
260
|
display: block;
|
|
255
261
|
font-weight: 600;
|
|
256
262
|
text-decoration: none;
|
|
257
|
-
background-color: u-color( 'background-dark' );
|
|
258
|
-
color: u-color( 'text-gray' );
|
|
263
|
+
background-color: color.u-color( 'background-dark' );
|
|
264
|
+
color: color.u-color( 'text-gray' );
|
|
259
265
|
border-bottom: 2px solid transparent;
|
|
260
266
|
position: relative;
|
|
261
|
-
height:
|
|
262
|
-
line-height:
|
|
263
|
-
padding: 0 u-spacing( 0 );
|
|
267
|
+
height: globals.$u-top-sub;
|
|
268
|
+
line-height: globals.$u-top-sub;
|
|
269
|
+
padding: 0 spacing.u-spacing( 0 );
|
|
264
270
|
transition: 150ms ease all;
|
|
265
271
|
|
|
266
272
|
&:hover {
|
|
267
|
-
background-color: u-color( 'background-dark', -3% );
|
|
273
|
+
background-color: color.u-color( 'background-dark', -3% );
|
|
268
274
|
}
|
|
269
275
|
|
|
270
276
|
&:hover,
|
|
271
277
|
&.top__menu__item--active {
|
|
272
|
-
border-color: u-color( 'primary' );
|
|
278
|
+
border-color: color.u-color( 'primary' );
|
|
273
279
|
}
|
|
274
280
|
|
|
275
281
|
// Disable colored border for GH and control svg.
|
|
@@ -281,7 +287,7 @@ $u-rwd-button-size: 24px;
|
|
|
281
287
|
svg {
|
|
282
288
|
fill: currentColor;
|
|
283
289
|
width: 30px;
|
|
284
|
-
margin-top: math.div(
|
|
290
|
+
margin-top: math.div( globals.$u-top-sub - 30px, 2 );
|
|
285
291
|
}
|
|
286
292
|
}
|
|
287
293
|
}
|
|
@@ -293,28 +299,28 @@ $u-rwd-button-size: 24px;
|
|
|
293
299
|
position: relative;
|
|
294
300
|
align-self: flex-start;
|
|
295
301
|
|
|
296
|
-
@include u-responsive-tablet {
|
|
302
|
+
@include globals.u-responsive-tablet {
|
|
297
303
|
flex: unset;
|
|
298
304
|
}
|
|
299
305
|
|
|
300
306
|
&__box {
|
|
301
|
-
background: u-color( 'background-bright' );
|
|
307
|
+
background: color.u-color( 'background-bright' );
|
|
302
308
|
font-weight: 400;
|
|
303
|
-
font-size: u-font-size( 0 );
|
|
309
|
+
font-size: font.u-font-size( 0 );
|
|
304
310
|
height: 40px;
|
|
305
311
|
width: 240px;
|
|
306
312
|
border: 0;
|
|
307
|
-
padding: 0 2*u-spacing( 4 ) 0 u-spacing( 1 );
|
|
313
|
+
padding: 0 2*spacing.u-spacing( 4 ) 0 spacing.u-spacing( 1 );
|
|
308
314
|
border-radius: 25px;
|
|
309
315
|
border: 2px solid transparent;
|
|
310
316
|
|
|
311
|
-
@include u-responsive-tablet {
|
|
317
|
+
@include globals.u-responsive-tablet {
|
|
312
318
|
width: unset;
|
|
313
319
|
height: 35px;
|
|
314
320
|
}
|
|
315
321
|
|
|
316
322
|
&::-webkit-input-placeholder {
|
|
317
|
-
color: u-color( 'text', 70% );
|
|
323
|
+
color: color.u-color( 'text', 70% );
|
|
318
324
|
}
|
|
319
325
|
|
|
320
326
|
&:focus,
|
|
@@ -326,11 +332,11 @@ $u-rwd-button-size: 24px;
|
|
|
326
332
|
}
|
|
327
333
|
|
|
328
334
|
&__button {
|
|
329
|
-
@include u-v-center;
|
|
335
|
+
@include globals.u-v-center;
|
|
330
336
|
width: 15px;
|
|
331
337
|
height: 17px;
|
|
332
338
|
position: absolute;
|
|
333
|
-
right: u-spacing( 1 );
|
|
339
|
+
right: spacing.u-spacing( 1 );
|
|
334
340
|
background: none;
|
|
335
341
|
border: none;
|
|
336
342
|
padding: 0;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// Copyright (c) 2017-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
// For licensing, see LICENSE.md or http://ckeditor.com/license
|
|
3
3
|
|
|
4
|
-
@
|
|
4
|
+
@use 'helpers/color';
|
|
5
|
+
@use 'helpers/font';
|
|
6
|
+
@use 'helpers/globals';
|
|
7
|
+
@use 'helpers/spacing';
|
|
5
8
|
|
|
6
9
|
/* Global styles for tree navigation in umberto.
|
|
7
10
|
Note: there are also dedicated styles for API Tree and Guides & SDK Tree.
|
|
@@ -11,17 +14,17 @@ See: `_api-tree.scss` and `_guide-sdk-tree.scss`. */
|
|
|
11
14
|
list-style: none;
|
|
12
15
|
|
|
13
16
|
// Make sure the filter never floats over the tree.
|
|
14
|
-
padding-bottom:
|
|
17
|
+
padding-bottom: font.$u-line-height-base + em;
|
|
15
18
|
|
|
16
|
-
@include u-unselectable;
|
|
19
|
+
@include globals.u-unselectable;
|
|
17
20
|
|
|
18
21
|
// Generate styles for tree levels recursively.
|
|
19
|
-
@include u-responsive-tablet-plus {
|
|
20
|
-
@include levels( 1, 1 );
|
|
22
|
+
@include globals.u-responsive-tablet-plus {
|
|
23
|
+
@include globals.levels( 1, 1 );
|
|
21
24
|
}
|
|
22
25
|
|
|
23
|
-
@include u-responsive-tablet {
|
|
24
|
-
@include levels( 1, 0 );
|
|
26
|
+
@include globals.u-responsive-tablet {
|
|
27
|
+
@include globals.levels( 1, 0 );
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
&.guide-tree {
|
|
@@ -54,14 +57,14 @@ See: `_api-tree.scss` and `_guide-sdk-tree.scss`. */
|
|
|
54
57
|
& .tree__item__badge.tree__item__badge_new {
|
|
55
58
|
/* In CSS you cannot get rid of text-decoration in children, you must hack it :( */
|
|
56
59
|
text-decoration: underline;
|
|
57
|
-
text-decoration-color: u-color( 'badge-green' );
|
|
60
|
+
text-decoration-color: color.u-color( 'badge-green' );
|
|
58
61
|
}
|
|
59
62
|
}
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
.tree__item__text {
|
|
63
66
|
display: inline-block;
|
|
64
|
-
padding: u-spacing( -3 ) 0;
|
|
67
|
+
padding: spacing.u-spacing( -3 ) 0;
|
|
65
68
|
position: relative;
|
|
66
69
|
margin-right: auto;
|
|
67
70
|
white-space: nowrap;
|
|
@@ -75,17 +78,17 @@ See: `_api-tree.scss` and `_guide-sdk-tree.scss`. */
|
|
|
75
78
|
width: 13px;
|
|
76
79
|
height: 13px;
|
|
77
80
|
display: inline-block;
|
|
78
|
-
margin-right: u-spacing( -2 );
|
|
81
|
+
margin-right: spacing.u-spacing( -2 );
|
|
79
82
|
background-repeat: no-repeat;
|
|
80
83
|
}
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
.tree__item__badge {
|
|
84
|
-
margin: 0 u-spacing( -2 );
|
|
87
|
+
margin: 0 spacing.u-spacing( -2 );
|
|
85
88
|
}
|
|
86
89
|
|
|
87
90
|
.tree__item__badge:last-of-type {
|
|
88
|
-
margin-right: u-spacing( 2 );
|
|
91
|
+
margin-right: spacing.u-spacing( 2 );
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
.tree__item__wrapper {
|
|
@@ -95,18 +98,18 @@ See: `_api-tree.scss` and `_guide-sdk-tree.scss`. */
|
|
|
95
98
|
flex-wrap: nowrap;
|
|
96
99
|
align-content: center;
|
|
97
100
|
justify-content: flex-start;
|
|
98
|
-
margin-left: calc( -1 * #{ u-spacing( 3 ) } );
|
|
101
|
+
margin-left: calc( -1 * #{ spacing.u-spacing( 3 ) } );
|
|
99
102
|
|
|
100
103
|
&:hover {
|
|
101
|
-
background-color: u-color( 'background-dark' );
|
|
104
|
+
background-color: color.u-color( 'background-dark' );
|
|
102
105
|
}
|
|
103
106
|
|
|
104
107
|
&--active {
|
|
105
108
|
overflow: hidden;
|
|
106
|
-
background-color: u-color( 'background-hue' );
|
|
109
|
+
background-color: color.u-color( 'background-hue' );
|
|
107
110
|
|
|
108
111
|
&:hover {
|
|
109
|
-
background-color: u-color( 'background-hue', -3% );
|
|
112
|
+
background-color: color.u-color( 'background-hue', -3% );
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
}
|
|
@@ -187,13 +190,13 @@ See: `_api-tree.scss` and `_guide-sdk-tree.scss`. */
|
|
|
187
190
|
|
|
188
191
|
/* These styles are outside the .tree scope because badges are also occasionally used in the guide content. */
|
|
189
192
|
.tree__item__badge {
|
|
190
|
-
margin: 0 u-spacing( -3 );
|
|
193
|
+
margin: 0 spacing.u-spacing( -3 );
|
|
191
194
|
text-transform: uppercase;
|
|
192
195
|
font-weight: bold;
|
|
193
196
|
font-size: 10px;
|
|
194
197
|
border-radius: 20px;
|
|
195
|
-
/* u-spacing() lacks granularity here :( */
|
|
196
|
-
padding: u-spacing( -4 ) .6em;
|
|
198
|
+
/* spacing.u-spacing() lacks granularity here :( */
|
|
199
|
+
padding: spacing.u-spacing( -4 ) .6em;
|
|
197
200
|
vertical-align: middle;
|
|
198
201
|
}
|
|
199
202
|
|
|
@@ -202,8 +205,8 @@ See: `_api-tree.scss` and `_guide-sdk-tree.scss`. */
|
|
|
202
205
|
}
|
|
203
206
|
|
|
204
207
|
.tree__item__badge_new {
|
|
205
|
-
background: u-color( 'badge-green' );
|
|
206
|
-
color: u-color( 'text-invert' );
|
|
208
|
+
background: color.u-color( 'badge-green' );
|
|
209
|
+
color: color.u-color( 'text-invert' );
|
|
207
210
|
}
|
|
208
211
|
|
|
209
212
|
.tree__item__badge_premium {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// Copyright (c) 2017-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
// For licensing, see LICENSE.md or http://ckeditor.com/license
|
|
3
3
|
|
|
4
|
+
@use 'helpers/globals';
|
|
5
|
+
@use 'helpers/spacing';
|
|
6
|
+
|
|
4
7
|
.top {
|
|
5
8
|
.warning-banner {
|
|
6
9
|
position: fixed;
|
|
@@ -20,7 +23,7 @@
|
|
|
20
23
|
border-radius: 0 0 3px 3px;
|
|
21
24
|
box-shadow: 0 2px 4px #00000030;
|
|
22
25
|
|
|
23
|
-
@include u-responsive-mobile {
|
|
26
|
+
@include globals.u-responsive-mobile {
|
|
24
27
|
display: none;
|
|
25
28
|
}
|
|
26
29
|
|
|
@@ -31,13 +34,13 @@
|
|
|
31
34
|
& span:first-child {
|
|
32
35
|
background: #1A1A1A;
|
|
33
36
|
color: #FCEB77;
|
|
34
|
-
padding: u-spacing( -3 ) u-spacing( -1 );
|
|
37
|
+
padding: spacing.u-spacing( -3 ) spacing.u-spacing( -1 );
|
|
35
38
|
text-transform: uppercase;
|
|
36
39
|
font-weight: bold;
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
& span:last-child {
|
|
40
|
-
padding: 0 u-spacing( 0 );
|
|
43
|
+
padding: 0 spacing.u-spacing( 0 );
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
46
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// Copyright (c) 2017-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
// For licensing, see LICENSE.md or http://ckeditor.com/license
|
|
3
3
|
|
|
4
|
+
@use 'sass:color';
|
|
5
|
+
@use 'sass:map';
|
|
6
|
+
|
|
4
7
|
$u-colors: (
|
|
5
8
|
'primary': #3E59AD,
|
|
6
9
|
'primary-dark': #314687,
|
|
@@ -38,7 +41,7 @@ $u-colors: (
|
|
|
38
41
|
);
|
|
39
42
|
|
|
40
43
|
@function u-color( $name, $offset: 0% ) {
|
|
41
|
-
@return scale
|
|
44
|
+
@return color.scale( map.get( $u-colors, $name ), $lightness: $offset );
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
@function u-border-color( $name, $offset: 0% ) {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// Copyright (c) 2017-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
// For licensing, see LICENSE.md or http://ckeditor.com/license
|
|
3
3
|
|
|
4
|
-
@
|
|
4
|
+
@use 'color';
|
|
5
|
+
@use 'globals';
|
|
6
|
+
@use 'sass:list';
|
|
7
|
+
@use 'sass:map';
|
|
5
8
|
|
|
6
9
|
$u-font-size-base: 15px;
|
|
7
10
|
$u-line-height-base: 1.6;
|
|
@@ -20,13 +23,13 @@ $u-font-sizes: (
|
|
|
20
23
|
);
|
|
21
24
|
|
|
22
25
|
@function u-font-size( $level ) {
|
|
23
|
-
@return map
|
|
26
|
+
@return map.get( $u-font-sizes, $level ) + rem;
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
@mixin u-font-mono {
|
|
27
30
|
font-family: $u-font-face-mono;
|
|
28
31
|
font-size: .9em;
|
|
29
|
-
color: u-color( text, 20% );
|
|
32
|
+
color: color.u-color( text, 20% );
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
$u-baseline-levels: (
|
|
@@ -38,20 +41,20 @@ $u-baseline-levels: (
|
|
|
38
41
|
);
|
|
39
42
|
|
|
40
43
|
@mixin u-baseline-margin( $level ) {
|
|
41
|
-
$rhythm: map
|
|
42
|
-
margin-bottom: nth( $rhythm, 4 );
|
|
44
|
+
$rhythm: map.get( $u-baseline-levels, $level );
|
|
45
|
+
margin-bottom: list.nth( $rhythm, 4 );
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
@mixin u-baseline-padding( $level ) {
|
|
46
|
-
$rhythm: map
|
|
47
|
-
padding-top: nth( $rhythm, 3 );
|
|
49
|
+
$rhythm: map.get( $u-baseline-levels, $level );
|
|
50
|
+
padding-top: list.nth( $rhythm, 3 );
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
@mixin u-baseline( $level ) {
|
|
51
|
-
$rhythm: map
|
|
54
|
+
$rhythm: map.get( $u-baseline-levels, $level );
|
|
52
55
|
|
|
53
|
-
font-size: nth( $rhythm, 1 );
|
|
54
|
-
line-height: nth( $rhythm, 2 );
|
|
55
|
-
padding-top: nth( $rhythm, 3 );
|
|
56
|
-
margin-bottom: nth( $rhythm, 4 );
|
|
56
|
+
font-size: list.nth( $rhythm, 1 );
|
|
57
|
+
line-height: list.nth( $rhythm, 2 );
|
|
58
|
+
padding-top: list.nth( $rhythm, 3 );
|
|
59
|
+
margin-bottom: list.nth( $rhythm, 4 );
|
|
57
60
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// Copyright (c) 2017-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
// For licensing, see LICENSE.md or http://ckeditor.com/license
|
|
3
3
|
|
|
4
|
+
@use 'spacing';
|
|
5
|
+
@use 'color';
|
|
6
|
+
|
|
4
7
|
$u-top-main: 55px;
|
|
5
8
|
$u-top-sub: 45px;
|
|
6
9
|
$u-top-height: $u-top-main + $u-top-sub;
|
|
@@ -30,7 +33,7 @@ $u-top-icon-width: 30px;
|
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
@mixin u-box {
|
|
33
|
-
background: u-color( 'background-bright' );
|
|
36
|
+
background: color.u-color( 'background-bright' );
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
@mixin u-responsive-mobile() {
|
|
@@ -93,14 +96,12 @@ $u-top-icon-width: 30px;
|
|
|
93
96
|
z-index: 20;
|
|
94
97
|
bottom: 0px;
|
|
95
98
|
margin-bottom: 0;
|
|
96
|
-
padding: u-spacing( 0 ) u-spacing( 2 );
|
|
97
|
-
border-top: 1px solid u-color( 'background-hue' );
|
|
98
|
-
|
|
99
|
-
background: u-color( 'background-bright' );
|
|
99
|
+
padding: spacing.u-spacing( 0 ) spacing.u-spacing( 2 );
|
|
100
|
+
border-top: 1px solid color.u-color( 'background-hue' );
|
|
101
|
+
background: color.u-color( 'background-bright' );
|
|
100
102
|
height: 50px;
|
|
101
103
|
border-top: 1px solid #eee;
|
|
102
104
|
border-left: 0;
|
|
103
|
-
// box-shadow: 2px 2px 0 #fafafa;
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
@mixin u-micro-header {
|
|
@@ -108,18 +109,18 @@ $u-top-icon-width: 30px;
|
|
|
108
109
|
font-size: .85em;
|
|
109
110
|
text-transform: uppercase;
|
|
110
111
|
font-weight: 600;
|
|
111
|
-
color: u-color( 'text', 20% );
|
|
112
|
+
color: color.u-color( 'text', 20% );
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
@mixin levels( $depth, $spacing ) {
|
|
115
116
|
@if ( $depth < 8 ) {
|
|
116
117
|
li {
|
|
117
118
|
&::before {
|
|
118
|
-
left: calc( #{ $depth * u-spacing( $spacing ) } - 8px );
|
|
119
|
+
left: calc( #{ $depth * spacing.u-spacing( $spacing ) } - 8px );
|
|
119
120
|
}
|
|
120
121
|
|
|
121
122
|
.tree__item__text {
|
|
122
|
-
margin-left: ( $depth + 1.5 ) * u-spacing( $spacing );
|
|
123
|
+
margin-left: ( $depth + 1.5 ) * spacing.u-spacing( $spacing );
|
|
123
124
|
}
|
|
124
125
|
|
|
125
126
|
@include levels( $depth + 1, $spacing );
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// Copyright (c) 2017-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
// For licensing, see LICENSE.md or http://ckeditor.com/license
|
|
3
3
|
|
|
4
|
+
@use 'sass:map';
|
|
5
|
+
|
|
4
6
|
$u-def-spacing: 1em;
|
|
5
7
|
$u-def-spacings: (
|
|
6
8
|
-4: .1,
|
|
@@ -15,5 +17,5 @@ $u-def-spacings: (
|
|
|
15
17
|
);
|
|
16
18
|
|
|
17
19
|
@function u-spacing( $spacing ) {
|
|
18
|
-
@return $u-def-spacing * map
|
|
20
|
+
@return $u-def-spacing * map.get( $u-def-spacings, $spacing );
|
|
19
21
|
}
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
* `.main__content--sdk` is added when `page.isSdk` = true.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
@use '../helpers/color';
|
|
10
|
+
@use '../helpers/font';
|
|
11
|
+
@use '../helpers/spacing';
|
|
12
|
+
|
|
9
13
|
.main__content--sdk {
|
|
10
14
|
h1 {
|
|
11
15
|
// "Documentation" link in the title.
|
|
@@ -24,11 +28,11 @@
|
|
|
24
28
|
// Toggler
|
|
25
29
|
a.sdk-sample-source-code__button {
|
|
26
30
|
width: 100%;
|
|
27
|
-
background: u-color( 'background-hue-light' );
|
|
31
|
+
background: color.u-color( 'background-hue-light' );
|
|
28
32
|
display: block;
|
|
29
33
|
padding: 10px 20px;
|
|
30
34
|
position: relative;
|
|
31
|
-
border-left: 3px solid u-color( 'hint-info' );
|
|
35
|
+
border-left: 3px solid color.u-color( 'hint-info' );
|
|
32
36
|
transition: 200ms ease background;
|
|
33
37
|
text-decoration: none;
|
|
34
38
|
|
|
@@ -36,7 +40,7 @@
|
|
|
36
40
|
content: '';
|
|
37
41
|
border-width: 3px 3px 0 0;
|
|
38
42
|
border-style: solid;
|
|
39
|
-
border-color: u-color( 'hint-info' );
|
|
43
|
+
border-color: color.u-color( 'hint-info' );
|
|
40
44
|
width: 12px;
|
|
41
45
|
height: 12px;
|
|
42
46
|
transform: rotate(135deg);
|
|
@@ -47,7 +51,7 @@
|
|
|
47
51
|
|
|
48
52
|
&:hover,
|
|
49
53
|
&.active {
|
|
50
|
-
background: u-color( 'background-hue' );
|
|
54
|
+
background: color.u-color( 'background-hue' );
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
// rotate arrow if active
|
|
@@ -63,7 +67,7 @@
|
|
|
63
67
|
display: none;
|
|
64
68
|
padding: 0;
|
|
65
69
|
position: relative;
|
|
66
|
-
@include u-font-mono;
|
|
70
|
+
@include font.u-font-mono;
|
|
67
71
|
|
|
68
72
|
&.active {
|
|
69
73
|
display: block;
|
|
@@ -77,14 +81,14 @@
|
|
|
77
81
|
|
|
78
82
|
// copy and download buttons
|
|
79
83
|
a {
|
|
80
|
-
background: u-color( 'background-hue-light' );
|
|
81
|
-
padding: u-spacing( 0 );
|
|
84
|
+
background: color.u-color( 'background-hue-light' );
|
|
85
|
+
padding: spacing.u-spacing( 0 );
|
|
82
86
|
display: inline-block;
|
|
83
87
|
text-decoration: none;
|
|
84
88
|
|
|
85
89
|
&:hover {
|
|
86
90
|
opacity: 1;
|
|
87
|
-
background: u-color( 'background-hue' )
|
|
91
|
+
background: color.u-color( 'background-hue' )
|
|
88
92
|
}
|
|
89
93
|
}
|
|
90
94
|
}
|