|
67 | 67 | z-index: 5; |
68 | 68 | } |
69 | 69 |
|
70 | | - /* Inverted Radius using mask-image */ |
| 70 | + /* Mask-Image swoop for inverted corners */ |
71 | 71 | .tab.active::before, |
72 | 72 | .tab.active::after { |
73 | 73 | content: ""; |
|
81 | 81 |
|
82 | 82 | .tab.active::before { |
83 | 83 | left: -16px; |
84 | | - mask-image: radial-gradient(circle at 0 0, transparent 16px, black 16px); |
85 | 84 | -webkit-mask-image: radial-gradient(circle at 0 0, transparent 16px, black 16px); |
| 85 | + mask-image: radial-gradient(circle at 0 0, transparent 16px, black 16px); |
86 | 86 | } |
87 | 87 |
|
88 | 88 | .tab.active::after { |
89 | 89 | right: -16px; |
90 | | - mask-image: radial-gradient(circle at 100% 0, transparent 16px, black 16px); |
91 | 90 | -webkit-mask-image: radial-gradient(circle at 100% 0, transparent 16px, black 16px); |
| 91 | + mask-image: radial-gradient(circle at 100% 0, transparent 16px, black 16px); |
92 | 92 | } |
93 | 93 |
|
94 | 94 | .tab-favicon { |
|
121 | 121 | .tab:hover .tab-close, .tab.active .tab-close { opacity: 0.5; } |
122 | 122 | .tab-close:hover { opacity: 1 !important; background: rgba(255,255,255,0.1); } |
123 | 123 |
|
124 | | - /* --- Nav Bar --- */ |
| 124 | + /* --- Navigation Bar --- */ |
125 | 125 | .nav-bar { |
126 | 126 | background: var(--nav-bg); |
127 | 127 | height: 44px; |
|
154 | 154 |
|
155 | 155 | .address-box { |
156 | 156 | position: relative; |
157 | | - width: 800px; /* Made the URL address bar longer */ |
| 157 | + width: 950px; /* LONGER URL BAR */ |
158 | 158 | margin: 0 auto; |
159 | 159 | } |
160 | 160 |
|
|
186 | 186 | color: #333; |
187 | 187 | } |
188 | 188 |
|
189 | | - /* --- Viewport --- */ |
190 | 189 | .viewport { |
191 | 190 | flex: 1; |
192 | 191 | position: relative; |
|
221 | 220 | </style> |
222 | 221 | </head> |
223 | 222 | <body> |
224 | | - |
225 | 223 | <div class="tab-strip"> |
226 | 224 | <div class="tabs-container" id="tabs-container"></div> |
227 | 225 | <button id="add-tab"> |
|
326 | 324 | setActiveTab(t.id); |
327 | 325 | return; |
328 | 326 | } |
329 | | - |
330 | 327 | const idx = tabs.findIndex(t => t.id === id); |
331 | 328 | tabs = tabs.filter(t => t.id !== id); |
332 | 329 | document.getElementById(`iframe-${id}`).remove(); |
|
392 | 389 | t.title = e.data.title || t.title; |
393 | 390 | if (e.data.url) t.url = e.data.url; |
394 | 391 | renderTabs(); |
395 | | - if (activeTabId === t.id) addressInput.value = getDisplayUrl(t.url); |
396 | 392 | } |
397 | 393 | } |
398 | 394 | }); |
399 | 395 |
|
400 | | - // Init first tab |
401 | 396 | addTab(); |
402 | 397 |
|
403 | | - // Control handlers |
404 | 398 | document.getElementById('back').onclick = () => document.getElementById(`iframe-${activeTabId}`).contentWindow.history.back(); |
405 | 399 | document.getElementById('forward').onclick = () => document.getElementById(`iframe-${activeTabId}`).contentWindow.history.forward(); |
406 | 400 | document.getElementById('reload').onclick = () => { |
|
0 commit comments