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
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
## [4.4.1](https://github.com/cksource/umberto/compare/v4.4.0...v4.4.1) (2024-10-30)
|
|
5
|
+
|
|
6
|
+
### Other changes
|
|
7
|
+
|
|
8
|
+
* The SASS deprecation warnings are no longer displayed when building the documentation. Closes [#1224](https://github.com/cksource/umberto/issues/1224). ([commit](https://github.com/cksource/umberto/commit/1bcbb5babcf7aa047e8c41d5962ef5dc085fc0fd))
|
|
9
|
+
* Remove the _book_ icon from titles (from the `<h1>` element).
|
|
10
|
+
|
|
11
|
+
|
|
4
12
|
## [4.4.0](https://github.com/cksource/umberto/compare/v4.3.0...v4.4.0) (2024-10-02)
|
|
5
13
|
|
|
6
14
|
### Features
|
package/package.json
CHANGED
|
@@ -1,29 +1,33 @@
|
|
|
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
|
nav.api-info-box.api-secondary-navigation{
|
|
5
|
-
@include u-responsive-narrow {
|
|
6
|
-
padding: u-spacing( 2 ) u-spacing( 2 ) u-spacing( -3 );
|
|
9
|
+
@include globals.u-responsive-narrow {
|
|
10
|
+
padding: spacing.u-spacing( 2 ) spacing.u-spacing( 2 ) spacing.u-spacing( -3 );
|
|
7
11
|
min-width: 12em;
|
|
8
12
|
|
|
9
13
|
dt {
|
|
10
|
-
border-bottom: 1px solid u-color( 'separator' )
|
|
14
|
+
border-bottom: 1px solid color.u-color( 'separator' )
|
|
11
15
|
}
|
|
12
16
|
|
|
13
17
|
dd {
|
|
14
|
-
margin-right: u-spacing( -1 );
|
|
18
|
+
margin-right: spacing.u-spacing( -1 );
|
|
15
19
|
margin-bottom: 0;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
|
|
19
|
-
@include u-responsive-wide {
|
|
23
|
+
@include globals.u-responsive-wide {
|
|
20
24
|
dl {
|
|
21
|
-
margin-bottom: 1.5 *
|
|
25
|
+
margin-bottom: 1.5 * globals.$u-footer-height;
|
|
22
26
|
}
|
|
23
27
|
}
|
|
24
28
|
|
|
25
|
-
@include u-responsive-wide-md {
|
|
26
|
-
padding-left: u-spacing(4);
|
|
29
|
+
@include globals.u-responsive-wide-md {
|
|
30
|
+
padding-left: spacing.u-spacing(4);
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
// Fix "no-breaking-space" as pseudoelement in the ToC for API (hierachy).
|
|
@@ -42,7 +46,7 @@ nav.api-info-box.api-secondary-navigation{
|
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
dt {
|
|
45
|
-
@include u-micro-header;
|
|
49
|
+
@include globals.u-micro-header;
|
|
46
50
|
margin-bottom: .5em;
|
|
47
51
|
|
|
48
52
|
&:first-child {
|
|
@@ -52,7 +56,7 @@ nav.api-info-box.api-secondary-navigation{
|
|
|
52
56
|
|
|
53
57
|
ul {
|
|
54
58
|
list-style: none;
|
|
55
|
-
margin: 0 0 u-spacing( 1 ) u-spacing( 2 );
|
|
59
|
+
margin: 0 0 spacing.u-spacing( 1 ) spacing.u-spacing( 2 );
|
|
56
60
|
padding: 0;
|
|
57
61
|
|
|
58
62
|
code {
|
|
@@ -1,17 +1,21 @@
|
|
|
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
|
div.api-props-filter {
|
|
5
9
|
right: 0;
|
|
6
|
-
left:
|
|
7
|
-
padding-top: u-spacing( -1 );
|
|
10
|
+
left: globals.$u-sidebar-width;
|
|
11
|
+
padding-top: spacing.u-spacing( -1 );
|
|
8
12
|
margin-bottom: 0;
|
|
9
13
|
text-align: center;
|
|
10
14
|
|
|
11
|
-
@include u-sticky-filter;
|
|
15
|
+
@include globals.u-sticky-filter;
|
|
12
16
|
|
|
13
17
|
h4 {
|
|
14
|
-
@include u-micro-header;
|
|
18
|
+
@include globals.u-micro-header;
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
ul {
|
|
@@ -24,12 +28,12 @@ div.api-props-filter {
|
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
input:checked + label span {
|
|
27
|
-
color: u-color( 'text-invert' );
|
|
28
|
-
background: u-color( 'selected' );
|
|
29
|
-
border-color: u-color( 'selected' );
|
|
31
|
+
color: color.u-color( 'text-invert' );
|
|
32
|
+
background: color.u-color( 'selected' );
|
|
33
|
+
border-color: color.u-color( 'selected' );
|
|
30
34
|
|
|
31
35
|
&:hover {
|
|
32
|
-
background: u-color( 'selected', 5% );
|
|
36
|
+
background: color.u-color( 'selected', 5% );
|
|
33
37
|
}
|
|
34
38
|
}
|
|
35
39
|
|
|
@@ -38,24 +42,24 @@ div.api-props-filter {
|
|
|
38
42
|
margin: 0 auto;
|
|
39
43
|
padding-left: 0;
|
|
40
44
|
|
|
41
|
-
@include u-responsive-narrow {
|
|
45
|
+
@include globals.u-responsive-narrow {
|
|
42
46
|
padding: {
|
|
43
|
-
left:
|
|
44
|
-
right:
|
|
47
|
+
left: globals.$u-content-margin;
|
|
48
|
+
right: globals.$u-content-margin;
|
|
45
49
|
}
|
|
46
|
-
width:
|
|
50
|
+
width: globals.$u-content-max-width;
|
|
47
51
|
}
|
|
48
52
|
|
|
49
|
-
@include u-responsive-wide {
|
|
50
|
-
width:
|
|
53
|
+
@include globals.u-responsive-wide {
|
|
54
|
+
width: globals.$u-content-min-width + globals.$u-sidebar-width;
|
|
51
55
|
}
|
|
52
56
|
|
|
53
|
-
@include u-responsive-wide-md {
|
|
54
|
-
width:
|
|
57
|
+
@include globals.u-responsive-wide-md {
|
|
58
|
+
width: globals.$u-content-md-width + globals.$u-sidebar-width;
|
|
55
59
|
}
|
|
56
60
|
|
|
57
|
-
@include u-responsive-wide-plus {
|
|
58
|
-
width:
|
|
61
|
+
@include globals.u-responsive-wide-plus {
|
|
62
|
+
width: globals.$u-content-max-width + globals.$u-sidebar-width;
|
|
59
63
|
}
|
|
60
64
|
}
|
|
61
65
|
|
|
@@ -65,7 +69,7 @@ div.api-props-filter {
|
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
h4 {
|
|
68
|
-
margin: 0 u-spacing( 2 ) 0 0;
|
|
72
|
+
margin: 0 spacing.u-spacing( 2 ) 0 0;
|
|
69
73
|
padding: 0;
|
|
70
74
|
|
|
71
75
|
&::before {
|
|
@@ -73,12 +77,12 @@ div.api-props-filter {
|
|
|
73
77
|
display: inline-block;
|
|
74
78
|
width: 13px;
|
|
75
79
|
float: left;
|
|
76
|
-
margin-right: u-spacing( -2 );
|
|
80
|
+
margin-right: spacing.u-spacing( -2 );
|
|
77
81
|
position: relative;
|
|
78
82
|
top: 2px;
|
|
79
83
|
}
|
|
80
84
|
|
|
81
|
-
@include u-responsive-narrow {
|
|
85
|
+
@include globals.u-responsive-narrow {
|
|
82
86
|
display:none;
|
|
83
87
|
}
|
|
84
88
|
}
|
|
@@ -93,59 +97,10 @@ div.api-props-filter {
|
|
|
93
97
|
|
|
94
98
|
li {
|
|
95
99
|
display: inline-block;
|
|
96
|
-
margin-left: u-spacing( -2 );
|
|
100
|
+
margin-left: spacing.u-spacing( -2 );
|
|
97
101
|
}
|
|
98
102
|
|
|
99
103
|
input {
|
|
100
104
|
display: none;
|
|
101
105
|
}
|
|
102
|
-
|
|
103
|
-
//@include u-responsive-narrow {
|
|
104
|
-
// @include u-sticky-filter;
|
|
105
|
-
//
|
|
106
|
-
// right: 0;
|
|
107
|
-
// left: $u-sidebar-width;
|
|
108
|
-
// padding-left: 3*u-spacing( 3 );
|
|
109
|
-
//
|
|
110
|
-
// ul, h4 {
|
|
111
|
-
// display: inline-block;
|
|
112
|
-
// vertical-align: middle;
|
|
113
|
-
// }
|
|
114
|
-
//
|
|
115
|
-
// h4 {
|
|
116
|
-
// margin: 0 u-spacing( 2 ) 0 0;
|
|
117
|
-
// padding: 0;
|
|
118
|
-
//
|
|
119
|
-
// &::before {
|
|
120
|
-
// content: url( ../img/filter.svg );
|
|
121
|
-
// display: inline-block;
|
|
122
|
-
// width: 13px;
|
|
123
|
-
// float: left;
|
|
124
|
-
// margin-right: u-spacing( -2 );
|
|
125
|
-
// position: relative;
|
|
126
|
-
// top: 2px;
|
|
127
|
-
// }
|
|
128
|
-
// }
|
|
129
|
-
//
|
|
130
|
-
// &::before {
|
|
131
|
-
// display: none;
|
|
132
|
-
// }
|
|
133
|
-
//
|
|
134
|
-
// ul {
|
|
135
|
-
// padding: 0;
|
|
136
|
-
// }
|
|
137
|
-
//
|
|
138
|
-
// li {
|
|
139
|
-
// display: inline-block;
|
|
140
|
-
// margin-left: u-spacing( -2 );
|
|
141
|
-
// }
|
|
142
|
-
//
|
|
143
|
-
// input {
|
|
144
|
-
// display: none;
|
|
145
|
-
// }
|
|
146
|
-
//}
|
|
147
|
-
//
|
|
148
|
-
//@include u-responsive-wide {
|
|
149
|
-
// padding: u-spacing( 4 );
|
|
150
|
-
//}
|
|
151
106
|
}
|
|
@@ -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/font';
|
|
5
|
+
@use 'helpers/globals';
|
|
6
|
+
|
|
4
7
|
.main__content-inner {
|
|
5
8
|
.hidden-loading {
|
|
6
9
|
display: none;
|
|
@@ -16,20 +19,20 @@
|
|
|
16
19
|
display: none;
|
|
17
20
|
}
|
|
18
21
|
|
|
19
|
-
@include u-responsive-mobile {
|
|
22
|
+
@include globals.u-responsive-mobile {
|
|
20
23
|
flex-wrap: wrap;
|
|
21
24
|
}
|
|
22
25
|
|
|
23
|
-
@include u-responsive-mobile {
|
|
26
|
+
@include globals.u-responsive-mobile {
|
|
24
27
|
&__badges {
|
|
25
28
|
width: 100%;
|
|
26
29
|
}
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
&__navigation {
|
|
30
|
-
@include u-font-mono;
|
|
33
|
+
@include font.u-font-mono;
|
|
31
34
|
|
|
32
|
-
@include u-responsive-mobile {
|
|
35
|
+
@include globals.u-responsive-mobile {
|
|
33
36
|
margin-left: auto;
|
|
34
37
|
}
|
|
35
38
|
|
|
@@ -1,11 +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/font';
|
|
6
|
+
@use 'helpers/globals';
|
|
7
|
+
@use 'helpers/spacing';
|
|
8
|
+
|
|
4
9
|
.tree.api-tree {
|
|
5
|
-
@include u-font-mono;
|
|
10
|
+
@include font.u-font-mono;
|
|
6
11
|
|
|
7
|
-
@include u-responsive-tablet {
|
|
8
|
-
@include levels( 3, 1 );
|
|
12
|
+
@include globals.u-responsive-tablet {
|
|
13
|
+
@include globals.levels( 3, 1 );
|
|
9
14
|
}
|
|
10
15
|
|
|
11
16
|
/* Generate styles for tree levels on <960px devices differently.
|
|
@@ -14,7 +19,7 @@
|
|
|
14
19
|
[data-private], [data-protected] {
|
|
15
20
|
display: none;
|
|
16
21
|
|
|
17
|
-
@include u-responsive-tablet {
|
|
22
|
+
@include globals.u-responsive-tablet {
|
|
18
23
|
display: block;
|
|
19
24
|
}
|
|
20
25
|
}
|
|
@@ -29,16 +34,16 @@
|
|
|
29
34
|
padding-top: 0;
|
|
30
35
|
padding-bottom: 0;
|
|
31
36
|
|
|
32
|
-
@include u-responsive-tablet {
|
|
33
|
-
padding: u-spacing( -3 ) 0;
|
|
37
|
+
@include globals.u-responsive-tablet {
|
|
38
|
+
padding: spacing.u-spacing( -3 ) 0;
|
|
34
39
|
}
|
|
35
40
|
}
|
|
36
41
|
|
|
37
42
|
li::before {
|
|
38
43
|
top: .4em;
|
|
39
44
|
|
|
40
|
-
@include u-responsive-tablet {
|
|
41
|
-
top: u-spacing( -1 );
|
|
45
|
+
@include globals.u-responsive-tablet {
|
|
46
|
+
top: spacing.u-spacing( -1 );
|
|
42
47
|
margin-left: -10px !important;
|
|
43
48
|
}
|
|
44
49
|
}
|
|
@@ -48,13 +53,13 @@
|
|
|
48
53
|
.api-tree__filter {
|
|
49
54
|
text-align: center;
|
|
50
55
|
left: 0;
|
|
51
|
-
width:
|
|
52
|
-
border-right: 1px solid u-color( 'background-hue' );
|
|
56
|
+
width: globals.$u-sidebar-width;
|
|
57
|
+
border-right: 1px solid color.u-color( 'background-hue' );
|
|
53
58
|
|
|
54
|
-
@include u-sticky-filter;
|
|
55
|
-
@include u-unselectable;
|
|
59
|
+
@include globals.u-sticky-filter;
|
|
60
|
+
@include globals.u-unselectable;
|
|
56
61
|
|
|
57
|
-
@include u-responsive-tablet {
|
|
62
|
+
@include globals.u-responsive-tablet {
|
|
58
63
|
display: none;
|
|
59
64
|
}
|
|
60
65
|
|
|
@@ -64,7 +69,7 @@
|
|
|
64
69
|
|
|
65
70
|
// TODO: Magic numbers below...
|
|
66
71
|
label {
|
|
67
|
-
@include u-micro-header;
|
|
72
|
+
@include globals.u-micro-header;
|
|
68
73
|
padding-right: 65px;
|
|
69
74
|
}
|
|
70
75
|
|
|
@@ -82,7 +87,7 @@
|
|
|
82
87
|
display: inline-block;
|
|
83
88
|
width: 50px;
|
|
84
89
|
height: 20px;
|
|
85
|
-
background: u-color( 'primary' );
|
|
90
|
+
background: color.u-color( 'primary' );
|
|
86
91
|
position: absolute;
|
|
87
92
|
right: 0;
|
|
88
93
|
top: -4px;
|
|
@@ -106,7 +111,7 @@
|
|
|
106
111
|
&::before {
|
|
107
112
|
content: "Yes";
|
|
108
113
|
padding-left: 7px;
|
|
109
|
-
background: u-color( 'selected' );
|
|
114
|
+
background: color.u-color( 'selected' );
|
|
110
115
|
}
|
|
111
116
|
|
|
112
117
|
&::after {
|
|
@@ -1,14 +1,18 @@
|
|
|
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/spacing';
|
|
7
|
+
|
|
4
8
|
@mixin badge( $color ) {
|
|
5
9
|
&--#{ $color } {
|
|
6
|
-
border-color: u-color( 'badge-#{ $color }' );
|
|
7
|
-
color: u-color( 'badge-#{ $color }' );
|
|
10
|
+
border-color: color.u-color( 'badge-#{ $color }' );
|
|
11
|
+
color: color.u-color( 'badge-#{ $color }' );
|
|
8
12
|
|
|
9
13
|
.badge__invert {
|
|
10
|
-
color: u-color( 'text-invert' );
|
|
11
|
-
background: u-color( 'badge-#{ $color }' );
|
|
14
|
+
color: color.u-color( 'text-invert' );
|
|
15
|
+
background: color.u-color( 'badge-#{ $color }' );
|
|
12
16
|
}
|
|
13
17
|
|
|
14
18
|
a {
|
|
@@ -16,7 +20,7 @@
|
|
|
16
20
|
text-decoration: none;
|
|
17
21
|
|
|
18
22
|
&:hover {
|
|
19
|
-
color: u-color('badge-#{ $color }', -50% );
|
|
23
|
+
color: color.u-color('badge-#{ $color }', -50% );
|
|
20
24
|
text-decoration: none;
|
|
21
25
|
}
|
|
22
26
|
}
|
|
@@ -26,9 +30,9 @@
|
|
|
26
30
|
.badge {
|
|
27
31
|
vertical-align: middle;
|
|
28
32
|
text-transform: uppercase;
|
|
29
|
-
font-size: u-font-size( -1 );
|
|
30
|
-
padding: u-spacing( -3 ) u-spacing( -2 ) u-spacing( -3 );
|
|
31
|
-
border: 1px solid u-color( 'text' );
|
|
33
|
+
font-size: font.u-font-size( -1 );
|
|
34
|
+
padding: spacing.u-spacing( -3 ) spacing.u-spacing( -2 ) spacing.u-spacing( -3 );
|
|
35
|
+
border: 1px solid color.u-color( 'text' );
|
|
32
36
|
margin-right: 1rem;
|
|
33
37
|
|
|
34
38
|
&.badge--has-invert {
|
|
@@ -36,10 +40,10 @@
|
|
|
36
40
|
}
|
|
37
41
|
|
|
38
42
|
.badge__invert {
|
|
39
|
-
color: u-color( 'text-invert' );
|
|
40
|
-
background: u-color( 'text' );
|
|
41
|
-
padding: u-spacing( -3 ) u-spacing( -2 );
|
|
42
|
-
margin-left: u-spacing( -4 );
|
|
43
|
+
color: color.u-color( 'text-invert' );
|
|
44
|
+
background: color.u-color( 'text' );
|
|
45
|
+
padding: spacing.u-spacing( -3 ) spacing.u-spacing( -2 );
|
|
46
|
+
margin-left: spacing.u-spacing( -4 );
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
@include badge( 'gray' );
|
|
@@ -1,9 +1,16 @@
|
|
|
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
|
+
@use 'helpers/color';
|
|
5
|
+
@use 'helpers/font';
|
|
6
|
+
@use 'helpers/spacing';
|
|
7
|
+
|
|
1
8
|
.code-switcher {
|
|
2
|
-
margin-bottom: u-spacing( -1 );
|
|
9
|
+
margin-bottom: spacing.u-spacing( -1 );
|
|
3
10
|
padding-top: 4px;
|
|
4
11
|
border-radius: 4px;
|
|
5
12
|
|
|
6
|
-
background-color: u-color( 'snippet-background' );
|
|
13
|
+
background-color: color.u-color( 'snippet-background' );
|
|
7
14
|
|
|
8
15
|
pre.highlight[class*=language-] {
|
|
9
16
|
margin: 0;
|
|
@@ -19,7 +26,7 @@
|
|
|
19
26
|
padding: 4px 12px;
|
|
20
27
|
border-radius: 2px;
|
|
21
28
|
|
|
22
|
-
background-color: u-color( 'background-gray' );
|
|
29
|
+
background-color: color.u-color( 'background-gray' );
|
|
23
30
|
}
|
|
24
31
|
|
|
25
32
|
&__button {
|
|
@@ -32,23 +39,23 @@
|
|
|
32
39
|
|
|
33
40
|
background-color: transparent;
|
|
34
41
|
|
|
35
|
-
font-size: u-font-size( 0 );
|
|
42
|
+
font-size: font.u-font-size( 0 );
|
|
36
43
|
font-weight: 500;
|
|
37
44
|
|
|
38
|
-
color: u-color( 'text-invert-gray' );
|
|
45
|
+
color: color.u-color( 'text-invert-gray' );
|
|
39
46
|
|
|
40
47
|
cursor: pointer;
|
|
41
48
|
|
|
42
49
|
transition: 150ms ease color;
|
|
43
50
|
|
|
44
51
|
&:hover {
|
|
45
|
-
color: u-color( 'text-invert' );
|
|
52
|
+
color: color.u-color( 'text-invert' );
|
|
46
53
|
}
|
|
47
54
|
|
|
48
55
|
&--active {
|
|
49
|
-
border-bottom: 2px solid u-color( 'text-invert' );
|
|
56
|
+
border-bottom: 2px solid color.u-color( 'text-invert' );
|
|
50
57
|
|
|
51
|
-
color: u-color( 'text-invert' );
|
|
58
|
+
color: color.u-color( 'text-invert' );
|
|
52
59
|
}
|
|
53
60
|
}
|
|
54
61
|
}
|
|
@@ -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/font';
|
|
6
|
+
@use 'helpers/spacing';
|
|
7
|
+
@use 'sass:math';
|
|
8
|
+
|
|
4
9
|
ul.collapsing-list {
|
|
5
10
|
margin: 0;
|
|
6
11
|
padding: 0;
|
|
@@ -8,16 +13,16 @@ ul.collapsing-list {
|
|
|
8
13
|
}
|
|
9
14
|
|
|
10
15
|
.collapsing-list {
|
|
11
|
-
margin-top: u-spacing( 1 );
|
|
16
|
+
margin-top: spacing.u-spacing( 1 );
|
|
12
17
|
|
|
13
18
|
dd {
|
|
14
|
-
min-height: u-spacing( 1 );
|
|
19
|
+
min-height: spacing.u-spacing( 1 );
|
|
15
20
|
margin: 0;
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
@keyframes highlight {
|
|
19
24
|
0% {
|
|
20
|
-
background: u-color( 'highlight' )
|
|
25
|
+
background: color.u-color( 'highlight' )
|
|
21
26
|
}
|
|
22
27
|
100% {
|
|
23
28
|
background: none;
|
|
@@ -25,7 +30,7 @@ ul.collapsing-list {
|
|
|
25
30
|
}
|
|
26
31
|
|
|
27
32
|
&--empty {
|
|
28
|
-
margin-bottom: u-spacing( 0 );
|
|
33
|
+
margin-bottom: spacing.u-spacing( 0 );
|
|
29
34
|
|
|
30
35
|
&::before {
|
|
31
36
|
content: "No items to display for current filtering criteria."
|
|
@@ -33,7 +38,7 @@ ul.collapsing-list {
|
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
&__content h4 {
|
|
36
|
-
@include u-baseline-padding( 0 );
|
|
41
|
+
@include font.u-baseline-padding( 0 );
|
|
37
42
|
}
|
|
38
43
|
&__item {
|
|
39
44
|
&--first {
|
|
@@ -48,13 +53,13 @@ ul.collapsing-list {
|
|
|
48
53
|
}
|
|
49
54
|
|
|
50
55
|
&__term {
|
|
51
|
-
padding-top: u-spacing( 0 );
|
|
56
|
+
padding-top: spacing.u-spacing( 0 );
|
|
52
57
|
position: relative;
|
|
53
58
|
display: flex;
|
|
54
|
-
border-top: 1px solid u-color( 'separator' );
|
|
59
|
+
border-top: 1px solid color.u-color( 'separator' );
|
|
55
60
|
|
|
56
61
|
&--no-excerpt {
|
|
57
|
-
padding: u-spacing( -3 ) 0;
|
|
62
|
+
padding: spacing.u-spacing( -3 ) 0;
|
|
58
63
|
}
|
|
59
64
|
|
|
60
65
|
&.toggler {
|
|
@@ -63,22 +68,22 @@ ul.collapsing-list {
|
|
|
63
68
|
cursor: pointer;
|
|
64
69
|
|
|
65
70
|
& + .collapsing-list__description {
|
|
66
|
-
padding-left: u-spacing(3);
|
|
71
|
+
padding-left: spacing.u-spacing(3);
|
|
67
72
|
}
|
|
68
73
|
|
|
69
74
|
&::before {
|
|
70
75
|
position: absolute;
|
|
71
|
-
top: u-spacing(-1);
|
|
76
|
+
top: spacing.u-spacing(-1);
|
|
72
77
|
left: 0;
|
|
73
78
|
}
|
|
74
79
|
}
|
|
75
80
|
|
|
76
81
|
&--collapsed {
|
|
77
|
-
padding: u-spacing( -3 ) 0 u-spacing( -3 ) u-spacing( 3 );
|
|
82
|
+
padding: spacing.u-spacing( -3 ) 0 spacing.u-spacing( -3 ) spacing.u-spacing( 3 );
|
|
78
83
|
|
|
79
84
|
& + .collapsing-list__description {
|
|
80
85
|
.collapsing-list__excerpt {
|
|
81
|
-
height:
|
|
86
|
+
height: font.$u-line-height-base + em;
|
|
82
87
|
|
|
83
88
|
/* #791. Wrap excerpt one liner with (...) when collapsed. */
|
|
84
89
|
p {
|
|
@@ -93,13 +98,13 @@ ul.collapsing-list {
|
|
|
93
98
|
}
|
|
94
99
|
|
|
95
100
|
.collapsing-list__excerpt {
|
|
96
|
-
margin-bottom: u-spacing( -3 );
|
|
101
|
+
margin-bottom: spacing.u-spacing( -3 );
|
|
97
102
|
}
|
|
98
103
|
}
|
|
99
104
|
}
|
|
100
105
|
|
|
101
106
|
&--expanded {
|
|
102
|
-
padding: u-spacing( -3 ) 0 u-spacing( -3 ) u-spacing( 3 );
|
|
107
|
+
padding: spacing.u-spacing( -3 ) 0 spacing.u-spacing( -3 ) spacing.u-spacing( 3 );
|
|
103
108
|
|
|
104
109
|
// Do not touch dedicated error code page. See: https://github.com/cksource/umberto/issues/788
|
|
105
110
|
& + .collapsing-list__description:not(.collapsing-list__description--error-page) {
|
|
@@ -113,7 +118,7 @@ ul.collapsing-list {
|
|
|
113
118
|
overflow: visible;
|
|
114
119
|
height: auto;
|
|
115
120
|
white-space: inherit;
|
|
116
|
-
margin-bottom: u-spacing( -3 );
|
|
121
|
+
margin-bottom: spacing.u-spacing( -3 );
|
|
117
122
|
}
|
|
118
123
|
}
|
|
119
124
|
|
|
@@ -144,7 +149,7 @@ ul.collapsing-list {
|
|
|
144
149
|
padding-top: 0;
|
|
145
150
|
width: 100%;
|
|
146
151
|
|
|
147
|
-
@include u-baseline( 0 );
|
|
152
|
+
@include font.u-baseline( 0 );
|
|
148
153
|
|
|
149
154
|
code {
|
|
150
155
|
font-weight: 400;
|
|
@@ -157,7 +162,7 @@ ul.collapsing-list {
|
|
|
157
162
|
.badges {
|
|
158
163
|
text-align: right;
|
|
159
164
|
float: right;
|
|
160
|
-
margin-left: u-spacing( 0 );
|
|
165
|
+
margin-left: spacing.u-spacing( 0 );
|
|
161
166
|
}
|
|
162
167
|
}
|
|
163
168
|
|
|
@@ -181,7 +186,7 @@ ul.collapsing-list {
|
|
|
181
186
|
}
|
|
182
187
|
|
|
183
188
|
&__description {
|
|
184
|
-
//padding: 0 0 0 u-spacing( 3 );
|
|
189
|
+
//padding: 0 0 0 spacing.u-spacing( 3 );
|
|
185
190
|
overflow: hidden;
|
|
186
191
|
|
|
187
192
|
.collapsing-list__excerpt {
|
|
@@ -190,31 +195,31 @@ ul.collapsing-list {
|
|
|
190
195
|
&--short {
|
|
191
196
|
text-overflow: ellipsis;
|
|
192
197
|
overflow: hidden;
|
|
193
|
-
height:
|
|
198
|
+
height: font.$u-line-height-base + em;
|
|
194
199
|
white-space: nowrap;
|
|
195
|
-
margin-bottom: math.div( u-spacing( 0 ), 2 );
|
|
200
|
+
margin-bottom: math.div( spacing.u-spacing( 0 ), 2 );
|
|
196
201
|
}
|
|
197
202
|
}
|
|
198
203
|
|
|
199
204
|
dl {
|
|
200
|
-
padding: 0 0 0 u-spacing( 3 );
|
|
205
|
+
padding: 0 0 0 spacing.u-spacing( 3 );
|
|
201
206
|
|
|
202
207
|
dd p {
|
|
203
|
-
padding-left: u-spacing( 3 );
|
|
208
|
+
padding-left: spacing.u-spacing( 3 );
|
|
204
209
|
}
|
|
205
210
|
|
|
206
211
|
.dlheading5,
|
|
207
212
|
.dlheading6 {
|
|
208
|
-
@include u-baseline( 0 );
|
|
209
|
-
padding-left: u-spacing( 3 );
|
|
213
|
+
@include font.u-baseline( 0 );
|
|
214
|
+
padding-left: spacing.u-spacing( 3 );
|
|
210
215
|
font-weight: 400;
|
|
211
|
-
color: rgba( u-color( 'text-header' ), .9 );
|
|
216
|
+
color: rgba( color.u-color( 'text-header' ), .9 );
|
|
212
217
|
}
|
|
213
218
|
}
|
|
214
219
|
}
|
|
215
220
|
|
|
216
221
|
&__bottom {
|
|
217
|
-
margin-bottom: u-spacing( 0 );
|
|
222
|
+
margin-bottom: spacing.u-spacing( 0 );
|
|
218
223
|
}
|
|
219
224
|
|
|
220
225
|
&--filtered {
|
|
@@ -233,15 +238,15 @@ ul.collapsing-list {
|
|
|
233
238
|
|
|
234
239
|
.collapsing-list__description {
|
|
235
240
|
ul, ol {
|
|
236
|
-
@include u-baseline( 0 );
|
|
241
|
+
@include font.u-baseline( 0 );
|
|
237
242
|
}
|
|
238
243
|
}
|
|
239
244
|
|
|
240
245
|
&__dev-names {
|
|
241
246
|
code#{&}--active {
|
|
242
247
|
display: block;
|
|
243
|
-
color: u-color( 'text', 40% );
|
|
244
|
-
font-size: u-font-size( -1 );
|
|
248
|
+
color: color.u-color( 'text', 40% );
|
|
249
|
+
font-size: font.u-font-size( -1 );
|
|
245
250
|
cursor: default;
|
|
246
251
|
white-space: nowrap;
|
|
247
252
|
overflow: hidden;
|