hugo-theme-introduction/assets/vendor/bulma/sass/components/media.sass

53 lines
1 KiB
Sass
Raw Normal View History

$media-border-color: bulmaRgba($border, 0.5) !default
$media-spacing: 1rem
$media-spacing-large: 1.5rem
2018-07-10 07:23:19 +00:00
.media
align-items: flex-start
display: flex
text-align: inherit
2018-07-10 07:23:19 +00:00
.content:not(:last-child)
margin-bottom: 0.75rem
.media
border-top: 1px solid $media-border-color
2018-07-10 07:23:19 +00:00
display: flex
padding-top: 0.75rem
.content:not(:last-child),
.control:not(:last-child)
margin-bottom: 0.5rem
.media
padding-top: 0.5rem
& + .media
margin-top: 0.5rem
& + .media
border-top: 1px solid $media-border-color
margin-top: $media-spacing
padding-top: $media-spacing
2018-07-10 07:23:19 +00:00
// Sizes
&.is-large
& + .media
margin-top: $media-spacing-large
padding-top: $media-spacing-large
2018-07-10 07:23:19 +00:00
.media-left,
.media-right
flex-basis: auto
flex-grow: 0
flex-shrink: 0
.media-left
+ltr-property("margin", $media-spacing)
2018-07-10 07:23:19 +00:00
.media-right
+ltr-property("margin", $media-spacing, false)
2018-07-10 07:23:19 +00:00
.media-content
flex-basis: auto
flex-grow: 1
flex-shrink: 1
text-align: inherit
+mobile
.media-content
overflow-x: auto