deps.rs/assets/styles/bulma/components/media.sass

60 lines
1.4 KiB
Sass
Raw Normal View History

@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
text-align: inherit
2018-01-29 09:42:34 +00:00
.content:not(:last-child)
margin-bottom: $media-content-spacing
2018-01-29 09:42:34 +00:00
.media
border-top: $media-border-size solid $media-border-color
2018-01-29 09:42:34 +00:00
display: flex
padding-top: $media-level-1-spacing
2018-01-29 09:42:34 +00:00
.content:not(:last-child),
.control:not(:last-child)
margin-bottom: $media-level-1-content-spacing
2018-01-29 09:42:34 +00:00
.media
padding-top: $media-level-2-spacing
2018-01-29 09:42:34 +00:00
& + .media
margin-top: $media-level-2-spacing
2018-01-29 09:42:34 +00:00
& + .media
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
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
+ltr-property("margin", $media-spacing)
2018-01-29 09:42:34 +00:00
.media-right
+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
text-align: inherit
+mobile
.media-content
overflow-x: auto