1
0
mirror of https://github.com/Rnhmjoj/solarized-dark-ui synced 2025-01-10 09:24:21 +01:00
solarized-dark-ui/stylesheets/tabs.less

109 lines
2.0 KiB
Plaintext
Raw Normal View History

2013-09-12 01:29:14 +02:00
@import "ui-variables";
2013-11-06 00:25:27 +01:00
@tab-radius: 3px;
@modified-icon-width: 8px;
@tab-skew: 30deg;
2014-02-27 00:30:56 +01:00
@tab-top-padding: 0;
@tab-bottom-border-height: 8px;
2013-11-06 00:25:27 +01:00
@tab-border: 1px solid @tab-border-color;
@tab-bar-bottom-border-color: #111;
2013-09-12 01:29:14 +02:00
.tab-bar {
2014-02-27 00:30:56 +01:00
height: @tab-height + @tab-top-padding;
2013-11-06 20:19:30 +01:00
background: @tab-bar-background-color;
padding: 0 13px 0 10px;
2013-11-06 19:17:17 +01:00
box-sizing: border-box;
2013-09-12 01:29:14 +02:00
2013-11-06 00:25:27 +01:00
&:after {
content: "";
position: absolute;
bottom: 0;
height: @tab-bottom-border-height;
left: 0px;
width: 100%;
}
2013-09-12 01:29:14 +02:00
2013-11-06 00:25:27 +01:00
.tab {
position: relative;
top: @tab-top-padding;
height: @tab-height;
line-height: @tab-height;
color: @text-color;
padding-left: 0;
margin-left: 15px;
transition: color .1s ease-in;
2013-09-12 01:29:14 +02:00
2013-11-06 00:25:27 +01:00
&:before {
content: '';
position: absolute;
2013-11-06 19:17:17 +01:00
top: 0;
2013-11-06 00:25:27 +01:00
left: -18px;
height: @tab-height;
2013-11-06 19:17:17 +01:00
width: 40px;
2013-11-06 00:25:27 +01:00
}
.close-icon {
display: none;
transition: color 0.1s;
&:hover {
color: @text-color-error !important;
}
2013-11-06 00:25:27 +01:00
}
2013-11-06 00:25:27 +01:00
&.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;
2013-11-06 00:25:27 +01:00
}
2013-09-12 01:29:14 +02:00
2013-11-06 20:06:44 +01:00
&:first-child {
margin-left: 20px;
}
&:hover {
.close-icon {
display: block;
}
}
2013-11-06 00:25:27 +01:00
}
.tab.active {
z-index: 10;
2013-11-06 19:35:29 +01:00
line-height: @tab-height - 3px;
2013-11-06 00:25:27 +01:00
color: @text-color-highlight;
.title{
position: relative;
top: 1px;
}
.close-icon {
line-height: @tab-height - 1px;
display: block;
2013-11-06 00:25:27 +01:00
}
&, &:before {
2014-02-27 00:30:56 +01:00
background-color: @tab-background-color-active;
2014-02-27 03:14:35 +01:00
height: @tab-height;
2013-11-06 19:35:29 +01:00
}
2013-11-06 00:25:27 +01:00
}
2013-09-12 01:29:14 +02:00
2013-11-06 00:25:27 +01:00
.tab:hover {
color: @text-color-highlight;
2013-09-12 01:29:14 +02:00
}
2013-11-06 00:25:27 +01:00
.tab.active:hover .close-icon {
color: @text-color-highlight;
2013-09-12 01:29:14 +02:00
}
2013-11-06 00:25:27 +01:00
.placeholder {
height: @tab-height + @tab-top-padding + @tab-bottom-border-height;
&:after {
top: @tab-height + @tab-top-padding + @tab-bottom-border-height;
}
2013-09-12 01:29:14 +02:00
}
}