pulsar/static/tabs.css

110 lines
1.7 KiB
CSS
Raw Normal View History

2013-02-04 20:52:39 +04:00
.tabs {
font: caption;
display: -webkit-flex;
-webkit-box-align: center;
2013-02-04 20:52:39 +04:00
}
.tab {
2013-02-08 22:04:54 +04:00
-webkit-user-select: none;
-webkit-user-drag: element;
2013-02-04 20:52:39 +04:00
cursor: default;
-webkit-flex: 1;
width: 175px;
max-width: 175px;
min-width: 40px;
box-sizing: border-box;
2013-02-06 08:33:16 +04:00
text-shadow: -1px -1px 0 #000;
font-size: 11px;
2013-02-06 20:54:49 +04:00
padding: 5px 10px;
2013-02-08 22:04:54 +04:00
position: relative;
2013-02-04 20:52:39 +04:00
}
.tab.active {
-webkit-flex: 2;
}
2013-02-04 20:52:39 +04:00
.tab .file-name {
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
padding: 3px 10px 3px 0;
2013-02-04 20:52:39 +04:00
}
.tab .close-icon {
font-family: 'Octicons Regular';
2013-02-06 05:14:27 +04:00
font-size: 12px;
width: 12px;
height: 12px;
2013-02-04 20:52:39 +04:00
cursor: pointer;
position: absolute;
2013-02-06 08:19:07 +04:00
color: rgba(255, 255, 255, 0.5);
right: 8px;
2013-02-16 07:05:53 +04:00
top: 5px;
2013-02-04 20:52:39 +04:00
-webkit-font-smoothing: antialiased;
}
.tab .close-icon:before {
content: "\f081";
}
.tab .close-icon:hover {
2013-02-06 08:19:07 +04:00
color: #fff;
2013-02-06 05:14:27 +04:00
}
.tab.file-modified .close-icon {
2013-02-16 07:05:53 +04:00
top: 11px;
2013-02-06 05:14:27 +04:00
width: 5px;
height: 5px;
right: 9px;
2013-02-06 08:19:07 +04:00
border: 2px solid #66a6ff;
2013-02-06 05:29:42 +04:00
border-radius: 12px;
2013-02-06 05:14:27 +04:00
}
.tab.file-modified .close-icon:before {
content: "";
}
.tab.file-modified:hover .close-icon {
border: none;
width: 12px;
height: 12px;
right: 8px;
2013-02-16 07:05:53 +04:00
top: 5px;
}
.tab.file-modified:hover .close-icon:before {
content: "\f081";
color: #66a6ff;
2013-02-09 21:08:46 +04:00
}
/* Drag and Drop */
.tab.is-dragging {
}
2013-02-09 23:47:12 +04:00
.tab.is-drop-target:after {
position: absolute;
top: 0;
right: -2px;
content: "";
z-index: 999;
display: inline-block;
width: 2px;
height: 30px;
display: inline-block;
background: #0098ff;
}
.tab.is-drop-target:before {
content: "";
position: absolute;
width: 4px;
height: 4px;
background: #0098ff;
right: -4px;
top: 30px;
border-radius: 4px;
z-index: 9999;
border: 1px solid transparent;
}