dibk-design 1.0.2 → 1.0.5

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.
@@ -7,9 +7,6 @@
7
7
  padding: 0 15px 0;
8
8
  line-height: 0;
9
9
  max-height: 0;
10
- @media only screen and (min-width: $screen-sm) {
11
- padding: 0 30px 0;
12
- }
13
10
  }
14
11
  100% {
15
12
  opacity: 1;
@@ -17,9 +14,6 @@
17
14
  padding: 8px 15px 15px;
18
15
  line-height: inherit;
19
16
  max-height: 1000px;
20
- @media only screen and (min-width: $screen-sm) {
21
- padding: 8px 30px 15px;
22
- }
23
17
  }
24
18
  }
25
19
 
@@ -30,9 +24,6 @@
30
24
  padding: 0 15px 0;
31
25
  line-height: 0;
32
26
  max-height: 0;
33
- @media only screen and (min-width: $screen-sm) {
34
- padding: 0 30px 0;
35
- }
36
27
  }
37
28
  0% {
38
29
  opacity: 1;
@@ -40,8 +31,40 @@
40
31
  padding: 8px 15px 15px;
41
32
  line-height: inherit;
42
33
  max-height: 1000px;
43
- @media only screen and (min-width: $screen-sm) {
34
+ }
35
+ }
36
+
37
+ @media only screen and (min-width: $screen-sm) {
38
+ @keyframes show {
39
+ 0% {
40
+ opacity: 0;
41
+ margin-top: 0px;
42
+ padding: 0 30px 0;
43
+ line-height: 0;
44
+ max-height: 0;
45
+ }
46
+ 100% {
47
+ opacity: 1;
48
+ margin-top: 0px;
49
+ padding: 8px 30px 15px;
50
+ line-height: inherit;
51
+ max-height: 1000px;
52
+ }
53
+ }
54
+ @keyframes hide {
55
+ 100% {
56
+ opacity: 0;
57
+ margin-top: 0px;
58
+ padding: 0 30px 0;
59
+ line-height: 0;
60
+ max-height: 0;
61
+ }
62
+ 0% {
63
+ opacity: 1;
64
+ margin-top: 0px;
44
65
  padding: 8px 30px 15px;
66
+ line-height: inherit;
67
+ max-height: 1000px;
45
68
  }
46
69
  }
47
70
  }
@@ -65,7 +65,7 @@
65
65
  }
66
66
 
67
67
  &:focus-visible {
68
- outline-color: #005fcc;
68
+ outline-color: $color-focus-outline;
69
69
  outline-style: auto;
70
70
  outline-width: 2px;
71
71
  outline-offset: 0px;
@@ -93,6 +93,7 @@
93
93
  color: $color-primary;
94
94
  &:not(:local(.hasTheme)) {
95
95
  &:hover:not(:local(.noHover)),
96
+ &:focus-visible,
96
97
  &:active {
97
98
  background-color: $color-primary;
98
99
  color: #fff;
@@ -109,6 +110,7 @@
109
110
  color: #fff;
110
111
  &:not(:local(.hasTheme)) {
111
112
  &:hover:not(:local(.noHover)),
113
+ &:focus-visible,
112
114
  &:active {
113
115
  background-color: #fff;
114
116
  color: $color-primary;
@@ -19,8 +19,10 @@
19
19
  }
20
20
 
21
21
  &:focus-within{
22
- border-color: #072938;
23
- outline-color: #54acb8;
22
+ outline-width: 2px;
23
+ outline-color: $color-focus-outline;
24
+ outline-style: auto;
25
+ outline-offset: 1px;
24
26
  }
25
27
 
26
28
  input[type="checkbox"] {
@@ -46,10 +46,6 @@
46
46
  @include box-shadow(0 0 6px $color-dark-blue);
47
47
  }
48
48
 
49
- &:focus {
50
- outline-color: #54acb8;
51
- }
52
-
53
49
  label {
54
50
  width: 100%;
55
51
  padding: 10px;
@@ -21,8 +21,10 @@
21
21
  }
22
22
 
23
23
  &:focus-within{
24
- border-color: #072938;
25
- outline-color: #54acb8;
24
+ outline-width: 2px;
25
+ outline-color: $color-focus-outline;
26
+ outline-style: auto;
27
+ outline-offset: 1px;
26
28
  }
27
29
 
28
30
  input[type="radio"] {
@@ -46,10 +46,6 @@
46
46
  @include box-shadow(0 0 6px $color-dark-blue);
47
47
  }
48
48
 
49
- &:focus {
50
- outline-color: #54acb8;
51
- }
52
-
53
49
  label {
54
50
  width: 100%;
55
51
  padding: 10px;
@@ -1,6 +1,8 @@
1
1
  $body-background: #ffffff;
2
2
  $color-default-text: #222;
3
3
  $color-link: #072938;
4
+ $color-focus-outline: #005FCC;
5
+
4
6
  $color-dark-blue: #072938;
5
7
  $color-light-blue: #acc5d4;
6
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dibk-design",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",