bulma/sass/elements/container.sass

25 lines
549 B
Sass
Raw Normal View History

2019-05-17 12:50:39 +00:00
$container-offset: (2 * $gap) !default
2017-08-01 20:05:10 +00:00
.container
2019-05-17 11:51:52 +00:00
flex-grow: 1
2017-08-01 20:05:10 +00:00
margin: 0 auto
position: relative
2019-05-17 11:51:52 +00:00
width: auto
&.is-fluid
max-width: none
2019-09-19 14:18:04 +00:00
padding-left: $gap
padding-right: $gap
width: 100%
2018-04-08 19:11:48 +00:00
+desktop
2019-05-17 12:50:39 +00:00
max-width: $desktop - $container-offset
2018-04-08 19:11:48 +00:00
+until-widescreen
2017-08-01 20:05:10 +00:00
&.is-widescreen
2019-05-17 12:50:39 +00:00
max-width: $widescreen - $container-offset
2018-04-08 19:11:48 +00:00
+until-fullhd
2017-08-01 20:05:10 +00:00
&.is-fullhd
2019-05-17 12:50:39 +00:00
max-width: $fullhd - $container-offset
2018-04-08 19:11:48 +00:00
+widescreen
2019-05-17 12:50:39 +00:00
max-width: $widescreen - $container-offset
2018-04-08 19:11:48 +00:00
+fullhd
2019-05-17 12:50:39 +00:00
max-width: $fullhd - $container-offset