mirror of
https://github.com/moparisthebest/www.moparscape.org
synced 2024-12-26 01:18:54 -05:00
improved consistency of video and image block styling
This commit is contained in:
parent
b4584bd01c
commit
d10ba20d14
@ -43,37 +43,23 @@ article {
|
|||||||
font-size: 2.0em; font-style: italic;
|
font-size: 2.0em; font-style: italic;
|
||||||
line-height: 1.3em;
|
line-height: 1.3em;
|
||||||
}
|
}
|
||||||
img {
|
img, video, .flash-video {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
border: .5em solid #fff;
|
border: .5em solid #fff;
|
||||||
@include border-radius(.3em);
|
@include border-radius(.3em);
|
||||||
@include box-shadow(rgba(#000, .15) 0 1px 4px);
|
@include box-shadow(rgba(#000, .15) 0 1px 4px);
|
||||||
@include box-sizing(border-box);
|
@include box-sizing(border-box);
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 auto 1.5em;
|
margin: 0 auto 1.5em;
|
||||||
&.left {
|
|
||||||
float: left;
|
|
||||||
margin-right: 1.5em;
|
|
||||||
}
|
|
||||||
&.right {
|
|
||||||
float: right;
|
|
||||||
margin-left: 1.5em;
|
|
||||||
}
|
|
||||||
&.left, &.right {
|
|
||||||
margin-bottom: .8em;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
img, video { max-width: 100%; height: auto; }
|
img {
|
||||||
video {
|
&.left { float: left; margin-right: 1.5em; }
|
||||||
width: 100%; display: block; margin-bottom: 1.5em;
|
&.right { float: right; margin-left: 1.5em; }
|
||||||
padding: .8em; background: #fff; border: 1px solid #eee;
|
&.left, &.right { margin-bottom: .8em; }
|
||||||
@include box-sizing(border-box);
|
|
||||||
}
|
}
|
||||||
|
video { display: block; margin-bottom: 1.5em; width: 100%; }
|
||||||
.flash-video {
|
.flash-video {
|
||||||
max-width: 100%;
|
|
||||||
margin-bottom: 1.5em;
|
|
||||||
@include box-sizing(border-box);
|
|
||||||
padding: .8em; background: #fff; border: 1px solid #eee;
|
|
||||||
> div {
|
> div {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
|
Loading…
Reference in New Issue
Block a user