mirror of
https://github.com/picocss/pico.git
synced 2025-04-27 11:36:14 -04:00
refactor: input file
This commit is contained in:
parent
d8909184a1
commit
0e951141cd
2 changed files with 20 additions and 58 deletions
|
@ -47,6 +47,7 @@
|
|||
input[type="submit"],
|
||||
input[type="reset"],
|
||||
input[type="button"],
|
||||
input[type="file"]::file-selector-button,
|
||||
[role="button"] {
|
||||
#{$✨}background-color: var(#{$✨}primary-background);
|
||||
#{$✨}border-color: var(#{$✨}primary-border);
|
||||
|
@ -88,7 +89,8 @@
|
|||
@if $enable-classes {
|
||||
// Secondary
|
||||
:is(button, input[type="submit"], input[type="button"], [role="button"]).secondary,
|
||||
input[type="reset"] {
|
||||
input[type="reset"],
|
||||
input[type="file"]::file-selector-button {
|
||||
#{$✨}background-color: var(#{$✨}secondary-background);
|
||||
#{$✨}border-color: var(#{$✨}secondary-border);
|
||||
#{$✨}color: var(#{$✨}secondary-inverse);
|
||||
|
@ -158,7 +160,8 @@
|
|||
}
|
||||
} @else {
|
||||
// Secondary button without .class
|
||||
input[type="reset"] {
|
||||
input[type="reset"],
|
||||
input[type="file"]::file-selector-button {
|
||||
#{$✨}background-color: var(#{$✨}secondary);
|
||||
#{$✨}border-color: var(#{$✨}secondary);
|
||||
#{$✨}color: var(#{$✨}secondary-inverse);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue