Skip to content

Commit

Permalink
Correct fluid bars being container width independent calculated in la…
Browse files Browse the repository at this point in the history
…yout.scss
  • Loading branch information
diqidoq committed Jan 24, 2024
1 parent 561c5bd commit 57e79f9
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions scss/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,26 @@ $sets-fluid: 80, 90, 100;
.set-fixed-#{$set} {
@media (min-width: $set) {
width: $set$o;
& [class*="bar"] {
$v: math.div($set, $elements);
width: $v$o;
}
@for $i from 1 through $elements {
& ._#{$i}of#{$elements}bars {
& .play#{$i}of#{$elements} {
$v: math.div($set, $elements) * $i;
width: $v$o;
}
}
}
}
}

@each $set in $sets-fluid {
.set-fluid-#{$set} {
$v: #$set + 0%;
width: $v$o;
& [class*="bar"] {
$v: math.div($set, $elements) + 0%;
width: $v$o;
}
@for $i from 1 through $elements {
& ._#{$i}of#{$elements}bars {
$v: math.div($set, $elements) * $i + 0%;
width: $v$o;
}
}
$v: $set + 0%;
width: $v$o;
}
}

@for $i from 1 through $elements {
[class*="set-fluid-"] .play#{$i}of#{$elements} {
$v: math.div(100%, $elements) * $i;
width: $v$o;
}
}

0 comments on commit 57e79f9

Please sign in to comment.