bulma/sass/components/media.sass

45 lines
813 B
Sass
Raw Normal View History

2016-09-24 17:56:26 +00:00
.media-left,
.media-right
2016-12-22 19:37:38 +00:00
flex-basis: auto
2016-09-24 17:56:26 +00:00
flex-grow: 0
flex-shrink: 0
2016-01-31 22:27:58 +00:00
.media-left
2016-12-22 19:37:38 +00:00
margin-right: 1rem
2016-01-31 22:27:58 +00:00
.media-right
2016-12-22 19:37:38 +00:00
margin-left: 1rem
2016-01-31 22:27:58 +00:00
2016-01-24 00:03:43 +00:00
.media-content
2016-12-22 19:37:38 +00:00
flex-basis: auto
2016-07-31 10:45:56 +00:00
flex-grow: 1
flex-shrink: 1
2016-01-31 22:27:58 +00:00
text-align: left
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