@miljodirektoratet/md-css 1.0.13 → 1.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/README.md CHANGED
@@ -1,22 +1,20 @@
1
- ## @miljodirektoratet/md-css
1
+ # @miljodirektoratet/md-css
2
2
 
3
3
  To start using the stylesheets:
4
4
 
5
- ```
5
+ ```bash
6
6
  npm install @miljodirektoratet/md-css
7
7
  ```
8
8
 
9
9
  Then import the CSS, for example from JavaScript:
10
10
 
11
- ```
11
+ ```jsx
12
12
  import { MdButton } from '@miljodirektoratet/md-react';
13
13
  import '@miljodirektoratet/md-css';
14
14
 
15
15
  const MyComponent = () => {
16
- return (
17
- <MdButton>Example</MdButton>
18
- )
19
- }
16
+ return <MdButton>Example</MdButton>;
17
+ };
20
18
  ```
21
19
 
22
20
  **For more documentation, please refer to the [Storybook](https://miljodir.github.io/md-components/)**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miljodirektoratet/md-css",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "CSS for Miljødirektoratet",
5
5
  "author": "Miljødirektoratet",
6
6
  "main": "./src/index.css",
@@ -4,7 +4,7 @@
4
4
  color: var(--mdGreyColor);
5
5
  font-family: 'Open sans';
6
6
  margin-bottom: 1em;
7
- transition: all .2s linear;
7
+ transition: all 0.2s linear;
8
8
  }
9
9
 
10
10
  .md-accordion-item:focus-within {
@@ -24,7 +24,7 @@
24
24
  .md-accordion-item.md-accordion-item--add {
25
25
  background-color: transparent;
26
26
  border: 1px dashed var(--mdGreyColor80);
27
- transition: all .2s linear;
27
+ transition: all 0.2s linear;
28
28
  }
29
29
  .md-accordion-item--expanded.md-accordion-item--add {
30
30
  background-color: var(--mdPrimaryColor20);
@@ -32,17 +32,17 @@
32
32
  }
33
33
 
34
34
  .md-accordion-item:not(.md-accordion-item--expanded):hover {
35
- transition: all .2s linear;
35
+ transition: all 0.2s linear;
36
36
  background-color: var(--mdPrimaryColor20);
37
37
  }
38
38
 
39
39
  .md-accordion-item.md-accordion-item--secondary:not(.md-accordion-item--expanded):hover {
40
- transition: all .2s linear;
40
+ transition: all 0.2s linear;
41
41
  background-color: var(--mdSecondaryColor);
42
42
  }
43
43
 
44
44
  .md-accordion-item.md-accordion-item--add:not(.md-accordion-item--expanded):hover {
45
- transition: all .2s linear;
45
+ transition: all 0.2s linear;
46
46
  background-color: transparent;
47
47
  }
48
48
 
@@ -78,10 +78,10 @@
78
78
  }
79
79
  .md-accordion-item__header .md-accordion-item__header-icon:before,
80
80
  .md-accordion-item__header .md-accordion-item__header-icon:after {
81
- content: "";
82
- position: absolute;
83
- background-color: var(--mdGreyColor);
84
- transition: transform 0.15s ease-out;
81
+ content: '';
82
+ position: absolute;
83
+ background-color: var(--mdGreyColor);
84
+ transition: transform 0.15s ease-out;
85
85
  }
86
86
  /* Vertical line */
87
87
  .md-accordion-item__header .md-accordion-item__header-icon:before {
@@ -92,7 +92,7 @@
92
92
  margin-left: -1px;
93
93
  }
94
94
  /* horizontal line */
95
- .md-accordion-item__header .md-accordion-item__header-icon:after{
95
+ .md-accordion-item__header .md-accordion-item__header-icon:after {
96
96
  top: 50%;
97
97
  left: 0;
98
98
  width: 100%;
@@ -119,12 +119,12 @@
119
119
  padding: 0 1.8em;
120
120
  max-height: 0;
121
121
  overflow: hidden;
122
- transition: all .15s linear;
122
+ transition: all 0.15s linear;
123
123
  }
124
124
  .md-accordion-item__content--expanded {
125
125
  max-height: 5000px;
126
126
  padding: 1em 1.8em 1.5em 1.8em;
127
- transition: all .15s linear;
127
+ transition: all 0.15s linear;
128
128
  }
129
129
 
130
130
  .md-accordion-item__close-button {
@@ -133,7 +133,7 @@
133
133
  padding: 0;
134
134
  background: none;
135
135
  border: 0;
136
- margin: 2em 0 0 -.2em;
136
+ margin: 2em 0 0 -0.2em;
137
137
  cursor: pointer;
138
138
  font-size: 16px;
139
139
  }
@@ -9,7 +9,7 @@
9
9
  font-family: 'Open sans';
10
10
  font-size: 1rem;
11
11
  line-height: 22px;
12
- padding: .5rem 1rem;
12
+ padding: 0.5rem 1rem;
13
13
  cursor: pointer;
14
14
  text-align: left;
15
15
  }
@@ -59,7 +59,7 @@
59
59
  display: flex;
60
60
  width: 16px;
