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.
Files changed (37) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/themes/umberto/layout/page.pug +0 -1
  4. package/themes/umberto/src/css/_api-info-box.scss +14 -10
  5. package/themes/umberto/src/css/_api-props-filter.scss +26 -71
  6. package/themes/umberto/src/css/_api-subheader.scss +7 -4
  7. package/themes/umberto/src/css/_api-tree.scss +21 -16
  8. package/themes/umberto/src/css/_badge.scss +16 -12
  9. package/themes/umberto/src/css/_code-switcher.scss +15 -8
  10. package/themes/umberto/src/css/_collapsinglist.scss +34 -29
  11. package/themes/umberto/src/css/_content.scss +50 -43
  12. package/themes/umberto/src/css/_docsearch.scss +9 -6
  13. package/themes/umberto/src/css/_dropdown.scss +8 -5
  14. package/themes/umberto/src/css/_feedback-widget.scss +6 -3
  15. package/themes/umberto/src/css/_font-external.scss +8 -0
  16. package/themes/umberto/src/css/_footer.scss +21 -16
  17. package/themes/umberto/src/css/_formatted.scss +48 -40
  18. package/themes/umberto/src/css/_guide-content.scss +5 -2
  19. package/themes/umberto/src/css/_guide-sdk-tree.scss +3 -3
  20. package/themes/umberto/src/css/_main.scss +20 -15
  21. package/themes/umberto/src/css/_navigation.scss +11 -7
  22. package/themes/umberto/src/css/_notice.scss +35 -30
  23. package/themes/umberto/src/css/_prism.scss +5 -3
  24. package/themes/umberto/src/css/_rwd-breadcrumbs.scss +3 -1
  25. package/themes/umberto/src/css/_rwd-menu.scss +20 -15
  26. package/themes/umberto/src/css/_secondary-navigation.scss +44 -38
  27. package/themes/umberto/src/css/_toggler.scss +6 -4
  28. package/themes/umberto/src/css/_top.scss +49 -43
  29. package/themes/umberto/src/css/_tree.scss +24 -21
  30. package/themes/umberto/src/css/_warning-banner.scss +6 -3
  31. package/themes/umberto/src/css/helpers/_color.scss +4 -1
  32. package/themes/umberto/src/css/helpers/_font.scss +15 -12
  33. package/themes/umberto/src/css/helpers/_globals.scss +10 -9
  34. package/themes/umberto/src/css/helpers/_spacing.scss +3 -1
  35. package/themes/umberto/src/css/pages/_sdk.scss +12 -8
  36. package/themes/umberto/src/css/styles.scss +48 -47
  37. package/themes/umberto/src/js/_codeswitcherbuttons.js +12 -2
