forked from fixin.me/fixin.me
Fix input/button focus/hover styling
This commit is contained in:
parent
bad64c5dbf
commit
16c24f65ca
@ -16,6 +16,13 @@
|
|||||||
*= require_self
|
*= require_self
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* Colors:
|
||||||
|
* dark blue: #006c9b
|
||||||
|
* light blue: #009ade
|
||||||
|
* dark red: #b21237
|
||||||
|
* light red: #ff1f5b
|
||||||
|
* */
|
||||||
|
|
||||||
*,
|
*,
|
||||||
::before,
|
::before,
|
||||||
::after {
|
::after {
|
||||||
@ -88,20 +95,44 @@ button > svg {
|
|||||||
padding-right: 0.4em;
|
padding-right: 0.4em;
|
||||||
width: 1.8em;
|
width: 1.8em;
|
||||||
}
|
}
|
||||||
|
/* TODO: <a> hover/focus here and remove from table.items */
|
||||||
|
/* This is for normal links only. Button-like link styles are under .button
|
||||||
|
* selector */
|
||||||
|
.button:focus-visible,
|
||||||
|
button:focus-visible,
|
||||||
|
input[type=submit]:focus-visible {
|
||||||
|
background-color: #f3f3f3;
|
||||||
|
}
|
||||||
|
.button:hover,
|
||||||
|
button:hover,
|
||||||
|
input[type=submit]:hover {
|
||||||
|
background-color: #009ade;
|
||||||
|
border-color: #009ade;
|
||||||
|
color: white;
|
||||||
|
fill: white;
|
||||||
|
}
|
||||||
|
button.dangerous:hover {
|
||||||
|
background-color: #ff1f5b;
|
||||||
|
border-color: #ff1f5b;
|
||||||
|
}
|
||||||
|
|
||||||
input[type=checkbox] {
|
input[type=checkbox] {
|
||||||
accent-color: #009ade;
|
accent-color: #009ade;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
|
-webkit-appearance: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 1.1rem;
|
height: 1.1rem;
|
||||||
margin: 0rem;
|
margin: 0;
|
||||||
width: 1.1rem;
|
width: 1.1rem;
|
||||||
-webkit-appearance: none;
|
}
|
||||||
|
input[type=checkbox]:checked {
|
||||||
|
appearance: checkbox;
|
||||||
|
-webkit-appearance: checkbox;
|
||||||
}
|
}
|
||||||
input:hover,
|
input:hover,
|
||||||
select:hover {
|
select:hover {
|
||||||
border-color: #009ade;
|
border-color: #009ade;
|
||||||
outline: #009ade solid 1px;
|
outline: solid 1px #009ade;
|
||||||
}
|
}
|
||||||
select:hover {
|
select:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@ -112,19 +143,11 @@ select:focus-visible {
|
|||||||
accent-color: #006c9b;
|
accent-color: #006c9b;
|
||||||
background-color: #f3f3f3;
|
background-color: #f3f3f3;
|
||||||
}
|
}
|
||||||
input[type=checkbox]:checked {
|
|
||||||
appearance: checkbox;
|
|
||||||
-webkit-appearance: checkbox;
|
|
||||||
}
|
|
||||||
input[type=text]:read-only {
|
input[type=text]:read-only {
|
||||||
border: none;
|
border: none;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
input:read-only:focus-visible,
|
|
||||||
input:read-only:hover {
|
|
||||||
background: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
@ -172,38 +195,6 @@ input:read-only:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
a.button:hover,
|
|
||||||
a.button.active:hover,
|
|
||||||
button:hover,
|
|
||||||
input[type=submit]:hover {
|
|
||||||
background-color: #009ade;
|
|
||||||
border-color: #009ade;
|
|
||||||
color: white;
|
|
||||||
fill: white;
|
|
||||||
}
|
|
||||||
a.button:focus-visible,
|
|
||||||
a.button.active:focus-visible,
|
|
||||||
button:focus-visible,
|
|
||||||
input[type=submit]:focus-visible {
|
|
||||||
background-color: #f3f3f3;
|
|
||||||
}
|
|
||||||
a.button:hover:focus-visible,
|
|
||||||
a.button.active:hover:focus-visible,
|
|
||||||
button:hover:focus-visible,
|
|
||||||
input[type=submit]:hover:focus-visible {
|
|
||||||
background-color: #006c9b;
|
|
||||||
border-color: #006c9b;
|
|
||||||
}
|
|
||||||
button.dangerous:hover {
|
|
||||||
background-color: #ff1f5b;
|
|
||||||
border-color: #ff1f5b;
|
|
||||||
}
|
|
||||||
button.dangerous:hover:focus-visible {
|
|
||||||
background-color: #b21237;
|
|
||||||
border-color: #b21237;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.flashes {
|
.flashes {
|
||||||
height: 2.1rem;
|
height: 2.1rem;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user