# HG changeset patch # User drewp@bigasterisk.com # Date 1733506030 28800 # Node ID c2c51aae3e312162ae2067f4d9f5f2a1a5a256f9 # Parent 882d0bb0f80135287b2e798e9d879b7173b43f24 pull styles into main.css diff -r 882d0bb0f801 -r c2c51aae3e31 src/VideoPage.ts --- a/src/VideoPage.ts Fri Dec 06 01:16:54 2024 -0800 +++ b/src/VideoPage.ts Fri Dec 06 09:27:10 2024 -0800 @@ -123,49 +123,6 @@ :host { display: block; } - - video-section { - margin: 8px; - } - - .listing a { - font-size: 20px; - text-transform: uppercase; - text-underline-offset: 10px; - } - - .listing a .subdir { - transition: background 0.5s; - transition-delay: 0.1s; - background: #4ea1bd21; - } - - .listing a:hover .subdir { - transition: background 0.5s; - background: #4ea1bd66; - } - - .subdir { - vertical-align: top; - color: white; - padding: 11px; - display: inline-block; - width: 300px; - margin: 5px; - border-radius: 5px; - } - - .subdir:after { - content: " › "; - color: #979797; - } - - #scrim { - position: fixed; - background: #000000b5; - inset: 0; - display: none; - } `, ]; diff -r 882d0bb0f801 -r c2c51aae3e31 src/VideoSection.ts --- a/src/VideoSection.ts Fri Dec 06 01:16:54 2024 -0800 +++ b/src/VideoSection.ts Fri Dec 06 09:27:10 2024 -0800 @@ -1,6 +1,7 @@ -import { LitElement, html, css } from "lit"; +import { LitElement, css, html, unsafeCSS } from "lit"; import { customElement, property } from "lit/decorators.js"; import "shaka-video-element"; +import maincss from "./main.css?inline"; @customElement("video-section") export class VideoSection extends LitElement { @@ -11,40 +12,19 @@ @property({ type: String }) big: boolean = false; static styles = [ + unsafeCSS(maincss), css` :host { display: inline-block; } - section { - box-shadow: 4px 4px 2px #00000029; - border-radius: 5px; - background: #ffffff14; - display: inline-block; - padding: 10px; - color: white; - width: 255px; - } - .video-title { - line-clamp: 2; - height: 3.2em; - } - #imgCrop { - overflow: hidden; - width: 250px; - height: 140px; - background-repeat: no-repeat; - background-position: center; - background-size: contain; - display: inline-block; - } `, ]; render() { return html` -
+
${this.title}
-
+ `; } click() { diff -r 882d0bb0f801 -r c2c51aae3e31 src/main.css --- a/src/main.css Fri Dec 06 01:16:54 2024 -0800 +++ b/src/main.css Fri Dec 06 09:27:10 2024 -0800 @@ -36,3 +36,68 @@ a { color: white; } + +video-section { + margin: 8px; +} + +.listing a { + font-size: 20px; + text-transform: uppercase; + text-underline-offset: 10px; +} + +.listing a .subdir { + transition: background 0.5s; + transition-delay: 0.1s; + background: #4ea1bd21; +} + +.listing a:hover .subdir { + transition: background 0.5s; + background: #4ea1bd66; +} + +.subdir { + vertical-align: top; + color: white; + padding: 11px; + display: inline-block; + width: 300px; + margin: 5px; + border-radius: 5px; +} + +.subdir:after { + content: " › "; + color: #979797; +} + +#scrim { + position: fixed; + background: #000000b5; + inset: 0; + display: none; +} +.videoListing { + box-shadow: 4px 4px 2px #00000029; + border-radius: 5px; + background: #ffffff14; + display: inline-block; + padding: 10px; + color: white; + width: 255px; +} +.video-title { + line-clamp: 2; + height: 3.2em; +} +#imgCrop { + overflow: hidden; + width: 250px; + height: 140px; + background-repeat: no-repeat; + background-position: center; + background-size: contain; + display: inline-block; +}