Add hotbar settings (reposition, button size/gap)
This commit is contained in:
parent
4dc7b8541f
commit
27c5fccba0
9 changed files with 177 additions and 8 deletions
10
styles/hotbarButtonGap.css
Normal file
10
styles/hotbarButtonGap.css
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
.oft-hotbarButtonGap #hotbar {
|
||||
&.sm #action-bar {
|
||||
width: calc((var(--hotbar-size) * 5) + (var(--hotbar-button-gap) * 4));
|
||||
}
|
||||
|
||||
#action-bar {
|
||||
row-gap: min(var(--hotbar-button-gap, 8px), 8px);
|
||||
column-gap: var(--hotbar-button-gap, 8px);
|
||||
}
|
||||
}
|
||||
7
styles/hotbarButtonSize.css
Normal file
7
styles/hotbarButtonSize.css
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/*
|
||||
Making it so that the hotbar uses the style attribute from
|
||||
"document.body" instead of the one the application assigns
|
||||
*/
|
||||
.oft-hotbarButtonSize #hotbar {
|
||||
--hotbar-size: unset;
|
||||
}
|
||||
|
|
@ -1,4 +1,7 @@
|
|||
@import url("./chatSidebarBackground.css");
|
||||
@import url("./hotbarButtonGap.css");
|
||||
@import url("./hotbarButtonSize.css");
|
||||
@import url("./repositionHotbar.css");
|
||||
|
||||
/* Make the chat sidebar the same width as all the other tabs */
|
||||
.chat-sidebar:not(.sidebar-popout) { width: unset; }
|
||||
|
|
|
|||
14
styles/repositionHotbar.css
Normal file
14
styles/repositionHotbar.css
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#oft-repositionHotbar-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 12px;
|
||||
align-items: end;
|
||||
|
||||
#hotbar {
|
||||
margin-bottom: 0;
|
||||
|
||||
&.min {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue