Skip to content

Commit

Permalink
💄 (gdocs) use --grid-gap for horizontal padding
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Feb 7, 2024
1 parent e03e81b commit 0ea7b51
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions site/gdocs/components/KeyIndicatorCollection.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.key-indicator-collection {
$duration: 0.4s; // keep in sync with HEIGHT_ANIMATION_DURATION_IN_SECONDS in KeyIndicatorCollection.tsx

--padding: var(--grid-gap, 24px);
--border: #{$blue-20};

margin: 24px -24px;
margin: 24px calc(-1 * var(--padding));

.accordion-item + .accordion-item {
border-top: 1px solid var(--border);
Expand All @@ -22,7 +23,7 @@

.accordion-item__button {
background-color: $blue-5;
padding: 16px 24px;
padding: 16px var(--padding);

@include sm-only {
padding-bottom: 0;
Expand All @@ -39,7 +40,7 @@
// on mobile, show an anchor that links to the datapage
.accordion-item__link-mobile {
background-color: $white;
padding: 12px 24px;
padding: 12px 0;
line-height: 1.2;

@include sm-up {
Expand All @@ -60,7 +61,6 @@
}

.accordion-item__content {
padding: 0 24px;
overflow: hidden;
transition: height $duration cubic-bezier(0.76, 0, 0.24, 1);
}
Expand Down Expand Up @@ -159,7 +159,7 @@
content: "More featured indicators";
@include h5-black-caps;
display: block;
margin: 24px 24px 16px;
margin: 24px var(--padding) 16px;
color: $blue-60;
}

Expand All @@ -170,12 +170,15 @@
.accordion-item:last-of-type {
border-bottom: 1px solid var(--border);
}

.accordion-item--closed {
margin: 0 var(--padding);
}
}

// update <KeyIndicator /> styles
// overwrite <KeyIndicator /> styles
.key-indicator {
margin-top: 0;
margin-bottom: 0;
margin: 0;
.indicator-metadata {
display: none;
}
Expand Down

0 comments on commit 0ea7b51

Please sign in to comment.