61
61
  height: 16px;
62
- margin-right: .66em;
62
+ margin-right: 0.66em;
63
63
  }
64
64
 
65
65
  .md-chip__label {
@@ -70,5 +70,5 @@
70
70
  display: flex;
71
71
  width: 16px;
72
72
  height: 16px;
73
- margin-left: .8em;
73
+ margin-left: 0.8em;
74
74
  }
package/src/colors.css CHANGED
@@ -1,30 +1,30 @@
1
1
  :root {
2
2
  --mdPrimaryColor: #005e5d;
3
3
  --mdPrimaryColor120: #005251;
4
- --mdPrimaryColor80: #337E7D;
5
- --mdPrimaryColor20: #CCDFDE;
6
- --mdPrimaryColor10: #E5EEEE;
4
+ --mdPrimaryColor80: #337e7d;
5
+ --mdPrimaryColor20: #ccdfde;
6
+ --mdPrimaryColor10: #e5eeee;
7
7
 
8
8
  --mdLightPrimaryColor: #40c1ac;
9
9
  --mdDarkPrimaryColor: #005251;
10
10
 
11
- --mdSecondaryColor: #ECE7D2;
12
- --mdSecondaryColor80: #EFEBDB;
13
- --mdSecondaryColor60: #F3F0E4;
14
- --mdSecondaryColor40: #F7F5ED;
15
- --mdSecondaryColor20: #FBFAF6;
11
+ --mdSecondaryColor: #ece7d2;
12
+ --mdSecondaryColor80: #efebdb;
13
+ --mdSecondaryColor60: #f3f0e4;
14
+ --mdSecondaryColor40: #f7f5ed;
15
+ --mdSecondaryColor20: #fbfaf6;
16
16
 
17
17
  --mdTextColor: #222222;
18
18
 
19
- --mdWarningBackgoundColor: #FCE4CA;
19
+ --mdWarningBackgoundColor: #fce4ca;
20
20
 
21
21
  --mdErrorColor: #ca0000;
22
- --mdErrorColor120: #B7090D;
22
+ --mdErrorColor120: #b7090d;
23
23
 
24
24
  --mdGreyColor: #222222;
25
- --mdGreyColor10: #E8E8E8;
26
- --mdGreyColor20: #D2D2D2;
27
- --mdGreyColor40: #A6A6A6;
25
+ --mdGreyColor10: #e8e8e8;
26
+ --mdGreyColor20: #d2d2d2;
27
+ --mdGreyColor40: #a6a6a6;
28
28
  --mdGreyColor60: #808080;
29
- --mdGreyColor80: #4E4E4E;
29
+ --mdGreyColor80: #4e4e4e;
30
30
  }
@@ -1,22 +1,22 @@
1
1
  .md-filelist {
2
2
  display: flex;
3
3
  flex-direction: column;
4
- gap: .5em;
4
+ gap: 0.5em;
5
5
  }
6
6
 
7
7
  .md-filelist__file {
8
8
  display: flex;
9
9
  justify-content: space-between;
10
10
  border: 1px solid var(--mdPrimaryColor);
11
- padding: .8em 1.1em;
11
+ padding: 0.8em 1.1em;
12
12
  font-family: 'Open sans';
13
13
  background-color: #fff;
14
- transition: background .2s linear;
14
+ transition: background 0.2s linear;
15
15
  }
16
16
 
17
17
  .md-filelist__file:hover {
18
18
  background-color: var(--mdPrimaryColor20);
19
- transition: background .2s linear;
19
+ transition: background 0.2s linear;
20
20
  }
21
21
 
22
22
  .md-filelist__file-label {
@@ -31,7 +31,7 @@
31
31
 
32
32
  .md-filelist__file-size {
33
33
  font-size: 14px;
34
- margin-top: .3em;
34
+ margin-top: 0.3em;
35
35
  }
36
36
 
37
37
  /* File actions */
@@ -50,14 +50,14 @@
50
50
  background-color: transparent;
51
51
  border-radius: 100px;
52
52
  border: 0;
53
- padding: .2em;
53
+ padding: 0.2em;
54
54
  cursor: pointer;
55
- transition: background .1s linear;
55
+ transition: background 0.1s linear;
56
56
  }
57
57
 
58
58
  .md-filelist__file-actions-button:hover {
59
59
  background-color: #fff;
60
- transition: background .1s linear;
60
+ transition: background 0.1s linear;
61
61
  }
62
62
 
