Skip to content

Commit

Permalink
style: Apply input padding and color tweaks
Browse files Browse the repository at this point in the history
This adds some padding to inputs, giving them
a bit of a sense of space.

* input background: light grey
* text input background: light purple

The only difference between light and dark themes
is that the border is removed in dark mode.
  • Loading branch information
414owen committed Jan 3, 2024
1 parent 9b8be6f commit 216ce65
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions datafiles/static/hackage.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,32 @@ h4 { font-size: 100%; /* 13px */ }
h5 { font-size: 100%; /* 13px */ }
h6 { font-size: 100%; /* 13px */ }

select, input, button, textarea {
select, input, button, textarea, input::file-selector-button {
font-size: 1rem;
margin: 0.5em;
padding: 0.1em;
padding: 0.5em 0.8em;
border: 1px solid #444;
border-radius: 3px;
background: #eee;
}

select:hover, input:hover, button:hover, textarea:hover, input::file-selector-button:hover {
background: #dcdcdc;
}

input:not([type]), input[type|=text], input[type=number] {
background: #cbe;
}

input[type=file] {
background: none;
border: 0;
}

@media (prefers-color-scheme: dark) {
select, input, button, textarea, input::file-selector-button {
border: 0;
}
}

table {
Expand Down

0 comments on commit 216ce65

Please sign in to comment.