dibk-design 0.4.39 → 0.4.43

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.
Files changed (42) hide show
  1. package/dist/components/Accordion.module.scss +32 -8
  2. package/dist/components/Button.module.scss +2 -2
  3. package/dist/components/Dialog.module.scss +2 -2
  4. package/dist/components/Header.md +1 -0
  5. package/dist/components/Header.module.scss +27 -7
  6. package/dist/components/NavigationBar.module.scss +5 -5
  7. package/dist/components/Paper.module.scss +10 -9
  8. package/dist/fonts/open-sans-v27-latin-ext_latin-300.eot +0 -0
  9. package/dist/fonts/open-sans-v27-latin-ext_latin-300.svg +346 -0
  10. package/dist/fonts/open-sans-v27-latin-ext_latin-300.ttf +0 -0
  11. package/dist/fonts/open-sans-v27-latin-ext_latin-300.woff +0 -0
  12. package/dist/fonts/open-sans-v27-latin-ext_latin-300.woff2 +0 -0
  13. package/dist/fonts/open-sans-v27-latin-ext_latin-300italic.eot +0 -0
  14. package/dist/fonts/open-sans-v27-latin-ext_latin-300italic.svg +377 -0
  15. package/dist/fonts/open-sans-v27-latin-ext_latin-300italic.ttf +0 -0
  16. package/dist/fonts/open-sans-v27-latin-ext_latin-300italic.woff +0 -0
  17. package/dist/fonts/open-sans-v27-latin-ext_latin-300italic.woff2 +0 -0
  18. package/dist/fonts/open-sans-v27-latin-ext_latin-700.eot +0 -0
  19. package/dist/fonts/open-sans-v27-latin-ext_latin-700.svg +349 -0
  20. package/dist/fonts/open-sans-v27-latin-ext_latin-700.ttf +0 -0
  21. package/dist/fonts/open-sans-v27-latin-ext_latin-700.woff +0 -0
  22. package/dist/fonts/open-sans-v27-latin-ext_latin-700.woff2 +0 -0
  23. package/dist/fonts/open-sans-v27-latin-ext_latin-700italic.eot +0 -0
  24. package/dist/fonts/open-sans-v27-latin-ext_latin-700italic.svg +379 -0
  25. package/dist/fonts/open-sans-v27-latin-ext_latin-700italic.ttf +0 -0
  26. package/dist/fonts/open-sans-v27-latin-ext_latin-700italic.woff +0 -0
  27. package/dist/fonts/open-sans-v27-latin-ext_latin-700italic.woff2 +0 -0
  28. package/dist/fonts/open-sans-v27-latin-ext_latin-italic.eot +0 -0
  29. package/dist/fonts/open-sans-v27-latin-ext_latin-italic.svg +379 -0
  30. package/dist/fonts/open-sans-v27-latin-ext_latin-italic.ttf +0 -0
  31. package/dist/fonts/open-sans-v27-latin-ext_latin-italic.woff +0 -0
  32. package/dist/fonts/open-sans-v27-latin-ext_latin-italic.woff2 +0 -0
  33. package/dist/fonts/open-sans-v27-latin-ext_latin-regular.eot +0 -0
  34. package/dist/fonts/open-sans-v27-latin-ext_latin-regular.svg +349 -0
  35. package/dist/fonts/open-sans-v27-latin-ext_latin-regular.ttf +0 -0
  36. package/dist/fonts/open-sans-v27-latin-ext_latin-regular.woff +0 -0
  37. package/dist/fonts/open-sans-v27-latin-ext_latin-regular.woff2 +0 -0
  38. package/dist/index.js +1 -9
  39. package/dist/style/abstracts/variables/_viewports.scss +7 -4
  40. package/dist/style/base/fonts.css +80 -0
  41. package/dist/style/layout/_containers.scss +1 -1
  42. package/package.json +2 -3
@@ -4,16 +4,22 @@
4
4
  0% {
5
5
  opacity: 0;
6
6
  margin-top: 0px;
7
- padding: 0 30px 0;
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
+ }
10
13
  }
11
14
  100% {
12
15
  opacity: 1;
13
16
  margin-top: 0px;
14
- padding: 8px 30px 15px;
17
+ padding: 8px 15px 15px;
15
18
  line-height: inherit;
16
19
  max-height: 1000px;
20
+ @media only screen and (min-width: $screen-sm) {
21
+ padding: 8px 30px 15px;
22
+ }
17
23
  }
18
24
  }
19
25
 
