1
0
mirror of https://github.com/Rnhmjoj/solarized-dark-ui synced 2025-01-25 11:44:19 +01:00

Updates tab behavior (hidden close icon unless tab is active)

This commit is contained in:
Rob Cameron 2014-02-26 18:32:01 -08:00
parent 7b2534b96f
commit cc60bd025f

View File

@ -42,19 +42,31 @@
}
.close-icon {
z-index: 3;
line-height: @tab-height;
display: none;
&:hover {
color: @text-color-error !important;
}
}
&.modified:not(:hover) .close-icon {
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: 20px;
}
&:hover {
.close-icon {
display: block;
}
}
}
.tab.active {
@ -69,6 +81,7 @@
.close-icon {
line-height: @tab-height - 1px;
display: block;
}
&, &:before {