dibk-design 3.11.3 → 4.0.1

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 (47) hide show
  1. package/dist/assets/fonts/PPMori-Bold.otf +0 -0
  2. package/dist/assets/fonts/PPMori-Book.otf +0 -0
  3. package/dist/assets/fonts/PPMori-ExtraBold.otf +0 -0
  4. package/dist/assets/fonts/PPMori-Light.otf +0 -0
  5. package/dist/assets/fonts/PPMori-Medium.otf +0 -0
  6. package/dist/assets/fonts/PPMori-Regular.otf +0 -0
  7. package/dist/assets/fonts/PPMori-RegularItalic.otf +0 -0
  8. package/dist/assets/fonts/PPMori-SemiBold.otf +0 -0
  9. package/dist/assets/svg/dibk-logo-base64.js +1 -1
  10. package/dist/assets/svg/dibk-logo-mobile.svg +2 -2
  11. package/dist/assets/svg/dibk-logo.svg +45 -984
  12. package/dist/assets/svg/info-sign.svg +1 -0
  13. package/dist/components/Accordion.module.scss +1 -1
  14. package/dist/components/Button.module.scss +92 -82
  15. package/dist/components/CheckBoxIcon.module.scss +5 -5
  16. package/dist/components/CheckBoxInput.js +3 -1
  17. package/dist/components/CheckBoxInput.module.scss +11 -1
  18. package/dist/components/CheckBoxListItem.js +1 -1
  19. package/dist/components/CheckBoxListItem.module.scss +16 -8
  20. package/dist/components/Dialog.module.scss +9 -6
  21. package/dist/components/DragAndDropFileInput.module.scss +1 -1
  22. package/dist/components/ErrorBox.js +13 -5
  23. package/dist/components/ErrorBox.module.scss +30 -4
  24. package/dist/components/Header.module.scss +8 -3
  25. package/dist/components/InputField.js +2 -0
  26. package/dist/components/InputField.module.scss +11 -20
  27. package/dist/components/NavigationBar.js +5 -3
  28. package/dist/components/NavigationBar.module.scss +398 -122
  29. package/dist/components/PDF.scss +35 -8
  30. package/dist/components/RadioButtonIcon.module.scss +7 -10
  31. package/dist/components/RadioButtonInput.js +3 -1
  32. package/dist/components/RadioButtonInput.module.scss +11 -1
  33. package/dist/components/RadioButtonListItem.js +1 -1
  34. package/dist/components/RadioButtonListItem.module.scss +16 -8
  35. package/dist/components/Select.module.scss +14 -16
  36. package/dist/components/Textarea.module.scss +2 -2
  37. package/dist/components/Theme.module.scss +1 -1
  38. package/dist/components/WizardNavigation/Step.module.scss +1 -1
  39. package/dist/style/abstracts/variables/_all.scss +1 -0
  40. package/dist/style/abstracts/variables/_colors.scss +18 -13
  41. package/dist/style/abstracts/variables/_transitions.scss +1 -0
  42. package/dist/style/abstracts/variables/_typography.scss +2 -2
  43. package/dist/style/base/_fonts.scss +135 -69
  44. package/dist/style/base/_typography.scss +1 -0
  45. package/dist/style/pdf.css +34 -9
  46. package/dist/style/pdf.css.map +1 -1
  47. package/package.json +1 -1
@@ -1,10 +1,7 @@
1
1
  @import "../style/global.scss";
2
2
 
