umberto 4.4.0 → 4.4.2

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/package.json +1 -1
  3. package/src/data-converter/converters/typedoc/typedocconverter.js +1 -1
  4. package/themes/umberto/layout/page.pug +0 -1
  5. package/themes/umberto/src/css/_api-info-box.scss +14 -10
  6. package/themes/umberto/src/css/_api-props-filter.scss +26 -71
  7. package/themes/umberto/src/css/_api-subheader.scss +7 -4
  8. package/themes/umberto/src/css/_api-tree.scss +21 -16
  9. package/themes/umberto/src/css/_badge.scss +16 -12
  10. package/themes/umberto/src/css/_code-switcher.scss +15 -8
  11. package/themes/umberto/src/css/_collapsinglist.scss +34 -29
  12. package/themes/umberto/src/css/_content.scss +50 -43
  13. package/themes/umberto/src/css/_docsearch.scss +9 -6
  14. package/themes/umberto/src/css/_dropdown.scss +8 -5
  15. package/themes/umberto/src/css/_feedback-widget.scss +6 -3
  16. package/themes/umberto/src/css/_font-external.scss +8 -0
  17. package/themes/umberto/src/css/_footer.scss +21 -16
  18. package/themes/umberto/src/css/_formatted.scss +48 -40
  19. package/themes/umberto/src/css/_guide-content.scss +5 -2
  20. package/themes/umberto/src/css/_guide-sdk-tree.scss +3 -3
  21. package/themes/umberto/src/css/_main.scss +20 -15
  22. package/themes/umberto/src/css/_navigation.scss +11 -7
  23. package/themes/umberto/src/css/_notice.scss +35 -30
  24. package/themes/umberto/src/css/_prism.scss +5 -3
  25. package/themes/umberto/src/css/_rwd-breadcrumbs.scss +3 -1
  26. package/themes/umberto/src/css/_rwd-menu.scss +20 -15
  27. package/themes/umberto/src/css/_secondary-navigation.scss +44 -38
  28. package/themes/umberto/src/css/_toggler.scss +6 -4
  29. package/themes/umberto/src/css/_top.scss +49 -43
  30. package/themes/umberto/src/css/_tree.scss +24 -21
  31. package/themes/umberto/src/css/_warning-banner.scss +6 -3
  32. package/themes/umberto/src/css/helpers/_color.scss +4 -1
  33. package/themes/umberto/src/css/helpers/_font.scss +15 -12
  34. package/themes/umberto/src/css/helpers/_globals.scss +10 -9
  35. package/themes/umberto/src/css/helpers/_spacing.scss +3 -1
  36. package/themes/umberto/src/css/pages/_sdk.scss +12 -8
  37. package/themes/umberto/src/css/styles.scss +48 -47
  38. package/themes/umberto/src/js/_codeswitcherbuttons.js +21 -10
