mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
82 lines
1.8 KiB
SCSS
82 lines
1.8 KiB
SCSS
@import "../utilities/mixins";
|
|
|
|
$media-border-color: bulmaRgba($border, 0.5) !default;
|
|
$media-border-size: 1px !default;
|
|
$media-spacing: 1rem !default;
|
|
$media-spacing-large: 1.5rem !default;
|
|
$media-content-spacing: 0.75rem !default;
|
|
$media-level-1-spacing: 0.75rem !default;
|
|
$media-level-1-content-spacing: 0.5rem !default;
|
|
$media-level-2-spacing: 0.5rem !default;
|
|
|
|
.#{$class-prefix}media {
|
|
align-items: flex-start;
|
|
display: flex;
|
|
text-align: inherit;
|
|
|
|
.#{$class-prefix}content:not(:last-child) {
|
|
margin-bottom: $media-content-spacing;
|
|
}
|
|
|
|
.#{$class-prefix}media {
|
|
border-top: $media-border-size solid $media-border-color;
|
|
display: flex;
|
|
padding-top: $media-level-1-spacing;
|
|
|
|
.#{$class-prefix}content:not(:last-child),
|
|
.#{$class-prefix}control:not(:last-child) {
|
|
margin-bottom: $media-level-1-content-spacing;
|
|
}
|
|
|
|
.#{$class-prefix}media {
|
|
padding-top: $media-level-2-spacing;
|
|
|
|
& + .#{$class-prefix}media {
|
|
margin-top: $media-level-2-spacing;
|
|
}
|
|
}
|
|
}
|
|
|
|
& + .#{$class-prefix}media {
|
|
border-top: $media-border-size solid $media-border-color;
|
|
margin-top: $media-spacing;
|
|
padding-top: $media-spacing;
|
|
}
|
|
|
|
// Sizes
|
|
&.is-large {
|
|
& + .#{$class-prefix}media {
|
|
margin-top: $media-spacing-large;
|
|
padding-top: $media-spacing-large;
|
|
}
|
|
}
|
|
}
|
|
|
|
.#{$class-prefix}media-left,
|
|
.#{$class-prefix}media-right {
|
|
flex-basis: auto;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.#{$class-prefix}media-left {
|
|
@include ltr-property("margin", $media-spacing);
|
|
}
|
|
|
|
.#{$class-prefix}media-right {
|
|
@include ltr-property("margin", $media-spacing, false);
|
|
}
|
|
|
|
.#{$class-prefix}media-content {
|
|
flex-basis: auto;
|
|
flex-grow: 1;
|
|
flex-shrink: 1;
|
|
text-align: inherit;
|
|
}
|
|
|
|
@include mobile {
|
|
.#{$class-prefix}media-content {
|
|
overflow-x: auto;
|
|
}
|
|
}
|