Skip to content

Commit f3f8b0f

Browse files
committed
Header: Adjust product selector styling
1 parent da80299 commit f3f8b0f

File tree

1 file changed

+28
-23
lines changed

1 file changed

+28
-23
lines changed

assets/css/v2/style.css

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ textarea:not([rows]) {
243243
--overflow-gutter-extension: -1rem;
244244

245245
/* Product Selector */
246-
--product-selector-background: 0.9851 0 0;
246+
--product-selector-background: 0.98 0 0;
247247

248248
/* vars for the primary grid setup */
249249
--grid-content: minmax(34rem, 50rem);
@@ -715,7 +715,6 @@ ol li:last-child {
715715
top: 0;
716716
background: oklch(var(--color-background));
717717
z-index: 1;
718-
padding: 0 2.25rem 0 var(--sidebar-item-padding-lr);
719718

720719
.sidebar__img {
721720
height: 2rem;
@@ -727,37 +726,42 @@ ol li:last-child {
727726
}
728727

729728
.product-selector {
730-
align-self: start;
731-
width: auto;
732-
background: oklch(var(--product-selector-background));
729+
width: 100%;
730+
padding-top: 1rem;
731+
padding-right: var(--sidebar-item-padding-lr);
733732
color: oklch(var(--color-foreground));
734733
text-decoration-color: oklch(var(--color-brand) / 0.3);
735734
& button:hover * {
736735
color: oklch(var(--color-brand));
737736
}
738737

739738
.product-selector__content {
740-
padding-bottom: 1rem;
739+
padding-bottom: 0.5rem;
740+
padding-top: 0.5rem;
741+
}
742+
743+
.product-selector__section {
744+
background: oklch(var(--product-selector-background));
741745
}
742746

743747
.product-selector__toggle {
744748
display: flex;
745749
justify-content: space-between;
746-
padding-inline-end: 4px;
747750
align-items: center;
748751
}
749752

750753
.product-selector__product-group {
751754
padding-block-start: 0.5rem;
755+
font-size: var(--font-step--1);
752756
padding-inline-start: 1rem;
753757
}
754758

755759
.product-selector__product {
756760
padding-block-start: 0.5rem;
757761
padding-inline-start: 1.5rem;
762+
758763
a {
759-
font-weight: 400;
760-
color: black;
764+
font-size: var(--font-step--1);
761765
}
762766
}
763767

@@ -771,12 +775,12 @@ ol li:last-child {
771775
list-style: none;
772776
padding-inline-start: 1rem;
773777
align-content: center;
774-
font-size: var(--font-step-1);
778+
font-size: var(--font-step-0);
775779
color: oklch(var(--color-background));
776780
background-color: oklch(var(--color-brand));
777-
width: 21rem;
778781
height: 2.5rem;
779782

783+
780784
> li {
781785
padding-inline-start: 0.5rem;
782786
}
@@ -1560,18 +1564,6 @@ nav.sidebar.sidebar__mobile-open {
15601564
}
15611565

15621566
/* Details/Summary */
1563-
details summary {
1564-
margin: var(--details-margin);
1565-
color: oklch(var(--color-brand));
1566-
transition: text-decoration-color 0.15s ease-in-out;
1567-
text-decoration: underline;
1568-
text-decoration-color: oklch(var(--color-brand) / 0.3);
1569-
1570-
&:hover {
1571-
text-decoration-color: oklch(var(--color-brand) / 0.8);
1572-
cursor: pointer;
1573-
}
1574-
}
15751567

15761568
/* MARK: Content
15771569
*/
@@ -1631,6 +1623,19 @@ a:hover {
16311623
/* MARK: Typography
16321624
*/
16331625
.content {
1626+
details summary {
1627+
margin: var(--details-margin);
1628+
color: oklch(var(--color-brand));
1629+
transition: text-decoration-color 0.15s ease-in-out;
1630+
text-decoration: underline;
1631+
text-decoration-color: oklch(var(--color-brand) / 0.3);
1632+
1633+
&:hover {
1634+
text-decoration-color: oklch(var(--color-brand) / 0.8);
1635+
cursor: pointer;
1636+
}
1637+
}
1638+
16341639
h1 {
16351640
margin: var(--margin-content-h1);
16361641
font-size: var(--font-step-3);

0 commit comments

Comments
 (0)