1
0
mirror of https://github.com/jdan/98.css.git synced 2026-05-05 06:01:22 +09:00

combine to a single button style

This commit is contained in:
Jordan Scales
2020-04-16 11:50:21 -04:00
parent 959771f66f
commit d4b7bd62a3
2 changed files with 24 additions and 7 deletions

View File

@@ -5,6 +5,26 @@
--window-frame: #0a0a0a;
}
button {
border: none;
background: var(--button-face);
padding: 12px;
box-shadow: -1px -1px 0 1px var(--button-highlight),
0 0 0 2px var(--window-frame), inset -2px -2px var(--button-shadow),
inset 2px 2px var(--button-face);
}
button:active {
box-shadow: -1px -1px 0 1px var(--window-frame),
0 0 0 2px var(--button-highlight), inset -2px -2px var(--button-face),
inset 2px 2px var(--button-shadow);
}
button:focus {
outline: 1px dotted #000000;
outline-offset: -2px;
}
.raised-outer {
box-shadow: -1px -1px 0 1px var(--button-highlight),
0 0 0 2px var(--window-frame);
@@ -20,13 +40,10 @@
}
.sunken-outer {
box-shadow: -1px -1px 0 1px var(--window-frame),
0 0 0 2px var(--button-highlight);
}
.sunken-inner {
box-shadow: inset -2px -2px var(--button-face),
inset 2px 2px var(--button-shadow);
box-shadow: ;
}
body {