Summary Files Commits Branches @commit @diff @stats
path: root / src / media.less
blob: a3e055ef98379f26310ae9a92b104484abb4ca78 (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;
  max-width: 100%;
  height: auto;
}
.video-responsive {
  position: relative;
  height: 0;
  padding-top: 3rem;
  padding-bottom: 56.25%; /* 16:9 */
  overflow: hidden;

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