From 84c9841d7b89533feacb486d4651b5b180f70bd8 Mon Sep 17 00:00:00 2001 From: Michal Vanko Date: Tue, 28 Dec 2021 14:16:06 +0100 Subject: [PATCH] Move styles to $lib --- src/components/Footer.css.ts | 4 +-- src/components/Nav.css.ts | 4 +-- src/components/blog/ArticleFooter.css.ts | 27 +++++----------- src/components/blog/ArticleFooter.svelte | 4 ++- src/components/portfolio/work.css.ts | 15 +++++++++ src/components/portfolio/workhistory.svelte | 35 --------------------- src/{ => lib}/styles/global.css.ts | 0 src/lib/styles/scoops.css.ts | 10 ++++++ src/{ => lib}/styles/sprinkles.css.ts | 0 src/{ => lib}/styles/vars.css.ts | 0 src/routes/__layout.svelte | 2 +- src/routes/blog/blog.css.ts | 2 +- src/routes/blog/index.css.ts | 4 +-- src/routes/index.css.ts | 2 +- src/routes/layout.css.ts | 4 +-- src/routes/portfolio/index.css.ts | 2 +- src/styles/variables.module.less | 35 --------------------- 17 files changed, 48 insertions(+), 102 deletions(-) create mode 100644 src/components/portfolio/work.css.ts delete mode 100644 src/components/portfolio/workhistory.svelte rename src/{ => lib}/styles/global.css.ts (100%) create mode 100644 src/lib/styles/scoops.css.ts rename src/{ => lib}/styles/sprinkles.css.ts (100%) rename src/{ => lib}/styles/vars.css.ts (100%) delete mode 100644 src/styles/variables.module.less diff --git a/src/components/Footer.css.ts b/src/components/Footer.css.ts index cd65c3c..2aa28af 100644 --- a/src/components/Footer.css.ts +++ b/src/components/Footer.css.ts @@ -1,6 +1,6 @@ import { globalStyle, style } from '@vanilla-extract/css' import { radialGradient, rgba, transparentize } from 'polished' -import { sprinkles } from '../styles/sprinkles.css' +import { sprinkles } from '$lib/styles/sprinkles.css' import { breakpoints, colors, @@ -8,7 +8,7 @@ import { menuBackground, transparent, vars, -} from '../styles/vars.css' +} from '$lib/styles/vars.css' export const siteFooterClass = style([ sprinkles({ diff --git a/src/components/Nav.css.ts b/src/components/Nav.css.ts index c21e052..e8496de 100644 --- a/src/components/Nav.css.ts +++ b/src/components/Nav.css.ts @@ -1,7 +1,7 @@ import { globalStyle, style } from '@vanilla-extract/css' import { radialGradient, transparentize } from 'polished' -import { menuBackground, transparent, vars } from '../styles/vars.css' -import { sprinkles } from '../styles/sprinkles.css' +import { menuBackground, transparent, vars } from '$lib/styles/vars.css' +import { sprinkles } from '$lib/styles/sprinkles.css' export const navigationClass = style([ sprinkles({ diff --git a/src/components/blog/ArticleFooter.css.ts b/src/components/blog/ArticleFooter.css.ts index 52f476f..b25708c 100644 --- a/src/components/blog/ArticleFooter.css.ts +++ b/src/components/blog/ArticleFooter.css.ts @@ -1,7 +1,4 @@ -import { style } from '@vanilla-extract/css' -import { desaturate, transparentize } from 'polished' -import { colors } from '../../styles/vars.css' -import { sprinkles } from '../../styles/sprinkles.css' +import { sprinkles } from '$lib/styles/sprinkles.css' export const tagsListClass = sprinkles({ listStyle: 'none', @@ -24,18 +21,10 @@ export const publishedLabelClass = sprinkles({ color: 'tintedText', }) -export const footerClass = style([ - sprinkles({ - display: 'flex', - fontSize: 'sm', - justifyContent: 'space-between', - paddingTop: '1x', - marginTop: '2x', - }), - { - borderTop: `1px solid ${transparentize( - 0.6, - desaturate(0.5, colors.tearkiss) - )}`, - }, -]) +export const footerClass = sprinkles({ + display: 'flex', + fontSize: 'sm', + justifyContent: 'space-between', + paddingTop: '1x', + marginTop: '2x', +}) diff --git a/src/components/blog/ArticleFooter.svelte b/src/components/blog/ArticleFooter.svelte index 79b6251..d4d4950 100644 --- a/src/components/blog/ArticleFooter.svelte +++ b/src/components/blog/ArticleFooter.svelte @@ -1,4 +1,6 @@ -