2021-02-15 07:50:28 +00:00
|
|
|
@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
|
|
|
|
|
2018-01-29 09:42:34 +00:00
|
|
|
.media
|
|
|
|
align-items: flex-start
|
|
|
|
display: flex
|
2021-02-15 07:50:28 +00:00
|
|
|
text-align: inherit
|
2018-01-29 09:42:34 +00:00
|
|
|
.content:not(:last-child)
|
2021-02-15 07:50:28 +00:00
|
|
|
margin-bottom: $media-content-spacing
|
2018-01-29 09:42:34 +00:00
|
|
|
.media
|
2021-02-15 07:50:28 +00:00
|
|
|
border-top: $media-border-size solid $media-border-color
|
2018-01-29 09:42:34 +00:00
|
|
|
display: flex
|
2021-02-15 07:50:28 +00:00
|
|
|
padding-top: $media-level-1-spacing
|
2018-01-29 09:42:34 +00:00
|
|
|
.content:not(:last-child),
|
|
|
|
.control:not(:last-child)
|
2021-02-15 07:50:28 +00:00
|
|
|
margin-bottom: $media-level-1-content-spacing
|
2018-01-29 09:42:34 +00:00
|
|
|
.media
|
2021-02-15 07:50:28 +00:00
|
|
|
padding-top: $media-level-2-spacing
|
2018-01-29 09:42:34 +00:00
|
|
|
& + .media
|
2021-02-15 07:50:28 +00:00
|
|
|
margin-top: $media-level-2-spacing
|
2018-01-29 09:42:34 +00:00
|
|
|
& + .media
|
2021-02-15 07:50:28 +00:00
|
|
|
border-top: $media-border-size solid $media-border-color
|
|
|
|
margin-top: $media-spacing
|
|
|
|
padding-top: $media-spacing
|
2018-01-29 09:42:34 +00:00
|
|
|
// Sizes
|
|
|
|
&.is-large
|
|
|
|
& + .media
|
2021-02-15 07:50:28 +00:00
|
|
|
margin-top: $media-spacing-large
|
|
|
|
padding-top: $media-spacing-large
|
2018-01-29 09:42:34 +00:00
|
|
|
|
|
|
|
.media-left,
|
|
|
|
.media-right
|
|
|
|
flex-basis: auto
|
|
|
|
flex-grow: 0
|
|
|
|
flex-shrink: 0
|
|
|
|
|
|
|
|
.media-left
|
2021-02-15 07:50:28 +00:00
|
|
|
+ltr-property("margin", $media-spacing)
|
2018-01-29 09:42:34 +00:00
|
|
|
|
|
|
|
.media-right
|
2021-02-15 07:50:28 +00:00
|
|
|
+ltr-property("margin", $media-spacing, false)
|
2018-01-29 09:42:34 +00:00
|
|
|
|
|
|
|
.media-content
|
|
|
|
flex-basis: auto
|
|
|
|
flex-grow: 1
|
|
|
|
flex-shrink: 1
|
2021-02-15 07:50:28 +00:00
|
|
|
text-align: inherit
|
|
|
|
|
|
|
|
+mobile
|
|
|
|
.media-content
|
|
|
|
overflow-x: auto
|