@gjsify/adwaita-web 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adwaita-web.css +44 -20
- package/dist/adwaita-web.css.map +1 -1
- package/lib/types/adw-tab-view.spec.d.ts +1 -0
- package/lib/types/elements/adw-tab-view.d.ts +6 -0
- package/lib/types/styles.generated.d.ts +1 -1
- package/package.json +5 -5
- package/scss/_tab_view.scss +62 -29
- package/src/adw-tab-view.spec.ts +108 -0
- package/src/elements/adw-tab-view.ts +25 -1
- package/src/styles.generated.ts +1 -1
- package/src/test.browser.mts +2 -1
package/dist/adwaita-web.css
CHANGED
|
@@ -2312,15 +2312,15 @@ adw-tab-view {
|
|
|
2312
2312
|
}
|
|
2313
2313
|
adw-tab-view .adw-tab-bar {
|
|
2314
2314
|
display: flex;
|
|
2315
|
-
align-items:
|
|
2315
|
+
align-items: stretch;
|
|
2316
2316
|
flex-shrink: 0;
|
|
2317
2317
|
box-sizing: border-box;
|
|
2318
|
-
padding: 0
|
|
2318
|
+
padding: 0 1px 1px;
|
|
2319
2319
|
background-color: var(--headerbar-bg-color);
|
|
2320
2320
|
color: var(--headerbar-fg-color);
|
|
2321
2321
|
box-shadow: inset 0 -1px var(--headerbar-shade-color);
|
|
2322
2322
|
overflow-x: auto;
|
|
2323
|
-
scrollbar-width:
|
|
2323
|
+
scrollbar-width: none;
|
|
2324
2324
|
}
|
|
2325
2325
|
adw-tab-view .adw-tab-bar[hidden] {
|
|
2326
2326
|
display: none;
|
|
@@ -2328,49 +2328,68 @@ adw-tab-view .adw-tab-bar[hidden] {
|
|
|
2328
2328
|
adw-tab-view .adw-tab-box {
|
|
2329
2329
|
display: flex;
|
|
2330
2330
|
align-items: stretch;
|
|
2331
|
-
|
|
2332
|
-
padding:
|
|
2333
|
-
min-height: 34px;
|
|
2331
|
+
flex: 1 1 auto;
|
|
2332
|
+
padding: 4px 0;
|
|
2334
2333
|
}
|
|
2335
2334
|
adw-tab-view .adw-tab {
|
|
2335
|
+
position: relative;
|
|
2336
2336
|
box-sizing: border-box;
|
|
2337
2337
|
display: inline-flex;
|
|
2338
2338
|
align-items: center;
|
|
2339
|
+
justify-content: center;
|
|
2339
2340
|
gap: var(--spacing-xs);
|
|
2340
2341
|
max-width: 200px;
|
|
2341
|
-
min-height:
|
|
2342
|
+
min-height: 30px;
|
|
2342
2343
|
margin: 0;
|
|
2343
|
-
padding:
|
|
2344
|
+
padding: 0 var(--spacing-m);
|
|
2344
2345
|
border: none;
|
|
2345
2346
|
border-radius: var(--button-radius);
|
|
2346
2347
|
background-color: transparent;
|
|
2347
|
-
color:
|
|
2348
|
+
color: inherit;
|
|
2348
2349
|
font-family: var(--font-family);
|
|
2349
2350
|
font-size: var(--font-size-base);
|
|
2350
|
-
font-weight: 700;
|
|
2351
2351
|
line-height: 1;
|
|
2352
2352
|
cursor: pointer;
|
|
2353
2353
|
user-select: none;
|
|
2354
2354
|
-webkit-user-select: none;
|
|
2355
|
-
transition: background-color 150ms ease-in-out
|
|
2355
|
+
transition: background-color 150ms ease-in-out;
|
|
2356
2356
|
}
|
|
2357
2357
|
adw-tab-view .adw-tab:hover {
|
|
2358
|
-
background-color:
|
|
2358
|
+
background-color: color-mix(in srgb, currentColor 7%, transparent);
|
|
2359
2359
|
}
|
|
2360
2360
|
adw-tab-view .adw-tab:active {
|
|
2361
|
-
background-color:
|
|
2361
|
+
background-color: color-mix(in srgb, currentColor 16%, transparent);
|
|
2362
2362
|
}
|
|
2363
2363
|
adw-tab-view .adw-tab:focus-visible {
|
|
2364
2364
|
outline: 2px solid var(--accent-color);
|
|
2365
|
-
outline-offset: -
|
|
2365
|
+
outline-offset: -2px;
|
|
2366
2366
|
}
|
|
2367
2367
|
adw-tab-view .adw-tab.active {
|
|
2368
|
-
background-color:
|
|
2369
|
-
color: var(--view-fg-color);
|
|
2370
|
-
box-shadow: 0 1px 3px 1px rgba(0, 0, 6, 0.07), 0 2px 6px 2px rgba(0, 0, 6, 0.03);
|
|
2368
|
+
background-color: color-mix(in srgb, currentColor 10%, transparent);
|
|
2371
2369
|
}
|
|
2372
2370
|
adw-tab-view .adw-tab.active:hover {
|
|
2373
|
-
background-color:
|
|
2371
|
+
background-color: color-mix(in srgb, currentColor 13%, transparent);
|
|
2372
|
+
}
|
|
2373
|
+
adw-tab-view .adw-tab.active:active {
|
|
2374
|
+
background-color: color-mix(in srgb, currentColor 19%, transparent);
|
|
2375
|
+
}
|
|
2376
|
+
adw-tab-view .adw-tab + .adw-tab::before {
|
|
2377
|
+
content: "";
|
|
2378
|
+
position: absolute;
|
|
2379
|
+
left: 0;
|
|
2380
|
+
top: 3px;
|
|
2381
|
+
bottom: 3px;
|
|
2382
|
+
width: 1px;
|
|
2383
|
+
background-color: currentColor;
|
|
2384
|
+
opacity: 0.2;
|
|
2385
|
+
transition: opacity 150ms ease-in-out;
|
|
2386
|
+
pointer-events: none;
|
|
2387
|
+
}
|
|
2388
|
+
adw-tab-view .adw-tab.active + .adw-tab::before,
|
|
2389
|
+
adw-tab-view .adw-tab + .adw-tab.active::before,
|
|
2390
|
+
adw-tab-view .adw-tab:hover + .adw-tab::before,
|
|
2391
|
+
adw-tab-view .adw-tab + .adw-tab:hover::before {
|
|
2392
|
+
opacity: 0;
|
|
2374
2393
|
}
|
|
2375
2394
|
adw-tab-view .adw-tab-title {
|
|
2376
2395
|
white-space: nowrap;
|
|
@@ -2418,10 +2437,15 @@ adw-tab-view .adw-tab-close::before {
|
|
|
2418
2437
|
adw-tab-view .adw-tab-close::after {
|
|
2419
2438
|
transform: translate(-50%, -50%) rotate(-45deg);
|
|
2420
2439
|
}
|
|
2440
|
+
adw-tab-view[expand-tabs] .adw-tab {
|
|
2441
|
+
flex: 1 1 0;
|
|
2442
|
+
max-width: none;
|
|
2443
|
+
}
|
|
2444
|
+
adw-tab-view[no-close] .adw-tab-close {
|
|
2445
|
+
display: none;
|
|
2446
|
+
}
|
|
2421
2447
|
adw-tab-view .adw-tab-bar.single-tab .adw-tab, adw-tab-view .adw-tab-bar.single-tab .adw-tab:hover, adw-tab-view .adw-tab-bar.single-tab .adw-tab:active {
|
|
2422
2448
|
background: none;
|
|
2423
|
-
box-shadow: none;
|
|
2424
|
-
color: var(--headerbar-fg-color);
|
|
2425
2449
|
}
|
|
2426
2450
|
adw-tab-view .adw-tab-view-pages {
|
|
2427
2451
|
flex: 1 1 auto;
|