@@ -21,16 +27,22 @@
21
27
  100% {
22
28
  opacity: 0;
23
29
  margin-top: 0px;
24
- padding: 0 30px 0;
30
+ padding: 0 15px 0;
25
31
  line-height: 0;
26
32
  max-height: 0;
33
+ @media only screen and (min-width: $screen-sm) {
34
+ padding: 0 30px 0;
35
+ }
27
36
  }
28
37
  0% {
29
38
  opacity: 1;
30
39
  margin-top: 0px;
31
- padding: 8px 30px 15px;
40
+ padding: 8px 15px 15px;
32
41
  line-height: inherit;
33
42
  max-height: 1000px;
43
+ @media only screen and (min-width: $screen-sm) {
44
+ padding: 8px 30px 15px;
45
+ }
34
46
  }
35
47
  }
36
48
 
@@ -117,7 +129,7 @@
117
129
  }
118
130
 
119
131
  :local(.panel) {
120
- padding: 15px 30px;
132
+ padding: 15px 15px;
121
133
  display: flex;
122
134
  align-items: center;
123
135
  position: relative;
@@ -125,6 +137,9 @@
125
137
  overflow-wrap: break-word;
126
138
  line-height: 1.7;
127
139
  cursor: pointer;
140
+ @media only screen and (min-width: $screen-sm) {
141
+ padding: 15px 30px;
142
+ }
128
143
  :local(.panelText) {
129
144
  font-family: $heading-font;
130
145
  font-weight: bold;
@@ -138,7 +153,10 @@
138
153
  width: 18px;
139
154
  height: 18px;
140
155
  border-radius: 100px;
141
-
156
+ margin-right: 6px;
157
+ @media only screen and (min-width: $screen-sm) {
158
+ margin-right: 0;
159
+ }
142
160
  &::after {
143
161
  content: "";
144
162
  display: block;
@@ -164,7 +182,10 @@
164
182
  line-height: 0;
165
183
  max-height: 0;
166
184
  overflow: hidden;
167
- padding: 0 30px 0;
185
+ padding: 0 15px 0;
186
+ @media only screen and (min-width: $screen-sm) {
187
+ padding: 0 30px 0;
188
+ }
168
189
  &:local(.initialized) {
169
190
  animation: hide 0.3s ease-in-out;
170
191
  }
@@ -173,9 +194,12 @@
173
194
  animation: show 0.3s ease-in-out;
174
195
  opacity: 1;
175
196
  margin-top: 0px;
176
- padding: 8px 30px 15px;
197
+ padding: 8px 15px 15px;
177
198
  line-height: inherit;
178
199
  max-height: 10000px;
200
+ @media only screen and (min-width: $screen-sm) {
201
+ padding: 8px 30px 15px;
202
+ }
179
203
  }
180
204
  }
181
205
  }
@@ -66,9 +66,9 @@
66
66
  }
67
67
 
68
68
  &:local(.small) {
69
- padding: 1px 32px;
70
- height: 35px;
69
+ padding: 6px 32px;
71
70
  min-width: 80px;
71
+ line-height: 21px;;
72
72
  }
73
73
 
