mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Invert toggle button colours so state is more obvious
This commit is contained in:
parent
2ba146b9ff
commit
f1377fa217
@ -20,8 +20,8 @@ RED.sidebar.config = (function() {
|
|||||||
content.className = "sidebar-node-config"
|
content.className = "sidebar-node-config"
|
||||||
|
|
||||||
$('<div class="button-group sidebar-header">'+
|
$('<div class="button-group sidebar-header">'+
|
||||||
'<a class="sidebar-header-button selected" id="workspace-config-node-filter-all" href="#"><span data-i18n="sidebar.config.filterAll"></span></a>'+
|
'<a class="sidebar-header-button-toggle selected" id="workspace-config-node-filter-all" href="#"><span data-i18n="sidebar.config.filterAll"></span></a>'+
|
||||||
'<a class="sidebar-header-button" id="workspace-config-node-filter-unused" href="#"><span data-i18n="sidebar.config.filterUnused"></span></a> '+
|
'<a class="sidebar-header-button-toggle" id="workspace-config-node-filter-unused" href="#"><span data-i18n="sidebar.config.filterUnused"></span></a> '+
|
||||||
'</div>'
|
'</div>'
|
||||||
).appendTo(content);
|
).appendTo(content);
|
||||||
|
|
||||||
|
@ -30,9 +30,9 @@
|
|||||||
|
|
||||||
@mixin workspace-button {
|
@mixin workspace-button {
|
||||||
@include disable-selection;
|
@include disable-selection;
|
||||||
color: $workspace-button-color;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
color: $workspace-button-color;
|
||||||
background: $workspace-button-background;
|
background: $workspace-button-background;
|
||||||
border: 1px solid $secondary-border-color;
|
border: 1px solid $secondary-border-color;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -67,6 +67,17 @@
|
|||||||
border-left: none;
|
border-left: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@mixin workspace-button-toggle {
|
||||||
|
@include workspace-button;
|
||||||
|
color: $workspace-button-color-selected;
|
||||||
|
background: $workspace-button-background-active;
|
||||||
|
|
||||||
|
&.selected:not(.disabled) {
|
||||||
|
color: $workspace-button-color;
|
||||||
|
background: $workspace-button-background;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@mixin component-footer {
|
@mixin component-footer {
|
||||||
border-top: 1px solid $primary-border-color;
|
border-top: 1px solid $primary-border-color;
|
||||||
|
@ -83,6 +83,12 @@
|
|||||||
line-height: 13px;
|
line-height: 13px;
|
||||||
padding: 5px 8px;
|
padding: 5px 8px;
|
||||||
}
|
}
|
||||||
|
.sidebar-header-button-toggle {
|
||||||
|
@include workspace-button-toggle;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 13px;
|
||||||
|
padding: 5px 8px;
|
||||||
|
}
|
||||||
.sidebar-header-button:not(:first-child) {
|
.sidebar-header-button:not(:first-child) {
|
||||||
border-left: none;
|
border-left: none;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user