umberto 4.4.0-alpha.1 → 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 +15 -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,21 @@
|
|
|
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
|
+
|
|
12
|
+
## [4.4.0](https://github.com/cksource/umberto/compare/v4.3.0...v4.4.0) (2024-10-02)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* Added support for loading hooks (`beforeHexo` and `afterHexo`) and `scripts` in ESM format in Umberto. Closes [#1214](https://github.com/cksource/umberto/issues/1214). ([commit](https://github.com/cksource/umberto/commit/2849bef1e59108f863ea0a64314ab980a7f543b6))
|
|
17
|
+
|
|
18
|
+
|
|
4
19
|
## [4.4.0-alpha.1](https://github.com/cksource/umberto/compare/v4.4.0-alpha.0...v4.4.0-alpha.1) (2024-09-24)
|
|
5
20
|
|
|
6
21
|
Internal changes only (updated dependencies, documentation, etc.).
|
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
|
}
|