bulma/sass/components/level.sass

73 lines
1.2 KiB
Sass
Raw Normal View History

2017-07-28 20:05:15 +00:00
.level
+block
align-items: center
justify-content: space-between
code
border-radius: $radius
img
display: inline-block
vertical-align: top
// Modifiers
&.is-mobile
display: flex
.level-left,
.level-right
display: flex
.level-left + .level-right
margin-top: 0
.level-item
&:not(:last-child)
margin-bottom: 0
&:not(.is-narrow)
flex-grow: 1
// Responsiveness
+tablet
display: flex
& > .level-item
&:not(.is-narrow)
flex-grow: 1
2016-05-08 00:35:43 +00:00
.level-item
2016-10-30 17:35:39 +00:00
align-items: center
display: flex
2016-12-22 19:37:38 +00:00
flex-basis: auto
flex-grow: 0
flex-shrink: 0
2016-10-30 17:35:39 +00:00
justify-content: center
2016-05-08 00:35:43 +00:00
.title,
.subtitle
margin-bottom: 0
// Responsiveness
+mobile
&:not(:last-child)
2016-10-30 17:35:39 +00:00
margin-bottom: 0.75rem
2016-05-08 00:35:43 +00:00
.level-left,
.level-right
2016-12-22 19:37:38 +00:00
flex-basis: auto
flex-grow: 0
flex-shrink: 0
2016-05-08 00:35:43 +00:00
.level-item
&:not(:last-child)
2016-10-30 17:35:39 +00:00
margin-right: 0.75rem
2016-05-08 00:35:43 +00:00
// Modifiers
&.is-flexible
2016-07-31 10:45:56 +00:00
flex-grow: 1
2016-05-08 00:35:43 +00:00
.level-left
2016-10-30 17:35:39 +00:00
align-items: center
justify-content: flex-start
2016-05-08 00:35:43 +00:00
// Responsiveness
+mobile
& + .level-right
2016-10-30 17:35:39 +00:00
margin-top: 1.5rem
2016-05-08 00:35:43 +00:00
+tablet
display: flex
.level-right
2016-10-30 17:35:39 +00:00
align-items: center
justify-content: flex-end
2016-05-08 00:35:43 +00:00
// Responsiveness
+tablet
display: flex