From ea38ca1d4cbcd172db4933bc6b1f38e5fb57f97d Mon Sep 17 00:00:00 2001 From: Anastasiia Date: Fri, 5 Apr 2024 15:39:32 +0300 Subject: [PATCH] MSP-3103 add app.scss and styleConstants --- src/components/app.scss | 15 ++++++++++++--- src/constants/styleConstants.scss | 18 ++++++++++++++++++ src/index.css | 4 ---- src/index.tsx | 1 - 4 files changed, 30 insertions(+), 8 deletions(-) create mode 100644 src/constants/styleConstants.scss delete mode 100644 src/index.css diff --git a/src/components/app.scss b/src/components/app.scss index ae9c42c..d5cbfe7 100644 --- a/src/components/app.scss +++ b/src/components/app.scss @@ -1,4 +1,13 @@ -#root { - width: 100%; - text-align: center; +@import "src/constants/styleConstants"; + +*, html { + margin:0; + padding:0; + box-sizing: border-box; +} + +.app{ + padding: 0 $basic-padding; + min-height: 0; + min-width: 500px; } diff --git a/src/constants/styleConstants.scss b/src/constants/styleConstants.scss new file mode 100644 index 0000000..a1f21b7 --- /dev/null +++ b/src/constants/styleConstants.scss @@ -0,0 +1,18 @@ +$background-color: #F0F2F5; +$text-color-gray: var(--ant-primary-color); +$text-color-blue: #1890FF; + +$basic-margin: 8px; +$basic-padding: 8px; + +$text-size: 14px; + +$border-color: #F0F0F0; + +$blue-color: #40A9FF; +$blue-light: #E6F7FF; + +$grey:#606060; +$red: #FF4D4F; +$green: #52C41A; +$yellow: #FAAD14; diff --git a/src/index.css b/src/index.css deleted file mode 100644 index 10afaa5..0000000 --- a/src/index.css +++ /dev/null @@ -1,4 +0,0 @@ -body { - margin: 0; - min-height: 100vh; -} diff --git a/src/index.tsx b/src/index.tsx index 0bf6353..73f7703 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -5,7 +5,6 @@ import { BrowserRouter } from 'react-router-dom' import App from './components/App.tsx' -import './index.css' import { setupStore } from './stores' const store = setupStore()