31
31
}
32
32
}
33
33
34
- // styled file -input site wide
34
+ /// File -input site wide
35
35
input [type = ' file' ] {
36
36
background-color : var (--color-white );
37
37
color : var (--color-primary-lighter );
@@ -46,7 +46,7 @@ input[type='file'] {
46
46
cursor : pointer ;
47
47
}
48
48
49
- // styled file -input clientbutton site wide
49
+ /// File -input button site wide
50
50
input [type = ' file' ]::file-selector-button {
51
51
color : var (--color-white );
52
52
background-color : var (--color-primary );
@@ -72,45 +72,13 @@ input[type='file']::file-selector-button {
72
72
}
73
73
74
74
.form__open-upload {
75
- // .upload-interface {
76
- // display: block;
77
- // width: 0;
78
- // height: 0;
79
- // opacity: 0;
80
- // padding: 0;
81
- // margin: 0;
82
- // }
83
-
84
75
.file-type__select {
85
76
max-width : var (--mobile-xs-width );
86
77
}
87
78
.form__control > .label * [class *= ' icon' ] {
88
79
top : 69% ;
89
80
}
90
81
91
- .upload__button * [class *= ' icon' ] {
92
- margin-right : var (--spacing-medium );
93
- }
94
- .upload__button ,
95
- .upload-button--disabled {
96
- max-width : var (--mobile-xs-width );
97
- display : flex ;
98
- margin-top : var (--spacing-medium );
99
- }
100
-
101
- & .upload--open {
102
- .upload-interface {
103
- display : block ;
104
- width : 100% ;
105
- height : initial ;
106
- opacity : 1 ;
107
- }
108
- .upload__button ,
109
- .upload-button--disabled {
110
- // display: none;
111
- }
112
- }
113
-
114
82
.input-file {
115
83
position : relative ;
116
84
max-width : var (--mobile-xs-width );
@@ -122,7 +90,7 @@ input[type='file']::file-selector-button {
122
90
color : orange ;
123
91
}
124
92
125
- // styled hidden file-input for cases
93
+ /// Hidden file-input for cases
126
94
.inputfile {
127
95
display : inline-block ;
128
96
margin-top : var (--spacing-large );
@@ -132,6 +100,7 @@ input[type='file']::file-selector-button {
132
100
overflow : hidden ;
133
101
z-index : 200 ;
134
102
}
103
+
135
104
.inputfile + label {
136
105
display : inline-block ;
137
106
position : absolute ;
@@ -147,6 +116,7 @@ input[type='file']::file-selector-button {
147
116
width : 200px ;
148
117
z-index : -1 ;
149
118
}
119
+
150
120
.inputfile :focus + label ,
151
121
.inputfile.has-focus + label ,
152
122
.inputfile :hover + label ,
@@ -155,16 +125,19 @@ input[type='file']::file-selector-button {
155
125
top : -5px ;
156
126
transition : all 0.3s , background-color 0.3s ;
157
127
}
128
+
158
129
.inputfile + label * [class *= ' icons' ] {
159
130
width : 1.3em ;
160
131
height : 1em ;
161
132
vertical-align : middle ;
162
133
color : white ;
163
134
margin-top : -0.15em ;
164
135
}
136
+
165
137
.inputfile + label {
166
138
cursor : pointer ; /* "hand" cursor */
167
139
}
140
+
168
141
.inputfile :focus + label {
169
142
outline : 2px solid orange ;
170
143
outline : -webkit-focus-ring-color auto 5px ;
0 commit comments