bulma/sass/components/media.sass

60 lines
1.4 KiB
Sass
Raw Permalink Normal View History

2020-10-31 23:52:27 +00:00
@import "../utilities/mixins"
2020-01-05 13:27:54 +00:00
$media-border-color: bulmaRgba($border, 0.5) !default
2020-10-31 18:53:20 +00:00
$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
2019-10-13 14:12:30 +00:00
2016-01-24 00:03:43 +00:00
.media
align-items: flex-start
display: flex
2020-01-20 19:39:09 +00:00
text-align: inherit
2016-01-24 00:03:43 +00:00
.content:not(:last-child)
2020-10-31 18:53:20 +00:00
margin-bottom: $media-content-spacing
2016-01-24 00:03:43 +00:00
.media
2020-10-31 18:53:20 +00:00
border-top: $media-border-size solid $media-border-color
2016-01-24 00:03:43 +00:00
display: flex
2020-10-31 18:53:20 +00:00
padding-top: $media-level-1-spacing
2016-01-24 00:03:43 +00:00
.content:not(:last-child),
.control:not(:last-child)
2020-10-31 18:53:20 +00:00
margin-bottom: $media-level-1-content-spacing
2016-01-24 00:03:43 +00:00
.media
2020-10-31 18:53:20 +00:00
padding-top: $media-level-2-spacing
2016-01-24 00:03:43 +00:00
& + .media
2020-10-31 18:53:20 +00:00
margin-top: $media-level-2-spacing
2016-01-24 00:03:43 +00:00
& + .media
2020-10-31 18:53:20 +00:00
border-top: $media-border-size solid $media-border-color
2020-01-20 19:39:09 +00:00
margin-top: $media-spacing
padding-top: $media-spacing
2016-04-10 15:27:27 +00:00
// Sizes
2016-01-24 00:03:43 +00:00
&.is-large
& + .media
2020-01-20 19:39:09 +00:00
margin-top: $media-spacing-large
padding-top: $media-spacing-large
2017-07-28 20:05:15 +00:00
.media-left,
.media-right
flex-basis: auto
flex-grow: 0
flex-shrink: 0
2020-01-22 09:14:04 +00:00
.media-left
+ltr-property("margin", $media-spacing)
.media-right
+ltr-property("margin", $media-spacing, false)
2017-07-28 20:05:15 +00:00
.media-content
flex-basis: auto
flex-grow: 1
flex-shrink: 1
2020-01-20 19:39:09 +00:00
text-align: inherit
2018-09-04 13:37:15 +00:00
+mobile
.media-content
overflow-x: auto