Skip to content

Commit

Permalink
Width Utilities 🫤
Browse files Browse the repository at this point in the history
  • Loading branch information
ltouroumov committed Jul 4, 2024
1 parent 384e5c9 commit fc15b00
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
13 changes: 10 additions & 3 deletions assets/css/bootstrap/_config.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "bootstrap/scss/mixins/banner";

@include bsBanner("");

// Configuration
Expand All @@ -9,8 +10,14 @@
@import "bootstrap/scss/mixins";
@import "bootstrap/scss/utilities";

// Helpers
@import "bootstrap/scss/helpers";
$widths: map-merge(
map-get(map-get($utilities, "width"), "values"),
(20: 20%, 14: 14%, 12: 12%, 11: 11%, 10: 10%, 9: 9%)
);

// Utilities
@import "bootstrap/scss/utilities/api";
@import "utils/width";
@import "bootstrap/scss/utilities/api";

// Helpers
@import "bootstrap/scss/helpers";
2 changes: 1 addition & 1 deletion assets/css/bootstrap/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

body {
background: $body-bg-dark;
}
}
6 changes: 6 additions & 0 deletions assets/css/bootstrap/utils/_width.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@each $width, $size in $widths {
.w-#{$width} {
flex: 0 0 $size !important;
max-width: $size !important;
}
}
3 changes: 0 additions & 3 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@
<slot />
</div>
</template>
<script setup lang="ts"></script>

<style lang="scss"></style>

0 comments on commit fc15b00

Please sign in to comment.