diff --git a/src/client/PublicLobby.ts b/src/client/PublicLobby.ts index 1a59f77ea..ee3069504 100644 --- a/src/client/PublicLobby.ts +++ b/src/client/PublicLobby.ts @@ -100,47 +100,50 @@ export class PublicLobby extends LitElement { diff --git a/src/client/UsernameInput.ts b/src/client/UsernameInput.ts index 39b94d73d..1f699da06 100644 --- a/src/client/UsernameInput.ts +++ b/src/client/UsernameInput.ts @@ -47,7 +47,7 @@ export class UsernameInput extends LitElement { /> ${this.validationError ? html`
${this.validationError}
` diff --git a/src/client/components/NewsButton.ts b/src/client/components/NewsButton.ts index 2fda8e1ac..52ecf5479 100644 --- a/src/client/components/NewsButton.ts +++ b/src/client/components/NewsButton.ts @@ -1,4 +1,4 @@ -import { LitElement, css, html } from "lit"; +import { LitElement, html } from "lit"; import { customElement, property } from "lit/decorators.js"; import megaphone from "../../../resources/images/Megaphone.svg"; import { NewsModal } from "../NewsModal"; @@ -9,38 +9,6 @@ export class NewsButton extends LitElement { @property({ type: Boolean }) hidden = false; - static styles = css` - .news-button { - opacity: 0.75; - transition: opacity 0.2s ease; - width: 40px; - height: 40px; - display: flex; - align-items: center; - justify-content: center; - padding: 0; - margin: 0; - border: none; - background: none; - cursor: pointer; - } - - .news-button:hover { - opacity: 1; - } - - .news-button img { - width: 24px; - height: 24px; - display: block; - margin-left: 12px; - } - - .hidden { - display: none !important; - } - `; - private handleClick() { const newsModal = document.querySelector("news-modal") as NewsModal; if (newsModal) { @@ -50,9 +18,16 @@ export class NewsButton extends LitElement { render() { return html` -
-
`; diff --git a/src/client/index.html b/src/client/index.html index 35454680e..5d1985adb 100644 --- a/src/client/index.html +++ b/src/client/index.html @@ -99,6 +99,11 @@ display: none; } } + + /* display:none if child has class parent-hidden since we can't use shadow DOM in Lit due to Tailwind */ + *:has(> .parent-hidden) { + display: none; + } @@ -223,12 +228,12 @@
- - + +
- +