@trilogy-ds/styles 0.0.1-beta.20 → 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.
@@ -64,9 +64,6 @@ $body-line-height: 1.5 !default;
64
64
  overflow-x: hidden;
65
65
  overflow-y: scroll;
66
66
  min-height: 100vh;
67
- a {
68
- @extend .link;
69
- }
70
67
  }
71
68
 
72
69
  .header {
@@ -41,10 +41,15 @@
41
41
  margin-bottom: 10px;
42
42
  }
43
43
 
44
- a {
45
- cursor: pointer;
46
- text-decoration: none;
44
+ a {
45
+ color: getColor('font');
46
+ cursor: pointer;
47
+ text-decoration: none;
48
+
49
+ strong {
50
+ color: currentColor;
47
51
  }
52
+ }
48
53
 
49
54
  // List
50
55
  ul {
@@ -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
- @include buttons-states;
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
- @include link-states;
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 {
@@ -0,0 +1,2 @@
1
+ @import "links_partial";
2
+ @import "buttons_partial";
@@ -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
+ }
@@ -1,7 +1,13 @@
1
- @mixin link-states {
1
+ $link-colors: 'info' !default;
2
+
3
+ %link-over {
2
4
  &:hover {
3
5
  filter: brightness(0.8);
4
6
  }
7
+ }
8
+
9
+ %link-states {
10
+ @extend %link-over;
5
11
  &:active {
6
12
  filter: brightness(0.9);
7
13
  }
@@ -3,6 +3,8 @@
3
3
  @import "initial-variables";
4
4
  @import "functions";
5
5
  @import "derived-variables";
6
+ @import '../theming/links_partial';
7
+ @import '../theming/buttons_partial';
6
8
  @import "mixins";
7
9
  @import "controls";
8
10
  @import "background";
@@ -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;
@@ -2,7 +2,5 @@
2
2
  // Mixins can not be redefined
3
3
 
4
4
  @import 'mixins';
5
- @import '../theming/links/mixins';
6
- @import '../theming/buttons/mixins';
7
5
  @import 'animations';
8
6
  @import 'controls';
@@ -2,6 +2,5 @@
2
2
  /* Variables can be redefined*/
3
3
 
4
4
  @import 'initial-variables';
5
- @import '../theming/links/variables';
6
- @import '../theming/buttons/variables';
5
+ @import '../theming/_all';
7
6
  @import 'derived-variables';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "0.0.1-beta.20",
3
+ "version": "0.0.1-beta.21",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
@@ -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';