63
63
  .md-filelist__file-delete-icon {
@@ -0,0 +1,58 @@
1
+ # Structure
2
+
3
+ To use the `Autocomplete` css in `@miljodirektoratet/md-css` as a standalone, without the accompanying React component, please use the following HTML structure.
4
+
5
+ Class names in brackets [] are optional-/togglable-/decorator- or state dependant classes.
6
+
7
+ See [Storybook](https://miljodir.github.io/md-components) for examples and more info.
8
+
9
+ ```html
10
+ <div className="md-autocomplete [md-autocomplete--open, md-autocomplete--disabled, md-autocomplete--medium, md-autocomplete--small, md-autocomplete--error]">
11
+ <div className="md-autocomplete__label">
12
+ <div>{label}</div>
13
+ <div className="md-autocomplete__help-button">
14
+ {button to trigger help text}
15
+ </div>
16
+ </div>
17
+
18
+ <div className="md-autocomplete__help-text [md-autocomplete__help-text--open]">
19
+ {helpText}
20
+ </div>
21
+
22
+ <MdClickOutsideWrapper> <- optional wrapper to close autocomplete box when clicking outside
23
+ <!-- Optional prefix-icon -->
24
+ <div className="md-autocomplete__input__prefix [md-autocomplete__input__prefix--disabled]">
25
+ {prefixIcon}
26
+ </div>
27
+
28
+ <input
29
+ id=""
30
+ className="md-autocomplete__input [md-autocomplete__input--open, md-autocomplete__input--error, md-autocomplete__input--has-prefix]"
31
+ value={value}
32
+ ...
33
+ />
34
+
35
+ <div className="md-autocomplete__input-icon">
36
+ <MdChevronIcon />
37
+ </div>
38
+
39
+ <div className="md-autocomplete__dropdown">
40
+ <button
41
+ tabIndex={open ? 0: -1}
42
+ className="md-autocomplete__dropdown-item [md-autocomplete__dropdown-item--selected]"
43
+ onClick={function to handle select|deselect option}
44
+ >
45
+ <div className="md-autocomplete__dropdown-item-text">{option.text}</div>
46
+
47
+ {if seleceted option
48
+ <div className="md-autocomplete__dropdown-item-clear" title="Klikk for å fjerne valg">
49
+ <MdXIcon />
50
+ </div>
51
+ }
52
+
53
+ </button>
54
+ </div>
55
+ </MdClickOutsideWrapper>
56
+ <div className="md-autocomplete__error">{errorText}</div>
57
+ </div>
58
+ ```
@@ -0,0 +1,198 @@
1
+ .md-autocomplete {
2
+ font-family: 'Open sans';
3
+ width: 634px;
4
+ max-width: 100%;
5
+ }
6
+
7
+ .md-autocomplete--medium {
8
+ width: 440px;
9
+ }
10
+
11
+ .md-autocomplete--small {
12
+ width: 260px;
13
+ }
14
+
15
+ .md-autocomplete__container {
16
+ position: relative;
17
+ }
18
+
19
+ .md-autocomplete__label {
20
+ display: flex;
21
+ align-items: flex-end;
22
+ font-weight: 600;
23
+ }
24
+
25
+ .md-autocomplete__label > * + * {
26
+ margin-left: 1em;
27
+ }
28
+
29
+ .md-autocomplete__input {
30
+ max-width: 100%;
31
+ width: 100%;
32
+ background-color: #fff;
33
+ border-radius: 0;
34
+ color: var(--mdGreyColor);
35
+ box-sizing: border-box;
36
+ font-family: 'Open sans';
37
+ font-size: 1em;
38
+ display: flex;
39
+ align-items: center;
40
+ justify-content: space-between;
41
+ padding: 1em;
42
+ border: 1px solid var(--mdGreyColor60);
43
+ margin: 0.8em 0 0 0;
44
+ text-align: left;
45
+ cursor: pointer;
46
+ }
47
+
48
+ .md-autocomplete__input.md-autocomplete__input--error {
49
+ border-color: var(--mdErrorColor);
50
+ }
51
+
52
+ .md-autocomplete--disabled .md-autocomplete__input {
53
+ background-color: var(--mdGreyColor20);
54
+ color: var(--mdGreyColor60);
55
+ cursor: not-allowed;
56
+ }
57
+
58
+ .md-autocomplete__input:focus,
59
+ .md-autocomplete__input:focus-within {
60
+ outline: none;
61
+ }
62
+
63
+ .md-autocomplete__input-text {
64
+ display: flex;
65
+ flex-grow: 1;
66
+ padding-right: 1em;
67
+ }
68
+
69
+ .md-autocomplete__input-icon {
70
+ display: flex;
71
+ flex-shrink: 0;
72
+ width: 15px;
73
+ height: 15px;
74
+ rotate: 90deg;
75
+ color: var(--mdGreyColor);
76
+ }
77
+
78
+ .md-autocomplete__input.md-autocomplete__input--has-prefix {
79
+ padding-left: 2.5em;
80
+ }
81
+
82
+ .md-autocomplete__input--small.md-autocomplete__input--has-prefix {
83
+ padding-left: 1.8em;
84
+ }
85
+
86
+ .md-autocomplete__input__prefix {
87
+ position: absolute;
88
+ top: 1.3em;
89
+ left: 1em;
90
+ height: 16px;
91
+ width: 16px;
92
+ display: flex;
93
+ color: var(--mdPrimaryColor);
94
+ }
95
+
96
+ .md-autocomplete__input__prefix.md-autocomplete__input__prefix--disabled {
97
+ color: var(--mdGreyColor60);
98
+ }
99
+
100
+ .md-autocomplete__input-icon {
101
+ position: absolute;
102
+ top: 1.3em;
103
+ right: 0.9em;
104
+ display: flex;
105
+ width: 15px;
106
+ height: 15px;
107
+ rotate: 90deg;
108
+ color: var(--mdGreyColor);
109
+ }
110
+
111
+ .md-autocomplete__help-text {
112
+ max-height: 0;
113
+ overflow: hidden;
114
+ transition: max-height 0.15s ease-out;
115
+ }
116
+
117
+ .md-autocomplete__help-text--open {
118
+ padding-top: 0.5em;
119
+ max-height: 2000px;
120
+ transition: max-height 0.5s ease-in;
121
+ }
122
+
123
+ .md-autocomplete__dropdown {
124
+ position: absolute;
125
+ max-height: 0;
126
+ overflow: hidden;
127
+ opacity: 0;
128
+ transition: max-height 0.5s ease-in-out;
129
+ width: calc(100% - 4px); /* Full width minus border-width */
130
+ }
131
+
132
+ .md-autocomplete__dropdown-item {
133
+ display: flex;
134
+ font-family: 'Open sans';
135
+ border: 0;
136
+ background-color: #fff;
137
+ width: 100%;
138
+ text-align: left;
139
+ padding: 0.9em;
140
+ transition: background-color 0.15s ease-in-out;
141
+ cursor: pointer;
142
+ }
143
+
144
+ .md-autocomplete__dropdown-item:hover,
145
+ .md-autocomplete__dropdown-item:focus {
146
+ outline: none;
147
+ background-color: var(--mdPrimaryColor20);
148
+ transition: background-color 0.15s ease-in-out;
149
+ }
150
+
151
+ .md-autocomplete__dropdown-item--selected {
152
+ background-color: var(--mdPrimaryColor10);
153
+ }
154
+
155
+ .md-autocomplete__dropdown-item-text {
156
+ display: flex;
157
+ flex-grow: 1;
158
+ }
159
+
160
+ .md-autocomplete__dropdown-item-clear {
161
+ display: flex;
162
+ flex-shrink: 0;
163
+ height: 12px;
164
+ width: 12px;
165
+ color: var(--mdPrimaryColor);
166
+ }
167
+
168
+ /* Open state */
169
+ .md-autocomplete--open .md-autocomplete__input {
170
+ border-left: 2px solid var(--mdPrimaryColor);
171
+ border-right: 2px solid var(--mdPrimaryColor);
172
+ border-top: 2px solid var(--mdPrimaryColor);
173
+ }
174
+
175
+ .md-autocomplete--open .md-autocomplete__dropdown {
176
+ max-height: 350px;
177
+ overflow-y: auto;
178
+ opacity: 1;
179
+ transition: max-height 0.5s ease-in-out;
180
+ border-right: 2px solid var(--mdPrimaryColor);
181
+ border-left: 2px solid var(--mdPrimaryColor);
182
+ border-bottom: 2px solid var(--mdPrimaryColor);
183
+ z-index: 2;
184
+ }
185
+
186
+ /* open + error */
187
+ .md-autocomplete--open.md-autocomplete--error .md-autocomplete__input {
188
+ border-color: var(--mdErrorColor);
189
+ }
190
+ .md-autocomplete--open.md-autocomplete--error .md-autocomplete__dropdown {
191
+ border-color: var(--mdErrorColor);
192
+ }
193
+
194
+ /* Error text */
195
+ .md-autocomplete__error {
196
+ color: var(--mdErrorColor);
197
+ font-size: 0.88em;
198
+ }
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  .md-checkboxgroup .md-checkboxgroup__help-text--open {
23
- padding-top: .5em;
23
+ padding-top: 0.5em;
24
24
  max-height: 2000px;
25
25
  transition: max-height 0.5s ease-in;
26
26
  }
@@ -28,7 +28,7 @@
28
28
  .md-checkboxgroup .md-checkboxgroup__options {
29
29
  display: flex;
30
30
  flex-direction: row;
31
- margin: .7em 0;
31
+ margin: 0.7em 0;
32
32
  gap: 1em;
33
33
  }
34
34
 
@@ -38,5 +38,5 @@
38
38
 
39
39
  .md-checkboxgroup__error {
40
40
  color: var(--mdErrorColor);
41
- font-size: .88em;
41
+ font-size: 0.88em;
42
42
  }
@@ -10,12 +10,12 @@
10
10
  border: 1px dashed var(--mdGreyColor80);
11
11
  margin-bottom: 4em;
12
12
  background-color: #fff;
13
- transition: background .2s linear;
13
+ transition: background 0.2s linear;
14
14
  }
15
15
 
16
16
  .md-fileupload__droparea.md-fileupload__droparea--active {
17
17
  background-color: var(--mdGreyColor20);
18
- transition: background .2s linear;
18
+ transition: background 0.2s linear;
19
19
  }
20
20
 
21
21
  .md-fileupload__droparea.md-fileupload__droparea--not-allowed {
@@ -39,8 +39,8 @@
39
39
  }
40
40
  .md-fileupload__droparea-content--count {
41
41
  text-align: center;
42
- margin: .5em 0;
43
- font-size: .888em;
42
+ margin: 0.5em 0;
43
+ font-size: 0.888em;
44
44
  font-style: italic;
45
45
  }
46
46
 
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  .md-input--small {
20
- padding: .5em 2em .5em 1em;
20
+ padding: 0.5em 2em 0.5em 1em;
21
21
  }
22
22
 
23
23
  .md-input:not(.md-input.md-input--readonly):not(.md-input.md-input--disabled):active,
@@ -65,7 +65,7 @@
65
65
 
66
66
  .md-input__wrapper {
67
67
  position: relative;
68
- margin: .7em 0 .3em 0;
68
+ margin: 0.7em 0 0.3em 0;
69
69
  }
70
70
 
71
71
  .md-input__wrapper.md-input__wrapper--small {
@@ -89,7 +89,7 @@
89
89
 
90
90
  .md-input__error {
91
91
  color: var(--mdErrorColor);
92
- font-size: .88em;
92
+ font-size: 0.88em;
93
93
  }
94
94
 
95
95
  .md-input__help-text {
@@ -99,7 +99,7 @@
99
99
  }
100
100
 
101
101
  .md-input__help-text--open {
102
- padding-top: .5em;
102
+ padding-top: 0.5em;
103
103
  max-height: 2000px;
104
104
  transition: max-height 0.5s ease-in;
105
105
  }
@@ -119,14 +119,14 @@
119
119
  }
120
120
 
121
121
  .md-input__wrapper.md-input__wrapper--small .md-input__prefix {
122
- top: .65em;
123
- left: .5em;
122
+ top: 0.65em;
123
+ left: 0.5em;
124
124
  }
125
125
 
126
126
  .md-input__suffix {
127
127
  position: absolute;
128
128
  top: 1.05em;
129
- right: .9em;
129
+ right: 0.9em;
130
130
  display: flex;
131
131
  }
132
132
 
@@ -135,7 +135,7 @@
135
135
  }
