By the power of box-flex, tabs

This commit is contained in:
Jon Rohan
2013-01-25 16:25:33 -08:00
parent 35b7ad5ee3
commit 9d6853d29e
3 changed files with 13 additions and 11 deletions

View File

@@ -1,14 +1,20 @@
.tabs {
-webkit-user-select: none;
display: -webkit-box;
-webkit-box-align: center;
}
.tab {
display: table-cell;
-webkit-box-flex: 2;
position: relative;
width:175px;
width: 175px;
max-width: 175px;
min-width: 40px;
box-sizing: border-box;
height: 24px;
}
.tab.active {
-webkit-box-flex: 1;
}
.tab.file-modified .close-icon {
@@ -23,9 +29,5 @@
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
position: absolute;
left: 9px;
top:4px;
bottom:4px;
right: 21px;
padding: 3px 5px;
}

View File

@@ -61,7 +61,7 @@
.tab.active:hover {
border-top: 1px solid #4a4a4a;
box-shadow: inset -1px 0 0 #595959, inset 1px 0 0 #595959;
border-bottom: 0 none;
border-bottom-color: #424242;
background-image: -webkit-linear-gradient(#555555, #424242);
}

View File

@@ -54,7 +54,7 @@
.tab.active,
.tab.active:hover {
border-bottom: 0 none;
border-bottom-color: #e5e5e5;
box-shadow: inset -1px 0 0 #e0e0e0, inset 1px 0 0 #e0e0e0;
background-image: -webkit-linear-gradient(#fefefe, #e7e6e7);
}
@@ -62,7 +62,7 @@
.tab.active:before,
.tab.active:after {
position: absolute;
bottom: 0;
bottom: -1px;
width: 4px;
height: 4px;
content: " ";