@@ -1,36 +1,44 @@
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:list';
9
+ @use 'sass:map';
10
+ @use 'sass:math';
11
+
4
12
  .formatted {
5
13
  // @include u-draw-baseline( 0 );
6
14
 
7
15
  p, ul, ol, blockquote, pre {
8
- @include u-baseline( 0 );
16
+ @include font.u-baseline( 0 );
9
17
  }
10
18
 
11
19
  h1 {
12
- @include u-baseline( 4 );
20
+ @include font.u-baseline( 4 );
13
21
 
14
22
  & + dl {
15
- margin-top: u-spacing( 0 );
23
+ margin-top: spacing.u-spacing( 0 );
16
24
  }
17
25
 
18
- @include u-responsive-mobile {
26
+ @include globals.u-responsive-mobile {
19
27
  font-size: 1.9em;
20
28
  }
21
29
  }
22
30
 
23
31
  dd {
24
- margin-bottom: u-spacing( 0 );
32
+ margin-bottom: spacing.u-spacing( 0 );
25
33
  }
26
34
 
27
35
  // temporary, should not be needed after typography redesign
28
36
  h1:first-of-type {
29
- $rhythm: map-get( $u-baseline-levels, 4 );
37
+ $rhythm: map.get( font.$u-baseline-levels, 4 );
30
38
  width: 100%;
31
39
 
32
- padding-top: nth( $rhythm, 3 ) - 0.5em;
33
- margin-bottom: nth( $rhythm, 4 ) - 0.5em;
40
+ padding-top: list.nth( $rhythm, 3 ) - 0.5em;
41
+ margin-bottom: list.nth( $rhythm, 4 ) - 0.5em;
34
42
 
35
43
  & + h2 {
36
44
  padding-top: 0;
@@ -38,12 +46,12 @@
38
46
  }
39
47
 
40
48
  h2 {
41
- @include u-baseline( 3 );
49
+ @include font.u-baseline( 3 );
42
50
  padding-bottom: .2em;
43
- border-bottom: 1px solid u-color( 'separator' );
51
+ border-bottom: 1px solid color.u-color( 'separator' );
44
52
  font-weight: 400;
45
53
 
46
- @include u-responsive-mobile {
54
+ @include globals.u-responsive-mobile {
47
55
  font-size: 1.5em;
48
56
  }
49
57
  }
@@ -53,19 +61,19 @@
53
61
  }
54
62
 
55
63
  h3 {
56
- @include u-baseline( 2 );
64
+ @include font.u-baseline( 2 );
57
65
  font-weight: 400;
58
66
  }
59
67
 
60
68
  h4 {
61
- @include u-baseline( 1 );
62
- @include u-baseline-margin( 2 );
63
- @include u-baseline-padding( 2 );
69
+ @include font.u-baseline( 1 );
70
+ @include font.u-baseline-margin( 2 );
71
+ @include font.u-baseline-padding( 2 );
64
72
  font-weight: 400;
65
73
  }
66
74
 
67
75
  h5 {
68
- @include u-baseline( 0 );
76
+ @include font.u-baseline( 0 );
69
77
  font-weight: 400;
70
78
  }
71
79
 
@@ -88,17 +96,17 @@
88
96
  }
89
97
 
90
98
  code {
91
- font-family: $u-font-face-mono;
99
+ font-family: font.$u-font-face-mono;
92
100
  font-size: .866666em; // 13px
93
- padding: u-spacing( 2 );
101
+ padding: spacing.u-spacing( 2 );
94
102
  }
95
103
 
96
104
  :not( pre ) > code:not( .highlight ) {
97
105
  & {
98
- // It's a darker shade of u-color( 'background-hue' ) so it looks good in info-boxes.
106
+ // It's a darker shade of color.u-color( 'background-hue' ) so it looks good in info-boxes.
99
107
  // See #230.
100
108
  background: rgba( 202, 205, 207, 0.3 );
101
- padding: u-spacing( -4 ) u-spacing( -3 );
109
+ padding: spacing.u-spacing( -4 ) spacing.u-spacing( -3 );
102
110
  border-radius: 3px;
103
111
  }
104
112
 
@@ -118,7 +126,7 @@
118
126
  }
119
127
 
120
128
  a code:not( .highlight ) {
121
- color: u-color( 'link' );
129
+ color: color.u-color( 'link' );
122
130
  }
123
131
 
124
132
  .highlight {
@@ -126,7 +134,7 @@
126
134
  color: #f8f8f2;
127
135
 
128
136
  a {
129
- color: u-color( 'text-invert' );
137
+ color: color.u-color( 'text-invert' );
130
138
  }
131
139
  }
132
140
 
@@ -137,7 +145,7 @@
137
145
  }
138
146
 
139
147
  blockquote {
140
- border-left: 1px solid u-color( toggler );
148
+ border-left: 1px solid color.u-color( toggler );
141
149
  padding-left: 10px;
142
150
  padding-top: 0;
143
151
  font-style: italic;
@@ -145,24 +153,24 @@
145
153
 
146
154
  kbd {
147
155
  display: inline-block;
148
- background: u-color( 'background-dark' );
149
- border: solid 1px u-border-color( 'background-hue', 5% );
150
- border-bottom-color: u-border-color( 'background-hue', -5% );
151
- box-shadow: inset 0 -1px 0 u-border-color( 'background-hue', -5% );
156
+ background: color.u-color( 'background-dark' );
157
+ border: solid 1px color.u-border-color( 'background-hue', 5% );
158
+ border-bottom-color: color.u-border-color( 'background-hue', -5% );
159
+ box-shadow: inset 0 -1px 0 color.u-border-color( 'background-hue', -5% );
152
160
  font-size: .866666em; // 13px
153
- padding: u-spacing( -3 ) u-spacing( -2 );
161
+ padding: spacing.u-spacing( -3 ) spacing.u-spacing( -2 );
154
162
  line-height: 1em;
155
163
  vertical-align: middle;
156
164
  border-radius: 3px;
157
165
  }
158
166
 
159
167
  ul, ol {
160
- margin-left: 2 * u-spacing( 2 );
168
+ margin-left: 2 * spacing.u-spacing( 2 );
161
169
 
162
- @include u-baseline-margin( 0 );
170
+ @include font.u-baseline-margin( 0 );
163
171
 
164
- @include u-responsive-mobile {
165
- margin-left: u-spacing( 2 );
172
+ @include globals.u-responsive-mobile {
173
+ margin-left: spacing.u-spacing( 2 );
166
174
  }
167
175
  }
168
176
 
@@ -172,7 +180,7 @@
172
180
  margin-bottom: 0;
173
181
 
174
182
  &:last-of-type {
175
- margin-bottom: math.div( u-spacing( 0 ), 3 );
183
+ margin-bottom: math.div( spacing.u-spacing( 0 ), 3 );
176
184
  }
177
185
  }
178
186
 
@@ -185,13 +193,13 @@
185
193
 
186
194
  p img {
187
195
  display: block;
188
- margin: u-spacing( 3 ) auto;
196
+ margin: spacing.u-spacing( 3 ) auto;
189
197
  box-sizing: content-box;
190
198
  }
191
199
 
192
200
  iframe:not( .cke_wysiwyg_frame ) {
193
201
  display: block;
194
- margin: u-spacing( 3 ) auto;
202
+ margin: spacing.u-spacing( 3 ) auto;
195
203
  }
196
204
 
197
205
  ol {
@@ -199,7 +207,7 @@
199
207
  }
200
208
 
201
209
  table {
202
- margin: u-spacing( 3 ) 0;
210
+ margin: spacing.u-spacing( 3 ) 0;
203
211
  width: 100%;
204
212
 
205
213
  /* See: #794. Long code or snippet without any white-space is breaking table. */
@@ -210,7 +218,7 @@
210
218
  }
211
219
 
212
220
  td, th {
213
- border: 1px solid u-border-color( 'background-dark', 20% );
221
+ border: 1px solid color.u-border-color( 'background-dark', 20% );
214
222
  padding: 6px 12px;
215
223
  }
216
224
 
@@ -267,10 +275,10 @@
267
275
  [dir=rtl] {
268
276
  ul, ol {
269
277
  margin-left: 0;
270
- margin-right: 2 * u-spacing( 2 );
278
+ margin-right: 2 * spacing.u-spacing( 2 );
271
279
 
272
- @include u-responsive-mobile {
273
- margin-right: u-spacing( 2 );
280
+ @include globals.u-responsive-mobile {
281
+ margin-right: spacing.u-spacing( 2 );
274
282
  }
275
283
  }
276
284
  }
@@ -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/color';
5
+ @use 'helpers/spacing';
6
+
4
7
  .main__content-inner {
5
8
  h2, h3, h4, h5, h6 {
6
9
  // Make sure only those headers that have IDs (and a link) get the relative position because applying
@@ -14,7 +17,7 @@
14
17
  position: absolute;
15
18
  padding: 0 1em;
16
19
  left: -2em;
17
- color: u-color( 'link', 20% );
20
+ color: color.u-color( 'link', 20% );
18
21
  }
19
22
 
20
23
  &:hover {
@@ -28,7 +31,7 @@
28
31
  .inline {
29
32
  display: inline-block;
30
33
  margin: 0;
31
- padding: 0 u-spacing( -2 );
34
+ padding: 0 spacing.u-spacing( -2 );
32
35
  vertical-align: text-bottom;
33
36
  }
34
37
  }
@@ -1,13 +1,13 @@
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
- @import 'helpers/globals';
4
+ @use 'helpers/spacing';
5
5
 
6
6
  .guide-tree,
7
7
  .sdk-tree {
8
8
  .tree__item__text {
9
- padding-top: u-spacing( -2 );
10
- padding-bottom: u-spacing( -2 );
9
+ padding-top: spacing.u-spacing( -2 );
10
+ padding-bottom: spacing.u-spacing( -2 );
11
11
  margin-top: 0;
12
12
  margin-bottom: 0;
13
13
  }
@@ -1,27 +1,32 @@
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/globals';
6
+ @use 'helpers/spacing';
7
+ @use 'sass:meta';
8
+
4
9
  .main {
5
10
  display: flex;
6
11
  justify-content: flex-end;
7
12
  flex-direction: row-reverse;
8
13
  flex-wrap: nowrap;
9
- min-height: calc( 100vh - #{ $u-top-height } );
14
+ min-height: calc( 100vh - #{ globals.$u-top-height } );
10
15
 
11
- @include u-responsive-narrow {
12
- background: u-color( 'background-bright' );
13
- min-height: calc( 100vh - #{ $u-top-height } - #{ $u-footer-height } );
16
+ @include globals.u-responsive-narrow {
17
+ background: color.u-color( 'background-bright' );
18
+ min-height: calc( 100vh - #{ globals.$u-top-height } - #{ globals.$u-footer-height } );
14
19
  }
15
20
 
16
- @import 'content';
17
- @import 'navigation';
21
+ @include meta.load-css('content');
22
+ @include meta.load-css('navigation');
18
23
 
19
24
  // We need to move it up, because of no subheader
20
25
  &--home {
21
- margin-top: $u-top-sub * -1;
26
+ margin-top: globals.$u-top-sub * -1;
22
27
 
23
- @include u-responsive-narrow {
24
- min-height: calc( 100vh - #{ $u-top-sub } - #{ $u-footer-height } );
28
+ @include globals.u-responsive-narrow {
29
+ min-height: calc( 100vh - #{ globals.$u-top-sub } - #{ globals.$u-footer-height } );
25
30
  }
26
31
  }
27
32
 
@@ -37,16 +42,16 @@
37
42
  .main__content-inner {
38
43
  width: auto;
39
44
  margin: auto;
40
- max-width: $u-content-max-width + 2*$u-content-margin;
45
+ max-width: globals.$u-content-max-width + 2 * globals.$u-content-margin;
41
46
  padding: {
42
- left: $u-content-margin;
43
- right: $u-content-margin;
47
+ left: globals.$u-content-margin;
48
+ right: globals.$u-content-margin;
44
49
  }
45
50
 
46
- @include u-responsive-mobile {
51
+ @include globals.u-responsive-mobile {
47
52
  padding: {
48
- left: u-spacing( 0 );
49
- right: u-spacing( 0 );
53
+ left: spacing.u-spacing( 0 );
54
+ right: spacing.u-spacing( 0 );
50
55
  }
51
56
  }
52
57
  }
@@ -1,25 +1,29 @@
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/globals';
6
+ @use 'helpers/spacing';
7
+
4
8
  .side-navigation {
5
- flex: 0 0 $u-sidebar-width;
9
+ flex: 0 0 globals.$u-sidebar-width;
6
10
 
7
- @include u-responsive-tablet {
11
+ @include globals.u-responsive-tablet {
8
12
  display: none;
9
13
  }
10
14
 
11
15
  // needed for independent scroll
12
16
  &__wrapper {
13
- @include u-box;
14
- height: calc( 100% - #{ $u-top-height } );
17
+ @include globals.u-box;
18
+ height: calc( 100% - #{ globals.$u-top-height } );
15
19
  display: flex;
16
20
  position: fixed;
17
21
  }
18
22
 
19
23
  &__inner {
20
- width: $u-sidebar-width;
21
- padding: u-spacing( 0 ) 0;
22
- border-right: 1px solid u-color( 'background-hue' );
24
+ width: globals.$u-sidebar-width;
25
+ padding: spacing.u-spacing( 0 ) 0;
26
+ border-right: 1px solid color.u-color( 'background-hue' );
23
27
  overflow-y: auto;
24
28
  transition: 250ms ease margin;
25
29
  overflow-x: hidden;
@@ -1,6 +1,11 @@
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/globals';
6
+ @use 'helpers/spacing';
7
+ @use 'sass:math';
8
+
4
9
  p.notice,
5
10
  div.notice,
6
11
  nav.notice,
@@ -8,10 +13,10 @@ nav.notice,
8
13
  div.tip,
9
14
  p.tip {
10
15
  position: relative;
11
- margin: u-spacing( 4 ) 0;
12
- background: u-color( 'background-hue' );
13
- border-left: 3px solid u-color( 'hint-info' );
14
- padding: u-spacing( 4 );
16
+ margin: spacing.u-spacing( 4 ) 0;
17
+ background: color.u-color( 'background-hue' );
18
+ border-left: 3px solid color.u-color( 'hint-info' );
19
+ padding: spacing.u-spacing( 4 );
15
20
 
16
21
  p {
17
22
  &:first-of-type {
@@ -25,49 +30,49 @@ p.tip {
25
30
 
26
31
  &::before {
27
32
  display: block;
28
- width: $u-top-icon-width;
29
- height: $u-top-icon-width;
33
+ width: globals.$u-top-icon-width;
34
+ height: globals.$u-top-icon-width;
30
35
  position: absolute;
31
- left: ( $u-top-icon-width * 2 - math.div( $u-top-icon-width, 2 ) ) * -1;
32
- top: math.div( $u-top-icon-width, 2 );
36
+ left: ( globals.$u-top-icon-width * 2 - math.div( globals.$u-top-icon-width, 2 ) ) * -1;
37
+ top: math.div( globals.$u-top-icon-width, 2 );
33
38
  }
34
39
 
35
- @include u-responsive-narrow {
40
+ @include globals.u-responsive-narrow {
36
41
  position: relative;
37
- background: u-color( 'background-dark' );
42
+ background: color.u-color( 'background-dark' );
38
43
 
39
44
  &::before {
40
45
  display: block;
41
- width: $u-top-icon-width;
42
- height: $u-top-icon-width;
46
+ width: globals.$u-top-icon-width;
47
+ height: globals.$u-top-icon-width;
43
48
  position: absolute;
44
- left: $u-top-icon-width - math.div( $u-top-icon-width, 2 );
45
- top: math.div( $u-top-icon-width, 2 );
49
+ left: globals.$u-top-icon-width - math.div( globals.$u-top-icon-width, 2 );
50
+ top: math.div( globals.$u-top-icon-width, 2 );
46
51
  }
47
52
  }
48
53
 
49
- @include u-responsive-mobile {
50
- padding: u-spacing( 0 );
51
- margin: u-spacing( 0 );
54
+ @include globals.u-responsive-mobile {
55
+ padding: spacing.u-spacing( 0 );
56
+ margin: spacing.u-spacing( 0 );
52
57
  }
53
58
 
54
59
  &__hint {
55
- border-left: 3px solid u-color( 'hint-info' );
60
+ border-left: 3px solid color.u-color( 'hint-info' );
56
61
  }
57
62
 
58
63
  &__feedback {
59
- border-left: 3px solid u-color( 'hint-hint' );
60
- background-color: rgba( u-color( 'hint-hint' ), .1 );
64
+ border-left: 3px solid color.u-color( 'hint-hint' );
65
+ background-color: rgba( color.u-color( 'hint-hint' ), .1 );
61
66
  }
62
67
 
63
68
  &__warning {
64
- border-left: 3px solid u-color( 'hint-warning' );
65
- background-color: rgba( u-color( 'hint-warning' ), .1 );
69
+ border-left: 3px solid color.u-color( 'hint-warning' );
70
+ background-color: rgba( color.u-color( 'hint-warning' ), .1 );
66
71
  }
67
72
 
68
73
  &__error {
69
- border-left: 3px solid u-color( 'hint-error' );
70
- background-color: rgba( u-color( 'hint-error' ), .1 );
74
+ border-left: 3px solid color.u-color( 'hint-error' );
75
+ background-color: rgba( color.u-color( 'hint-error' ), .1 );
71
76
  }
72
77
 
73
78
  &_menu-like {
@@ -76,7 +81,7 @@ p.tip {
76
81
  margin: 0;
77
82
  }
78
83
 
79
- @include u-responsive-narrow {
84
+ @include globals.u-responsive-narrow {
80
85
  // background: none;
81
86
 
82
87
  li {
@@ -84,24 +89,24 @@ p.tip {
84
89
  }
85
90
  }
86
91
 
87
- @include u-responsive-wide {
88
- padding: u-spacing( 0 ) 0 0;
92
+ @include globals.u-responsive-wide {
93
+ padding: spacing.u-spacing( 0 ) 0 0;
89
94
 
90
95
  ul, ol {
91
96
  text-align: center;
92
97
 
93
98
  li {
94
99
  a {
95
- padding: u-spacing( -1 ) u-spacing( 1 );
100
+ padding: spacing.u-spacing( -1 ) spacing.u-spacing( 1 );
96
101
  display: block;
97
102
 
98
103
  &:hover {
99
- background: u-color( 'background-dark' );
104
+ background: color.u-color( 'background-dark' );
100
105
  }
101
106
  }
102
107
 
103
108
  & + li {
104
- border-top: 1px solid u-color( 'separator' );
109
+ border-top: 1px solid color.u-color( 'separator' );
105
110
  }
106
111
  }
107
112
 
@@ -9,6 +9,8 @@
9
9
  * The theme was a little bit cleaned up to match Umberto theme.
10
10
  */
11
11
 
12
+ @use 'helpers/spacing';
13
+
12
14
  code.highlight[class*="language-"],
13
15
  pre.highlight[class*="language-"] {
14
16
  color: #f8f8f2;
@@ -126,14 +128,14 @@ div.code-toolbar {
126
128
 
127
129
  & > .toolbar {
128
130
  position: absolute;
129
- top: u-spacing( -2 );
130
- right: u-spacing( -2 );
131
+ top: spacing.u-spacing( -2 );
132
+ right: spacing.u-spacing( -2 );
131
133
  display: flex;
132
134
  flex-direction: row;
133
135
  flex-wrap: nowrap;
134
136
 
135
137
  .toolbar-item + .toolbar-item {
136
- margin-left: u-spacing( -3 );
138
+ margin-left: spacing.u-spacing( -3 );
137
139
  }
138
140
 
139
141
  & button {
@@ -1,10 +1,12 @@
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
+
4
6
  .rwd-breadcrumbs {
5
7
  display: none;
6
8
 
7
- @include u-responsive-tablet {
9
+ @include globals.u-responsive-tablet {
8
10
  display: block;
9
11
  }
10
12
 
@@ -1,14 +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
+
4
9
  .header__menu-rwd {
5
10
  display: none;
6
- height: calc( 100% - #{ $u-top-main } );
11
+ height: calc( 100% - #{ globals.$u-top-main } );
7
12
  overflow-x: hidden;
8
- background: u-color( 'background-bright' );
13
+ background: color.u-color( 'background-bright' );
9
14
 
10
15
  a {
11
- color: u-color( 'text-invert' );
16
+ color: color.u-color( 'text-invert' );
12
17
  display: block;
13
18
  width: 100%;
14
19
 
@@ -27,29 +32,29 @@
27
32
 
28
33
  /* Make different appearance of project names (CK5, CK4, Letters etc.). */
29
34
  li[data-project] {
30
- border-bottom: 1px solid u-color( 'separator' );
35
+ border-bottom: 1px solid color.u-color( 'separator' );
31
36
 
32
37
  > a {
33
- padding: u-spacing( -1 );
34
- color: u-color( 'text' );
35
- background: u-color( 'background-dark' );
36
- font-size: u-font-size( 1 );
38
+ padding: spacing.u-spacing( -1 );
39
+ color: color.u-color( 'text' );
40
+ background: color.u-color( 'background-dark' );
41
+ font-size: font.u-font-size( 1 );
37
42
  font-weight: bold;
38
43
  }
39
44
  }
40
45
 
41
46
  /* 2nd level of tree. */
42
47
  ul.header__menu-rwd__projects-pages {
43
- background: u-color( 'background-bright' );
48
+ background: color.u-color( 'background-bright' );
44
49
  padding-bottom: 0;
45
50
 
46
51
  /* Style elements like Builds, Framework, Examples, API, Features. */
47
52
  li[data-group] {
48
- border-bottom: 1px solid u-color( 'separator' );
53
+ border-bottom: 1px solid color.u-color( 'separator' );
49
54
 
50
55
  > a {
51
- padding: u-spacing( -1 );
52
- margin-left: u-spacing( 0 );
56
+ padding: spacing.u-spacing( -1 );
57
+ margin-left: spacing.u-spacing( 0 );
53
58
  text-transform: uppercase;
54
59
  }
55
60
  }
@@ -57,8 +62,8 @@
57
62
 
58
63
  /* 3rd level of tree. */
59
64
  ul.header__menu-rwd__projects-subpages {
60
- margin-top: -1 * u-spacing( -3 );
61
- margin-bottom: u-spacing( -1 );
65
+ margin-top: -1 * spacing.u-spacing( -3 );
66
+ margin-bottom: spacing.u-spacing( -1 );
62
67
  }
63
68
 
64
69
  /* Highlight active and focused item. */
@@ -66,7 +71,7 @@
66
71
  .tree__item__wrapper:focus,
67
72
  .tree__item__wrapper:active {
68
73
  font-weight: bold;
69
- background-color: u-color( 'separator' );
74
+ background-color: color.u-color( 'separator' );
70
75
  }
71
76
 
72
77
  /* Disable active effect during scrolling on the mobile. */