1
1
#document-upload {
2
2
gap : var (--spacing-tiny );
3
+ max-width : var (--mobile-xs-width );
3
4
4
5
.button [type = ' submit' ]:disabled {
5
6
background-color : var (--color-gray ) !important ;
17
18
}
18
19
}
19
20
20
- input [type = ' text' ] {
21
- max-width : var (--mobile-xs-width );
22
- }
23
-
24
21
.inputfile-group {
25
22
display : block ;
26
23
48
45
/// File-input site wide
49
46
input [type = ' file' ] {
50
47
background-color : var (--color-white );
51
- color : var (--color-primary-lighter );
48
+ color : var (--color-primary );
52
49
border : 1px solid var (--color-mute );
53
50
border-radius : var (--border-radius );
54
51
display : inline-block ;
52
+ filter : saturate (70% );
55
53
min-width : 100% ;
56
54
max-width : var (--form-width );
57
55
padding : 0 ;
@@ -129,7 +127,8 @@ input[type='file']::file-selector-button {
129
127
z-index : 200 ;
130
128
}
131
129
132
- .inputfile + label {
130
+ .inputfile + .label ,
131
+ .inputfile + .label__label {
133
132
display : inline-block ;
134
133
position : absolute ;
135
134
top : 5px ;
@@ -145,28 +144,36 @@ input[type='file']::file-selector-button {
145
144
z-index : -1 ;
146
145
}
147
146
148
- .inputfile :focus + label ,
149
- .inputfile.has-focus + label ,
150
- .inputfile :hover + label ,
151
- .inputfile + label :hover {
147
+ .inputfile :focus + .label__label ,
148
+ .inputfile.has-focus + .label__label ,
149
+ .inputfile :hover + .label__label ,
150
+ .inputfile + .label__label :hover ,
151
+ .inputfile :focus + .label ,
152
+ .inputfile.has-focus + .label ,
153
+ .inputfile :hover + .label ,
154
+ .inputfile + .label :hover {
152
155
background-color : var (--color-primary-darker );
153
156
top : 4px ;
154
157
transition : all 0.3s , background-color 0.3s ;
155
158
}
156
159
157
- .inputfile + label * [class *= ' icons' ] {
160
+ .inputfile + .label__label * [class *= ' icons' ],
161
+ .inputfile + .label * [class *= ' icons' ] {
158
162
width : 1.3em ;
159
163
vertical-align : middle ;
160
164
color : white ;
161
165
margin-left : var (--spacing-medium );
162
166
}
163
167
164
- .inputfile + label {
168
+ .inputfile + .label__label {
165
169
cursor : pointer ; /* "hand" cursor */
166
170
}
167
171
168
- .inputfile :focus + label {
169
- outline : 2px solid orange ;
172
+ .inputfile :focus + .label ,
173
+ .inputfile :focus-visible + .label ,
174
+ .inputfile :focus + .label__label ,
175
+ .inputfile :focus-visible + .label__label {
176
+ outline : var (--border-width ) solid var (--color-secondary );
170
177
outline : -webkit-focus-ring-color auto 5px ;
171
178
}
172
179
}
@@ -198,7 +205,6 @@ input[type='file']::file-selector-button {
198
205
justify-content : space-around ;
199
206
border : 1px solid lightgray ;
200
207
border-radius : 4px ;
201
- max-width : var (--mobile-xs-width );
202
208
height : 80px ;
203
209
padding-top : var (--spacing-large );
204
210
margin-bottom : 20px ;
0 commit comments