1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-12 08:05:18 +01:00
blog/_src/_assets/styl/_kremalicious/media.styl

50 lines
880 B
Stylus
Raw Normal View History

2014-07-12 02:00:18 +02:00
//
// kremalicious3
// --------------
// Media
//
// Responsive Media
/////////////////////////////////////
2015-11-20 18:13:34 +01:00
figure, img, svg, video, audio, embed, canvas, picture
2014-07-12 21:22:47 +02:00
max-width: 100%
height: auto
margin: 0 auto
display: block
2014-07-12 02:00:18 +02:00
border-radius: $border-radius-base
// Images
/////////////////////////////////////
img
2014-07-21 21:07:43 +02:00
vertical-align: middle
2014-07-12 02:00:18 +02:00
// Media Positioning
/////////////////////////////////////
img.alignleft,
img.alignright,
img.aligncenter
2014-07-12 21:22:47 +02:00
float: none
display: block
margin: $spacer auto
2014-07-12 02:00:18 +02:00
@media $breakpoint2
2014-07-12 21:22:47 +02:00
img.alignleft
margin: 0 $spacer $spacer 0
2014-07-12 21:22:47 +02:00
img.alignright
margin: 0 0 $spacer $spacer
// Image frame style
/////////////////////////////////////
.media-frame
@extend .transition
border: 2px solid transparent
border-radius: $border-radius-base
box-shadow: 0 1px 3px alpha($brand-grey,.2)