Caret/css/tabs.less

60 lines
1.2 KiB
Text
Raw Normal View History

.tabs {
2013-09-13 22:57:57 +00:00
background: @faded;
2013-09-15 20:00:16 +00:00
padding: 2px 2px 0px 0px;
display: flex;
justify-content: flex-start;
2013-09-15 20:00:16 +00:00
box-shadow: inset 4px 4px 16px rgba(0, 0, 0, .3);
span {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 300px;
padding: 0px 4px;
margin-right: 3px;
2013-09-15 20:00:16 +00:00
opacity: .8;
2013-09-13 22:57:57 +00:00
background: @background;
2013-09-15 20:00:16 +00:00
border-radius: 2px 2px 0 0;
color: @foreground;
padding-bottom: 4px;
flex: 0 1 auto;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
position: relative;
2013-09-15 20:00:16 +00:00
box-shadow: inset 0px -4px 8px rgba(128, 128, 128, .3);
transition: width .5s, border-width .5s;
&.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;
box-shadow: none;
}
&.dragging {
width: 0;
padding: 0;
}
&.hovering {
border-color: @faded;
border-left-width: 50px;
border-left-style: solid;
}
.close {
font-size: 18px;
text-align: center;
color: @accent;
position: relative;
margin-left: 4px;
&:hover {
2013-09-13 22:57:57 +00:00
color: @foreground;
}
}
}
}