Caret/css/tabs.less
2014-04-04 09:13:54 -07:00

112 lines
No EOL
2.5 KiB
Text

.tabs {
background: linear-gradient(to bottom, @faded, lighten(@faded, 10%));
padding: 2px 2px 0 0;
display: flex;
justify-content: flex-start;
//box-shadow: inset 4px 4px 16px rgba(0, 0, 0, .3);
.tab {
display: flex;
justify-content: space-between;
align-items: stretch;
max-width: 200px;
margin-right: 3px;
opacity: .5;
background: radial-gradient(ellipse 200px 25px at top center, lighten(@background, 15%), darken(@background, 10%));
border-radius: 2px 2px 0 0;
border-bottom: 4px solid darken(@background, 10%);
color: @foreground;
padding: 0;
flex: 1 1 auto;
position: relative;
box-shadow: 0px -4px 16px rgba(0, 0, 0, .3);
a {
text-decoration: none;
color: @foreground;
padding: 4px 0;
width: 100%;
}
transition: max-width .5s linear, -webkit-transform .2s ease, border-width .2s ease, opacity .2s ease;
transition: max-width .5s linear, transform .2s ease, border-width .2s ease, opacity .2s ease;
&.active {
padding-bottom: 0px;
border-bottom: 4px solid @accent;
color: @foreground;
opacity: 1;
z-index: 9;
.close {
color: @accent;
}
}
&:hover:not(.active) {
opacity: .8;
}
&.dragging {
width: 0;
padding: 0;
flex-grow: 0;
}
&.hovering {
border-color: @faded;
border-left-width: 25px;
border-left-style: solid;
}
&.enter {
//max-width: 0px;
-webkit-transform: translateY(24px);
transform: translateY(24px);
}
.label {
cursor: default;
padding: 7px 0 0 6px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.close {
font-size: 19px;
text-align: center;
vertical-align: middle;
width: 18px;
position: relative;
margin-left: 4px;
padding: 0 4px 0 0;
cursor: pointer;
align-self: center;
font-family: monospace;
&:hover {
color: @foreground;
}
}
&.newtab {
opacity: .25;
min-width: 30px;
max-width: 30px;
margin: 2px 0 4px 0;
border-radius: 2px;
display: flex;
align-items: center;
justify-content: center;
align-content: center;
.big-label {
font-size: 24px;
color: lighten(@foreground, 60%);
font-weight: bold;
text-align: center;
}
}
}
}