136
136
 
137
137
  .md-input__suffix > * + * {
138
- margin-left: .5em;
138
+ margin-left: 0.5em;
139
139
  }
140
140
 
141
141
  .md-input__error-icon {
@@ -145,34 +145,38 @@
145
145
  }
146
146
 
147
147
  .md-input__wrapper.md-input__wrapper--small .md-input__suffix {
148
- top: .55em;
149
- right: .7em;
148
+ top: 0.55em;
149
+ right: 0.7em;
150
150
  }
151
151
 
152
152
  .md-input__wrapper.md-input__wrapper--small .md-input__suffix > * + * {
153
- margin-left: .3em;
153
+ margin-left: 0.3em;
154
154
  }
155
155
 
156
156
  /* Placeholder "hacks" */
157
- .md-input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
157
+ .md-input::-webkit-input-placeholder {
158
+ /* Chrome/Opera/Safari */
158
159
  color: var(--mdGreyColor40);
159
160
  font-family: 'Open sans';
160
161
  }
161
- .md-input::-moz-placeholder { /* Firefox 19+ */
162
+ .md-input::-moz-placeholder {
163
+ /* Firefox 19+ */
162
164
  color: var(--mdGreyColor40);
163
165
  font-family: 'Open sans';
164
166
  }
165
- .md-input:-ms-input-placeholder { /* IE 10+ */
167
+ .md-input:-ms-input-placeholder {
168
+ /* IE 10+ */
166
169
  color: var(--mdGreyColor40);
167
170
  font-family: 'Open sans';
168
171
  }
169
- .md-input:-moz-placeholder { /* Firefox 18- */
172
+ .md-input:-moz-placeholder {
173
+ /* Firefox 18- */
170
174
  color: var(--mdGreyColor40);
171
175
  font-family: 'Open sans';
172
176
  }
173
177
 
174
178
  /* Hacks for hiding arrows if type=number */
175
- .md-input.md-input--hide-number-arrows[type=number],
179
+ .md-input.md-input--hide-number-arrows[type='number'],
176
180
  .md-input.md-input--hide-number-arrows::-webkit-outer-spin-button,
177
181
  .md-input.md-input--hide-number-arrows::-webkit-inner-spin-button {
178
182
  appearance: none;
@@ -59,7 +59,7 @@
59
59
  }
60
60
 
61
61
  .md-multiselect__button-text {
62
- padding-right: .5em;
62
+ padding-right: 0.5em;
63
63
  width: 90%;
64
64
  overflow: hidden;
65
65
  white-space: nowrap;
@@ -77,7 +77,7 @@
77
77
 
78
78
  .md-multiselect__button-hasmultiple {
79
79
  margin-right: 1em;
80
- font-size: .8em;
80
+ font-size: 0.8em;
81
81
  }
82
82
 
83
83
  .md-multiselect__help-text {
@@ -87,14 +87,14 @@
87
87
  }
88
88
 
89
89
  .md-multiselect__help-text--open {
90
- padding-top: .5em;
90
+ padding-top: 0.5em;
91
91
  max-height: 2000px;
92
92
  transition: max-height 0.5s ease-in;
93
93
  }
94
94
 
95
95
  .md-multiselect__dropdown-wrapper {
96
96
  position: relative;
97
- margin: .7em 0 .7em 0;
97
+ margin: 0.7em 0 0.7em 0;
98
98
  }
99
99
 
100
100
  .md-multiselect__dropdown {
@@ -104,7 +104,7 @@
104
104
  max-height: 0;
105
105
  overflow: hidden;
106
106
  opacity: 0;
107
- transition: max-height .3s linear;
107
+ transition: max-height 0.3s linear;
108
108
  }
109
109
 
110
110
  .md-multiselect__dropdown-item {
@@ -114,7 +114,7 @@
114
114
  border: 0;
115
115
  background-color: #fff;
116
116
  text-align: left;
117
- transition: background-color .15s ease-in-out;
117
+ transition: background-color 0.15s ease-in-out;
118
118
  cursor: pointer;
119
119
  }
120
120
 
@@ -128,7 +128,7 @@
128
128
  display: flex;
129
129
  flex-shrink: 0;
130
130
  flex-grow: 1;
131
- padding: .9em;
131
+ padding: 0.9em;
132
132
  }
133
133
 
134
134
  .md-multiselect__dropdown-item .md-checkbox .md-checkbox__label .md-checkbox__labelText {
@@ -140,7 +140,7 @@
140
140
  .md-multiselect__dropdown-item:focus-within {
141
141
  outline: none;
142
142
  background-color: var(--mdPrimaryColor20);
143
- transition: background-color .15s ease-in-out;
143
+ transition: background-color 0.15s ease-in-out;
144
144
  }
145
145
 
146
146
  .md-multiselect__dropdown-item:hover .md-checkbox__label,
@@ -180,14 +180,14 @@
180
180
 
181
181
  .md-multiselect__error {
182
182
  color: var(--mdErrorColor);
183
- font-size: .88em;
183
+ font-size: 0.88em;
184
184
  }
185
185
 
186
186
  .md-multiselect__chips {
187
187
  display: flex;
188
- margin-top: .7em;
188
+ margin-top: 0.7em;
189
189
  flex-wrap: wrap;
190
- gap: .5em;
190
+ gap: 0.5em;
191
191
  }
192
192
 
193
193
  /* Open state */
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  .md-radiogroup .md-radiogroup__help-text--open {
23
- padding-top: .5em;
23
+ padding-top: 0.5em;
24
24
  max-height: 2000px;
25
25
  transition: max-height 0.5s ease-in;
26
26
  }
@@ -28,7 +28,7 @@
28
28
  .md-radiogroup .md-radiogroup__options {
29
29
  display: flex;
30
30
  flex-direction: row;
31
- margin: .7em 0;
31
+ margin: 0.7em 0;
32
32
  }
33
33
 
34
34
  .md-radiogroup .md-radiogroup__options--vertical {
@@ -46,7 +46,7 @@
46
46
  margin-bottom: 1em;
47
47
  }
48
48
  .md-radiogroup .md-radiogroup__options--vertical .md-radiogroup-option:last-child {
49
- margin-bottom: .2em;
49
+ margin-bottom: 0.2em;
50
50
  }
51
51
 
52
52
  .md-radiogroup .md-radiogroup-option:focus-within {
@@ -72,7 +72,7 @@
72
72
  background-color: #fff;
73
73
  border: 1px solid var(--mdPrimaryColor);
74
74
  border-radius: 50%;
75
- margin: 0 .5rem 0 0;
75
+ margin: 0 0.5rem 0 0;
76
76
  box-sizing: border-box;
77
77
  position: relative;
78
78
  }
@@ -95,12 +95,12 @@
95
95
  top: 50%;
96
96
  transform: translateY(-50%);
97
97
  opacity: 0;
98
- animation: fadeIn 0.3s ease-out 1 forwards;
98
+ animation: fadeIn 0.3s ease-out 1 forwards;
99
99
  }
100
100
 
101
101
  .md-radiogroup__error {
102
102
  color: var(--mdErrorColor);
103
- font-size: .88em;
103
+ font-size: 0.88em;
104
104
  }
105
105
 
106
106
  /* Disabled */
@@ -122,10 +122,9 @@
122
122
  flex-wrap: wrap;
123
123
  }
124
124
  .md-radiogroup .md-radiogroup-option {
125
- margin-bottom: .5em;
125
+ margin-bottom: 0.5em;
126
126
  }
127
127
  .md-radiogroup .md-radiogroup__help-text {
128
128
  width: 100%;
129
129
  }
130
130
  }
131
-
@@ -37,7 +37,7 @@
37
37
  padding: 1em;
38
38
  border: 1px solid var(--mdGreyColor60);
39
39
  color: var(--mdGreyColor);
40
- margin: .8em 0 0 0;
40
+ margin: 0.8em 0 0 0;
41
41
  text-align: left;
42
42
  cursor: pointer;
43
43
  }