3
3
  .inputField {
4
- font-size: 16px;
5
- @media only screen and (min-width: $screen-sm) {
6
- font-size: 19px;
7
- }
4
+ font-size: 18px;
8
5
  > div {
9
6
  display: block;
10
7
  }
@@ -18,39 +15,33 @@
18
15
  input,
19
16
  &.file span.input {
20
17
  @include appearance(none);
21
- @include transition(border-color 0.15s linear, background 0.15s linear);
22
18
  @include border-radius(0);
23
19
  @include box-shadow(none);
24
- height: 47px;
20
+ height: 54px;
25
21
  width: 100%;
26
22
  display: block;
27
- padding: 10px;
23
+ padding: 12px;
28
24
  margin-bottom: 0;
29
- font-weight: 300;
30
25
  background-color: #fff;
31
26
  box-shadow: none;
32
- color: rgba(0, 0, 0, 0.75);
27
+ color: $color-default-text;
33
28
  font-family: inherit;
34
- font-size: 16px;
29
+ font-size: 18px;
35
30
  box-sizing: border-box;
36
- border: 1px solid #afaba8;
37
- @media only screen and (min-width: $screen-sm) {
38
- font-size: 19px;
39
- height: 56px;
40
- }
31
+ border: 1px solid $color-primary;
41
32
 
42
33
  &:hover {
43
- border-color: $color-dark-blue;
34
+ border-color: $color-primary;
44
35
  }
45
36
 
46
37
  &:focus {
47
- border-color: $color-dark-blue;
48
- outline-color: #54acb8;
38
+ border-color: $color-primary;
39
+ outline: $color-focus solid 3px;
49
40
  }
50
41
 
51
42
  &[disabled],
52
43
  &[readonly] {
53
- background-color: #ddd;
44
+ background-color: $color-secondary-x-light;
54
45
  cursor: default;
55
46
  }
56
47
 
@@ -62,7 +53,7 @@
62
53
  }
63
54
  &[disabled],
64
55
  &[readonly] {
65
- background-color: #ddd;
56
+ background-color: $color-secondary-x-light;
66
57
  cursor: default;
67
58
  border-color: #afaba8;
68
59
  }
@@ -9,7 +9,9 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
  var _NavigationBarListItem = _interopRequireDefault(require("./NavigationBarListItem"));
10
10
  var _theme = require("../functions/theme");
11
11
  var _dibkLogoMobile = _interopRequireDefault(require("../assets/svg/dibk-logo-mobile.svg?url"));
12
+ var _dibkLogo = _interopRequireDefault(require("../assets/svg/dibk-logo.svg?url"));
12
13
  var _NavigationBarModule = _interopRequireDefault(require("./NavigationBar.module.scss"));
14
+ var _helpers = require("functions/helpers");
13
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -93,7 +95,7 @@ const NavigationBar = props => {
93
95
  style: getLogoThemeStyle(props.theme)
94
96
  }) : _react.default.createElement("img", {
95
97
  alt: altText,
96
- src: _dibkLogoMobile.default
98
+ src: props.compact ? _dibkLogoMobile.default : _dibkLogo.default
97
99
  });
98
100
  };
