Skip to content

Commit 16496ba

Browse files
authored
Update index.css
1 parent 4607e04 commit 16496ba

1 file changed

Lines changed: 12 additions & 36 deletions

File tree

index.css

Lines changed: 12 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ a:hover {
105105
}
106106

107107
.button,
108-
button {
108+
button,
109+
.file-btn {
109110
appearance: none;
110111
min-width: 70px;
111112
border: 0;
@@ -119,15 +120,17 @@ button {
119120
}
120121

121122
.button:hover,
122-
button:hover {
123+
button:hover,
124+
.file-btn:hover {
123125
background: var(--md-sys-color-primary-container);
124126
color: var(--md-sys-color-on-primary-container);
125127
box-shadow: var(--surface-shadow);
126128
transform: translateY(-1px);
127129
}
128130

129131
.button:active,
130-
button:active {
132+
button:active,
133+
.file-btn:active {
131134
transform: translateY(0);
132135
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
133136
}
@@ -137,11 +140,16 @@ button:focus-visible,
137140
input:focus-visible,
138141
select:focus-visible,
139142
textarea:focus-visible,
143+
.file-btn:focus-visible,
140144
a:focus-visible {
141145
outline: 3px solid rgba(27, 102, 27, 0.28);
142146
outline-offset: 2px;
143147
}
144-
148+
#form-image-file {
149+
display:none:
150+
}
151+
152+
}
145153
input,
146154
select,
147155
textarea {
@@ -208,38 +216,6 @@ input[type="radio"] {
208216
accent-color: var(--md-sys-color-primary);
209217
}
210218

211-
/* Hide native input completely */
212-
#form-image-file {
213-
display: none;
214-
}
215-
216-
/* Custom button (Material-like) */
217-
.file-btn {
218-
position: relative;
219-
border-radius: 999px;
220-
padding: 9px 16px;
221-
background: var(--md-sys-color-primary);
222-
color: var(--md-sys-color-on-primary);
223-
font-size: 13px;
224-
cursor: pointer;
225-
transition: background-color 0.2s ease, transform 0.15s ease;
226-
}
227-
228-
/* Icon using pseudo-element */
229-
.file-btn::before {
230-
content: "📁 ";
231-
}
232-
233-
/* Hover / active effects */
234-
.file-btn:hover {
235-
background: #144d14;
236-
transform: translateY(-1px);
237-
}
238-
239-
.file-btn:active {
240-
transform: translateY(0);
241-
}
242-
243219
.hide {
244220
display: none !important;
245221
}

0 commit comments

Comments
 (0)