Move input styling into a global scoped file.
This commit is contained in:
parent
ece839e276
commit
2206a46453
2 changed files with 54 additions and 33 deletions
46
src/css/inputs.css
Normal file
46
src/css/inputs.css
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
button {
|
||||
background-color: var(--button-background);
|
||||
color: var(--button-text);
|
||||
font-family: var(--fonts);
|
||||
border-radius: 50px;
|
||||
padding: 10px 20px;
|
||||
border-style: none;
|
||||
font-size: larger;
|
||||
outline: none;
|
||||
}
|
||||
button:hover { cursor: pointer; }
|
||||
|
||||
|
||||
input[type=number] {
|
||||
background-color: var(--input-background);
|
||||
border-radius: var(--corner-rounding);
|
||||
font-family: var(--fonts);
|
||||
border-color: transparent;
|
||||
color: var(--input-text);
|
||||
border-style: solid;
|
||||
border-width: 2px;
|
||||
outline: none;
|
||||
padding: 15px;
|
||||
width: 100px;
|
||||
}
|
||||
input[type=number]:focus {
|
||||
border-color: var(--input-active-border);
|
||||
}
|
||||
|
||||
|
||||
select {
|
||||
background-color: var(--input-background);
|
||||
border-radius: var(--corner-rounding);
|
||||
border-color: transparent;
|
||||
font-family: var(--fonts);
|
||||
color: var(--input-text);
|
||||
border-style: solid;
|
||||
border-width: 2px;
|
||||
outline: none;
|
||||
padding: 15px;
|
||||
border: none;
|
||||
}
|
||||
select:hover { cursor: pointer; }
|
||||
select:active, select:focus {
|
||||
border-color: var(--input-active-border);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue