bulma/sass/components/media.sass

51 lines
917 B
Sass
Raw Normal View History

2020-01-05 13:27:54 +00:00
$media-border-color: bulmaRgba($border, 0.5) !default
2019-10-13 14:12:30 +00:00
2016-01-24 00:03:43 +00:00
.media
align-items: flex-start
display: flex
2016-01-31 22:27:58 +00:00
text-align: left
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
2019-10-13 14:12:30 +00:00
border-top: 1px solid $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
2019-10-13 14:12:30 +00:00
border-top: 1px solid $media-border-color
2016-10-29 17:53:30 +00:00
margin-top: 1rem
padding-top: 1rem
2016-04-10 15:27:27 +00:00
// Sizes
2016-01-24 00:03:43 +00:00
&.is-large
& + .media
2016-10-30 17:35:39 +00:00
margin-top: 1.5rem
padding-top: 1.5rem
2017-07-28 20:05:15 +00:00
.media-left,
.media-right
flex-basis: auto
flex-grow: 0
flex-shrink: 0
.media-left
margin-right: 1rem
.media-right
margin-left: 1rem
.media-content
flex-basis: auto
flex-grow: 1
flex-shrink: 1
text-align: left
2018-09-04 13:37:15 +00:00
+mobile
.media-content
overflow-x: auto