mirror of
https://github.com/jgthms/bulma.git
synced 2024-12-12 13:28:30 +00:00
92da150c4e
* Update level.sass Removing `margin-right: 0.75rem` from the `level is-mobile` in #1153 changed the spacing of icons used in the `level-items`. This pr restores the margin-right for the icon class only to restore the behavior as before while keeping changes made in #1153. * Update level.sass the margin for icons should be only for level is-mobile. * Update level.sass * add margin-right to level-item * add margin to .level.is-mobile .level-item made suggested changes
76 lines
1.3 KiB
Sass
76 lines
1.3 KiB
Sass
.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
|
|
margin-right: 0.75rem
|
|
// Responsiveness
|
|
+tablet
|
|
display: flex
|
|
& > .level-item
|
|
&:not(.is-narrow)
|
|
flex-grow: 1
|
|
|
|
.level-item
|
|
align-items: center
|
|
display: flex
|
|
flex-basis: auto
|
|
flex-grow: 0
|
|
flex-shrink: 0
|
|
justify-content: center
|
|
.title,
|
|
.subtitle
|
|
margin-bottom: 0
|
|
// Responsiveness
|
|
+mobile
|
|
&:not(:last-child)
|
|
margin-bottom: 0.75rem
|
|
|
|
.level-left,
|
|
.level-right
|
|
flex-basis: auto
|
|
flex-grow: 0
|
|
flex-shrink: 0
|
|
.level-item
|
|
// Modifiers
|
|
&.is-flexible
|
|
flex-grow: 1
|
|
// Responsiveness
|
|
+tablet
|
|
&:not(:last-child)
|
|
margin-right: 0.75rem
|
|
|
|
.level-left
|
|
align-items: center
|
|
justify-content: flex-start
|
|
// Responsiveness
|
|
+mobile
|
|
& + .level-right
|
|
margin-top: 1.5rem
|
|
+tablet
|
|
display: flex
|
|
|
|
.level-right
|
|
align-items: center
|
|
justify-content: flex-end
|
|
// Responsiveness
|
|
+tablet
|
|
display: flex
|