Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit dceb366

Browse files
Googlernshahan
authored andcommitted
Add mixin for changing the acx-scorecard display to flex
PiperOrigin-RevId: 204549301
1 parent cd94091 commit dceb366

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lib/scorecard/_mixins.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,19 @@ $acx-neutral-increase-color: $mat-light-transparent-black;
150150
}
151151
}
152152
}
153+
154+
// A mixin for changing the scorecard bar display to flex.
155+
// Optionally specify a $flex-direction for the .scorecard-bar and a
156+
// $scorecard-flex for the flex value of each acx-scorecard.
157+
@mixin acx-scorecard-flex-display($flex-direction: row, $scorecard-flex: 1) {
158+
::ng-deep {
159+
acx-scorecard {
160+
flex: $scorecard-flex;
161+
}
162+
163+
.scorecard-bar {
164+
display: flex;
165+
flex-direction: $flex-direction;
166+
}
167+
}
168+
}

0 commit comments

Comments
 (0)