mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-09-20 16:42:58 +00:00
cleanup extra css
Remove some unused css rules that weren't cut before, and a little bit of rearranging to group "dropdown" stuff together and "tools" together.
This commit is contained in:
@@ -16,12 +16,6 @@
|
|||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
|
|
||||||
.snippets {
|
|
||||||
display : flex;
|
|
||||||
justify-content : flex-start;
|
|
||||||
min-width : 499.35px; //must be controlled every time an item is added, must be hardcoded for the wrapping as it is applied
|
|
||||||
}
|
|
||||||
|
|
||||||
.editors {
|
.editors {
|
||||||
display : flex;
|
display : flex;
|
||||||
justify-content : flex-end;
|
justify-content : flex-end;
|
||||||
@@ -118,23 +112,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.snippetBarButton {
|
|
||||||
display : inline-block;
|
|
||||||
height : @menuHeight;
|
|
||||||
padding : 0px 5px;
|
|
||||||
font-size : 0.625em;
|
|
||||||
font-weight : 800;
|
|
||||||
line-height : @menuHeight;
|
|
||||||
text-transform : uppercase;
|
|
||||||
text-wrap : nowrap;
|
|
||||||
cursor : pointer;
|
|
||||||
&:hover, &.selected { background-color : #999999; }
|
|
||||||
i {
|
|
||||||
margin-right : 3px;
|
|
||||||
font-size : 1.4em;
|
|
||||||
vertical-align : middle;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.toggleMeta {
|
.toggleMeta {
|
||||||
position : absolute;
|
position : absolute;
|
||||||
top : 0px;
|
top : 0px;
|
||||||
@@ -143,15 +121,17 @@
|
|||||||
.tooltipLeft('Edit Brew Properties');
|
.tooltipLeft('Edit Brew Properties');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.snippets {
|
||||||
.menu-wrapper {
|
--activeTriggerColor: blue;
|
||||||
.menu-item:is(.snippets > .menu-wrapper > .menu-item):first-child {
|
--menuColor : red;
|
||||||
.caret {
|
display : flex;
|
||||||
display: none;
|
justify-content : flex-start;
|
||||||
}
|
min-width : 499.35px; //must be controlled every time an item is added, must be hardcoded for the wrapping as it is applied
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// removed caret for top level items, by request (makes buttons too wide).
|
||||||
|
.menu-wrapper .menu-item:is(.snippets > .menu-wrapper > .menu-item):first-child .caret { display: none; }
|
||||||
|
|
||||||
.menu-item {
|
.menu-item {
|
||||||
position : relative;
|
position : relative;
|
||||||
display : flex;
|
display : flex;
|
||||||
@@ -161,9 +141,8 @@
|
|||||||
padding : 5px;
|
padding : 5px;
|
||||||
cursor : pointer;
|
cursor : pointer;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
.animate(background-color);
|
|
||||||
&:is(.menu-list .menu-item) [class*="name"] {
|
&:is(.menu-list .menu-item) [class*="name"] {
|
||||||
padding-inline: 8px;
|
padding-inline: 8px; // additional space between icon and name (helpful in Fonts menu especially).
|
||||||
}
|
}
|
||||||
.menu-name {
|
.menu-name {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -228,13 +207,6 @@
|
|||||||
&:hover { background-color: unset; }
|
&:hover { background-color: unset; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.disabledSnippets {
|
|
||||||
color: grey;
|
|
||||||
cursor: not-allowed;
|
|
||||||
|
|
||||||
&:hover { background-color: #DDDDDD;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@container editor (width < 750px) {
|
@container editor (width < 750px) {
|
||||||
.snippetBar {
|
.snippetBar {
|
||||||
|
|||||||
Reference in New Issue
Block a user