@bitrise/bitkit 9.5.4-alpha-chakra.1 → 9.5.4

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/package.json CHANGED
@@ -1,22 +1,20 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "9.5.4-alpha-chakra.1",
4
+ "version": "9.5.4",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
8
8
  "scripts": {
9
9
  "build": "yarn build:lib && yarn build:site",
10
- "build:css": "postcss src/{*.css,**/*.css} --base src",
11
10
  "build:docs": "ts-node ./scripts/build-docs",
12
11
  "build:icons": "svgr src/Icon/svg && yarn lint:fix-icons",
13
12
  "build:lib": "rm -rf ./lib && yarn build:lib:cjs && yarn build:lib:esn",
14
- "build:lib:esn": "tsc -p src -m esnext -t esnext --outDir lib/esn && yarn build:css --dir lib/esn",
15
- "build:lib:cjs": "tsc -p src --outDir lib/cjs && yarn build:css --dir lib/cjs",
13
+ "build:lib:esn": "tsc -p src -m esnext -t esnext --outDir lib/esn",
14
+ "build:lib:cjs": "tsc -p src --outDir lib/cjs",
16
15
  "build:site": "rm -rf ./dist && rm -rf ./public && yarn build:docs && parcel build site/index.html -d dist",
17
16
  "commitlint": "commitlint",
18
- "lint": "yarn lint:js && yarn lint:css",
19
- "lint:css": "stylelint src/**/*.css site/**/*.css",
17
+ "lint": "yarn lint:js",
20
18
  "lint:js": "eslint src/**/*.tsx",
21
19
  "lint:fix-icons": "eslint --fix src/Icon/tsx/**",
22
20
  "semantic-release": "semantic-release",
@@ -114,8 +112,6 @@
114
112
  "lodash.shuffle": "^4.2.0",
115
113
  "node-watch": "^0.7.3",
116
114
  "parcel-bundler": "^1.12.0",
117
- "postcss-cli": "^6.1.3",
118
- "postcss-preset-env": "^6.7.1",
119
115
  "prettier": "^2.6.2",
120
116
  "prismjs": "^1.27.0",
121
117
  "react": "^17.0.2",
@@ -124,8 +120,6 @@
124
120
  "react-router": "^5.2.1",
125
121
  "react-router-dom": "^5.3.0",
126
122
  "semantic-release": "^19.0.2",
127
- "stylelint": "^14.6.1",
128
- "stylelint-order": "^5.0.0",
129
123
  "superstatic": "^7.1.0",
130
124
  "ts-jest": "^27.1.4",
131
125
  "ts-node": "^10.7.0",
package/src/Base/Base.css CHANGED
@@ -1,10 +1,10 @@
1
1
  .Base {
2
2
  margin: 0;
3
-
4
- &:first-child { margin-top: 0; }
5
- &:last-child { margin-bottom: 0; }
6
3
  }
7
4
 
5
+ .Base:first-child { margin-top: 0; }
6
+ .Base:last-child { margin-bottom: 0; }
7
+
8
8
  .Base--container { position: relative; }
9
9
 
10
10
  .Base--absolute {
@@ -18,15 +18,15 @@
18
18
  transition-property: border-color, background-color, color;
19
19
  transition-duration: var(--transition-duration--base);
20
20
  transition-timing-function: var(--transition-timing-function);
21
+ }
21
22
 
22
- &:hover {
23
- cursor: pointer;
24
- }
23
+ .Button:hover {
24
+ cursor: pointer;
25
+ }
25
26
 
26
- &:disabled,
27
- &[disabled] {
28
- cursor: default;
29
- }
27
+ .Button:disabled,
28
+ .Button[disabled] {
29
+ cursor: not-allowed;
30
30
  }
31
31
 
32
32
  .Button--full-width {
@@ -65,42 +65,51 @@
65
65
  position: relative;
66
66
  overflow: hidden;
67
67
  z-index: 0;
68
+ }
69
+
70
+ .Button--level-primary::before,
71
+ .Button--level-primary::after,
72
+ .Button--level-secondary::before,
73
+ .Button--level-secondary::after {
74
+ content: '';
75
+ position: absolute;
76
+ top: -0.125rem;
77
+ right: -0.125rem;
78
+ bottom: -0.125rem;
79
+ left: -0.125rem;
80
+ z-index: -1;
81
+ transition-property: opacity;
82
+ transition-duration: var(--transition-duration--base);
83
+ transition-timing-function: var(--transition-timing-function);
84
+ }
68
85
 
69
- &::before,
70
- &::after {
71
- content: '';
72
- position: absolute;
73
- top: -0.125rem;
74
- right: -0.125rem;
75
- bottom: -0.125rem;
76
- left: -0.125rem;
77
- z-index: -1;
78
- transition-property: opacity;
79
- transition-duration: var(--transition-duration--base);
80
- transition-timing-function: var(--transition-timing-function);
81
- }
82
-
83
- &::before { opacity: 1; }
84
- &::after { opacity: 0; }
85
-
86
- &:disabled::before,
87
- &:hover:not(:disabled)::before,
88
- &[disabled]::before,
89
- &:hover:not([disabled])::before {
90
- opacity: 0;
91
- }
92
-
93
- &:hover:not(:disabled)::after,
94
- &:hover:not([disabled])::after {
95
- opacity: 1;
96
- }
97
-
98
- &:disabled::after,
99
- &:active:not(:disabled)::after,
100
- &[disabled]::after,
101
- &:active:not([disabled])::after {
102
- opacity: 0;
103
- }
86
+ .Button--level-primary:disabled::before,
87
+ .Button--level-primary:hover:not(:disabled)::before,
88
+ .Button--level-primary[disabled]::before,
89
+ .Button--level-primary:hover:not([disabled])::before,
90
+ .Button--level-secondary:disabled::before,
91
+ .Button--level-secondary:hover:not(:disabled)::before,
92
+ .Button--level-secondary[disabled]::before,
93
+ .Button--level-secondary:hover:not([disabled])::before {
94
+ opacity: 0;
95
+ }
96
+
97
+ .Button--level-primary:hover:not(:disabled)::after,
98
+ .Button--level-primary:hover:not([disabled])::after,
99
+ .Button--level-secondary:hover:not(:disabled)::after,
100
+ .Button--level-secondary:hover:not([disabled])::after {
101
+ opacity: 1;
102
+ }
103
+
104
+ .Button--level-primary:disabled::after,
105
+ .Button--level-primary:active:not(:disabled)::after,
106
+ .Button--level-primary[disabled]::after,
107
+ .Button--level-primary:active:not([disabled])::after,
108
+ .Button--level-secondary:disabled::after,
109
+ .Button--level-secondary:active:not(:disabled)::after,
110
+ .Button--level-secondary[disabled]::after,
111
+ .Button--level-secondary:active:not([disabled])::after {
112
+ opacity: 0;
104
113
  }
105
114
 
106
115
  .Button--level-primary {
@@ -108,88 +117,95 @@
108
117
  background-color: var(--color-grape--5);
109
118
  color: var(--color-gray--1);
110
119
  font-weight: var(--font-weight--bold);
120
+ }
111
121
 
112
- &:disabled,
113
- &[disabled] {
114
- border-color: var(--color-gray--5);
115
- background-image: linear-gradient(to bottom, var(--color-gray--4), var(--color-gray--5));
116
- }
122
+ .Button--level-primary:disabled,
123
+ .Button--level-primary[disabled] {
124
+ border-color: var(--color-gray--5);
125
+ background-image: linear-gradient(to bottom, var(--color-gray--4), var(--color-gray--5));
126
+ }
117
127
 
118
- &::before {
119
- background-image: linear-gradient(to bottom, #6C0EB2, #450674);
120
- }
128
+ .Button--level-primary::before {
129
+ opacity: 1;
130
+ background-image: linear-gradient(to bottom, #6C0EB2, #450674);
131
+ }
121
132
 
122
- &::after {
123
- background-image: linear-gradient(to bottom, #50167B, #3D125D);
124
- }
133
+ .Button--level-primary::after {
134
+ opacity: 0;
135
+ background-image: linear-gradient(to bottom, #50167B, #3D125D);
125
136
  }
126
137
 
127
138
  .Button--level-secondary {
128
139
  border-color: var(--color-gray--3);
129
140
  background-color: var(--color-gray--2);
130
141
  color: var(--color-grape--5);
142
+ }
131
143
 
132
- &:disabled,
133
- &[disabled] {
134
- border-color: var(--color-gray--3);
135
- background-image: linear-gradient(to bottom, var(--color-white), var(--color-gray--1));
136
- color: var(--color-gray--5);
137
- }
144
+ .Button--level-secondary:disabled,
145
+ .Button--level-secondary[disabled] {
146
+ border-color: var(--color-gray--3);
147
+ background-image: linear-gradient(to bottom, var(--color-white), var(--color-gray--1));
148
+ color: var(--color-gray--5);
149
+ }
138
150
 
139
- &:active:not(:disabled) {
140
- border-color: var(--color-eggplant);
141
- background-color: var(--color-grape--5);
142
- color: var(--color-gray--1);
143
- }
151
+ .Button--level-secondary:active:not(:disabled) {
152
+ border-color: var(--color-eggplant);
153
+ background-color: var(--color-grape--5);
154
+ color: var(--color-gray--1);
155
+ }
144
156
 
145
- &::before {
146
- background-image: linear-gradient(to bottom, var(--color-white), var(--color-gray--1));
147
- }
157
+ .Button--level-secondary::before {
158
+ opacity: 1;
159
+ background-image: linear-gradient(to bottom, var(--color-white), var(--color-gray--1));
160
+ }
148
161
 
149
- &::after {
150
- content: none;
151
- }
162
+ .Button--level-secondary::after {
163
+ content: none;
164
+ opacity: 0;
152
165
  }
153
166
 
154
167
  .Button--level-tertiary {
155
168
  border-color: transparent;
156
169
  background-color: transparent;
157
170
  color: var(--color-grape--3);
171
+ }
158
172
 
159
- &:disabled,
160
- &[disabled] {
161
- color: var(--color-gray--5);
162
- }
173
+ .Button--level-tertiary:disabled,
174
+ .Button--level-tertiary[disabled] {
175
+ color: var(--color-gray--5);
176
+ }
163
177
 
164
- &:hover:not(:disabled),
165
- &:hover:not([disabled]) {
166
- background-color: var(--color-grape--1);
167
- }
178
+ .Button--level-tertiary:hover:not(:disabled),
179
+ .Button--level-tertiary:hover:not([disabled]) {
180
+ background-color: var(--color-grape--1);
181
+ }
168
182
 
169
- &:active:not(:disabled),
170
- &:active:not([disabled]) {
171
- background-color: var(--color-grape--5);
172
- color: var(--color-gray--1);
173
- }
183
+ .Button--level-tertiary:active:not(:disabled),
184
+ .Button--level-tertiary:active:not([disabled]) {
185
+ background-color: var(--color-grape--5);
186
+ color: var(--color-gray--1);
174
187
  }
175
188
 
176
189
  .Button--variant-danger.Button--level-primary:not(:disabled),
177
190
  .Button--variant-danger.Button--level-primary:not([disabled]) {
178
191
  border-color: #D4093C;
179
192
  background-color: #C90032;
193
+ }
180
194
 
181
- &:active {
182
- border-color: #D4093C;
183
- background-color: var(--color-red--5);
184
- }
195
+ .Button--variant-danger.Button--level-primary:not(:disabled):active,
196
+ .Button--variant-danger.Button--level-primary:not([disabled]):active {
197
+ border-color: #D4093C;
198
+ background-color: var(--color-red--5);
199
+ }
185
200
 
186
- &::before {
187
- background-image: linear-gradient(to bottom, #FF2158, #E41447);
188
- }
201
+ .Button--variant-danger.Button--level-primary:not(:disabled)::before,
202
+ .Button--variant-danger.Button--level-primary:not([disabled])::before {
203
+ background-image: linear-gradient(to bottom, #FF2158, #E41447);
204
+ }
189
205
 
190
- &::after {
191
- content: none;
192
- }
206
+ .Button--variant-danger.Button--level-primary:not(:disabled)::after,
207
+ .Button--variant-danger.Button--level-primary:not([disabled])::after {
208
+ content: none;
193
209
  }
194
210
 
195
211
  .Button--variant-danger.Button--level-secondary:not(:disabled),
@@ -197,35 +213,37 @@
197
213
  border-color: var(--color-gray--3);
198
214
  background-color: var(--color-red--1);
199
215
  color: var(--color-red--3);
216
+ }
200
217
 
201
- &:hover {
202
- border-color: var(--color-red--2);
203
- }
218
+ .Button--variant-danger.Button--level-secondary:not(:disabled):hover,
219
+ .Button--variant-danger.Button--level-secondary:not([disabled]):hover {
220
+ border-color: var(--color-red--2);
221
+ }
204
222
 
205
- &:active {
206
- border-color: #D4093C;
207
- background-color: var(--color-red--5);
208
- color: var(--color-gray--1);
209
- }
223
+ .Button--variant-danger.Button--level-secondary:not(:disabled):active,
224
+ .Button--variant-danger.Button--level-secondary:not([disabled]):active {
225
+ border-color: #D4093C;
226
+ background-color: var(--color-red--5);
227
+ color: var(--color-gray--1);
228
+ }
210
229
 
211
- &::before {
212
- background-image: linear-gradient(to bottom, var(--color-white), var(--color-gray--1));
213
- }
230
+ .Button--variant-danger.Button--level-secondary:not(:disabled)::before,
231
+ .Button--variant-danger.Button--level-secondary:not([disabled])::before {
232
+ background-image: linear-gradient(to bottom, var(--color-white), var(--color-gray--1));
233
+ }
214
234
 
215
- &::after {
216
- content: none;
217
- }
235
+ .Button--variant-danger.Button--level-secondary:not(:disabled)::after,
236
+ .Button--variant-danger.Button--level-secondary:not([disabled])::after {
237
+ content: none;
218
238
  }
219
239
 
220
- .Buttons--joined {
221
- & .Button:not(:first-child) {
222
- border-top-left-radius: 0;
223
- border-bottom-left-radius: 0;
224
- }
240
+ .Buttons--joined .Button:not(:first-child) {
241
+ border-top-left-radius: 0;
242
+ border-bottom-left-radius: 0;
243
+ }
225
244
 
226
- & .Button:not(:last-child) {
227
- border-right: 0;
228
- border-top-right-radius: 0;
229
- border-bottom-right-radius: 0;
230
- }
245
+ .Buttons--joined .Button:not(:last-child) {
246
+ border-right: 0;
247
+ border-top-right-radius: 0;
248
+ border-bottom-right-radius: 0;
231
249
  }
@@ -9,22 +9,22 @@
9
9
  transition-property: color;
10
10
  transition-duration: var(--transition-duration--fast);
11
11
  transition-timing-function: var(--transition-timing-function);
12
+ }
12
13
 
13
- &::before {
14
- content: '';
15
- position: absolute;
16
- top: 0;
17
- right: 0;
18
- bottom: 0;
19
- left: 0;
20
- transform: scale(0);
21
- opacity: 0;
22
- border-radius: 50%;
23
- background-color: var(--color-grape--4);
24
- transition-property: transform, opacity, background-color;
25
- transition-duration: var(--transition-duration--fast);
26
- transition-timing-function: var(--transition-timing-function);
27
- }
14
+ .DatePicker__day::before {
15
+ content: '';
16
+ position: absolute;
17
+ top: 0;
18
+ right: 0;
19
+ bottom: 0;
20
+ left: 0;
21
+ transform: scale(0);
22
+ opacity: 0;
23
+ border-radius: 50%;
24
+ background-color: var(--color-grape--4);
25
+ transition-property: transform, opacity, background-color;
26
+ transition-duration: var(--transition-duration--fast);
27
+ transition-timing-function: var(--transition-timing-function);
28
28
  }
29
29
 
30
30
  .DatePicker__day-inner {
@@ -39,20 +39,20 @@
39
39
  color: var(--color-gray--1);
40
40
  }
41
41
 
42
- .DatePicker__day--selected,
43
- .DatePicker__day--selectable.DatePicker__day--unselected:hover {
44
- &::before {
45
- transform: scale(calc(2.5 / 3));
46
- opacity: 1;
47
- background-color: var(--color-grape--4);
48
- }
49
- }
50
-
51
42
  .DatePicker__day--selected::before {
43
+ transform: scale(calc(2.5 / 3));
44
+ opacity: 1;
45
+ background-color: var(--color-grape--4);
52
46
  transform: scale(1);
53
47
  background-color: var(--color-aqua--3);
54
48
  }
55
49
 
50
+ .DatePicker__day--selectable.DatePicker__day--unselected:hover::before {
51
+ transform: scale(calc(2.5 / 3));
52
+ opacity: 1;
53
+ background-color: var(--color-grape--4);
54
+ }
55
+
56
56
  .DatePicker__day--selected-from,
57
57
  .DatePicker__day--selected-between,
58
58
  .DatePicker__day--selected-to {
@@ -39,19 +39,17 @@
39
39
  opacity: 0;
40
40
  }
41
41
 
42
- .Hamburger--active {
43
- &::before,
44
- &::after {
45
- transform: translateY(-50%);
46
- opacity: 0;
47
- }
48
-
49
- & .Hamburger--bar {
50
- transform: translateY(-50%) rotate(45deg);
51
- }
52
-
53
- & .Hamburger--bar::before {
54
- transform: translateY(-50%) rotate(-90deg);
55
- opacity: 1;
56
- }
42
+ .Hamburger--active::before,
43
+ .Hamburger--active::after {
44
+ transform: translateY(-50%);
45
+ opacity: 0;
46
+ }
47
+
48
+ .Hamburger--active .Hamburger--bar {
49
+ transform: translateY(-50%) rotate(45deg);
50
+ }
51
+
52
+ .Hamburger--active .Hamburger--bar::before {
53
+ transform: translateY(-50%) rotate(-90deg);
54
+ opacity: 1;
57
55
  }
@@ -11,11 +11,11 @@
11
11
  text-overflow: ellipsis;
12
12
  line-height: inherit;
13
13
  appearance: none;
14
-
15
- &:focus { outline: none; }
16
- &::placeholder { color: var(--color-gray--7); }
17
14
  }
18
15
 
16
+ .Input:focus { outline: none; }
17
+ .Input::placeholder { color: var(--color-gray--7); }
18
+
19
19
  .Input__container {
20
20
  border: var(--Input--border) solid var(--color-gray--3);
21
21
  border-radius: var(--size--x1);
@@ -34,24 +34,24 @@
34
34
  transition-property: border-color, color;
35
35
  transition-duration: var(--transition-duration--base);
36
36
  transition-timing-function: var(--transition-timing-function);
37
+ }
37
38
 
38
- &:last-child {
39
- border-right: 0;
40
- }
39
+ .Input__content:last-child {
40
+ border-right: 0;
41
41
  }
42
42
 
43
43
  .Input__content--outside {
44
44
  background-color: var(--color-white);
45
+ }
45
46
 
46
- &:first-child {
47
- border-top-left-radius: var(--size--x1);
48
- border-bottom-left-radius: var(--size--x1);
49
- }
47
+ .Input__content--outside:first-child {
48
+ border-top-left-radius: var(--size--x1);
49
+ border-bottom-left-radius: var(--size--x1);
50
+ }
50
51
 
51
- &:last-child {
52
- border-top-right-radius: var(--size--x1);
53
- border-bottom-right-radius: var(--size--x1);
54
- }
52
+ .Input__content--outside:last-child {
53
+ border-top-right-radius: var(--size--x1);
54
+ border-bottom-right-radius: var(--size--x1);
55
55
  }
56
56
 
57
57
  .Input__container--disabled,
@@ -75,9 +75,9 @@
75
75
  .Input__container:focus-within {
76
76
  border-color: var(--color-grape--3);
77
77
  box-shadow: inset 0 0 0 0.125rem rgba(118, 15, 195, 0.3);
78
+ }
78
79
 
79
- & .Input__content {
80
- border-color: var(--color-grape--3);
81
- color: var(--color-grape--5);
82
- }
80
+ .Input__container:focus-within .Input__content {
81
+ border-color: var(--color-grape--3);
82
+ color: var(--color-grape--5);
83
83
  }
package/src/Link/Link.css CHANGED
@@ -11,30 +11,30 @@
11
11
 
12
12
  .Link--color-grape-3 {
13
13
  color: var(--color-grape--3);
14
-
15
- &:hover { color: var(--color-grape--4); }
16
14
  }
17
15
 
16
+ .Link--color-grape-3:hover { color: var(--color-grape--4); }
17
+
18
18
  .Link--color-grape-5 {
19
19
  color: var(--color-grape--5);
20
-
21
- &:hover { color: var(--color-grape--3); }
22
20
  }
23
21
 
22
+ .Link--color-grape-5:hover { color: var(--color-grape--3); }
23
+
24
24
  .Link--color-gray-1 {
25
25
  color: var(--color-gray--1);
26
-
27
- &:hover { color: var(--color-gray--2); }
28
26
  }
29
27
 
28
+ .Link--color-gray-1:hover { color: var(--color-gray--2); }
29
+
30
30
  .Link--color-gray-5 {
31
31
  color: var(--color-gray--5);
32
-
33
- &:hover { color: var(--color-gray--6); }
34
32
  }
35
33
 
34
+ .Link--color-gray-5:hover { color: var(--color-gray--6); }
35
+
36
36
  .Link--color-white {
37
37
  color: var(--color-white);
38
-
39
- &:hover { color: var(--color-gray--1); }
40
38
  }
39
+
40
+ .Link--color-white:hover { color: var(--color-gray--1); }
@@ -31,14 +31,13 @@
31
31
  animation-duration: var(--transition-duration--fast);
32
32
  animation-fill-mode: forwards;
33
33
  animation-timing-function: var(--transition-timing-function);
34
+ }
34
35
 
35
- /* Nested, for workaround of Base margin flow */
36
- &,
37
- &:first-child,
38
- &:last-child {
39
- margin-top: auto;
40
- margin-bottom: auto;
41
- }
36
+ .Modal__content,
37
+ .Modal__content:first-child,
38
+ .Modal__content:last-child {
39
+ margin-top: auto;
40
+ margin-bottom: auto;
42
41
  }
43
42
 
44
43
  .Modal--visible {
@@ -19,53 +19,52 @@
19
19
  position: relative;
20
20
  overflow: hidden;
21
21
  z-index: 0;
22
+ }
22
23
 
23
- &::before {
24
- content: '';
25
- position: absolute;
26
- top: 0;
27
- bottom: 0;
28
- left: 0;
29
- width: var(--size--x1);
30
- opacity: 0;
31
- border-radius: 0 var(--size--x1) var(--size--x1) 0;
32
- background-color: var(--color-aqua--3);
33
- transition-property: opacity;
34
- transition-duration: var(--transition-duration--slow);
35
- transition-timing-function: var(--transition-timing-function);
36
- }
24
+ .Sidebar__menu-item::before {
25
+ content: '';
26
+ position: absolute;
27
+ top: 0;
28
+ bottom: 0;
29
+ left: 0;
30
+ width: var(--size--x1);
31
+ opacity: 0;
32
+ border-radius: 0 var(--size--x1) var(--size--x1) 0;
33
+ background-color: var(--color-aqua--3);
34
+ transition-property: opacity;
35
+ transition-duration: var(--transition-duration--slow);
36
+ transition-timing-function: var(--transition-timing-function);
37
37
  }
38
38
 
39
39
  .Sidebar__menu-item-link {
40
40
  position: relative;
41
41
  padding: var(--size--x4) var(--size--x6);
42
42
  cursor: pointer;
43
+ }
43
44
 
44
- &::before {
45
- content: '';
46
- position: absolute;
47
- top: 0;
48
- right: 0;
49
- bottom: 0;
50
- left: 0;
51
- border-radius: var(--size--x2);
52
- z-index: -1;
53
- transition-property: transform, border-radius, background-color;
54
- transition-duration: var(--transition-duration--base);
55
- transition-timing-function: var(--transition-timing-function);
56
- }
57
- }
58
-
59
- .Sidebar__menu-item--active,
60
- .Sidebar__menu-item--active:hover {
61
- &::before {
62
- opacity: 1;
63
- }
64
-
65
- & .Sidebar__menu-item-link::before {
66
- transform: scale(1.2);
67
- border-radius: 0;
68
- }
45
+ .Sidebar__menu-item-link::before {
46
+ content: '';
47
+ position: absolute;
48
+ top: 0;
49
+ right: 0;
50
+ bottom: 0;
51
+ left: 0;
52
+ border-radius: var(--size--x2);
53
+ z-index: -1;
54
+ transition-property: transform, border-radius, background-color;
55
+ transition-duration: var(--transition-duration--base);
56
+ transition-timing-function: var(--transition-timing-function);
57
+ }
58
+
59
+ .Sidebar__menu-item--active::before,
60
+ .Sidebar__menu-item--active:hover::before {
61
+ opacity: 1;
62
+ }
63
+
64
+ .Sidebar__menu-item--active .Sidebar__menu-item-link::before,
65
+ .Sidebar__menu-item--active:hover .Sidebar__menu-item-link::before {
66
+ transform: scale(1.2);
67
+ border-radius: 0;
69
68
  }
70
69
 
71
70
  .Sidebar__sub-menu-item {
@@ -81,46 +80,46 @@
81
80
  .Sidebar--theme-dark {
82
81
  background-color: var(--color-grape--5);
83
82
  color: var(--color-gray--1);
83
+ }
84
84
 
85
- & .Sidebar__header,
86
- & .Sidebar__menu {
87
- border-bottom-color: var(--color-grape--4);
88
- }
85
+ .Sidebar--theme-dark .Sidebar__header,
86
+ .Sidebar--theme-dark .Sidebar__menu {
87
+ border-bottom-color: var(--color-grape--4);
88
+ }
89
89
 
90
- & .Sidebar__menu:first-child {
91
- border-top-color: var(--color-grape--4);
92
- }
90
+ .Sidebar--theme-dark .Sidebar__menu:first-child {
91
+ border-top-color: var(--color-grape--4);
92
+ }
93
93
 
94
- & .Sidebar__sub-menu-item {
95
- border-top-color: var(--color-grape--5);
96
- }
94
+ .Sidebar--theme-dark .Sidebar__sub-menu-item {
95
+ border-top-color: var(--color-grape--5);
97
96
  }
98
97
 
99
98
  .Sidebar--theme-light {
100
99
  background-color: var(--color-white);
101
100
  color: var(--color-grape-5);
101
+ }
102
+
103
+ .Sidebar--theme-light .Sidebar__header,
104
+ .Sidebar--theme-light .Sidebar__menu {
105
+ border-bottom-color: var(--color-gray--2);
106
+ }
107
+
108
+ .Sidebar--theme-light .Sidebar__menu:first-child {
109
+ border-top-color: var(--color-gray--2);
110
+ }
111
+
112
+ .Sidebar--theme-light .Sidebar__sub-menu-item,
113
+ .Sidebar--theme-light .Sidebar__menu-item--active .Sidebar__menu-item-link::before,
114
+ .Sidebar--theme-light .Sidebar__menu-item:hover .Sidebar__menu-item-link::before {
115
+ background-color: var(--color-gray--1);
116
+ }
117
+
118
+ .Sidebar--theme-light .Sidebar__sub-menu-item {
119
+ border-top-color: var(--color-gray--2);
120
+ }
102
121
 
103
- & .Sidebar__header,
104
- & .Sidebar__menu {
105
- border-bottom-color: var(--color-gray--2);
106
- }
107
-
108
- & .Sidebar__menu:first-child {
109
- border-top-color: var(--color-gray--2);
110
- }
111
-
112
- & .Sidebar__sub-menu-item,
113
- & .Sidebar__menu-item--active .Sidebar__menu-item-link::before,
114
- & .Sidebar__menu-item:hover .Sidebar__menu-item-link::before {
115
- background-color: var(--color-gray--1);
116
- }
117
-
118
- & .Sidebar__sub-menu-item {
119
- border-top-color: var(--color-gray--2);
120
- }
121
-
122
- & .Sidebar__sub-menu-item--active,
123
- & .Sidebar__sub-menu-item:hover {
124
- background-color: var(--color-gray--2);
125
- }
122
+ .Sidebar--theme-light .Sidebar__sub-menu-item--active,
123
+ .Sidebar--theme-light .Sidebar__sub-menu-item:hover {
124
+ background-color: var(--color-gray--2);
126
125
  }
@@ -6,24 +6,24 @@
6
6
  .Skeleton {
7
7
  position: relative;
8
8
  overflow: hidden;
9
+ }
9
10
 
10
- &::after {
11
- position: absolute;
12
- top: 0;
13
- right: 0;
14
- bottom: 0;
15
- left: 0;
16
- background:
17
- linear-gradient(
18
- to left,
19
- rgba(var(--Skeleton--color), 0),
20
- rgba(var(--Skeleton--color), 0.63) 35%,
21
- rgba(var(--Skeleton--color), 1) 48%,
22
- rgba(var(--Skeleton--color), 0.57) 55%,
23
- rgba(var(--Skeleton--color), 0)
24
- );
25
- pointer-events: none;
26
- }
11
+ .Skeleton::after {
12
+ position: absolute;
13
+ top: 0;
14
+ right: 0;
15
+ bottom: 0;
16
+ left: 0;
17
+ background:
18
+ linear-gradient(
19
+ to left,
20
+ rgba(var(--Skeleton--color), 0),
21
+ rgba(var(--Skeleton--color), 0.63) 35%,
22
+ rgba(var(--Skeleton--color), 1) 48%,
23
+ rgba(var(--Skeleton--color), 0.57) 55%,
24
+ rgba(var(--Skeleton--color), 0)
25
+ );
26
+ pointer-events: none;
27
27
  }
28
28
 
29
29
  .Skeleton--active::after {
@@ -42,14 +42,20 @@
42
42
  box-shadow: var(--shadow-elevation--x2);
43
43
  }
44
44
 
45
- .Table--type-card .Table__row:first-child .Table__cell {
46
- &:first-child { border-top-left-radius: var(--size--x2); }
47
- &:last-child { border-top-right-radius: var(--size--x2); }
45
+ .Table--type-card .Table__row:first-child .Table__cell:first-child {
46
+ border-top-left-radius: var(--size--x2);
48
47
  }
49
48
 
50
- .Table--type-card .Table__row:last-child .Table__cell {
51
- &:first-child { border-bottom-left-radius: var(--size--x2); }
52
- &:last-child { border-bottom-right-radius: var(--size--x2); }
49
+ .Table--type-card .Table__row:first-child .Table__cell:last-child {
50
+ border-top-right-radius: var(--size--x2);
51
+ }
52
+
53
+ .Table--type-card .Table__row:last-child .Table__cell:first-child {
54
+ border-bottom-left-radius: var(--size--x2);
55
+ }
56
+
57
+ .Table--type-card .Table__row:last-child .Table__cell:last-child {
58
+ border-bottom-right-radius: var(--size--x2);
53
59
  }
54
60
 
55
61
  .Table--type-card .Table__header-cell,
package/src/Tabs/Tabs.css CHANGED
@@ -23,8 +23,8 @@
23
23
 
24
24
  .Tabs__tab--active {
25
25
  color: var(--color-grape--5);
26
+ }
26
27
 
27
- &::before {
28
- background-color: var(--color-aqua--3);
29
- }
28
+ .Tabs__tab--active::before {
29
+ background-color: var(--color-aqua--3);
30
30
  }
package/src/Text/Text.css CHANGED
@@ -28,6 +28,6 @@
28
28
 
29
29
  .Text--monospace {
30
30
  font-family: var(--font-family-monospace);
31
-
32
- &.Text--weight-bold { font-weight: var(--font-weight-monospace--bold); }
33
31
  }
32
+
33
+ .Text--monospace.Text--weight-bold { font-weight: var(--font-weight-monospace--bold); }
@@ -13,26 +13,27 @@
13
13
  transition-duration: var(--transition-duration--base);
14
14
  transition-timing-function: var(--transition-timing-function);
15
15
  appearance: none;
16
-
17
- &::placeholder { color: var(--color-gray--7); }
18
- &:disabled { background-color: var(--color-gray--2); }
19
16
  }
20
17
 
18
+ .TextArea::placeholder { color: var(--color-gray--7); }
19
+ .TextArea:disabled { background-color: var(--color-gray--2); }
20
+
21
21
  .TextArea--invalid {
22
22
  border-color: var(--color-red--3);
23
23
  color: var(--color-red--3);
24
-
25
- &::placeholder { color: var(--color-red--3); }
26
24
  }
27
25
 
26
+ .TextArea--invalid::placeholder { color: var(--color-red--3); }
27
+
28
28
  .TextArea:focus,
29
29
  .TextArea--invalid:focus {
30
30
  outline: none;
31
31
  border-color: var(--color-grape--3);
32
32
  box-shadow: inset 0 0 0 0.125rem rgba(118, 15, 195, 0.3);
33
33
  color: var(--color-grape--5);
34
+ }
34
35
 
35
- &::placeholder {
36
- color: transparent;
37
- }
36
+ .TextArea:focus::placeholder,
37
+ .TextArea--invalid:focus::placeholder {
38
+ color: transparent;
38
39
  }
@@ -69,10 +69,10 @@
69
69
 
70
70
  .Toggle__input:checked + .Toggle__control {
71
71
  background-color: var(--color-aqua--3);
72
+ }
72
73
 
73
- & .Toggle__knob {
74
- transform: translate(calc(100% + (var(--Toggle--border) * 2)), -50%);
75
- }
74
+ .Toggle__input:checked + .Toggle__control .Toggle__knob {
75
+ transform: translate(calc(100% + (var(--Toggle--border) * 2)), -50%);
76
76
  }
77
77
 
78
78
  .Toggle__container--disabled .Toggle__input:checked + .Toggle__control {
package/src/variables.css CHANGED
@@ -9,7 +9,7 @@
9
9
  --size--x10: 2.5rem;
10
10
  --size--x12: 3rem;
11
11
  --size--x16: 4rem;
12
- /*
12
+
13
13
  --color-white: #FFFFFF;
14
14
  --color-black: #222222;
15
15
 
@@ -148,7 +148,7 @@
148
148
 
149
149
  --color-overlay--black: rgba(34, 34, 34, 0.8);
150
150
  --color-overlay--grape: rgba(53, 29, 72, 0.8);
151
- */
151
+ /*
152
152
  --color-white: var(--colors-neutral-100);
153
153
  --color-black: var(--colors-neutral-10);
154
154
 
@@ -230,6 +230,7 @@
230
230
  --rgb-blue--2: 134, 193, 230;
231
231
 
232
232
  --color-overlay--black: rgba(34, 34, 34, 0.8);
233
+ */
233
234
 
234
235
  --font-family: 'TT Norms Pro', sans-serif;
235
236
  --font-family-monospace: 'Source Code Pro', monospace;