@internetstiftelsen/styleguide 3.0.14 → 3.0.16

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": "3.0.14",
3
+ "version": "3.0.16",
4
4
  "main": "dist/components.js",
5
5
  "ports": {
6
6
  "fractal": "3000"
@@ -2,6 +2,27 @@
2
2
 
3
3
  @include organism(tab-list) {
4
4
  overflow: hidden;
5
+ display: flex;
6
+ position: relative;
7
+ margin: 0;
8
+ padding: 0;
9
+ overflow: auto;
10
+
11
+ &::-webkit-scrollbar {
12
+ position: absolute;
13
+ z-index: 2;
14
+ bottom: 0;
15
+ left: 0;
16
+ height: rhythm(0.5);
17
+ }
18
+
19
+ &::-webkit-scrollbar-track {
20
+ background-color: $color-ash;
21
+ }
22
+
23
+ &::-webkit-scrollbar-thumb {
24
+ background-color: $color-granit;
25
+ }
5
26
 
6
27
  &::before {
7
28
  @extend %u-visuallyhidden;
@@ -9,47 +30,24 @@
9
30
  content: $namespace;
10
31
  }
11
32
 
12
- &[role='tablist'] {
13
- display: flex;
14
- position: relative;
15
- margin: 0;
16
- padding: 0;
17
- overflow: auto;
18
-
19
- &::-webkit-scrollbar {
20
- position: absolute;
21
- z-index: 2;
22
- bottom: 0;
23
- left: 0;
24
- height: rhythm(0.5);
25
- }
26
-
27
- &::-webkit-scrollbar-track {
28
- background-color: $color-ash;
29
- }
30
-
31
- &::-webkit-scrollbar-thumb {
32
- background-color: $color-granit;
33
- }
34
-
35
- &::after {
36
- content: '';
37
- display: block;
38
- position: fixed;
39
- top: 0;
40
- right: 0;
41
- bottom: 0;
42
- width: rhythm(3);
43
- background: linear-gradient(90deg, rgba(237, 237, 237, 0) 0%, rgba(237, 237, 237, 1) 75%, rgba(237, 237, 237, 1) 100%);
44
- }
33
+ &::after {
34
+ content: '';
35
+ display: block;
36
+ position: fixed;
37
+ top: 0;
38
+ right: 0;
39
+ bottom: 0;
40
+ width: rhythm(3);
41
+ background: linear-gradient(90deg, rgba(237, 237, 237, 0) 0%, rgba(237, 237, 237, 1) 75%, rgba(237, 237, 237, 1) 100%);
45
42
  }
46
43
 
44
+
47
45
  @include e(item) {
48
46
  display: flex;
49
47
  flex: 0 0 auto;
50
48
  padding: 0;
51
49
 
52
- + [role='presentation'] {
50
+ + li {
53
51
  margin-left: rhythm(1);
54
52
  }
55
53
  }
@@ -79,34 +77,33 @@
79
77
  }
80
78
 
81
79
  [data-tab-active] {
82
- [role='tab'] {
80
+ a {
83
81
  background-color: $color-snow;
84
82
  }
85
83
  }
86
84
  }
87
85
 
88
86
  @include organism(tab-panel) {
89
- &[role='tabpanel'] {
90
- position: relative;
91
- z-index: 2;
92
- padding: rhythm(2) rhythm(3);
93
- border-top-right-radius: $border-radius;
94
- border-bottom-right-radius: $border-radius;
95
- border-bottom-left-radius: $border-radius;
96
- background-color: $color-snow;
97
-
98
- &[aria-hidden='true'] {
99
- display: none;
100
- }
87
+ position: relative;
88
+ z-index: 2;
89
+ padding: rhythm(2) rhythm(3);
90
+ border-top-right-radius: $border-radius;
91
+ border-bottom-right-radius: $border-radius;
92
+ border-bottom-left-radius: $border-radius;
93
+ background-color: $color-snow;
94
+
95
+ &[aria-hidden='true'] {
96
+ display: none;
97
+ }
101
98
 
102
- &:focus {
103
- outline: 0;
104
- }
99
+ &:focus {
100
+ outline: 0;
105
101
  }
106
102
  }
107
103
 
108
104
  .no-js {
109
105
  @include organism(tab-list) {
106
+ display: block;
110
107
  padding: initial;
111
108
  margin: initial;
112
109
  list-style-type: disc;
@@ -133,4 +130,9 @@
133
130
  @extend %link-styles;
134
131
  }
135
132
  }
133
+
134
+ @include organism(tab-panel) {
135
+ background-color: transparent;
136
+ padding: 0;
137
+ }
136
138
  }