Skip to content

Commit c9c7bc5

Browse files
committed
zindex fix
1 parent 1d9c2a1 commit c9c7bc5

File tree

2 files changed

+12
-34
lines changed

2 files changed

+12
-34
lines changed

css/custom-hotbar.css

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*Global styles*/
22

33
#custom-hotbar {
4-
z-index: 69;
4+
z-index: 29;
55
position: fixed;
66
bottom: 63px;
77
left: 220px;
@@ -198,7 +198,7 @@ span.custom-macro-key {
198198

199199
/*
200200
nav#context-menu {
201-
z-index: 71;
201+
z-index: 31;
202202
}
203203
*/
204204

@@ -217,7 +217,6 @@ div#client-settings div.chb-user {
217217
padding-left: 6px;
218218
}
219219

220-
221220
/* fix boundary between two stylized settings divs */
222221
/* Extra specficity for first box to work properly with Tidy UI styles */
223222
div#client-settings div#chbSetDiv {
@@ -236,19 +235,15 @@ div#client-settings div#coreSetDiv {
236235
border-top: none;
237236
}
238237

239-
#client-settings div#chbDisableDiv > span
240-
,#client-settings div#coreDisableDiv > span {
241-
margin-left: 0;
242-
flex: none;
243-
}
244-
245-
div.chb-setting > button {
246-
flex: 1 1 100%;
247-
}
248-
249-
250-
div.chbDisable {
251-
padding-left: 45px;
238+
/* with apologies to sdenec, lifted from Tidy UI Settings module, which you should install... */
239+
#client-settings .chb-setting label,
240+
#client-settings .chb-setting > label {
241+
flex-grow: unset;
242+
flex-basis: unset;
243+
flex: 1 1 100%;
244+
line-height: 1.2;
245+
margin: 0 0 .25rem calc(13px + 1rem);
246+
order: -1;
252247
}
253248

254249
.macro .tooltip span {
@@ -292,21 +287,4 @@ div#custom-hotbar-settings-form h1 {
292287

293288
div#custom-hotbar-settings-form h2 {
294289
font-size:large;
295-
}
296-
297-
div#keyHintDiv {
298-
font-weight: bolder;
299-
}
300-
301-
div#keyHintDiv > p {
302-
font-weight:normal;
303-
}
304-
305-
div#keyHintDiv > div> input {
306-
display:none;
307-
}
308-
309-
div.chbSettings > div.colorsplash > input {
310-
background-color: white;
311-
border: 1px solid black;
312290
}

scripts/custom-hotbar-debug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const customHotbarDebug = true;
1+
const customHotbarDebug = false;
22

33
export function CHBDebug(message) {
44
if (customHotbarDebug) {

0 commit comments

Comments
 (0)