Skip to content
Source
Sign inSign up
samwillis/one-million-boxes
Open History to see the last commit

ZoomControls.css

55 lines1.1 KB

1.zoom-controls {
2 display: flex;
3}
4​
5.zoom-button {
6 min-width: 39px;
7 height: 39px;
8 display: flex;
9 align-items: center;
10 justify-content: center;
11 font-size: 1rem;
12 font-weight: 750;
13 background: var(--color-surface);
14 color: var(--color-text);
15 border: var(--hud-border-width) solid var(--hud-outline);
16 transition:
17 background-color var(--transition-fast),
18 box-shadow var(--transition-fast);
19 box-shadow: inset 0 -3px 0 rgb(19 20 21 / 7%);
21​
22/* Larger touch targets on mobile */
23@media (max-width: 768px) {
24 .zoom-button {
25 min-width: var(--touch-min);
26 height: var(--touch-min);
27 }
29​
30.zoom-button-left {
31 border-radius: var(--radius-sm) 0 0 var(--radius-sm);
32 border-right: none;
33 font-size: 1.25rem;
34 padding-bottom: 2px;
36​
37.zoom-button-right {
38 border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
39 font-size: 1.25rem;
40 padding-bottom: 2px;
42​
43.zoom-button:hover:not(:disabled) {
44 background: var(--color-surface-hover);
46​
47.zoom-button:active:not(:disabled) {
48 background: var(--color-surface-active);
49 box-shadow: inset 0 2px 0 rgb(19 20 21 / 10%);
51​
52.zoom-button:disabled {
53 opacity: 0.4;
54 cursor: not-allowed;