mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Tab buttons should use editor-button-toggle style
This commit is contained in:
parent
f7434b5ec8
commit
de35c7024a
@ -170,8 +170,8 @@ RED.tabs = (function() {
|
|||||||
ul.children().css({"transition": "width 100ms"});
|
ul.children().css({"transition": "width 100ms"});
|
||||||
link.parent().addClass("active");
|
link.parent().addClass("active");
|
||||||
var parentId = link.parent().attr('id');
|
var parentId = link.parent().attr('id');
|
||||||
wrapper.find(".red-ui-tab-link-button").removeClass("active");
|
wrapper.find(".red-ui-tab-link-button").removeClass("active selected");
|
||||||
$("#"+parentId+"-link-button").addClass("active");
|
$("#"+parentId+"-link-button").addClass("active selected");
|
||||||
if (options.scrollable) {
|
if (options.scrollable) {
|
||||||
var pos = link.parent().position().left;
|
var pos = link.parent().position().left;
|
||||||
if (pos-21 < 0) {
|
if (pos-21 < 0) {
|
||||||
|
@ -214,12 +214,11 @@
|
|||||||
border-bottom: 1px solid $primary-border-color;
|
border-bottom: 1px solid $primary-border-color;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
a {
|
a {
|
||||||
@include workspace-button;
|
@include workspace-button-toggle;
|
||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
width: 28px;
|
width: 28px;
|
||||||
margin: 4px 3px 3px;
|
margin: 4px 3px 3px;
|
||||||
border: 1px solid $primary-border-color;
|
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
&.red-ui-tab-link-button {
|
&.red-ui-tab-link-button {
|
||||||
&:not(.active) {
|
&:not(.active) {
|
||||||
|
Loading…
Reference in New Issue
Block a user