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

113 lines
2.6 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;
@tab-top-padding: 5px;
@tab-bottom-border-height: 5px;
@tab-border: 1px solid @tab-border-color;
2013-09-12 01:29:14 +02:00
.tab-bar {
2013-11-06 00:25:27 +01:00
height: @tab-height + @tab-top-padding + 5px;
background-image: -webkit-linear-gradient(top, @tab-bar-background-color, lighten(@tab-bar-background-color, 9%));
box-shadow: inset 0 -8px 8px -4px rgba(0,0,0, .15);
padding: 0 10px;
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%;
background-color: @tab-background-color-active;
border-bottom: 1px solid @tab-bar-border-color;
border-top: 1px solid @tab-border-color;
}
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;
border-top-right-radius: @tab-radius;
border-right: @tab-border;
box-shadow: inset -1px -1px 1px rgba(0,0,0, .05);
-webkit-transform: skewX(@tab-skew);
transition: color .1s ease-in;
2013-09-12 01:29:14 +02:00
2013-11-06 00:25:27 +01:00
&, &:before {
background-image: -webkit-linear-gradient(top, @tab-background-color, darken(@tab-background-color, 6%));
border-top: @tab-border;
}
2013-09-12 01:29:14 +02:00
2013-11-06 00:25:27 +01:00
&:before {
content: '';
position: absolute;
2013-11-06 00:28:52 +01:00
top: 0px;
2013-11-06 00:25:27 +01:00
left: -18px;
height: @tab-height;
width: 34px;
border-top-left-radius: @tab-radius;
border-left: @tab-border;
box-shadow: inset 1px -1px 1px rgba(0,0,0, .05);
-webkit-transform: skewX(133deg);
2013-11-06 00:28:52 +01:00
border-top: none;
2013-11-06 00:25:27 +01:00
}
.close-icon {
z-index: 3;
line-height: @tab-height;
-webkit-transform: skewX(-@tab-skew);
}
&.modified:not(:hover) .close-icon {
top: @tab-height/2 - @modified-icon-width/2 + 1px;
right: 14px;
width: @modified-icon-width;
height: @modified-icon-width;
}
2013-09-12 01:29:14 +02:00
2013-11-06 00:25:27 +01:00
.title{
-webkit-transform: skewX(-@tab-skew);
}
}
.tab.active {
z-index: 10;
line-height: @tab-height - 2px;
color: @text-color-highlight;
.title{
position: relative;
top: 1px;
}
.close-icon {
line-height: @tab-height - 1px;
}
&, &:before {
background: @tab-background-color-active;
height: @tab-height + 1px;
box-shadow: none;
}
}
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
}
}