Skip to content

Commit

Permalink
fix: max-width for content-list component
Browse files Browse the repository at this point in the history
  • Loading branch information
qradle-yndx committed Dec 25, 2024
1 parent a9a8eb1 commit 3da40bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/ContentList/ContentList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ $marginIconSizeL: 1px;
$lightPrimary: var(--g-color-text-light-primary);
$darkPrimary: var(--g-color-text-dark-primary);
$darkSecondary: var(--g-color-text-dark-secondary);
$maxSizeL: 480px;
$maxSizeS: 440px;

@mixin content-link($baseColor: $primary, $hoverColor: $secondary) {
color: $baseColor;
Expand All @@ -21,6 +23,8 @@ $darkSecondary: var(--g-color-text-dark-secondary);

#{$block} {
&_size_l {
max-width: $maxSizeL;

#{$block}__title {
@include text-size(header-1);

Expand Down Expand Up @@ -57,6 +61,8 @@ $darkSecondary: var(--g-color-text-dark-secondary);
}

&_size_s {
max-width: $maxSizeS;

#{$block}__title {
@include text-size(subheader-3);

Expand Down

0 comments on commit 3da40bf

Please sign in to comment.