@@ -90,7 +90,7 @@
90
90
  }
91
91
 
92
92
  .md-select__help-text--open {
93
- padding-top: .5em;
93
+ padding-top: 0.5em;
94
94
  max-height: 2000px;
95
95
  transition: max-height 0.5s ease-in;
96
96
  }
@@ -100,7 +100,7 @@
100
100
  max-height: 0;
101
101
  overflow: hidden;
102
102
  opacity: 0;
103
- transition: max-height .5s ease-in-out;
103
+ transition: max-height 0.5s ease-in-out;
104
104
  width: calc(100% - 4px); /* Full width minus border-width */
105
105
  }
106
106
 
@@ -111,8 +111,8 @@
111
111
  background-color: #fff;
112
112
  width: 100%;
113
113
  text-align: left;
114
- padding: .9em;
115
- transition: background-color .15s ease-in-out;
114
+ padding: 0.9em;
115
+ transition: background-color 0.15s ease-in-out;
116
116
  cursor: pointer;
117
117
  }
118
118
 
@@ -120,7 +120,7 @@
120
120
  .md-select__dropdown-item:focus {
121
121
  outline: none;
122
122
  background-color: var(--mdPrimaryColor20);
123
- transition: background-color .15s ease-in-out;
123
+ transition: background-color 0.15s ease-in-out;
124
124
  }
