Caret/css/tabs.less

110 lines
2.4 KiB
Text
Raw Normal View History

.tabs {
2014-02-22 06:07:27 +00:00
background: linear-gradient(to bottom, @faded, lighten(@faded, 10%));
2013-09-15 20:00:16 +00:00
padding: 2px 2px 0px 0px;
display: flex;
justify-content: flex-start;
2014-02-22 06:07:27 +00:00
//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;
2014-02-26 18:18:39 +00:00
opacity: .5;
background: radial-gradient(ellipse 200px 25px at top center, lighten(@background, 15%), darken(@background, 10%));
2013-09-15 20:00:16 +00:00
border-radius: 2px 2px 0 0;
color: @foreground;
padding: 0;
flex: 1 1 auto;
position: relative;
2014-02-26 18:10:23 +00:00
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;
2013-09-13 22:57:57 +00:00
color: @foreground;
2013-09-15 20:00:16 +00:00
opacity: 1;
2014-02-26 18:10:23 +00:00
z-index: 9;
2014-02-22 05:13:20 +00:00
.close {
color: @accent;
}
}
2014-02-22 06:07:27 +00:00
&: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: 18px;
text-align: center;
2014-02-22 05:13:20 +00:00
vertical-align: middle;
width: 18px;
position: relative;
margin-left: 4px;
padding: 0 4px 0 0;
cursor: pointer;
align-self: center;
&:hover {
2013-09-13 22:57:57 +00:00
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;
}
}
}
}