bulma/sass/components/media.sass

46 lines
830 B
Sass
Raw Normal View History

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
border-top: 1px solid rgba($border, 0.5)
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 rgba($border, 0.5)
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
2017-11-07 14:04:53 +00:00
overflow: auto
2017-07-28 20:05:15 +00:00
text-align: left