|
1 | 1 | .tab-bar-container { |
2 | | - position: relative; |
| 2 | + display: flex; |
| 3 | + align-items: center; |
3 | 4 | background-color: #1E1E1E; |
4 | 5 | border-bottom: 1px solid #333; |
| 6 | + position: relative; |
| 7 | + overflow: hidden; |
5 | 8 | } |
6 | 9 |
|
| 10 | + |
7 | 11 | .phoenix-tab-bar { |
8 | | - height: 28px; |
9 | | - background-color: #1E1E1E; |
| 12 | + flex: 1; |
| 13 | + height: 2rem; |
10 | 14 | display: flex; |
11 | 15 | overflow-x: auto; |
12 | 16 | overflow-y: hidden; |
13 | 17 | white-space: nowrap; |
14 | 18 | transition: height 0.3s ease; |
15 | 19 | scroll-behavior: smooth; |
| 20 | + background-color: #1E1E1E; |
16 | 21 | } |
17 | 22 |
|
| 23 | + |
18 | 24 | .phoenix-tab-bar::-webkit-scrollbar { |
19 | | - height: 4px; |
| 25 | + height: 0.25rem; |
| 26 | +} |
| 27 | + |
| 28 | + |
| 29 | +.tab-bar-more-options { |
| 30 | + display: flex; |
| 31 | + align-items: center; |
| 32 | + height: 2rem; |
| 33 | + padding: 0 0.5rem; |
| 34 | + cursor: pointer; |
| 35 | + position: relative; |
| 36 | + z-index: 2; |
| 37 | + margin-left: auto; |
20 | 38 | } |
21 | 39 |
|
22 | | -.phoenix-tab-bar .hover { |
| 40 | + |
| 41 | +.tab-bar-more-options:hover { |
23 | 42 | background-color: #333; |
24 | 43 | } |
25 | 44 |
|
| 45 | + |
| 46 | +.tab-bar-more-options::before { |
| 47 | + content: ""; |
| 48 | + position: absolute; |
| 49 | + top: 0; |
| 50 | + left: -1rem; |
| 51 | + width: 1rem; |
| 52 | + height: 100%; |
| 53 | + pointer-events: none; |
| 54 | + background: linear-gradient(to right, rgba(30, 30, 30, 0), #1E1E1E); |
| 55 | +} |
| 56 | + |
| 57 | + |
26 | 58 | .tab { |
27 | 59 | display: inline-flex; |
28 | 60 | align-items: center; |
29 | | - padding: 0 8px; |
30 | | - padding-top: 1px; |
| 61 | + padding: 0 0.5rem; |
31 | 62 | height: 100%; |
32 | 63 | background-color: #2D2D2D; |
33 | 64 | border-right: 1px solid #333; |
|
39 | 70 | transition: transform 60ms ease, opacity 60ms ease; |
40 | 71 | } |
41 | 72 |
|
42 | | -.tab, .tab-close, .tab-icon, .tab-name { |
| 73 | + |
| 74 | +.tab, |
| 75 | +.tab-close, |
| 76 | +.tab-icon, |
| 77 | +.tab-name { |
43 | 78 | transition: all 120ms ease-out; |
44 | 79 | } |
45 | 80 |
|
| 81 | + |
46 | 82 | .tab-icon { |
47 | 83 | display: flex; |
48 | 84 | align-items: center; |
49 | 85 | margin-bottom: -2px; |
50 | 86 | } |
51 | 87 |
|
| 88 | + |
52 | 89 | .tab-name { |
53 | 90 | display: inline-flex; |
54 | 91 | align-items: center; |
55 | | - font-size: 12px; |
| 92 | + font-size: 0.75rem; |
56 | 93 | letter-spacing: 0.4px; |
57 | 94 | word-spacing: 0.75px; |
58 | 95 | } |
59 | 96 |
|
| 97 | + |
60 | 98 | .tab .tab-dirname { |
61 | | - font-size: 10px; |
| 99 | + font-size: 0.65rem; |
62 | 100 | opacity: 0.7; |
63 | 101 | font-weight: normal; |
64 | 102 | } |
65 | 103 |
|
| 104 | + |
66 | 105 | .tab.active { |
67 | 106 | background-color: #3D3D3D; |
68 | 107 | } |
69 | 108 |
|
| 109 | + |
70 | 110 | .tab:hover { |
71 | 111 | background-color: #4d4949; |
72 | 112 | cursor: pointer; |
73 | 113 | } |
74 | 114 |
|
| 115 | + |
75 | 116 | .tab.active::after { |
76 | 117 | content: ""; |
77 | 118 | position: absolute; |
78 | 119 | bottom: 0; |
79 | 120 | left: 0; |
80 | 121 | right: 0; |
81 | | - height: 2.2px; |
| 122 | + height: 0.15rem; |
82 | 123 | background-color: #75BEFF; |
83 | 124 | } |
84 | 125 |
|
| 126 | + |
85 | 127 | .tab.dirty::before { |
86 | 128 | content: "•"; |
87 | 129 | color: #8D8D8E; |
88 | | - font-size: 26px; |
89 | | - margin-right: 4px; |
| 130 | + font-size: 1.6rem; |
| 131 | + margin-right: 0.25rem; |
90 | 132 | position: absolute; |
91 | | - left: 5px; |
92 | | - top: 4px; |
| 133 | + left: 0.3rem; |
| 134 | + top: 0.25rem; |
93 | 135 | } |
94 | 136 |
|
95 | 137 | .tab.dirty .tab-icon { |
96 | | - margin-left: 10px; |
| 138 | + margin-left: 1rem; |
97 | 139 | } |
98 | 140 |
|
| 141 | + |
99 | 142 | .tab-close { |
100 | | - font-size: 12px; |
| 143 | + font-size: 0.75rem; |
101 | 144 | font-weight: 300; |
102 | | - padding: 1px 4px 0.4px 4px; |
103 | | - margin-left: 4px; |
104 | | - margin-top: -1px; |
| 145 | + padding: 0.2rem 0.5rem; |
| 146 | + margin-left: 0.5rem; |
| 147 | + margin-top: -0.1rem; |
105 | 148 | color: #CCC; |
106 | 149 | transition: all 0.2s ease; |
107 | | - border-radius: 3px; |
| 150 | + border-radius: 0.25rem; |
108 | 151 | visibility: hidden; |
109 | 152 | opacity: 0; |
110 | 153 | pointer-events: none; |
111 | 154 | } |
112 | 155 |
|
| 156 | + |
113 | 157 | .tab:hover .tab-close, |
114 | 158 | .tab.active .tab-close { |
115 | 159 | visibility: visible; |
116 | 160 | opacity: 1; |
117 | 161 | pointer-events: auto; |
118 | 162 | } |
119 | 163 |
|
| 164 | + |
120 | 165 | .tab-close:hover { |
121 | 166 | cursor: pointer; |
122 | 167 | background-color: rgba(255, 255, 255, 0.1); |
123 | 168 | } |
124 | 169 |
|
| 170 | + |
125 | 171 | .tab.dragging { |
126 | 172 | opacity: 0.7; |
127 | 173 | transform: scale(0.95); |
|
134 | 180 | background-color: #383838; |
135 | 181 | } |
136 | 182 |
|
| 183 | + |
137 | 184 | .tab-drag-indicator { |
138 | 185 | position: fixed; |
139 | 186 | width: 2px; |
|
150 | 197 | 0% { |
151 | 198 | opacity: 0.7; |
152 | 199 | } |
| 200 | + |
153 | 201 | 50% { |
154 | 202 | opacity: 1; |
155 | 203 | } |
| 204 | + |
156 | 205 | 100% { |
157 | 206 | opacity: 0.7; |
158 | 207 | } |
|
0 commit comments