@trilogy-ds/styles 0.0.1-beta.18 → 0.0.1-beta.21
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/dist/default/trilogy-mangled.css +1 -1
- package/dist/default/trilogy-partials.css +1 -1
- package/dist/default/trilogy.css +1 -1
- package/framework/src/base/_generic.scss +0 -3
- package/framework/src/base/_reset.scss +8 -3
- package/framework/src/elements/_button.scss +1 -5
- package/framework/src/elements/_link.scss +3 -5
- package/framework/src/theming/_all.scss +2 -0
- package/framework/src/theming/{buttons/_variables.scss → buttons_partial.scss} +18 -0
- package/framework/src/theming/{links/_mixins.scss → links_partial.scss} +7 -1
- package/framework/src/utilities/_all.scss +2 -0
- package/framework/src/utilities/_mixins.scss +0 -58
- package/framework/src/utilities/_post.scss +0 -2
- package/framework/src/utilities/_pre.scss +1 -2
- package/package.json +1 -1
- package/framework/src/theming/buttons/_mixins.scss +0 -17
- package/framework/src/theming/links/_variables.scss +0 -1
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
@import "../theming/buttons/mixins";
|
|
2
|
-
@import "../theming/buttons/variables";
|
|
3
|
-
|
|
4
1
|
$button-border-width: 2px !default;
|
|
5
2
|
|
|
6
3
|
.buttons {
|
|
@@ -35,8 +32,7 @@ $button-border-width: 2px !default;
|
|
|
35
32
|
.button {
|
|
36
33
|
@include control;
|
|
37
34
|
@include unselectable;
|
|
38
|
-
@
|
|
39
|
-
|
|
35
|
+
@extend %buttons-states;
|
|
40
36
|
|
|
41
37
|
background-color: white;
|
|
42
38
|
border-width: $button-border-width;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
@import '../theming/links/variables';
|
|
2
|
-
@import '../theming/links/mixins';
|
|
3
|
-
|
|
4
1
|
.link {
|
|
5
2
|
[disabled] {
|
|
6
3
|
@include disabledRulesWithoutBG;
|
|
@@ -8,13 +5,14 @@
|
|
|
8
5
|
}
|
|
9
6
|
|
|
10
7
|
.link:not([disabled]) {
|
|
11
|
-
@
|
|
8
|
+
@extend %link-states;
|
|
12
9
|
|
|
13
10
|
position: relative;
|
|
14
11
|
font-weight: $weight-normal;
|
|
15
12
|
color: getColor($link-colors);
|
|
16
13
|
box-decoration-break: clone;
|
|
17
|
-
text-decoration: underline;
|
|
14
|
+
text-decoration: underline 1px solid;
|
|
15
|
+
text-underline-offset: 4px;
|
|
18
16
|
cursor: pointer;
|
|
19
17
|
|
|
20
18
|
&.has-icon {
|
|
@@ -10,3 +10,21 @@ $button-colors: (
|
|
|
10
10
|
'secondary': ['secondary', 'bg-main', 'main'],
|
|
11
11
|
'ghost': ['ghost', 'background', 'main'],
|
|
12
12
|
) !default;
|
|
13
|
+
|
|
14
|
+
%buttons-states {
|
|
15
|
+
#{$hoverSelector} {
|
|
16
|
+
filter: brightness(0.8);
|
|
17
|
+
&.is-primary {
|
|
18
|
+
filter: brightness(1.2);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
&:active {
|
|
22
|
+
filter: brightness(0.7);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:focus-visible,
|
|
26
|
+
&:focus:focus-visible {
|
|
27
|
+
outline: 2px solid getColor('main');
|
|
28
|
+
outline-offset: 2px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -293,64 +293,6 @@
|
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
-
@mixin hamburger($hamburger-dimensions) {
|
|
297
|
-
cursor: pointer;
|
|
298
|
-
display: block;
|
|
299
|
-
height: $hamburger-dimensions;
|
|
300
|
-
position: relative;
|
|
301
|
-
width: $hamburger-dimensions;
|
|
302
|
-
|
|
303
|
-
span {
|
|
304
|
-
background-color: currentColor;
|
|
305
|
-
display: block;
|
|
306
|
-
height: 1px;
|
|
307
|
-
left: 50%;
|
|
308
|
-
margin-left: -7px;
|
|
309
|
-
position: absolute;
|
|
310
|
-
top: 50%;
|
|
311
|
-
transition: none $speed $easing;
|
|
312
|
-
transition-property: background, left, opacity, transform;
|
|
313
|
-
width: 15px;
|
|
314
|
-
|
|
315
|
-
&:nth-child(1) {
|
|
316
|
-
margin-top: -6px;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
&:nth-child(2) {
|
|
320
|
-
margin-top: -1px;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
&:nth-child(3) {
|
|
324
|
-
margin-top: 4px;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
&:hover {
|
|
329
|
-
background-color: rgba(black, 0.05);
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
// Modifers
|
|
333
|
-
&.is-active {
|
|
334
|
-
span {
|
|
335
|
-
&:nth-child(1) {
|
|
336
|
-
margin-left: -5px;
|
|
337
|
-
transform: rotate(45deg);
|
|
338
|
-
transform-origin: left top;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
&:nth-child(2) {
|
|
342
|
-
opacity: 0;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
&:nth-child(3) {
|
|
346
|
-
margin-left: -5px;
|
|
347
|
-
transform: rotate(-45deg);
|
|
348
|
-
transform-origin: left bottom;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
|
|
354
296
|
@mixin ellipsis() {
|
|
355
297
|
white-space: nowrap;
|
|
356
298
|
overflow-x: hidden;
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
@mixin buttons-states {
|
|
2
|
-
#{$hoverSelector} {
|
|
3
|
-
filter: brightness(0.8);
|
|
4
|
-
&.is-primary {
|
|
5
|
-
filter: brightness(1.2);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
&:active {
|
|
9
|
-
filter: brightness(0.7);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&:focus-visible,
|
|
13
|
-
&:focus:focus-visible {
|
|
14
|
-
outline: 2px solid getColor('main');
|
|
15
|
-
outline-offset: 2px;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
$link-colors: 'info';
|