Files
bulma/sass/components/level.scss

123 lines
2.0 KiB
SCSS
Raw Normal View History

2022-11-23 17:44:02 +00:00
@import "../utilities/mixins";
2022-11-23 22:53:56 +00:00
.#{$class-prefix}level {
2022-11-23 17:44:02 +00:00
@extend %block;
align-items: center;
justify-content: space-between;
code {
2022-12-06 00:47:43 +00:00
border-radius: getVar("radius");
2022-11-23 17:44:02 +00:00
}
img {
display: inline-block;
vertical-align: top;
}
// Modifiers
&.is-mobile {
display: flex;
2022-11-23 22:53:56 +00:00
.#{$class-prefix}level-left,
.#{$class-prefix}level-right {
2022-11-23 17:44:02 +00:00
display: flex;
}
2022-11-23 22:53:56 +00:00
.#{$class-prefix}level-left + .#{$class-prefix}level-right {
2022-11-23 17:44:02 +00:00
margin-top: 0;
}
2022-11-23 22:53:56 +00:00
.#{$class-prefix}level-item {
2022-11-23 17:44:02 +00:00
&:not(:last-child) {
margin-bottom: 0;
2022-12-06 00:47:43 +00:00
@include ltr-property("margin", getVar("level-item-spacing"));
2022-11-23 17:44:02 +00:00
}
&:not(.is-narrow) {
flex-grow: 1;
}
}
}
// Responsiveness
@include tablet {
display: flex;
2022-11-23 22:53:56 +00:00
& > .#{$class-prefix}level-item {
2022-11-23 17:44:02 +00:00
&:not(.is-narrow) {
flex-grow: 1;
}
}
}
}
2022-11-23 22:53:56 +00:00
.#{$class-prefix}level-item {
2022-11-23 17:44:02 +00:00
align-items: center;
display: flex;
flex-basis: auto;
flex-grow: 0;
flex-shrink: 0;
justify-content: center;
2022-11-23 22:53:56 +00:00
.#{$class-prefix}title,
.#{$class-prefix}subtitle {
2022-11-23 17:44:02 +00:00
margin-bottom: 0;
}
// Responsiveness
@include mobile {
&:not(:last-child) {
2022-12-06 00:47:43 +00:00
margin-bottom: getVar("level-item-spacing");
2022-11-23 17:44:02 +00:00
}
}
}
2022-11-23 22:53:56 +00:00
.#{$class-prefix}level-left,
.#{$class-prefix}level-right {
2022-11-23 17:44:02 +00:00
flex-basis: auto;
flex-grow: 0;
flex-shrink: 0;
2022-11-23 22:53:56 +00:00
.#{$class-prefix}level-item {
2022-11-23 17:44:02 +00:00
// Modifiers
&.is-flexible {
flex-grow: 1;
}
// Responsiveness
@include tablet {
&:not(:last-child) {
2022-12-06 00:47:43 +00:00
@include ltr-property("margin", getVar("level-item-spacing"));
2022-11-23 17:44:02 +00:00
}
}
}
}
2022-11-23 22:53:56 +00:00
.#{$class-prefix}level-left {
2022-11-23 17:44:02 +00:00
align-items: center;
justify-content: flex-start;
// Responsiveness
@include mobile {
2022-11-23 22:53:56 +00:00
& + .#{$class-prefix}level-right {
2022-11-23 17:44:02 +00:00
margin-top: 1.5rem;
}
}
@include tablet {
display: flex;
}
}
2022-11-23 22:53:56 +00:00
.#{$class-prefix}level-right {
2022-11-23 17:44:02 +00:00
align-items: center;
justify-content: flex-end;
// Responsiveness
@include tablet {
display: flex;
}
}