@internetstiftelsen/styleguide 3.0.13 → 3.0.15
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
|
@@ -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,42 +30,19 @@
|
|
|
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
|
|
|
47
|
-
|
|
44
|
+
|
|
45
|
+
@include e(item) {
|
|
48
46
|
display: flex;
|
|
49
47
|
flex: 0 0 auto;
|
|
50
48
|
padding: 0;
|
|
@@ -54,7 +52,7 @@
|
|
|
54
52
|
}
|
|
55
53
|
}
|
|
56
54
|
|
|
57
|
-
|
|
55
|
+
@include e(link) {
|
|
58
56
|
@extend %normalize-links;
|
|
59
57
|
|
|
60
58
|
display: inline-flex;
|
|
@@ -86,21 +84,55 @@
|
|
|
86
84
|
}
|
|
87
85
|
|
|
88
86
|
@include organism(tab-panel) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
+
}
|
|
98
|
+
|
|
99
|
+
&:focus {
|
|
100
|
+
outline: 0;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
97
103
|
|
|
98
|
-
|
|
99
|
-
|
|
104
|
+
.no-js {
|
|
105
|
+
@include organism(tab-list) {
|
|
106
|
+
display: block;
|
|
107
|
+
padding: initial;
|
|
108
|
+
margin: initial;
|
|
109
|
+
list-style-type: disc;
|
|
110
|
+
|
|
111
|
+
@include plumber(
|
|
112
|
+
$leading-bottom: 3
|
|
113
|
+
);
|
|
114
|
+
|
|
115
|
+
@include e(item) {
|
|
116
|
+
display: list-item;
|
|
117
|
+
margin-top: rhythm(1);
|
|
118
|
+
margin-left: rhythm(4);
|
|
119
|
+
padding-top: rhythm(0.25);
|
|
120
|
+
padding-bottom: rhythm(0.25);
|
|
121
|
+
padding-top: 0;
|
|
122
|
+
padding-left: 0;
|
|
100
123
|
}
|
|
101
124
|
|
|
102
|
-
|
|
103
|
-
|
|
125
|
+
@include e(link) {
|
|
126
|
+
background-color: transparent;
|
|
127
|
+
padding: 0;
|
|
128
|
+
border-radius: 0;
|
|
129
|
+
|
|
130
|
+
@extend %link-styles;
|
|
104
131
|
}
|
|
105
132
|
}
|
|
133
|
+
|
|
134
|
+
@include organism(tab-panel) {
|
|
135
|
+
background-color: transparent;
|
|
136
|
+
padding: 0;
|
|
137
|
+
}
|
|
106
138
|
}
|
|
@@ -22,6 +22,14 @@ $color-tab-highlight: $color-ruby !default;
|
|
|
22
22
|
box-shadow: 0 0 0 2px inset $color-tab-highlight !important;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
+
|
|
26
|
+
&::-webkit-slider-thumb {
|
|
27
|
+
box-shadow: 0 0 0 inset rgba($color-cyberspace, 0.2), 0 1px 2px rgba($color-cyberspace, 0.2), 0 0 0 3px inset $color-tab-highlight !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&::-moz-range-thumb {
|
|
31
|
+
box-shadow: 0 0 0 inset rgba($color-cyberspace, 0.2), 0 1px 2px rgba($color-cyberspace, 0.2), 0 0 0 3px inset $color-tab-highlight !important;
|
|
32
|
+
}
|
|
25
33
|
}
|
|
26
34
|
|
|
27
35
|
// Use when element is on dark background
|