mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
By the power of box-flex, tabs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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: " ";
|
||||
|
||||
Reference in New Issue
Block a user