Skip to content

Commit 482c223

Browse files
authored
lesson.scss: styling for DIVs for embedding Youtube videos (#503)
1 parent b11ce7f commit 482c223

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

assets/css/lesson.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,28 @@ ul.nav.nav-tabs li a { line-height: 24px; } // or 1.714285716
110110
// 7.07 on E1E1E1: https://webaim.org/resources/contrastchecker/?fcolor=204A6F&bcolor=E1E1E1&api (tab panels)
111111
a { color: #204A6F; }
112112

113+
// .yt-wrapper2 can be used for limiting maximum width of YouTube iframes only
114+
.yt-wrapper2 { max-width: 100%; margin: 0 auto; }
115+
116+
// Use full width on small displays
117+
@media only screen and (max-width: 600px) { .yt-wrapper2 { max-width: 100%; } }
118+
119+
.yt-wrapper {
120+
height: 0;
121+
margin-top: 10px;
122+
padding-bottom: 56.25%;
123+
position: relative;
124+
width: 100%;
125+
}
126+
127+
.yt-frame {
128+
height: 100%;
129+
left: 0;
130+
position: absolute;
131+
top: 0;
132+
width: 100%;
133+
}
134+
113135
//----------------------------------------
114136
// Specialized blockquote environments for learning objectives, callouts, etc.
115137
//----------------------------------------

0 commit comments

Comments
 (0)