|
61 | 61 |
|
62 | 62 | .tab-background |
63 | 63 | { |
64 | | - border-radius: var(--wavefox-tab-border-radius, 4px) !important; |
65 | 64 | box-shadow: none !important; |
66 | 65 | } |
67 | 66 |
|
|
75 | 74 | } |
76 | 75 | } |
77 | 76 |
|
78 | | -/* ---------------------------------------- Floating tabs ---------------------------------------- */ |
79 | | - |
80 | | -@media -moz-pref("WaveFox.Tabs.Shape", 1) or |
81 | | - -moz-pref("WaveFox.Tabs.Shape", 2) or |
82 | | - -moz-pref("WaveFox.Tabs.Shape", 3) or |
83 | | - -moz-pref("WaveFox.Tabs.Shape", 4) |
84 | | -{ |
85 | | - /* -------------------- Tab shapes -------------------- */ |
86 | | - |
87 | | - @media -moz-pref("WaveFox.Tabs.Shape", 1) |
88 | | - { |
89 | | - :root |
90 | | - { |
91 | | - --wavefox-tab-border-radius: 8px; |
92 | | - } |
93 | | - } |
94 | | - |
95 | | - @media -moz-pref("WaveFox.Tabs.Shape", 2) |
96 | | - { |
97 | | - :root |
98 | | - { |
99 | | - --wavefox-tab-border-radius: 12px; |
100 | | - } |
101 | | - } |
102 | | - |
103 | | - @media -moz-pref("WaveFox.Tabs.Shape", 3) |
104 | | - { |
105 | | - :root |
106 | | - { |
107 | | - --wavefox-tab-border-radius: 16px; |
108 | | - } |
109 | | - } |
110 | | - |
111 | | - @media -moz-pref("WaveFox.Tabs.Shape", 4) |
112 | | - { |
113 | | - :root |
114 | | - { |
115 | | - --wavefox-tab-border-radius: 50px; |
116 | | - } |
117 | | - } |
118 | | -} |
119 | | - |
120 | 77 | /* ---------------------------------------- Attached tabs ---------------------------------------- */ |
121 | 78 |
|
122 | 79 | @media -moz-pref("WaveFox.Tabs.Shape", 5) or |
|
339 | 296 | } |
340 | 297 | } |
341 | 298 |
|
342 | | - /* |
343 | | - #tabbrowser-tabs[overflow] .tab-drop-indicator |
344 | | - { |
345 | | - inset-inline-start: var(--tab-first-last-inline-margin) !important; |
346 | | - } |
347 | | - */ |
348 | | - |
349 | 299 | /* -------------------- Tab Icon Indicators -------------------- */ |
350 | 300 |
|
351 | 301 | .tabbrowser-tab:is([image], [pinned]) .tab-content[attention]:not([selected]), |
|
407 | 357 | } |
408 | 358 |
|
409 | 359 | /* ---------------------------------------- Tab Scroll Animation ---------------------------------------- */ |
410 | | - /* |
411 | | - #tabbrowser-tabs[overflow]:not([movingtab]) .tabbrowser-tab |
412 | | - { |
413 | | - pointer-events: none !important; |
414 | | - box-sizing: content-box !important; |
415 | | - padding-inline: var(--tab-first-last-inline-margin) !important; |
416 | | - margin-inline: calc(-1 * var(--tab-first-last-inline-margin)) !important; |
417 | | - overflow-clip-margin: 0px !important; |
418 | | - } |
419 | 360 |
|
420 | | - #tabbrowser-tabs[overflow]:not([movingtab]) tab-group[collapsed] > .tabbrowser-tab[visuallyselected] |
| 361 | + #tabbrowser-tabs:not([movingtab]) |
421 | 362 | { |
422 | | - margin-inline: 0px !important; |
| 363 | + #pinned-tabs-container[overflowing], |
| 364 | + #tabbrowser-arrowscrollbox[overflowing] |
| 365 | + { |
| 366 | + .tabbrowser-tab |
| 367 | + { |
| 368 | + pointer-events: none !important; |
| 369 | + box-sizing: content-box !important; |
| 370 | + padding-inline: var(--tab-first-last-inline-margin) !important; |
| 371 | + margin-inline: calc(-1 * var(--tab-first-last-inline-margin)) !important; |
| 372 | + overflow-clip-margin: 0px !important; |
| 373 | + |
| 374 | + &:nth-child(1 of .tabbrowser-tab:not([hidden])) |
| 375 | + { |
| 376 | + margin-inline-start: 0px !important; |
| 377 | + } |
| 378 | + |
| 379 | + &:nth-last-child(1 of .tabbrowser-tab:not([hidden])) |
| 380 | + { |
| 381 | + margin-inline-end: 0px !important; |
| 382 | + } |
| 383 | + |
| 384 | + .tab-stack |
| 385 | + { |
| 386 | + pointer-events: auto !important; |
| 387 | + } |
| 388 | + |
| 389 | + tab-group[collapsed] > &[visuallyselected] |
| 390 | + { |
| 391 | + margin-inline: 0px !important; |
| 392 | + } |
| 393 | + } |
| 394 | + } |
423 | 395 | } |
424 | 396 |
|
425 | | - #tabbrowser-tabs[overflow]:not([movingtab]) .tabbrowser-tab > .tab-stack |
| 397 | + /* |
| 398 | + .tabbrowser-tab[dragtarget][pinned] |
426 | 399 | { |
427 | | - pointer-events: auto !important; |
| 400 | + max-width: min-content !important; |
| 401 | + |
| 402 | + ~ .tabbrowser-tab[pinned] |
| 403 | + { |
| 404 | + inset-inline: 40px 0px !important; |
| 405 | + |
| 406 | + } |
428 | 407 | } |
429 | | -
|
430 | | - #tabbrowser-tabs[overflow]:not([movingtab]) .tabbrowser-tab:nth-child(1 of .tabbrowser-tab:not([hidden])) |
| 408 | + |
| 409 | + .tabbrowser-tab[dragtarget]:not([pinned]) |
431 | 410 | { |
432 | | - margin-inline-start: 0px !important; |
| 411 | + max-width: min-content !important; |
| 412 | + |
| 413 | + ~ .tabbrowser-tab:not([pinned]) |
| 414 | + { |
| 415 | + inset-inline: 76px 0px !important; |
| 416 | + |
| 417 | + } |
433 | 418 | } |
| 419 | + */ |
434 | 420 |
|
435 | | - #tabbrowser-tabs[overflow]:not([movingtab]) .tabbrowser-tab:nth-last-child(1 of .tabbrowser-tab:not([hidden])) |
| 421 | + #tabbrowser-tabs[overflow] .tab-drop-indicator |
436 | 422 | { |
437 | | - margin-inline-end: 0px !important; |
438 | | - } |
439 | | - */ |
| 423 | + inset-inline-start: var(--tab-first-last-inline-margin) !important; |
| 424 | + } |
440 | 425 | } |
0 commit comments