Replies: 1 comment 1 reply
-
|
If I am not mistaken, the Full width container only works when adding the This is the container SCSS used to add both classes: @if map.get($modules, "layout/container") and $enable-classes {
/**
* Container
*/
.container,
.container-fluid {
width: 100%;
margin-right: auto;
margin-left: auto;
padding-right: var(#{$css-var-prefix}spacing);
padding-left: var(#{$css-var-prefix}spacing);
}
.container {
$first-breakpoint: true;
@each $key, $values in $breakpoints {
@if $values {
@media (min-width: map.get($values, "breakpoint")) {
max-width: map.get($values, "viewport");
@if $first-breakpoint {
$first-breakpoint: false;
padding-right: 0;
padding-left: 0;
}
}
}
}
}
}You have some options, pick one you like best:
[data-layout="container"],
[data-layout="container-fluid"] {
width: 100%;
// ...
}
main {
width: 100%;
// container styles
}no class needed. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i really like the classless version, but according to the document there were too container style one is fix width while the other is full-width , so if i use classless version, how could i tell which style i want? since i already choose not provide class name
Beta Was this translation helpful? Give feedback.
All reactions