125
125
 
126
126
  .md-select__dropdown-item--selected {
@@ -155,7 +155,7 @@
155
155
  max-height: 350px;
156
156
  overflow-y: auto;
157
157
  opacity: 1;
158
- transition: max-height .5s ease-in-out;
158
+ transition: max-height 0.5s ease-in-out;
159
159
  border: 2px solid var(--mdPrimaryColor);
160
160
  border-top: 0;
161
161
  z-index: 2;
@@ -172,5 +172,5 @@
172
172
  /* Error text */
173
173
  .md-select__error {
174
174
  color: var(--mdErrorColor);
175
- font-size: .88em;
175
+ font-size: 0.88em;
176
176
  }
@@ -44,7 +44,7 @@
44
44
  }
45
45
 
46
46
  .md-textarea__wrapper {
47
- margin: .7em 0 .3em 0;
47
+ margin: 0.7em 0 0.3em 0;
48
48
  }
49
49
 
50
50
  .md-textarea__label {
@@ -64,7 +64,7 @@
64
64
 
65
65
  .md-textarea__error {
66
66
  color: var(--mdErrorColor);
67
- font-size: .88em;
67
+ font-size: 0.88em;
68
68
  }
69
69
 
70
70
  .md-textarea__help-text {
@@ -74,25 +74,29 @@
74
74
  }
75
75
 
76
76
  .md-textarea__help-text--open {
77
- padding-top: .5em;
77
+ padding-top: 0.5em;
78
78
  max-height: 2000px;
79
79
  transition: max-height 0.5s ease-in;
80
80
  }
81
81
 
82
82
  /* Placeholder "hacks" */
83
- .md-textarea::-webkit-input-placeholder { /* Chrome/Opera/Safari */
83
+ .md-textarea::-webkit-input-placeholder {
84
+ /* Chrome/Opera/Safari */
84
85
  color: var(--mdGreyColor40);
85
86
  font-family: 'Open sans';
86
87
  }
87
- .md-textarea::-moz-placeholder { /* Firefox 19+ */
88
+ .md-textarea::-moz-placeholder {
89
+ /* Firefox 19+ */
88
90
  color: var(--mdGreyColor40);
89
91
  font-family: 'Open sans';
90
92
  }
91
- .md-textarea:-ms-input-placeholder { /* IE 10+ */
93
+ .md-textarea:-ms-input-placeholder {
94
+ /* IE 10+ */
92
95
  color: var(--mdGreyColor40);
93
96
  font-family: 'Open sans';
94
97
  }
95
- .md-textarea:-moz-placeholder { /* Firefox 18- */
98
+ .md-textarea:-moz-placeholder {
99
+ /* Firefox 18- */
96
100
  color: var(--mdGreyColor40);
97
101
  font-family: 'Open sans';
98
102
  }
package/src/help/help.css CHANGED
@@ -12,17 +12,17 @@
12
12
  }
13
13
 
14
14
  .md-helpbutton--expanded:not(.md-helpbutton--noarrow):after {
15
- content:'';
16
- position: absolute;
17
- left: .3em;
18
- /* right: 0; */
19
- bottom: -.65em;
20
- margin: 0 auto;
21
- width: 0;
22
- height: 0;
23
- border-bottom: 6px solid var(--mdPrimaryColor);
24
- border-left: 6px solid transparent;
25
- border-right: 6px solid transparent;
15
+ content: '';
16
+ position: absolute;
17
+ left: 0.3em;
18
+ /* right: 0; */
19
+ bottom: -0.65em;
20
+ margin: 0 auto;
21
+ width: 0;
22
+ height: 0;
23
+ border-bottom: 6px solid var(--mdPrimaryColor);
24
+ border-left: 6px solid transparent;
25
+ border-right: 6px solid transparent;
26
26
  }
27
27
 
28
28
  .md-helpbutton:focus {
@@ -47,11 +47,11 @@
47
47
 
48
48
  /* HELP TEXT */
49
49
  .md-helptext {
50
- font-family: "Open sans";
51
- font-size: .88em;
50
+ font-family: 'Open sans';
51
+ font-size: 0.88em;
52
52
  background-color: var(--mdPrimaryColor);
53
53
  color: #fff;
54
54
  padding: 1.7em;
55
- border-radius: .57em;
55
+ border-radius: 0.57em;
56
56
  max-width: 100%;
57
57
  }
package/src/index.css CHANGED
@@ -18,6 +18,7 @@
18
18
  @import './formElements/checkboxgroup/checkboxgroup.css';
19
19
  @import './formElements/textarea/textarea.css';
20
20
  @import './formElements/select/select.css';
21
+ @import './formElements/autocomplete/autocomplete.css';
21
22
  @import './formElements/radiogroup/radiogroup.css';
22
23
  @import './formElements/multiselect/multiselect.css';
23
24
  @import './formElements/fileupload/fileupload.css';
package/src/link/link.css CHANGED
@@ -6,7 +6,7 @@
6
6
  }
7
7
 
8
8
  .md-link:hover {
9
- color: var(--mdPrimaryColor120)
9
+ color: var(--mdPrimaryColor120);
10
10
  }
11
11
 
12
12
  .md-link:focus {
@@ -19,7 +19,7 @@
19
19
  bottom: 0;
20
20
  left: 0;
21
21
  background-color: var(--mdGreyColor);
22
- opacity: .4;
22
+ opacity: 0.4;
23
23
  overflow-y: auto;
24
24
  z-index: 800;
25
25
  }
@@ -37,7 +37,7 @@
37
37
  min-width: 325px;
38
38
  max-width: 80%;
39
39
  border: 1px solid var(--mdGreyColor20);
40
- box-shadow: 8px 8px 16px var(--mdGreyColor60)
40
+ box-shadow: 8px 8px 16px var(--mdGreyColor60);
41
41
  }
42
42
 
43
43
  .md-modal--error .md-modal__inner-wrapper {
@@ -54,7 +54,7 @@
54
54
  .md-modal__header-content {
55
55
  display: flex;
56
56
  align-items: center;
57
- gap: .5em;
57
+ gap: 0.5em;
58
58
  }
59
59
 
60
60
  .md-modal__close-button {
package/src/tabs/tabs.css CHANGED
@@ -24,7 +24,7 @@
24
24
  border: 0;
25
25
  background-color: transparent;
26
26
  border-bottom: 1px solid var(--mdGreyColor80);
27
- transition: border .1s linear, background .1s linear, margin .1s linear;
27
+ transition: border 0.1s linear, background 0.1s linear, margin 0.1s linear;
28
28
  margin-bottom: 3px;
29
29
  }
30
30
 
package/src/tile/tile.css CHANGED
@@ -11,13 +11,13 @@
11
11
  font-family: 'Open sans';
12
12
  width: 440px;
13
13
  max-width: 100%;
14
- transition: all .15s ease-in-out;
14
+ transition: all 0.15s ease-in-out;
15
15
  }
16
16
 
17
17
  .md-tile:not(.md-tile--disabled):hover {
18
18
  border: 1px solid var(--mdPrimaryColor);
19
19
  background-color: var(--mdPrimaryColor20);
20
- transition: all .15s ease-in-out;
20
+ transition: all 0.15s ease-in-out;
21
21
  }
22
22
 
23
23
  .md-tile:not(.md-tile--disabled):focus {
@@ -78,7 +78,7 @@
78
78
  color: var(--mdGreyColor);
79
79
  text-decoration: none;
80
80
  font-family: 'Open sans';
81
- transition: all .15s ease-in-out;
81
+ transition: all 0.15s ease-in-out;
82
82
  }
83
83
 
84
84
  .md-tile-vertical--small {
@@ -100,7 +100,7 @@
100
100
  .md-tile-vertical:hover {
101
101
  border: 1px solid var(--mdPrimaryColor);
102
102
  background-color: var(--mdPrimaryColor20);
103
- transition: all .15s ease-in-out;
103
+ transition: all 0.15s ease-in-out;
104
104
  }
105
105
 
106
106
  .md-tile-vertical:focus {
@@ -53,7 +53,7 @@
53
53
  border: 1px solid var(--mdGreyColor60);
54
54
  border-radius: 100px;
55
55
  position: relative;
56
- transition: background-color .2s;
56
+ transition: background-color 0.2s;
57
57
  }
58
58
  .md-toggle__label--error.md-toggle__label {
59
59
  border-color: var(--mdErrorColor);
@@ -69,7 +69,7 @@
69
69
  }
70
70
 
71
71
  .md-toggle__label-text {
72
- margin-right: .5em;
72
+ margin-right: 0.5em;
73
73
  }
74
74
 
75
75
  .md-toggle__label .md-toggle__button {
@@ -98,5 +98,5 @@
98
98
  .md-toggle__error {
99
99
  color: var(--mdErrorColor);
100
100
  font-family: 'Open sans';
101
- font-size: .88em;
101
+ font-size: 0.88em;
102
102
  }
package/src/utils.css CHANGED
@@ -1,6 +1,10 @@
1
1
  @keyframes fadeIn {
2
- from { opacity: 0; }
3
- to { opacity: 1; }
2
+ from {
3
+ opacity: 0;
4
+ }
5
+ to {
6
+ opacity: 1;
7
+ }
4
8
  }
5
9
 
6
10
  @keyframes spinAnimation {