fixed buttons on ios
This commit is contained in:
1 parent
619be36f33
commit
35e9f6c632
2 files changed
+22
-9
No files matched your search
@@ -34,9 +34,13 @@
|
|||||||
<section class="panel" id="games-panel" hidden>
|
<section class="panel" id="games-panel" hidden>
|
||||||
<div class="games-toolbar">
|
<div class="games-toolbar">
|
||||||
<div class="month-nav">
|
<div class="month-nav">
|
||||||
<button id="older-month-btn" class="month-step" title="Older month" disabled>‹</button>
|
<button id="older-month-btn" class="month-step" title="Older month" aria-label="Older month" disabled>
|
||||||
|
<svg viewBox="0 0 8 12" aria-hidden="true"><path d="M6.5 1 L1.5 6 L6.5 11"/></svg>
|
||||||
|
</button>
|
||||||
<select id="month-select" disabled></select>
|
<select id="month-select" disabled></select>
|
||||||
<button id="newer-month-btn" class="month-step" title="Newer month" disabled>›</button>
|
<button id="newer-month-btn" class="month-step" title="Newer month" aria-label="Newer month" disabled>
|
||||||
|
<svg viewBox="0 0 8 12" aria-hidden="true"><path d="M1.5 1 L6.5 6 L1.5 11"/></svg>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<table id="games-table">
|
<table id="games-table">
|
||||||
|
|||||||
+16
-7
@@ -134,14 +134,23 @@ input { flex: 1; min-width: 200px; }
|
|||||||
margin-bottom: 0.75rem;
|
margin-bottom: 0.75rem;
|
||||||
}
|
}
|
||||||
.month-nav { display: flex; gap: 0.5rem; align-items: center; }
|
.month-nav { display: flex; gap: 0.5rem; align-items: center; }
|
||||||
|
.month-nav select { height: 2.3rem; padding-top: 0; padding-bottom: 0; }
|
||||||
|
/* SVG chevrons, zero padding: sidesteps Safari's unfixable button-text centering. */
|
||||||
.month-step {
|
.month-step {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
min-width: 2.4rem;
|
width: 2.5rem;
|
||||||
padding: 0.15rem 0.6rem 0.35rem;
|
height: 2.3rem;
|
||||||
font-size: 1.35rem;
|
padding: 0;
|
||||||
line-height: 1;
|
}
|
||||||
|
.month-step svg { display: block; width: 9px; height: 14px; }
|
||||||
|
.month-step svg path {
|
||||||
|
fill: none;
|
||||||
|
stroke: currentColor;
|
||||||
|
stroke-width: 2;
|
||||||
|
stroke-linecap: round;
|
||||||
|
stroke-linejoin: round;
|
||||||
}
|
}
|
||||||
|
|
||||||
.res-win { color: var(--best); font-weight: 700; }
|
.res-win { color: var(--best); font-weight: 700; }
|
||||||
@@ -375,9 +384,9 @@ tbody tr.analyzing { background: var(--paper-shade); font-style: italic; cursor:
|
|||||||
#games-table th:nth-child(5), #games-table td:nth-child(5) { display: none; }
|
#games-table th:nth-child(5), #games-table td:nth-child(5) { display: none; }
|
||||||
#games-table td:nth-child(2) { overflow-wrap: anywhere; }
|
#games-table td:nth-child(2) { overflow-wrap: anywhere; }
|
||||||
.games-toolbar { justify-content: center; }
|
.games-toolbar { justify-content: center; }
|
||||||
.month-nav { width: 100%; }
|
.month-nav select { max-width: 60vw; }
|
||||||
.month-nav select { flex: 1; min-width: 0; }
|
.month-step { width: 2.6rem; height: 2.3rem; }
|
||||||
.month-step { font-size: 1.65rem; padding: 0.25rem 1rem 0.5rem; }
|
.month-step svg { width: 10px; height: 15px; }
|
||||||
|
|
||||||
.nav-row { width: 100%; max-width: 90vw; justify-content: space-between; gap: 0.5rem; }
|
.nav-row { width: 100%; max-width: 90vw; justify-content: space-between; gap: 0.5rem; }
|
||||||
#ply-label { font-size: 0.8rem; }
|
#ply-label { font-size: 0.8rem; }
|
||||||
|
|||||||
Reference in new issue
Block a user