@@ -1,24 +1,31 @@
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:map';
9
+ @use 'sass:math';
10
+
4
11
  .main__content {
5
- @include u-box;
12
+ @include globals.u-box;
6
13
  max-width: 100%;
7
- min-width: $u-content-min-width + 2 * $u-content-margin;
14
+ min-width: globals.$u-content-min-width + 2 * globals.$u-content-margin;
8
15
  flex: 1;
9
- padding: u-spacing( 4 ) 0 3*u-spacing( 2 );
16
+ padding: spacing.u-spacing( 4 ) 0 3 * spacing.u-spacing( 2 );
10
17
  position: relative;
11
18
 
12
- @include u-responsive-wide {
13
- padding-right: $u-sidebar-width;
19
+ @include globals.u-responsive-wide {
20
+ padding-right: globals.$u-sidebar-width;
14
21
  }
15
22
 
16
- @include u-responsive-tablet {
23
+ @include globals.u-responsive-tablet {
17
24
  min-width: unset;
18
25
  }
19
26
 
20
- @include u-responsive-mobile {
21
- padding: u-spacing( 0 ) 0;
27
+ @include globals.u-responsive-mobile {
28
+ padding: spacing.u-spacing( 0 ) 0;
22
29
  }
23
30
 
24
31
  &-inner {
@@ -30,39 +37,39 @@
30
37
  }
31
38
  max-width: 100%;
32
39
 
33
- @include u-responsive-narrow {
34
- max-width: $u-content-max-width + 2*$u-content-margin;
40
+ @include globals.u-responsive-narrow {
41
+ max-width: globals.$u-content-max-width + 2 * globals.$u-content-margin;
35
42
  padding: {
36
- left: $u-content-margin;
37
- right: $u-content-margin;
43
+ left: globals.$u-content-margin;
44
+ right: globals.$u-content-margin;
38
45
  }
39
46
  }
40
47
 
41
- @include u-responsive-wide {
48
+ @include globals.u-responsive-wide {
42
49
  width: auto;
43
50
  margin: {
44
- left: $u-content-margin;
45
- right: $u-content-margin;
51
+ left: globals.$u-content-margin;
52
+ right: globals.$u-content-margin;
46
53
  }
47
54
  }
48
55
 
49
- @include u-responsive-wide-plus {
50
- width: $u-content-max-width;
56
+ @include globals.u-responsive-wide-plus {
57
+ width: globals.$u-content-max-width;
51
58
  margin: 0 auto;
52
59
  }
53
60
 
54
- @include u-responsive-tablet {
61
+ @include globals.u-responsive-tablet {
55
62
  max-width: 100%;
56
63
  padding: {
57
- left: u-spacing( 3 );
58
- right: u-spacing( 3 );
64
+ left: spacing.u-spacing( 3 );
65
+ right: spacing.u-spacing( 3 );
59
66
  }
60
67
  }
61
68
 
62
- @include u-responsive-mobile {
69
+ @include globals.u-responsive-mobile {
63
70
  padding: {
64
- left: u-spacing( 0 );
65
- right: u-spacing( 0 );
71
+ left: spacing.u-spacing( 0 );
72
+ right: spacing.u-spacing( 0 );
66
73
  }
67
74
  }
68
75
 
@@ -71,26 +78,26 @@
71
78
  height: auto;
72
79
  }
73
80
 
74
- @include u-responsive-wide-plus {
81
+ @include globals.u-responsive-wide-plus {
75
82
  img {
76
- max-width: $u-content-max-width;
83
+ max-width: globals.$u-content-max-width;
77
84
  }
78
85
  }
79
86
 
80
87
 
81
88
  h1 {
82
89
  &:first-of-type {
83
- margin-bottom: math.div( u-spacing( 0 ), 2 );
90
+ margin-bottom: math.div( spacing.u-spacing( 0 ), 2 );
84
91
  }
85
92
  }
86
93
 
87
94
  .types {
88
- margin-bottom: u-spacing( 2 );
95
+ margin-bottom: spacing.u-spacing( 2 );
89
96
  }
90
97
  /* #351 Npm badge should be aligned to the left instead of centered. */
91
98
  a[href*="npmjs.com"] {
92
99
  img {
93
- margin: u-spacing( -2 ) 0 u-spacing( 3 );
100
+ margin: spacing.u-spacing( -2 ) 0 spacing.u-spacing( 3 );
94
101
  }
95
102
  }
96
103
  }
@@ -107,14 +114,14 @@
107
114
 
108
115
  img {
109
116
  height: 2.7em;
110
- margin-right: u-spacing( 3 );
117
+ margin-right: spacing.u-spacing( 3 );
111
118
  }
112
119
 
113
120
  h1 {
114
121
  /* #494. Break long named API elements in the main header. */
115
122
  word-break: break-word;
116
123
 
117
- $rhythm: map-get( $u-baseline-levels, 4 );
124
+ $rhythm: map.get( font.$u-baseline-levels, 4 );
118
125
 
119
126
  padding: 0;
120
127
  margin: 0;
@@ -124,7 +131,7 @@
124
131
  font-size: 0.9em;
125
132
  padding: 0;
126
133
  margin: -0.4em 0 0 0;
127
- color: u-color( 'text', 50% );
134
+ color: color.u-color( 'text', 50% );
128
135
 
129
136
  &--hidden {
130
137
  display: none;
@@ -133,7 +140,7 @@
133
140
  }
134
141
 
135
142
  h1.main__content-title {
136
- // @include u-font-mono;
143
+ // @include font.u-font-mono;
137
144
  // Never separate the icon from the title.
138
145
  // white-space: nowrap;
139
146
  display: inline-block;
@@ -143,10 +150,10 @@
143
150
  vertical-align: middle;
144
151
  position: relative;
145
152
  top: -.1em;
146
- margin-right: u-spacing( -2 );
153
+ margin-right: spacing.u-spacing( -2 );
147
154
 
148
- @include u-responsive-mobile {
149
- margin-right: u-spacing( -4 );
155
+ @include globals.u-responsive-mobile {
156
+ margin-right: spacing.u-spacing( -4 );
150
157
  }
151
158
  }
152
159
  }
@@ -157,7 +164,7 @@
157
164
 
158
165
  /* #469. Method name in the API collapsing list should be styled differently. */
159
166
  a.member-name,
160
- span.member-name, {
167
+ span.member-name {
161
168
  font-weight: bold;
162
169
  }
163
170
  }
@@ -173,11 +180,11 @@
173
180
 
174
181
  .typedef-callback {
175
182
  h4 {
176
- @include u-baseline-padding( 0 );
183
+ @include font.u-baseline-padding( 0 );
177
184
  }
178
185
 
179
186
  dl {
180
- padding: 0 0 0 u-spacing( 3 );
187
+ padding: 0 0 0 spacing.u-spacing( 3 );
181
188
  }
182
189
 
183
190
  dt code {
@@ -186,11 +193,11 @@
186
193
  }
187
194
 
188
195
  dd {
189
- min-height: u-spacing( 1 );
196
+ min-height: spacing.u-spacing( 1 );
190
197
  margin: 0;
191
198
 
192
199
  p {
193
- padding-left: u-spacing( 3 );
200
+ padding-left: spacing.u-spacing( 3 );
194
201
  }
195
202
  }
196
203
  }
@@ -201,12 +208,12 @@
201
208
  top: 0;
202
209
 
203
210
  // https://github.com/cksource/umberto/issues/348
204
- @include u-responsive-narrow {
205
- right: $u-content-margin;
211
+ @include globals.u-responsive-narrow {
212
+ right: globals.$u-content-margin;
206
213
  }
207
214
 
208
215
  // We dont' need these buttons on mobile: https://github.com/cksource/umberto/issues/538
209
- @include u-responsive-mobile {
216
+ @include globals.u-responsive-mobile {
210
217
  display: none;
211
218
  }
212
219
 
@@ -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/globals';
6
+
4
7
  $border-color-light: hsl( 0, 0%, 90% );
5
8
  $border-color-dark: hsl( 0, 0%, 50% );
6
9
 
@@ -8,7 +11,7 @@ $border-color-dark: hsl( 0, 0%, 50% );
8
11
  .algolia-docsearch-suggestion--category-header {
9
12
  background: hsl(0, 0%, 96%);
10
13
  font-size: 1.2em;
11
- color: u-color( 'text-gray') ;
14
+ color: color.u-color( 'text-gray') ;
12
15
  border-bottom: 1px solid $border-color-dark;
13
16
  border-top: 1px solid $border-color-dark;
14
17
 
@@ -59,17 +62,17 @@ $border-color-dark: hsl( 0, 0%, 50% );
59
62
  overflow-y: auto;
60
63
  max-height: 90vh;
61
64
 
62
- @include u-responsive-tablet-plus {
65
+ @include globals.u-responsive-tablet-plus {
63
66
  max-width: 800px;
64
67
  width: 800px;
65
68
  }
66
69
 
67
- @include u-responsive-tablet {
70
+ @include globals.u-responsive-tablet {
68
71
  max-width: 80vw;
69
72
  width: 80vw;
70
73
  }
71
74
 
72
- @include u-responsive-mobile {
75
+ @include globals.u-responsive-mobile {
73
76
  max-width: 95vw;
74
77
  width: 95vw;
75
78
  }
@@ -78,7 +81,7 @@ $border-color-dark: hsl( 0, 0%, 50% );
78
81
  .ds-suggestion {
79
82
  .algolia-docsearch-suggestion {
80
83
  &--subcategory-column-text {
81
- color: u-color( text );
84
+ color: color.u-color( text );
82
85
  }
83
86
  &--no-results {
84
87
  border: none;
@@ -86,7 +89,7 @@ $border-color-dark: hsl( 0, 0%, 50% );
86
89
  font-weight: 400;
87
90
  }
88
91
  &----category-header {
89
- color: u-color( 'text-gray' );
92
+ color: color.u-color( 'text-gray' );
90
93
  }
91
94
  }
92
95
 
@@ -1,13 +1,16 @@
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
+
4
7
  $u-button-size-width: 72px;
5
8
  $u-space-between: 15px;
6
9
  $u-icon-size: 36px;
7
10
 
8
11
  .dropdown {
9
12
  &__wrapper {
10
- width: $u-sidebar-width;
13
+ width: globals.$u-sidebar-width;
11
14
  position: relative;
12
15
  padding-left: $u-space-between;
13
16
  }
@@ -16,15 +19,15 @@ $u-icon-size: 36px;
16
19
  display: inline-block;
17
20
  padding-left: $u-space-between;
18
21
  font-weight: bold;
19
- color: u-color( 'text-gray' );
20
- line-height: $u-top-sub;
22
+ color: color.u-color( 'text-gray' );
23
+ line-height: globals.$u-top-sub;
21
24
  }
22
25
 
23
26
  &__content {
24
27
  position: absolute;
25
28
  overflow: hidden;
26
29
  z-index: 1;
27
- background: u-color( 'background-bright' );
30
+ background: color.u-color( 'background-bright' );
28
31
  transition: opacity 200ms ease-in-out;
29
32
 
30
33
  li {
@@ -33,7 +36,7 @@ $u-icon-size: 36px;
33
36
 
34
37
  a {
35
38
  display: block;
36
- color: u-color( 'text-gray' );
39
+ color: color.u-color( 'text-gray' );
37
40
  text-decoration: none;
38
41
  transition: all 200ms ease-in-out;
39
42
  }
@@ -1,8 +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/spacing';
6
+
4
7
  .feedback-widget {
5
- border-top: 1px solid u-color( 'separator' );
6
- margin-top: u-spacing( 3 );
7
- padding-top: u-spacing( 3 ) * 2;
8
+ border-top: 1px solid color.u-color( 'separator' );
9
+ margin-top: spacing.u-spacing( 3 );
10
+ padding-top: spacing.u-spacing( 3 ) * 2;
8
11
  }
@@ -0,0 +1,8 @@
1
+ // Copyright (c) 2017-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ // For licensing, see LICENSE.md or http://ckeditor.com/license
3
+
4
+ // All external fonts have to be imported via this file, and this file can only be imported once in the root file.
5
+ // This is because if a file that has external imports is imported in several places, imports such as the one below
6
+ // will be duplicated in compiled css.
7
+
8
+ @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600');
@@ -1,35 +1,40 @@
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
  .footer {
5
10
  z-index: 30;
6
- font-size: u-font-size( -2 );
7
- width: $u-sidebar-width;
8
- height: 50px;
11
+ font-size: font.u-font-size( -2 );
12
+ width: globals.$u-sidebar-width;
13
+ height: 50px;
9
14
 
10
- @include u-responsive-narrow {
11
- background: u-color( 'background-bright' );
15
+ @include globals.u-responsive-narrow {
16
+ background: color.u-color( 'background-bright' );
12
17
  text-align: right;
13
- padding: u-spacing( -2 ) u-spacing( 4 ) u-spacing( 0 ) u-spacing( 2 );
18
+ padding: spacing.u-spacing( -2 ) spacing.u-spacing( 4 ) spacing.u-spacing( 0 ) spacing.u-spacing( 2 );
14
19
  position: relative;
15
20
  float:right;
16
- height: $u-footer-height;
21
+ height: globals.$u-footer-height;
17
22
  }
18
23
 
19
- @include u-responsive-wide {
24
+ @include globals.u-responsive-wide {
20
25
  position: fixed;
21
- bottom: 0;
22
- right: 0;
26
+ bottom: 0;
27
+ right: 0;
23
28
 
24
- &--bordered {
25
- border-left: 1px solid u-color( 'background-hue' );
29
+ &--bordered {
30
+ border-left: 1px solid color.u-color( 'background-hue' );
26
31
  }
27
32
  }
28
33
 
29
34
  p {
30
- color: u-color( 'text', 20% );
31
- position: absolute;
32
- bottom: u-spacing( 2 );
33
- right: u-spacing( 3 );
35
+ color: color.u-color( 'text', 20% );
36
+ position: absolute;
37
+ bottom: spacing.u-spacing( 2 );
38
+ right: spacing.u-spacing( 3 );
34
39
  }
35
40
  }
@@ -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
  }