From 6bf4f948dd65ad65c8b3ec6cf067e649d8a4e499 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Fri, 24 Nov 2023 12:20:25 -0500 Subject: [PATCH] [U] To sass --- frontend/.gitignore | 2 ++ frontend/src/App.css | 38 -------------------------------------- frontend/src/App.sass | 19 +++++++++++++++++++ frontend/src/App.tsx | 2 +- frontend/src/index.css | 13 ------------- frontend/src/index.sass | 8 ++++++++ frontend/src/index.tsx | 2 +- 7 files changed, 31 insertions(+), 53 deletions(-) delete mode 100644 frontend/src/App.css create mode 100644 frontend/src/App.sass delete mode 100644 frontend/src/index.css create mode 100644 frontend/src/index.sass diff --git a/frontend/.gitignore b/frontend/.gitignore index 4d29575..7d4754a 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -21,3 +21,5 @@ npm-debug.log* yarn-debug.log* yarn-error.log* + +.idea \ No newline at end of file diff --git a/frontend/src/App.css b/frontend/src/App.css deleted file mode 100644 index 74b5e05..0000000 --- a/frontend/src/App.css +++ /dev/null @@ -1,38 +0,0 @@ -.App { - text-align: center; -} - -.App-logo { - height: 40vmin; - pointer-events: none; -} - -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} diff --git a/frontend/src/App.sass b/frontend/src/App.sass new file mode 100644 index 0000000..dcf1123 --- /dev/null +++ b/frontend/src/App.sass @@ -0,0 +1,19 @@ +.App + text-align: center + +.App-logo + height: 40vmin + pointer-events: none + +.App-header + background-color: #282c34 + min-height: 100vh + display: flex + flex-direction: column + align-items: center + justify-content: center + font-size: calc(10px + 2vmin) + color: white + +.App-link + color: #61dafb diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index a53698a..5a7d0c8 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,6 +1,6 @@ import React from 'react'; import logo from './logo.svg'; -import './App.css'; +import './App.sass'; function App() { return ( diff --git a/frontend/src/index.css b/frontend/src/index.css deleted file mode 100644 index ec2585e..0000000 --- a/frontend/src/index.css +++ /dev/null @@ -1,13 +0,0 @@ -body { - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', - 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', - sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -code { - font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', - monospace; -} diff --git a/frontend/src/index.sass b/frontend/src/index.sass new file mode 100644 index 0000000..fb8c8c5 --- /dev/null +++ b/frontend/src/index.sass @@ -0,0 +1,8 @@ +body + margin: 0 + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif + -webkit-font-smoothing: antialiased + -moz-osx-font-smoothing: grayscale + +code + font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx index 032464f..0410b7b 100644 --- a/frontend/src/index.tsx +++ b/frontend/src/index.tsx @@ -1,6 +1,6 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; -import './index.css'; +import './index.sass'; import App from './App'; import reportWebVitals from './reportWebVitals';