Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
XhmikosR
9b92b3daac
Merge branch 'main' into main-mc-width-utilities-split 2020-11-11 11:33:37 +02:00
Martijn Cuppens
9716f9b2d7 Width utilities / col split 2020-11-05 19:08:13 +01:00
3 changed files with 6 additions and 6 deletions

View file

@ -110,10 +110,13 @@ $utilities: map-merge(
// Sizing utilities
"width": (
property: width,
responsive: true,
class: w,
values: (
25: 25%,
33: 100% / 3,
50: 50%,
66: 200% / 3,
75: 75%,
100: 100%,
auto: auto

View file

@ -27,13 +27,11 @@
}
@mixin make-col($size, $columns: $grid-columns) {
flex: 0 0 auto;
width: percentage($size / $columns);
flex: 0 0 percentage($size / $columns);
}
@mixin make-col-auto() {
flex: 0 0 auto;
width: auto;
}
@mixin make-col-offset($size, $columns: $grid-columns) {
@ -48,8 +46,7 @@
// style grid.
@mixin row-cols($count) {
> * {
flex: 0 0 auto;
width: 100% / $count;
flex: 0 0 (100% / $count);
}
}

View file

@ -300,7 +300,7 @@ The classes can be used together with utilities to create responsive floated ima
{{< example >}}
<div class="clearfix">
{{< placeholder width="100%" height="210" class="col-md-6 float-md-right mb-3 ml-md-3" text="Responsive floated image" >}}
{{< placeholder width="100%" height="210" class="w-md-50 float-md-right mb-3 ml-md-3" text="Responsive floated image" >}}
<p>
Donec ullamcorper nulla non metus auctor fringilla. Nulla vitae elit libero, a pharetra augue. Fusce dapibus, tellus ac cursus commodo, tortor mauris paddenstoel nibh, ut fermentum massa justo sit amet risus. Lorem ipsum dolor sit amet, consectetur adipiscing elit.