refactor(Video): moved the `.video-wrapper` CSS to where it should be
This commit is contained in:
parent
d67af7bf92
commit
dd55b9cd7c
22
src/App.vue
22
src/App.vue
|
@ -60,26 +60,4 @@ a {
|
|||
.title {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video wrapper.
|
||||
*
|
||||
* @see https://alistapart.com/article/creating-intrinsic-ratios-for-video
|
||||
*/
|
||||
|
||||
.video-wrapper {
|
||||
position: relative;
|
||||
height: 0;
|
||||
padding-bottom: 56.25%;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem
|
||||
}
|
||||
|
||||
.video-wrapper iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left:0;
|
||||
width: 100%;
|
||||
height: 100%
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -46,4 +46,26 @@ h4, h5, h6 {
|
|||
.metadata {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
/**
|
||||
* Video wrapper.
|
||||
*
|
||||
* @see https://alistapart.com/article/creating-intrinsic-ratios-for-video
|
||||
*/
|
||||
|
||||
.video-wrapper {
|
||||
position: relative;
|
||||
height: 0;
|
||||
padding-bottom: 56.25%;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem
|
||||
}
|
||||
|
||||
.video-wrapper iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left:0;
|
||||
width: 100%;
|
||||
height: 100%
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue