From 7d08e25a09ad7bf31a92a9459a9035e0bd9e93e9 Mon Sep 17 00:00:00 2001 From: 123niel Date: Sun, 21 Apr 2019 13:35:05 +0200 Subject: [PATCH] move css to App.scss --- src/components/App.js | 2 ++ src/components/App.scss | 29 +++++++++++++++++++++++++++++ src/index.scss | 26 -------------------------- 3 files changed, 31 insertions(+), 26 deletions(-) create mode 100644 src/components/App.scss diff --git a/src/components/App.js b/src/components/App.js index b66302d..f60611e 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -3,6 +3,8 @@ import { BrowserRouter as Router, Route } from 'react-router-dom'; import Home from './Home'; import Header from './Header'; +import './App.scss'; + export default () => { return (
diff --git a/src/components/App.scss b/src/components/App.scss new file mode 100644 index 0000000..a89dd75 --- /dev/null +++ b/src/components/App.scss @@ -0,0 +1,29 @@ +body { + background-color: #4a4a4a; + font-size: 160%; + color: #fff +} + + +.app-header { + text-align: center; + background-color: #282c34; + font-size: 1.6em; + padding: 0.5em 0; + color: white; +} + +.channelList { + list-style: none +} + +.channel-view { + background-color: green; + width: 20%; + height: auto; + margin: auto; +} + +.channel-view ul { + text-align: left +} diff --git a/src/index.scss b/src/index.scss index 43a7743..cee5f34 100644 --- a/src/index.scss +++ b/src/index.scss @@ -6,35 +6,9 @@ body { sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; - background-color: #4a4a4a; - font-size: 160%; - color: #fff } code { font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace; } - -.app-header { - text-align: center; - background-color: #282c34; - font-size: 1.6em; - padding: 0.5em 0; - color: white; -} - -.channelList { - list-style: none -} - -.channel-view { - background-color: green; - width: 20%; - height: auto; - margin: auto; -} - -.channel-view ul { - text-align: left -}