Skip to content

Commit 8b4ed62

Browse files
Refactor heatmap UI: remove unused finger selection styles and adjust select element widths
1 parent c3c6716 commit 8b4ed62

2 files changed

Lines changed: 2 additions & 56 deletions

File tree

_includes/heatmap.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% assign e = site.data[page.lang]['heatmap-ui'] %}
22

33
<div id="interface">
4-
<div class="select active" role="select" style="width: 14em">
4+
<div class="select active" role="select" style="width: 13em">
55
<input class="select-checkbox" id="hand-select-checkbox" type="checkbox">
66
<label for="hand-select-checkbox" style="display: flex; justify-content: space-between">
77
<span id="hand-selected">{{ e.total }}</span>
@@ -14,7 +14,7 @@
1414
<span class="select-option">{{ e.hf_format | replace: '%h%', e.right | replace: '%f%', e.hand }}</span>
1515
</div>
1616
</div>
17-
<div class="select" id="finger-select" role="select" style="width: 8em">
17+
<div class="select" id="finger-select" role="select" style="width: 7em">
1818
<input class="select-checkbox" id="finger-select-checkbox" type="checkbox">
1919
<label for="finger-select-checkbox" style="display: flex; justify-content: space-between">
2020
<span id="finger-selected">{{ e.all_button }}</span>

assets/css/heatmap.css

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -43,60 +43,6 @@
4343
cursor: grabbing;
4444
}
4545

46-
.finger-select {
47-
font: inherit;
48-
font-size: 75%;
49-
50-
top: 9px;
51-
right: 15px;
52-
background-color: #fff;
53-
border: 2px solid #e8e8e8;
54-
border-radius: 5px;
55-
56-
opacity: 50%;
57-
pointer-events: none;
58-
}
59-
60-
.finger-select.active {
61-
opacity: 100%;
62-
pointer-events: auto;
63-
}
64-
65-
.finger-radio {
66-
padding: 5px;
67-
font-size: 75%;
68-
69-
background-color: #fff;
70-
border: 2px solid #e8e8e8;
71-
border-radius: 5px;
72-
73-
opacity: 50%;
74-
pointer-events: none;
75-
}
76-
77-
.finger-radio.active {
78-
opacity: 100%;
79-
pointer-events: auto;
80-
}
81-
82-
.row {
83-
flex-basis: 100%;
84-
display: flex;
85-
justify-content: space-around;
86-
align-items: center;
87-
}
88-
89-
.row button {
90-
font: inherit;
91-
font-size: 80%;
92-
background: #fff;
93-
border: 1px solid #c8c8c8;
94-
95-
height: 26px;
96-
border-radius: 13px;
97-
pointer-events: auto;
98-
}
99-
10046
#interface {
10147
position: absolute;
10248
left: 50%;

0 commit comments

Comments
 (0)