@import "ui-variables"; @tab-radius: 3px; @modified-icon-width: 8px; @tab-skew: 30deg; @tab-top-padding: 0; @tab-bottom-border-height: 8px; @tab-border: 1px solid @tab-border-color; @tab-bar-bottom-border-color: #111; .tab-bar { height: @tab-height + @tab-top-padding; background: @tab-bar-background-color; box-sizing: border-box; &:after { content: ""; position: absolute; bottom: 0; height: @tab-bottom-border-height; left: 0px; width: 100%; } .tab { position: relative; top: @tab-top-padding; height: @tab-height; line-height: @tab-height; color: @text-color; border: 1px solid @tab-border-color; border-left: 0; padding-left: 0; margin-left: 15px; margin-right: 2px; transition: color .1s ease-in; &:before { content: ''; position: absolute; top: -1px; left: -18px; border: 1px solid @tab-border-color; border-right: 0; height: @tab-height; width: 40px; } .close-icon { display: none; transition: color 0.1s; &:hover { color: @text-color-error !important; } } &.modified:not(:hover) .close-icon { display: block; top: @tab-height/2 - @modified-icon-width/2 + 1px; right: 14px; width: @modified-icon-width; height: @modified-icon-width; border-color: @text-color-info; } &:first-child { margin-left: 17px; } &:hover { .close-icon { display: block; } } } .tab.active { z-index: 10; line-height: @tab-height - 3px; border: 1px solid @tab-border-color-active; color: @text-color-highlight; .title{ position: relative; top: 1px; } .close-icon { line-height: @tab-height - 1px; display: block; } &, &:before { background-color: @tab-background-color-active; border: 1px solid @tab-border-color-active; height: @tab-height; } &:before { border-right: 0; } } .tab:hover { color: @text-color-highlight; } .tab.active:hover .close-icon { color: @text-color-highlight; } .placeholder { height: @tab-height + @tab-top-padding + @tab-bottom-border-height; &:after { top: @tab-height + @tab-top-padding + @tab-bottom-border-height; } } }