74
74
  &:local(.default) {
@@ -21,7 +21,7 @@
21
21
  padding: 8px 28px;
22
22
  z-index: 2;
23
23
  justify-content: center;
24
- @media (min-width: $screen-sm) {
24
+ @media (min-width: $screen-md) {
25
25
  padding: 36px;
26
26
  }
27
27
 
@@ -40,7 +40,7 @@
40
40
  &:not(:local(.noPadding)){
41
41
  padding: 60px 40px;
42
42
  }
43
- @media (min-width: $screen-sm) {
43
+ @media (min-width: $screen-md) {
44
44
  @include calc("width", "100% - 128px");
45
45
  max-height: 100%;
46
46
  }
@@ -4,6 +4,7 @@ Title examples:
4
4
  <Header content="Title with size 1"/>
5
5
  <Header content="Title with size 2" size={2}/>
6
6
  <Header content="Title with size 3" size={3}/>
7
+ <Header content="Title with size 4" size={4}/>
7
8
  <Header content="Big title with size 1" big/>
8
9
  <Header content="Title with size 2 and htmlTag h1" size={2} htmlTag="h1"/>
9
10
 
@@ -1,44 +1,64 @@
1
1
  @import "../style/global.scss";
2
2
 
3
3
  :local(.headerContainer) {
4
- font-size: 22px;
5
- padding: 10px 0;
4
+ padding: 5px 0;
6
5
  :local(.header) {
7
6
  margin: 0;
8
7
  font-weight: normal;
9
8
  line-height: 1.4;
10
9
  font-style: normal;
11
- font-size: 18px;
12
10
  &:not(:local(.hasTheme)) {
13
11
  color: $color-primary;
14
12
  }
15
13
  &:local(.size-1) {
16
14
  font-family: "Altis", sans-serif;
17
- font-size: 38px;
15
+ font-size: 32px;
18
16
  font-style: normal;
19
17
  font-weight: 500;
20
18
  line-height: 1.43;
19
+ @media only screen and (min-width: $screen-sm) {
20
+ font-size: 38px;
21
+ }
21
22
  &:local(.bigHeader) {
22
23
  font-family: "Altis-Light", "Open Sans", arial, sans-serif;
23
- font-size: 50px;
24
+ font-size: 40px;
24
25
  line-height: 1.2;
25
26
  overflow: hidden;
26
27
  text-overflow: ellipsis;
28
+ @media only screen and (min-width: $screen-sm) {
29
+ font-size: 50px;
30
+ }
27
31
  }
28
32
  }
29
33
  &:local(.size-2) {
30
34
  font-family: "Altis", sans-serif;
31
- font-size: 30px;
35
+ font-size: 25px;
32
36
  font-style: normal;
33
37
  font-weight: 500;
34
38
  line-height: 1.42;
39
+ @media only screen and (min-width: $screen-sm) {
40
+ font-size: 30px;
41
+ }
35
42
  }
36
43
  &:local(.size-3) {
37
44
  font-family: "Open Sans", arial, sans-serif;
38
- font-size: 22px;
45
+ font-size: 19px;
39
46
  font-style: normal;
40
47
  font-weight: bold;
41
48
  line-height: 1;
49
+ @media only screen and (min-width: $screen-sm) {
50
+ font-size: 22px;
51
+ }
52
+ }
53
+ &:local(.size-4) {
54
+ font-family: "Open Sans", arial, sans-serif;
55
+ font-size: 17px;
56
+ font-style: italic;
57
+ font-weight: normal;
58
+ line-height: 1;
59
+ @media only screen and (min-width: $screen-sm) {
60
+ font-size: 21px;
61
+ }
42
62
  }
43
63
  }
44
64
  }
@@ -10,7 +10,7 @@
10
10
  display: flex;
11
11
  justify-content: space-between;
12
12
  align-items: center;
13
- @media only screen and (min-width: $screen-xs) {
13
+ @media only screen and (min-width: $screen-sm) {
14
14
  height: 73px;
15
15
  }
16
16
  }
@@ -23,7 +23,7 @@
23
23
  height: 54px;
24
24
  max-width: none;
25
25
  }
26
- @media only screen and (min-width: $screen-xs) {
26
+ @media only screen and (min-width: $screen-sm) {
27
27
  width: 270px;
28
28
  height: 73px;
29
29
  img {
@@ -39,7 +39,7 @@
39
39
  }
40
40
 
41
41
  :local(.dropdownOverlay) {
42
- @media only screen and (max-width: $screen-md) and (min-width: $screen-xs) {
42
+ @media only screen and (max-width: $screen-lg) and (min-width: $screen-sm) {
43
43
  @include transition(all 0.1s ease-out);
44
44
  content: "";
45
45
  position: absolute;
@@ -78,7 +78,7 @@
78
78
  display: block;
79
79
  }
80
80
  }
81
- @media only screen and (min-width: $screen-xs) {
81
+ @media only screen and (min-width: $screen-sm) {
82
82
  margin: 0 21px;
83
83
  }
84
84
  }
@@ -154,7 +154,7 @@
154
154
  }
155
155
  }
156
156
 
157
- @media only screen and (min-width: $screen-xs) {
157
+ @media only screen and (min-width: $screen-sm) {
158
158
  :local(.dropdownContainer) {
159
159
  position: relative;
160
160
  overflow: visible;
@@ -1,17 +1,18 @@
1
+ @import "../style/global.scss";
2
+
1
3
  :local(.paper) {
2
4
  line-height: 1.6;
3
5
  position: relative;
4
- padding: 24px 28px;
5
- margin: 20px 0;
6
6
  width: 100%;
7
7
  background: white;
8
- box-shadow: 0 2px 3px rgba(0,0,0,0.18);
9
-
10
- &:local(.noMargin) {
11
- margin: 0;
8
+ box-shadow: 0 2px 3px rgba(0, 0, 0, 0.18);
9
+ &:not(:local(.noMargin)) {
10
+ margin: 20px 0;
12
11
  }
13
-
14
- &:local(.noPadding) {
15
- padding: 0;
12
+ &:not(:local(.noPadding)) {
13
+ padding: 12px 12px;
14
+ @media only screen and (min-width: $screen-sm) {
15
+ padding: 24px 28px;
16
+ }
16
17
  }
17
18
  }