From 67dde0f978156c4263dc7a4ea05efe1b5637e40f Mon Sep 17 00:00:00 2001 From: Maksim Ivanov Date: Wed, 10 Apr 2024 13:13:15 +0300 Subject: [PATCH] chore(demo): reuse styles between proprietary repo (#7198) --- projects/demo/project.json | 6 +++--- .../demo/src/{styles.less => styles/doc-global.style.less} | 5 +---- projects/demo/src/{ => styles}/normalize.less | 0 projects/demo/src/styles/styles.less | 6 ++++++ projects/demo/src/{ => styles}/styles.scss | 0 5 files changed, 10 insertions(+), 7 deletions(-) rename projects/demo/src/{styles.less => styles/doc-global.style.less} (61%) rename projects/demo/src/{ => styles}/normalize.less (100%) create mode 100644 projects/demo/src/styles/styles.less rename projects/demo/src/{ => styles}/styles.scss (100%) diff --git a/projects/demo/project.json b/projects/demo/project.json index b8ef0c5dddd8..f98fd7084f51 100644 --- a/projects/demo/project.json +++ b/projects/demo/project.json @@ -46,9 +46,9 @@ ], "baseHref": "./", "styles": [ - "projects/demo/src/normalize.less", - "projects/demo/src/styles.less", - "projects/demo/src/styles.scss" + "projects/demo/src/styles/normalize.less", + "projects/demo/src/styles/styles.less", + "projects/demo/src/styles/styles.scss" ], "scripts": [], "allowedCommonJsDependencies": ["markdown-it"], diff --git a/projects/demo/src/styles.less b/projects/demo/src/styles/doc-global.style.less similarity index 61% rename from projects/demo/src/styles.less rename to projects/demo/src/styles/doc-global.style.less index ac7313704361..ff8253a606be 100644 --- a/projects/demo/src/styles.less +++ b/projects/demo/src/styles/doc-global.style.less @@ -1,9 +1,6 @@ @import '@taiga-ui/core/styles/taiga-ui-local.less'; -@import '@taiga-ui/core/styles/taiga-ui-theme.less'; -@import '@taiga-ui/core/styles/taiga-ui-fonts.less'; -@import '@taiga-ui/addon-mobile/styles/taiga-ui-mobile.less'; -@import '@taiga-ui/styles/taiga-ui-global.less'; +/* Reuse for proprietary demo */ html, body { .scroll-behavior(); diff --git a/projects/demo/src/normalize.less b/projects/demo/src/styles/normalize.less similarity index 100% rename from projects/demo/src/normalize.less rename to projects/demo/src/styles/normalize.less diff --git a/projects/demo/src/styles/styles.less b/projects/demo/src/styles/styles.less new file mode 100644 index 000000000000..e6674e99164a --- /dev/null +++ b/projects/demo/src/styles/styles.less @@ -0,0 +1,6 @@ +@import '@taiga-ui/core/styles/taiga-ui-local.less'; +@import '@taiga-ui/core/styles/taiga-ui-theme.less'; +@import '@taiga-ui/core/styles/taiga-ui-fonts.less'; +@import '@taiga-ui/addon-mobile/styles/taiga-ui-mobile.less'; +@import '@taiga-ui/styles/taiga-ui-global.less'; +@import './doc-global.style'; diff --git a/projects/demo/src/styles.scss b/projects/demo/src/styles/styles.scss similarity index 100% rename from projects/demo/src/styles.scss rename to projects/demo/src/styles/styles.scss