mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
123 lines
2.0 KiB
SCSS
123 lines
2.0 KiB
SCSS
@import "../utilities/mixins";
|
|
|
|
.#{$class-prefix}level {
|
|
@extend %block;
|
|
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
|
|
code {
|
|
border-radius: getVar("radius");
|
|
}
|
|
|
|
img {
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
}
|
|
|
|
// Modifiers
|
|
&.is-mobile {
|
|
display: flex;
|
|
|
|
.#{$class-prefix}level-left,
|
|
.#{$class-prefix}level-right {
|
|
display: flex;
|
|
}
|
|
|
|
.#{$class-prefix}level-left + .#{$class-prefix}level-right {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.#{$class-prefix}level-item {
|
|
&:not(:last-child) {
|
|
margin-bottom: 0;
|
|
|
|
@include ltr-property("margin", getVar("level-item-spacing"));
|
|
}
|
|
|
|
&:not(.is-narrow) {
|
|
flex-grow: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Responsiveness
|
|
@include tablet {
|
|
display: flex;
|
|
|
|
& > .#{$class-prefix}level-item {
|
|
&:not(.is-narrow) {
|
|
flex-grow: 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.#{$class-prefix}level-item {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-basis: auto;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
justify-content: center;
|
|
|
|
.#{$class-prefix}title,
|
|
.#{$class-prefix}subtitle {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
// Responsiveness
|
|
@include mobile {
|
|
&:not(:last-child) {
|
|
margin-bottom: getVar("level-item-spacing");
|
|
}
|
|
}
|
|
}
|
|
|
|
.#{$class-prefix}level-left,
|
|
.#{$class-prefix}level-right {
|
|
flex-basis: auto;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
|
|
.#{$class-prefix}level-item {
|
|
// Modifiers
|
|
&.is-flexible {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
// Responsiveness
|
|
@include tablet {
|
|
&:not(:last-child) {
|
|
@include ltr-property("margin", getVar("level-item-spacing"));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.#{$class-prefix}level-left {
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
|
|
// Responsiveness
|
|
@include mobile {
|
|
& + .#{$class-prefix}level-right {
|
|
margin-top: 1.5rem;
|
|
}
|
|
}
|
|
|
|
@include tablet {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
.#{$class-prefix}level-right {
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
|
|
// Responsiveness
|
|
@include tablet {
|
|
display: flex;
|
|
}
|
|
}
|