Summary Files Commits Branches @commit @diff @stats
path: root / src / media.less
blob: f27c0686101c0e95735df86c06a4c399a97ead53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Media
.img-responsive {
  display: block;
  height: auto;
  max-width: 100%;
}
.video-responsive {
  height: 0;
  overflow: hidden;
  padding-bottom: 56.25%; /* 16:9 */
  padding-top: 3rem;
  position: relative;

  iframe,
  object,
  embed {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }
  video {
    height: auto;
    max-width: 100%;
    width: 100%;
  }
}