@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 +1 -1
- package/src/organisms/tabs/_tabs.scss +52 -50
package/package.json
CHANGED
|
@@ -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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
+
|
|
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
|
-
|
|
80
|
+
a {
|
|
83
81
|
background-color: $color-snow;
|
|
84
82
|
}
|
|
85
83
|
}
|
|
86
84
|
}
|
|
87
85
|
|
|
88
86
|
@include organism(tab-panel) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
|
|
103
|
-
|
|
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
|
}
|