@miljodirektoratet/md-css 1.0.37 → 1.0.39
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/formElements/autocomplete/autocomplete.css +3 -2
- package/src/formElements/input/input.css +5 -0
- package/src/formElements/multiselect/multiselect.css +4 -3
- package/src/formElements/select/select.css +3 -2
- package/src/modal/modal.css +17 -0
- package/src/stepper/README.md +1 -1
package/package.json
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.md-autocomplete--medium {
|
|
7
|
-
width: 440px;
|
|
7
|
+
max-width: 440px;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.md-autocomplete--small {
|
|
11
|
-
width: 260px;
|
|
11
|
+
max-width: 260px;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.md-autocomplete__container {
|
|
@@ -134,6 +134,7 @@
|
|
|
134
134
|
position: absolute;
|
|
135
135
|
max-height: 0;
|
|
136
136
|
overflow: hidden;
|
|
137
|
+
z-index: -1;
|
|
137
138
|
opacity: 0;
|
|
138
139
|
transition: max-height 0.5s ease-in-out;
|
|
139
140
|
width: calc(100% - 4px); /* Full width minus border-width */
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
font-size: 16px;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
.md-input__outer-wrapper--small {
|
|
7
|
+
max-width: 336px;
|
|
8
|
+
}
|
|
9
|
+
|
|
6
10
|
.md-input {
|
|
7
11
|
padding: 1em 2em 1em 1em;
|
|
8
12
|
max-width: 100%;
|
|
@@ -137,6 +141,7 @@
|
|
|
137
141
|
.md-input__error-icon {
|
|
138
142
|
width: 20px;
|
|
139
143
|
height: 20px;
|
|
144
|
+
margin-left: 0.5em;
|
|
140
145
|
color: var(--mdErrorColor);
|
|
141
146
|
}
|
|
142
147
|
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.md-multiselect--medium {
|
|
7
|
-
width: 440px;
|
|
7
|
+
max-width: 440px;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.md-multiselect--small {
|
|
11
|
-
width: 260px;
|
|
11
|
+
max-width: 260px;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.md-multiselect__label {
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
|
|
111
111
|
.md-multiselect__dropdown {
|
|
112
112
|
position: absolute;
|
|
113
|
-
z-index:
|
|
113
|
+
z-index: -1;
|
|
114
114
|
width: calc(100% - 4px);
|
|
115
115
|
max-height: 0;
|
|
116
116
|
overflow: hidden;
|
|
@@ -242,6 +242,7 @@
|
|
|
242
242
|
.md-multiselect__dropdown--open {
|
|
243
243
|
max-height: 350px;
|
|
244
244
|
overflow-y: auto;
|
|
245
|
+
z-index: 2;
|
|
245
246
|
opacity: 1;
|
|
246
247
|
border: 2px solid var(--mdPrimaryColor80);
|
|
247
248
|
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25);
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.md-select--medium {
|
|
7
|
-
width: 440px;
|
|
7
|
+
max-width: 440px;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.md-select--small {
|
|
11
|
-
width: 260px;
|
|
11
|
+
max-width: 260px;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.md-select__container {
|
|
@@ -112,6 +112,7 @@
|
|
|
112
112
|
position: absolute;
|
|
113
113
|
max-height: 0;
|
|
114
114
|
overflow: hidden;
|
|
115
|
+
z-index: -1;
|
|
115
116
|
opacity: 0;
|
|
116
117
|
transition: max-height 0.5s ease-in-out;
|
|
117
118
|
width: calc(100% - 4px); /* Full width minus border-width */
|
package/src/modal/modal.css
CHANGED
|
@@ -40,6 +40,14 @@
|
|
|
40
40
|
box-shadow: 8px 8px 16px var(--mdGreyColor60);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
.md-modal__inner-wrapper--small {
|
|
44
|
+
width: 40vw;
|
|
45
|
+
height: 40vh;
|
|
46
|
+
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
}
|
|
50
|
+
|
|
43
51
|
.md-modal--error .md-modal__inner-wrapper {
|
|
44
52
|
border: 2px solid var(--mdErrorColor);
|
|
45
53
|
}
|
|
@@ -74,4 +82,13 @@
|
|
|
74
82
|
|
|
75
83
|
.md-modal__content-inner {
|
|
76
84
|
padding-right: 2em;
|
|
85
|
+
flex-grow: 1;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Media */
|
|
89
|
+
@media (max-width: 768px) {
|
|
90
|
+
.md-modal__inner-wrapper--small {
|
|
91
|
+
width: 80vw;
|
|
92
|
+
height: 60vh;
|
|
93
|
+
}
|
|
77
94
|
}
|
package/src/stepper/README.md
CHANGED
|
@@ -13,7 +13,7 @@ See [Storybook](https://miljodir.github.io/md-components) for examples and more
|
|
|
13
13
|
<!-- Start of step -->
|
|
14
14
|
<div class="md-stepper__stepper-list-item">
|
|
15
15
|
<div class="md-stepper__step-title">
|
|
16
|
-
<div class="md-stepper__step-title-badge-outer-border">
|
|
16
|
+
<div class="md-stepper__step-title-badge-outer-border [selected]">
|
|
17
17
|
<div class="md-stepper__step-title-badge [completed, selected, disabled]">
|
|
18
18
|
[<MdCheckIcon width="{18}" />, index+1]
|
|
19
19
|
<!-- Icon for checkmark, or the current steps number -->
|