Skip to content

Commit

Permalink
fix: cap height & font-size scaling for Progress Bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Aug 11, 2023
1 parent ccae01a commit d2e299b
Showing 1 changed file with 15 additions and 29 deletions.
44 changes: 15 additions & 29 deletions src/blocks/blocks/progress-bar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -189,34 +189,20 @@ html[amp] {

@media ( max-width: 600px ) {
.wp-block-themeisle-blocks-progress-bar {
.wp-block-themeisle-blocks-progress-bar__area {
font-size: 20px;
height: 30px;
:is(
.wp-block-themeisle-blocks-progress-bar__area,
.wp-block-themeisle-blocks-progress-bar__area__title,
.wp-block-themeisle-blocks-progress-bar__area__title span,
.wp-block-themeisle-blocks-progress-bar__progress,
.wp-block-themeisle-blocks-progress-bar__area__bar,
.wp-block-themeisle-blocks-progress-bar__progress__append
) {
height: clamp(0px, var(--height), 45px);
font-size: clamp(0px, var(--font-size), 24px);
}

.wp-block-themeisle-blocks-progress-bar__area__title {
font-size: 20px;
height: 30px;

span {
font-size: 20px;
height: 30px;
}
}

.wp-block-themeisle-blocks-progress-bar__progress {
font-size: 20px;
height: 30px;
}

.wp-block-themeisle-blocks-progress-bar__area__bar {
font-size: 20px;
height: 30px;
}

.wp-block-themeisle-blocks-progress-bar__progress__append {
font-size: 20px;
height: 30px;

:is(.wp-block-themeisle-blocks-progress-bar__outer__title, .wp-block-themeisle-blocks-progress-bar__outer__value) {
font-size: clamp(0px, var(--title-font-size), 24px);
}
}
}
}
}

0 comments on commit d2e299b

Please sign in to comment.