99
101
  const logoLinkProps = {
@@ -111,7 +113,7 @@ const NavigationBar = props => {
111
113
  };
112
114
  const hasListItems = !!((_props$primaryListIte = props.primaryListItems) !== null && _props$primaryListIte !== void 0 && _props$primaryListIte.length) || !!((_props$secondaryListI = props.secondaryListItems) !== null && _props$secondaryListI !== void 0 && _props$secondaryListI.length);
113
115
  return _react.default.createElement("div", {
114
- className: _NavigationBarModule.default.navigationBarContainer
116
+ className: (0, _helpers.classNameArrayToClassNameString)([props.compact && _NavigationBarModule.default.compact, _NavigationBarModule.default.navigationBarContainer])
115
117
  }, ((_props$mainContentId = props.mainContentId) === null || _props$mainContentId === void 0 ? void 0 : _props$mainContentId.length) && _react.default.createElement("a", {
116
118
  id: "main-content-link",
117
119
  href: "#".concat(props.mainContentId),
@@ -131,7 +133,7 @@ const NavigationBar = props => {
131
133
  onClick: () => toggleList(),
132
134
  "aria-expanded": active ? "true" : "false",
133
135
  "aria-controls": "main-menu-dropdown"
134
- }, _react.default.createElement("span", {
136
+ }, !props.compact && "Meny", _react.default.createElement("span", {
135
137
  className: _NavigationBarModule.default.hamburgerIcon
136
138
  }, _react.default.createElement("span", {
137
139
  className: _NavigationBarModule.default.line,
@@ -1,17 +1,12 @@
1
1
  @import "../style/global.scss";
2
2
 
3
3
  .navigationBarContainer {
4
- @include box-shadow(0 2px 4px -2px rgba(0, 0, 0, 0.2));
5
- position: relative;
6
- z-index: 1;
7
4
  .mainContentLink {
8
5
  display: block;
9
- background-color: #072938;
10
6
  padding: 8px;
11
7
  text-align: center;
12
8
  text-decoration: none;
13
9
  font-size: 19px;
14
- color: #fff;
15
10
  position: absolute;
16
11
  overflow: hidden;
17
12
  clip: rect(1px, 1px, 1px, 1px);
@@ -25,159 +20,440 @@
25
20
  clip: auto;
26
21
  width: auto;
27
22
  height: auto;
23
+ outline: none;
28
24
  span {
29
25
  z-index: 100;
30
- outline: 3px solid #005fca;
31
- outline-offset: 2px;
26
+ outline-style: solid;
27
+ outline-width: 2px;
28
+ outline-offset: 3px;
32
29
  transition: none;
33
30
  text-decoration: none;
34
31
  }
35
32
  }
36
33
  }
37
- .navigationBar {
38
- background-color: $color-dark-blue;
39
- height: 54px;
40
- display: flex;
41
- justify-content: space-between;
42
- align-items: center;
34
+ &:not(.compact) {
35
+ position: relative;
36
+ background-color: $body-background;
37
+ padding: 5px;
43
38
  @media only screen and (min-width: $screen-sm) {
44
- height: 73px;
39
+ padding: 20px;
45
40
  }
46
- }
47
-
48
- .logoContainer {
49
- width: 200px;
50
- height: 54px;
51
- display: inline-block;
52
- img {
53
- height: 54px;
54
- max-width: none;
41
+ @media only screen and (min-width: $screen-md) {
42
+ padding-bottom: 40px;
55
43
  }
56
- @media only screen and (min-width: $screen-sm) {
57
- width: 270px;
58
- height: 73px;
59
- img {
60
- height: 73px;
44
+ .mainContentLink {
45
+ background-color: $body-background;
46
+ color: $color-primary;
47
+ &:focus,
48
+ &:active {
49
+ span {
50
+ outline-color: $color-primary;
51
+ }
61
52
  }
62
53
  }
63
- }
64
-
65
- .childElements {
66
- display: block;
67
- color: #fff;
68
- flex: 1;
69
- }
70
-
71
- .menuToggle {
72
- @include appearance(none);
73
- @include transition(background-color 300ms ease-out);
74
- border: none;
75
- cursor: pointer;
76
- position: relative;
77
- background-color: transparent;
78
- float: right;
79
- margin: 0 12px;
80
- .hamburgerIcon {
81
- width: 30px;
82
- display: block;
83
- .line {
84
- background-color: #fff;
85
- height: 2px;
86
- margin: 6px 0;
87
- display: block;
54
+ .navigationBar {
55
+ position: relative;
56
+ display: -ms-flexbox;
57
+ display: flex;
58
+ -ms-flex-direction: column;
59
+ flex-direction: column;
60
+ -ms-flex-wrap: wrap;
61
+ flex-wrap: wrap;
62
+ max-width: 100%;
63
+ margin: 0;
64
+ font-size: 18px;
65
+ padding: 0;
66
+ @media only screen and (min-width: $screen-sm) {
67
+ -ms-flex-direction: row;
68
+ flex-direction: row;
69
+ }
70
+ @media only screen and (min-width: $screen-md) {
71
+ margin: 0;
88
72
  }
89
73
  }
90
- @media only screen and (min-width: $screen-sm) {
91
- margin: 0 21px;
74
+ .logoContainer {
75
+ width: 85px;
76
+ margin-bottom: 0;
77
+ @media only screen and (min-width: $screen-sm) {
78
+ width: 100px;
79
+ }
92
80
  }
93
- }
94
-
95
- .dropdownContainer {
96
- @include transition(max-height 0.15s ease-out);
97
- max-height: 0;
98
- overflow: hidden;
99
- &.active {
100
- @include transition(max-height 0.15s ease-out);
101
- max-height: 500px;
81
+ .childElements {
82
+ display: flex;
83
+ flex: 1 1;
84
+ align-items: center;
85
+ padding: 0 20px;
102
86
  }
103
- }
87
+ .menuToggle {
88
+ transition: background-color $default-transition;
89
+ font-family: $default-font;
90
+ display: inline-block;
91
+ line-height: 1.1;
92
+ position: absolute;
93
+ top: 10px;
94
+ right: 10px;
95
+ height: auto;
96
+ margin: auto;
97
+ border: 1px solid $color-primary;
98
+ padding: 10px 20px;
99
+ padding-right: 54px;
100
+ background-color: transparent;
101
+ color: $color-primary;
102
+ font-size: 20px;
103
+ font-weight: 400;
104
+ cursor: pointer;
105
+ @media only screen and (min-width: $screen-sm) {
106
+ position: relative;
107
+ top: 0;
108
+ right: 0;
109
+ margin-right: 0;
110
+ height: 53px;
111
+ }
104
112
 
105
- .dropdown {
106
- @include box-shadow(0 2px 4px -2px rgba(0, 0, 0, 0.2));
107
- background-color: $color-dark-blue;
108
- z-index: 2;
109
- > ul.primaryList {
110
- list-style: none;
113
+ .hamburgerIcon {
114
+ position: absolute;
115
+ top: 50%;
116
+ right: 15px;
117
+ transform: translateY(-50%);
118
+ height: 4px;
119
+ width: 24px;
120
+ border-radius: 3px;
121
+ background-color: $color-primary;
122
+ &::before,
123
+ &::after {
124
+ content: "";
125
+ position: absolute;
126
+ height: 4px;
127
+ left: 0;
128
+ right: 0;
129
+ border-radius: 3px;
130
+ background-color: $color-primary;
131
+ transition: transform 0.3s ease-out;
132
+ }
133
+ &::before {
134
+ top: -8px;
135
+ }
136
+ &::after {
137
+ bottom: -8px;
138
+ }
139
+ .line {
140
+ }
141
+ }
142
+ &:hover,
143
+ &:focus,
144
+ &:active {
145
+ color: #fff;
146
+ background-color: $color-primary;
147
+ .hamburgerIcon {
148
+ background-color: #fff;
149
+ &::before,
150
+ &::after {
151
+ background-color: #fff;
152
+ }
153
+ }
154
+ }
155
+ &.active {
156
+ .hamburgerIcon {
157
+ background-color: transparent;
158
+ &::before {
159
+ transform: translate(0, 8px) rotate(45deg);
160
+ }
161
+ &::after {
162
+ transform: translate(0, -8px) rotate(-45deg);
163
+ }
164
+ }
165
+ }
166
+ }
167
+ .dropdownContainer {
168
+ z-index: 1000;
169
+ display: none;
170
+ width: 100%;
171
+ overflow: hidden;
172
+ transition: all $default-transition;
173
+ background-color: $body-background;
174
+ &.active {
175
+ display: block;
176
+ }
177
+ }
178
+ .dropdown {
179
+ margin: 0 auto;
180
+ display: -ms-flexbox;
181
+ display: flex;
182
+ -ms-flex-wrap: wrap;
183
+ flex-wrap: wrap;
184
+ padding: 0;
111
185
  padding: 20px;
112
- margin: 0;
113
- li {
114
- a,
115
- span {
116
- color: #fff;
117
- text-transform: uppercase;
118
- text-decoration: none;
119
- font-family: $default-font;
120
- padding: 10px 0;
121
- display: block;
122
- border-bottom: 1px solid $color-primary;
123
- font-size: 14px;
124
- line-height: 1.6;
186
+ @media only screen and (min-width: $screen-sm) {
187
+ padding: 40px 5%;
188
+ }
189
+ > ul.primaryList,
190
+ > ul.secondaryList {
191
+ width: 100%;
192
+ padding: 0;
193
+ list-style: none;
194
+ margin: 0;
195
+ @media only screen and (min-width: $screen-sm) {
196
+ padding: 20px 0;
197
+ }
198
+ }
199
+ > ul.primaryList {
200
+ float: left;
201
+ @media only screen and (min-width: $screen-sm) {
202
+ width: 60%;
125
203
  }
126
- > ul.primaryList {
127
- list-style: none;
128
- padding: 0;
129
- li {
130
- a,
131
- span {
132
- color: #fff;
133
- text-transform: none;
204
+ > li {
205
+ line-height: 1.6;
206
+ padding: 15px 0;
207
+ @media only screen and (min-width: $screen-sm) {
208
+ margin-left: 100px;
209
+ }
210
+ > a,
211
+ > span {
212
+ font-size: 18px;
213
+ line-height: 1.56;
214
+ font-weight: 600;
215
+ text-decoration: underline;
216
+ color: $color-primary;
217
+ cursor: pointer;
218
+ &:hover {
134
219
  text-decoration: none;
135
- font-family: $default-font;
136
- padding: 10px 0;
137
- margin-left: 20px;
138
- display: block;
139
- border-bottom: 1px solid #1b3a48;
140
- font-size: 14px;
220
+ }
221
+ @media only screen and (min-width: $screen-sm) {
222
+ font-size: 26px;
223
+ line-height: 1.58;
224
+ }
225
+ }
226
+ > ul.primaryList {
227
+ display: none;
228
+ list-style: none;
229
+ @media only screen and (min-width: $screen-sm) {
230
+ display: -ms-flexbox;
231
+ display: flex;
232
+ -ms-flex-direction: row;
233
+ flex-direction: row;
234
+ -ms-flex-wrap: wrap;
235
+ flex-wrap: wrap;
236
+ margin-left: -5px;
237
+ }
238
+ li {
239
+ padding: 5px;
141
240
  line-height: 1.6;
241
+ font-size: 16px;
242
+ @media only screen and (min-width: $screen-md) {
243
+ font-size: 20px;
244
+ }
245
+ &:not(:last-of-type)::after {
246
+ @media only screen and (min-width: $screen-sm) {
247
+ content: "-";
248
+ padding-left: 10px;
249
+ }
250
+ }
251
+ a,
252
+ span {
253
+ cursor: pointer;
254
+ text-decoration: underline;
255
+ &:hover {
256
+ text-decoration: none;
257
+ }
258
+ }
259
+ }
260
+ }
261
+ }
262
+ }
263
+ > ul.secondaryList {
264
+ float: right;
265
+ margin: 20px 0;
266
+ @media only screen and (min-width: $screen-sm) {
267
+ margin: 0;
268
+ width: 40%;
269
+ padding-left: 20px;
270
+ }
271
+ li {
272
+ padding: 5px 0;
273
+ line-height: 1.6;
274
+ @media only screen and (min-width: $screen-sm) {
275
+ padding: 10px 0;
276
+ position: relative;
277
+ }
278
+ a,
279
+ span {
280
+ font-size: 17px;
281
+ text-decoration: underline;
282
+ font-weight: 600;
283
+ line-height: 1.5;
284
+ cursor: pointer;
285
+ &:hover {
286
+ text-decoration: none;
287
+ }
288
+ @media only screen and (min-width: $screen-sm) {
289
+ font-size: 22px;
142
290
  }
143
291
  }
144
292
  }
145
293
  }
146
294
  }
147
- > ul.secondaryList {
148
- list-style: none;
149
- padding: 20px;
150
- margin: 0;
295
+ }
296
+ &.compact {
297
+ @include box-shadow(0 2px 4px -2px rgba(0, 0, 0, 0.2));
298
+ position: relative;
299
+ z-index: 1;
151
300
 
152
- li {
153
- a,
301
+ .mainContentLink {
302
+ background-color: $color-primary;
303
+ color: #fff;
304
+ &:focus,
305
+ &:active {
154
306
  span {
155
- color: #fff;
156
- text-decoration: underline;
157
- font-family: "Arial";
158
- font-size: 14px;
159
- padding: 10px 0;
160
- line-height: 1;
307
+ outline-color: #fff;
161
308
  }
162
309
  }
163
310
  }
164
- }
165
311
 
166
- @media only screen and (min-width: $screen-sm) {
167
- .dropdownContainer {
312
+ .navigationBar {
313
+ background-color: $color-primary;
314
+ height: 54px;
315
+ display: flex;
316
+ justify-content: space-between;
317
+ align-items: center;
318
+ @media only screen and (min-width: $screen-sm) {
319
+ height: 73px;
320
+ }
321
+ }
322
+
323
+ .logoContainer {
324
+ width: 200px;
325
+ height: 54px;
326
+ display: inline-block;
327
+ img {
328
+ height: 54px;
329
+ max-width: none;
330
+ }
331
+ @media only screen and (min-width: $screen-sm) {
332
+ width: 270px;
333
+ height: 73px;
334
+ img {
335
+ height: 73px;
336
+ }
337
+ }
338
+ }
339
+
340
+ .childElements {
341
+ display: block;
342
+ color: #fff;
343
+ flex: 1;
344
+ }
345
+
346
+ .menuToggle {
347
+ @include appearance(none);
348
+ @include transition(background-color 300ms ease-out);
349
+ border: none;
350
+ cursor: pointer;
168
351
  position: relative;
169
- overflow: visible;
170
- .dropdown {
171
- @include transition(max-height 0.15s ease-out);
172
- width: 300px;
173
- position: absolute;
174
- right: 0;
175
- max-height: 0;
176
- overflow: hidden;
352
+ background-color: transparent;
353
+ float: right;
354
+ margin: 0 12px;
355
+ .hamburgerIcon {
356
+ width: 30px;
357
+ display: block;
358
+ .line {
359
+ background-color: #fff;
360
+ height: 2px;
361
+ margin: 6px 0;
362
+ display: block;
363
+ }
177
364
  }
365
+ @media only screen and (min-width: $screen-sm) {
366
+ margin: 0 21px;
367
+ }
368
+ }
369
+
370
+ .dropdownContainer {
371
+ @include transition(max-height 0.15s ease-out);
372
+ max-height: 0;
373
+ overflow: hidden;
178
374
  &.active {
375
+ @include transition(max-height 0.15s ease-out);
376
+ max-height: 500px;
377
+ }
378
+ }
379
+
380
+ .dropdown {
381
+ @include box-shadow(0 2px 4px -2px rgba(0, 0, 0, 0.2));
382
+ background-color: $color-primary;
383
+ z-index: 2;
384
+ > ul.primaryList {
385
+ list-style: none;
386
+ padding: 20px;
387
+ margin: 0;
388
+ li {
389
+ a,
390
+ span {
391
+ color: #fff;
392
+ text-transform: uppercase;
393
+ text-decoration: none;
394
+ font-family: $default-font;
395
+ padding: 10px 0;
396
+ display: block;
397
+ border-bottom: 1px solid $color-primary;
398
+ font-size: 14px;
399
+ line-height: 1.6;
400
+ }
401
+ > ul.primaryList {
402
+ list-style: none;
403
+ padding: 0;
404
+ li {
405
+ a,
406
+ span {
407
+ color: #fff;
408
+ text-transform: none;
409
+ text-decoration: none;
410
+ font-family: $default-font;
411
+ padding: 10px 0;
412
+ margin-left: 20px;
413
+ display: block;
414
+ border-bottom: 1px solid #1b3a48;
415
+ font-size: 14px;
416
+ line-height: 1.6;
417
+ }
418
+ }
419
+ }
420
+ }
421
+ }
422
+ > ul.secondaryList {
423
+ list-style: none;
424
+ padding: 20px;
425
+ margin: 0;
426
+
427
+ li {
428
+ a,
429
+ span {
430
+ color: #fff;
431
+ text-decoration: underline;
432
+ font-family: "Arial";
433
+ font-size: 14px;
434
+ padding: 10px 0;
435
+ line-height: 1;
436
+ }
437
+ }
438
+ }
439
+ }
440
+
441
+ @media only screen and (min-width: $screen-sm) {
442
+ .dropdownContainer {
443
+ position: relative;
444
+ overflow: visible;
179
445
  .dropdown {
180
- max-height: 500px;
446
+ @include transition(max-height 0.15s ease-out);
447
+ width: 300px;
448
+ position: absolute;
449
+ right: 0;
450
+ max-height: 0;
451
+ overflow: hidden;
452
+ }
453
+ &.active {
454
+ .dropdown {
455
+ max-height: 500px;
456
+ }
181
457
  }
182
458
  }
183
459
  }