bulma/sass/components/media.sass

57 lines
1.3 KiB
Sass
Raw Normal View History

$media-border-color: rgba(var(--border-rgb, #{bulmaToRGB($grey-lighter)}), 0.5) !default
2020-01-20 19:39:09 +00:00
$media-spacing: 1rem
$media-spacing-large: 1.5rem
2019-10-13 14:12:30 +00:00
2016-01-24 00:03:43 +00:00
.media
--media-border-color: #{$media-border-color}
--media-spacing: #{$media-spacing}
--media-spacing-large: #{$media-spacing-large}
2016-01-24 00:03:43 +00:00
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)
2016-12-22 19:37:38 +00:00
margin-bottom: 0.75rem
2016-01-24 00:03:43 +00:00
.media
border-top: 1px solid var(--media-border-color)
2016-01-24 00:03:43 +00:00
display: flex
2016-10-30 17:35:39 +00:00
padding-top: 0.75rem
2016-01-24 00:03:43 +00:00
.content:not(:last-child),
.control:not(:last-child)
2016-10-29 17:53:30 +00:00
margin-bottom: 0.5rem
2016-01-24 00:03:43 +00:00
.media
2016-10-29 17:53:30 +00:00
padding-top: 0.5rem
2016-01-24 00:03:43 +00:00
& + .media
2016-10-29 17:53:30 +00:00
margin-top: 0.5rem
2016-01-24 00:03:43 +00:00
& + .media
border-top: 1px solid var(--media-border-color)
margin-top: var(--media-spacing)
padding-top: var(--media-spacing)
2016-04-10 15:27:27 +00:00
// Sizes
2016-01-24 00:03:43 +00:00
&.is-large
& + .media
2020-08-23 11:08:53 +00:00
margin-top: var(--media-spacing-large)
padding-top: var(--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", var(--media-spacing))
2020-01-22 09:14:04 +00:00
.media-right
+ltr-property("margin", var(--media-spacing), false)
2020-01-22 09:14:04 +00:00
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