File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11: root {
22 /* Color */
3- --white : # fff ;
4- --black : # 000 ;
53 --blue : # 0f62fe ;
64 /* Background Color */
75 --bg-light-gray : # f4f4f4 ;
86
97 /* Sizing */
10- --plex-14 : 0.875em ;
11- --plex-16 : 1em ;
128 --plex-18 : 1.125em ;
13- --plex-20 : 1.25em ;
14- --plex-24 : 1.5em ;
15- --plex-28 : 1.75em ;
16- --plex-36 : 2.25em ;
17- --plex-72 : 4.5em ;
18- --plex-180 : 11.25em ;
9+ --plex-24 : 1.5em ;
1910}
2011
2112h2 {
Original file line number Diff line number Diff line change 22const template = document . createElement ( 'template' ) ;
33template . innerHTML =
44`
5+ <style>
6+ :root {
7+ /* Color */
8+ --blue: #0f62fe;
9+ /* Background Color */
10+ --bg-light-gray: #f4f4f4;
11+
12+ /* Sizing */
13+ --plex-18: 1.125em;
14+ --plex-24: 1.5em;
15+ }
16+
17+ h2 {
18+ font-weight: 400;
19+ font-size: var(--plex-24);
20+ padding: 0em;
21+ margin: 0em;
22+ }
23+
24+ p {
25+ font-size: var(--plex-18);
26+ }
27+
28+ a {
29+ text-decoration: none;
30+ color: var(--blue);
31+ }
32+
33+ /* Styling for a group of links */
34+ .link-g {
35+ margin-top: 1em;
36+ display: flex;
37+ flex-flow: column nowrap;
38+ }
39+
40+ .link-g a {
41+ margin: 0.2em 0em;
42+ }
43+
44+ /* Styling for video card */
45+ .video-card {
46+ background-color: var(--bg-light-gray);
47+ margin: 1em;
48+ padding: 2em;
49+ display: flex;
50+ flex-flow: column nowrap;
51+ }
52+
53+ .video-card div:nth-child(0) {
54+ flex-grow: 1;
55+ }
56+
57+ /* Places 'watch now' at the bottom of the video card */
58+ .video-card div:nth-child(1) {
59+ flex-grow: 4;
60+ }
61+
62+ /* Styling for inline group (level, time) */
63+ .inline-g {
64+ display: flex;
65+ flex-flow: row wrap;
66+ gap: 1em;
67+ }
68+
69+ .inline-g p {
70+ padding: 0em;
71+ margin: 0em;
72+ }
73+
74+ /* 1024px and above screen sizes */
75+ @media screen and (min-width: 64em) {
76+ /* Set consistent height for video card */
77+ .video-card {
78+ height: 18.75em;
79+ }
80+ }
81+ </style>
582 <div class="video-card">
683 <div>
784 <h2 class="video-name"></h2>
You can’t perform that action at this time.
0 commit comments