Skip to content

Commit

Permalink
Fix SCSS imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ZephireNZ committed Jun 25, 2024
1 parent 9df735c commit f8027ad
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/about/zeph-about.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { css, html, LitElement } from "lit";
import { customElement } from "lit/decorators.js";
import commonStyles from "../styles/common.scss";
import { commonStyles } from "../styles";
import "@material/mwc-icon";
import { mdiCodeBraces, mdiPoll, mdiRobot } from '@mdi/js';

Expand Down
6 changes: 2 additions & 4 deletions src/about/zeph-skills-card.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import { css, html, LitElement } from "lit";
import { customElement } from "lit/decorators.js";
import commonStyles from "../styles/common.scss";

import cardStyles from "../styles/mdc-card.scss";
import { commonStyles, mdcCard } from "../styles";

@customElement('zeph-skills-card')
export class ZephSkillsCard extends LitElement {


static override styles = [
commonStyles,
cardStyles,
mdcCard,
css`
:host {
--mdc-card-margin: 16px 0px;
Expand Down
2 changes: 0 additions & 2 deletions src/declaration.d.ts

This file was deleted.

4 changes: 4 additions & 0 deletions src/styles/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { unsafeCSS } from "lit";

export const commonStyles = unsafeCSS(import("./common.scss?inline"))
export const mdcCard = unsafeCSS(import("./mdc-card.scss?inline"))
1 change: 1 addition & 0 deletions src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
2 changes: 1 addition & 1 deletion src/zeph-404.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { html, LitElement } from "lit";
import { customElement } from "lit/decorators.js";
import commonStyles from "./styles/common.scss";
import { commonStyles } from "./styles";

@customElement('zeph-404')
export class Zeph404 extends LitElement {
Expand Down
2 changes: 1 addition & 1 deletion src/zeph-archive.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { html, LitElement } from "lit";
import { customElement } from "lit/decorators.js";
import commonStyles from "./styles/common.scss";
import { commonStyles } from "./styles";
import { until } from 'lit-html/directives/until.js';
import { openPage, PostMeta } from './util';

Expand Down
2 changes: 1 addition & 1 deletion src/zeph-blog-post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {until} from 'lit-html/directives/until.js';
import {unsafeHTML} from 'lit-html/directives/unsafe-html.js';


import commonStyles from "./styles/common.scss";
import { commonStyles } from "./styles";
import { convertMarkdown, awaitElement } from './util';
import { RouterLocation } from '@vaadin/router';

Expand Down
2 changes: 1 addition & 1 deletion src/zeph-root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "@material/mwc-drawer";
import "@material/mwc-top-app-bar-fixed";
import "@material/mwc-icon-button";
import "@material/mwc-button";
import commonStyles from "./styles/common.scss";
import { commonStyles } from "./styles";
import { mdiTwitter, mdiGithub, mdiLinkedin } from "@mdi/js";

import {LitElement, html, css} from 'lit';
Expand Down

0 comments on commit f8027ad

Please sign in to comment.