| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ | |||
| 30 | 30 | --pf-v6-c-finder-MaxColumns: 4; | |
| 31 | 31 | ||
| 32 | 32 | /* Column */ | |
| 33 | - --pf-v6-c-finder__column--Width: 18rem; | ||
| 33 | + --pf-v6-c-finder__column--Width: clamp(14rem, 25cqi, 20rem); | ||
| 34 | 34 | --pf-v6-c-finder__column--BorderRightColor: var(--pf-t--global--border--color--default); | |
| 35 | 35 | --pf-v6-c-finder__column--BorderRightWidth: var(--pf-t--global--border--width--100); | |
| 36 | 36 | ||
@@ -95,7 +95,7 @@ | |||
| 95 | 95 | --pf-v6-c-finder__preview--PaddingBlockEnd: var(--pf-t--global--spacer--200); | |
| 96 | 96 | --pf-v6-c-finder__preview--PaddingInlineStart: var(--pf-t--global--spacer--300); | |
| 97 | 97 | --pf-v6-c-finder__preview--PaddingInlineEnd: var(--pf-t--global--spacer--200); | |
| 98 | - --pf-v6-c-finder__preview--MinWidth: 24rem; | ||
| 98 | + --pf-v6-c-finder__preview--MinWidth: clamp(16rem, 30cqi, 28rem); | ||
| 99 | 99 | --pf-v6-c-finder__preview--BackgroundColor: var(--pf-t--global--background--color--primary--default); | |
| 100 | 100 | --pf-v6-c-finder__preview--BorderLeftColor: var(--pf-t--global--border--color--default); | |
| 101 | 101 | --pf-v6-c-finder__preview--BorderLeftWidth: var(--pf-t--global--border--width--100); | |
@@ -106,6 +106,8 @@ | |||
| 106 | 106 | =================================================================== */ | |
| 107 | 107 | ||
| 108 | 108 | .pf-v6-c-finder { | |
| 109 | + container-type: inline-size; | ||
| 110 | + container-name: finder; | ||
| 109 | 111 | display: flex; | |
| 110 | 112 | background-color: var(--pf-v6-c-finder--BackgroundColor); | |
| 111 | 113 | font-size: var(--pf-v6-c-finder--FontSize); | |
@@ -425,3 +427,25 @@ | |||
| 425 | 427 | padding-inline-start: var(--pf-v6-c-finder__preview--PaddingInlineStart); | |
| 426 | 428 | padding-inline-end: var(--pf-v6-c-finder__preview--PaddingInlineEnd); | |
| 427 | 429 | } | |
| 430 | + | ||
| 431 | + /* =================================================================== | ||
| 432 | + Responsive container queries | ||
| 433 | + =================================================================== */ | ||
| 434 | + | ||
| 435 | + @container finder (max-width: 40rem) { | ||
| 436 | + .pf-v6-c-finder { | ||
| 437 | + --pf-v6-c-finder-MaxColumns: 1; | ||
| 438 | + } | ||
| 439 | + } | ||
| 440 | + | ||
| 441 | + @container finder (min-width: 40rem) and (max-width: 60rem) { | ||
| 442 | + .pf-v6-c-finder { | ||
| 443 | + --pf-v6-c-finder-MaxColumns: 2; | ||
| 444 | + } | ||
| 445 | + } | ||
| 446 | + | ||
| 447 | + @container finder (min-width: 60rem) and (max-width: 80rem) { | ||
| 448 | + .pf-v6-c-finder { | ||
| 449 | + --pf-v6-c-finder-MaxColumns: 3; | ||
| 450 | + } | ||
| 451 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments