@internetstiftelsen/styleguide 2.23.9 → 2.23.10

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetstiftelsen/styleguide",
3
- "version": "2.23.9",
3
+ "version": "2.23.10",
4
4
  "main": "dist/components.js",
5
5
  "ports": {
6
6
  "fractal": "3000"
@@ -6,7 +6,8 @@
6
6
 
7
7
  @extend %tag;
8
8
 
9
- display: inline-block;
9
+ display: inline-flex;
10
+ align-items: center;
10
11
  position: relative;
11
12
  z-index: z_index(middleground);
12
13
  margin-right: rhythm(1);
@@ -22,7 +23,42 @@
22
23
  @include color_values($colors, 'border-color', $separator: '-');
23
24
  }
24
25
 
26
+ @include e(text) {
27
+ color: $color-cyberspace;
28
+ }
29
+
25
30
  @include m(light) {
26
31
  @extend %tag-light;
32
+
33
+ @include e(text) {
34
+ color: $color-snow;
35
+ }
36
+ }
37
+
38
+ > svg {
39
+ width: $icon-size-small;
40
+ height: $icon-size-small;
41
+ }
42
+
43
+ @include m(hover-light) {
44
+ &:hover,
45
+ &:focus {
46
+ background-color: currentColor !important;
47
+
48
+ [class*=text] {
49
+ color: $color-snow;
50
+ }
51
+ }
52
+ }
53
+
54
+ @include m(hover-dark) {
55
+ &:hover,
56
+ &:focus {
57
+ background-color: currentColor !important;
58
+
59
+ [class*=text] {
60
+ color: $color-cyberspace;
61
+ }
62
+ }
27
63
  }
28
64
  }
@@ -15,22 +15,60 @@ module.exports = {
15
15
  }
16
16
  },
17
17
  {
18
- name: 'Background',
18
+ name: 'Background variation',
19
19
  context: {
20
20
  text: 'background',
21
21
  href: '#',
22
22
  is_light: false,
23
- background_color: 'jade'
23
+ border: true,
24
+ border_color: 'ocean',
25
+ background_color: 'ocean',
26
+ hover_color: 'light',
27
+ color: 'ocean'
24
28
  }
25
29
  },
26
30
  {
27
- name: 'Combined',
31
+ name: 'Border variation',
28
32
  context: {
29
- text: 'combined',
33
+ text: 'border',
30
34
  href: '#',
31
- is_light: true,
32
- background_color: 'ruby'
35
+ is_light: false,
36
+ border: true,
37
+ border_color: 'sandstone',
38
+ background_color: 'sandstone-light',
39
+ hover_color: 'light',
40
+ color: 'sandstone'
41
+ }
42
+ },
43
+ {
44
+ name: 'With right icon',
45
+ context: {
46
+ text: 'with right icon',
47
+ href: '#',
48
+ icon: 'pin',
49
+ icon_align_right: true,
50
+ is_light: false,
51
+ border: true,
52
+ border_color: 'lemon',
53
+ background_color: 'lemon-light',
54
+ hover_color: 'dark',
55
+ color: 'lemon'
56
+ }
57
+ },
58
+ {
59
+ name: 'With left icon',
60
+ context: {
61
+ text: 'with left icon',
62
+ href: '#',
63
+ icon: 'pin',
64
+ icon_align_left: true,
65
+ is_light: false,
66
+ border: true,
67
+ border_color: 'jade',
68
+ background_color: 'jade-light',
69
+ hover_color: 'dark',
70
+ color: 'jade'
33
71
  }
34
72
  }
35
73
  ]
36
- }
74
+ }
@@ -75,6 +75,10 @@
75
75
  border-radius: rem(17.5px);
76
76
  background-color: $color-granit;
77
77
  color: $color-snow;
78
+
79
+ [class*=text] {
80
+ color: $color-snow;
81
+ }
78
82
  }
79
83
  }
80
84
 
@@ -86,5 +90,9 @@
86
90
  &:focus {
87
91
  border: 1px solid transparent;
88
92
  background-color: rgba($color-snow, 0.5);
93
+
94
+ [class*=text] {
95
+ color: $color-cyberspace;
96
+ }
89
97
  }
90
98
  }