File tree Expand file tree Collapse file tree
web-components/video-card Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7777 < script src ="wp-includes/js/navbar.js "> </ script >
7878
7979 <!-- Web components -->
80- < script src ="web-components/video-card.js "> </ script >
80+ < script src ="web-components/video-card/video-card .js "> </ script >
8181</ head >
8282
8383 <!-- PAGE CONTENT -->
@@ -287,7 +287,7 @@ <h5>IMS support</h5>
287287 </ header >
288288 </ div >
289289
290- <!-- Video card template -->
290+ <!-- Video card template, uncomment for testing -->
291291 <!-- <template id="video-card">
292292 <link href="wp-includes/css/web-components/video-card.css" rel="stylesheet">
293293 <div class="video-card">
File renamed without changes.
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>
5+ <link rel='stylesheet' href="web-components/video-card/video-card.css">
826 <div class="video-card">
837 <div>
848 <h2 class="video-name"></h2>
You can’t perform that action at this time.
0 commit comments