You've already forked 98.css
mirror of
https://github.com/jdan/98.css.git
synced 2026-05-05 06:01:22 +09:00
Prevent layout issues for active button (#150)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
:root {
|
||||
/* Color */
|
||||
--text-color: #222222;
|
||||
--surface: #c0c0c0;
|
||||
--button-highlight: #ffffff;
|
||||
--button-face: #dfdfdf;
|
||||
@@ -89,7 +90,7 @@
|
||||
body {
|
||||
font-family: Arial;
|
||||
font-size: 12px;
|
||||
color: #222222;
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
button,
|
||||
@@ -132,6 +133,8 @@ input[type="submit"],
|
||||
input[type="reset"] {
|
||||
box-sizing: border-box;
|
||||
border: none;
|
||||
color: transparent;
|
||||
text-shadow: 0 0 var(--text-color);
|
||||
background: var(--surface);
|
||||
box-shadow: var(--border-raised-outer), var(--border-raised-inner);
|
||||
border-radius: 0;
|
||||
@@ -152,7 +155,7 @@ button:not(:disabled):active,
|
||||
input[type="submit"]:not(:disabled):active,
|
||||
input[type="reset"]:not(:disabled):active {
|
||||
box-shadow: var(--border-sunken-outer), var(--border-sunken-inner);
|
||||
padding: 2px 11px 0 13px;
|
||||
text-shadow: 1px 1px var(--text-color);
|
||||
}
|
||||
|
||||
@media (not(hover)) {
|
||||
|
||||
Reference in New Issue
Block a user