From cdc84ec2cbc8d8355cf9879a7145481338a62eff Mon Sep 17 00:00:00 2001 From: cballevre Date: Thu, 28 Nov 2024 10:34:49 +0100 Subject: [PATCH] refactor: Use stylus to manage styles --- src/styles/services/{claudy.css => claudy.styl} | 2 +- src/styles/services/{claudySupport.css => claudySupport.styl} | 0 src/styles/services/index.css | 3 --- src/styles/services/index.styl | 3 +++ src/styles/services/{support.css => support.styl} | 0 src/targets/intents/index.jsx | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename src/styles/services/{claudy.css => claudy.styl} (98%) rename src/styles/services/{claudySupport.css => claudySupport.styl} (100%) delete mode 100644 src/styles/services/index.css create mode 100644 src/styles/services/index.styl rename src/styles/services/{support.css => support.styl} (100%) diff --git a/src/styles/services/claudy.css b/src/styles/services/claudy.styl similarity index 98% rename from src/styles/services/claudy.css rename to src/styles/services/claudy.styl index 572e9477..93dc40c2 100644 --- a/src/styles/services/claudy.css +++ b/src/styles/services/claudy.styl @@ -29,7 +29,7 @@ position: absolute; width: 2em; height: 2em; - background: url('~assets/services/icon-arrow-left.svg') center / 1.5em no-repeat; + background: url('@/assets/services/icon-arrow-left.svg') center / 1.5em no-repeat; border: none; cursor: pointer; left: 10em; diff --git a/src/styles/services/claudySupport.css b/src/styles/services/claudySupport.styl similarity index 100% rename from src/styles/services/claudySupport.css rename to src/styles/services/claudySupport.styl diff --git a/src/styles/services/index.css b/src/styles/services/index.css deleted file mode 100644 index 5382ebb7..00000000 --- a/src/styles/services/index.css +++ /dev/null @@ -1,3 +0,0 @@ -@import "~styles/services/claudy.css"; -@import "~styles/services/claudySupport.css"; -@import "~styles/services/support.css"; diff --git a/src/styles/services/index.styl b/src/styles/services/index.styl new file mode 100644 index 00000000..a288dd24 --- /dev/null +++ b/src/styles/services/index.styl @@ -0,0 +1,3 @@ +@import "@/styles/services/claudy.styl"; +@import "@/styles/services/claudySupport.styl"; +@import "@/styles/services/support.styl"; diff --git a/src/styles/services/support.css b/src/styles/services/support.styl similarity index 100% rename from src/styles/services/support.css rename to src/styles/services/support.styl diff --git a/src/targets/intents/index.jsx b/src/targets/intents/index.jsx index f699d1d2..74b525bb 100644 --- a/src/targets/intents/index.jsx +++ b/src/targets/intents/index.jsx @@ -1,5 +1,5 @@ import 'cozy-ui/transpiled/react/stylesheet.css' -import '@/styles/services/index' +import '@/styles/services/index.styl' import React from 'react' import { createRoot } from 'react-dom/client'