Skip to content

Commit

Permalink
Removed container xs and added container doc page
Browse files Browse the repository at this point in the history
  • Loading branch information
amir2mi committed Jan 14, 2022
1 parent 66400fe commit f8ef068
Show file tree
Hide file tree
Showing 6 changed files with 225 additions and 1,433 deletions.
4 changes: 0 additions & 4 deletions dist/css/flatify-noprefix.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,619 changes: 194 additions & 1,425 deletions dist/js/flatify.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/maps/flatify-noprefix.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/maps/flatify.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions scss/helpers/_container.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
@use "sass:math";

@each $name, $value in $RESPONSIVE_BREAKPOINTS {
.container-#{$name} {
max-width: math.floor($value);
// xs and sm are the same
@if $name != "xs" {
.container-#{$name} {
max-width: math.floor($value);
}
}
}

Expand Down
24 changes: 24 additions & 0 deletions website/docs/helpers/containers.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: Containers
---

To have a clean layout using containers to limit the width will be a practical example, there are some predefined container classes that you can use:

`.container-sm`
`.container-md`
`.container-lg`
`.container-xl`
`.container-xxl`

These classes are generated based on the `$RESPONSIVE_BREAKPOINTS` variable inside the `_config.scss` file:

```scss title="_config.scss"
$RESPONSIVE_BREAKPOINTS: (
xs: 575.98px,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px,
xxl: 1400px,
) !default;
```

0 comments on commit f8ef068

Please sign in to comment.