From 61ef04803a8461c9d97006b2ea1433f190a8537b Mon Sep 17 00:00:00 2001 From: pure-js <3690368+pure-js@users.noreply.github.com> Date: Tue, 6 Feb 2018 14:37:04 +0300 Subject: [PATCH 1/5] remove unused css rules --- src/styles/main.scss | 6 ------ src/styles/modules/_colors.scss | 6 ------ src/styles/partials/_base.scss | 27 --------------------------- src/styles/partials/_news-list.scss | 19 ------------------- src/styles/partials/_typography.scss | 24 ------------------------ 5 files changed, 82 deletions(-) delete mode 100644 src/styles/main.scss delete mode 100644 src/styles/modules/_colors.scss delete mode 100644 src/styles/partials/_base.scss delete mode 100644 src/styles/partials/_news-list.scss delete mode 100644 src/styles/partials/_typography.scss diff --git a/src/styles/main.scss b/src/styles/main.scss deleted file mode 100644 index ef9b77d8..00000000 --- a/src/styles/main.scss +++ /dev/null @@ -1,6 +0,0 @@ -/*-- Modules and Variables --*/ -@import "partials/base"; - -/*-- Partials --*/ -@import "partials/typography"; -@import "partials/news-list"; diff --git a/src/styles/modules/_colors.scss b/src/styles/modules/_colors.scss deleted file mode 100644 index 39fa7533..00000000 --- a/src/styles/modules/_colors.scss +++ /dev/null @@ -1,6 +0,0 @@ -/*-- Colors --*/ - -$moderate-blue: #428bca; -$dark-blue: #2a6496; - -$very-dark-gray: #333; diff --git a/src/styles/partials/_base.scss b/src/styles/partials/_base.scss deleted file mode 100644 index 76f2ea51..00000000 --- a/src/styles/partials/_base.scss +++ /dev/null @@ -1,27 +0,0 @@ -@import "../modules/colors"; - -/*-- Begin --*/ - -.body { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 14px; - line-height: 1.42857143; - color: $very-dark-gray; -} - - -.container { - margin: 0 auto; - - @media (min-width: 768px) { - width: 750px; - } - - @media (min-width: 992px) { - width: 970px; - } - - @media (min-width: 1200px) { - width: 1170px; - } -} diff --git a/src/styles/partials/_news-list.scss b/src/styles/partials/_news-list.scss deleted file mode 100644 index 360fb418..00000000 --- a/src/styles/partials/_news-list.scss +++ /dev/null @@ -1,19 +0,0 @@ -.news-list { - overflow: hidden; - width: 100%; - padding: 0 20px; - column-gap: 30px; - column-count: 1; - - @media screen and (min-width:860px) { - column-count: 2; - } - - @media screen and (min-width:1280px) { - column-count: 3; - } - - @media screen and (min-width:1700px) { - column-count: 4; - } -} diff --git a/src/styles/partials/_typography.scss b/src/styles/partials/_typography.scss deleted file mode 100644 index 4a4e4d6e..00000000 --- a/src/styles/partials/_typography.scss +++ /dev/null @@ -1,24 +0,0 @@ -// Headings - -.h3 { - font-size: 24px; - font-weight: 500; - line-height: 1.1; - margin-top: 20px; - margin-bottom: 10px; - - &__link { - color: $moderate-blue; - text-decoration: none; - - &:hover { - color: $dark-blue; - text-decoration: underline; - } - } -} - - -.p { - margin: 0 0 10px; -} From 12d9942435b64d2fba2c666c77069a88423f3f9d Mon Sep 17 00:00:00 2001 From: pure-js <3690368+pure-js@users.noreply.github.com> Date: Tue, 6 Feb 2018 14:46:01 +0300 Subject: [PATCH 2/5] remove js specific styles --- src/components/App.jsx | 4 ++-- src/components/CreateStory.jsx | 4 ++-- src/components/Story.jsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/App.jsx b/src/components/App.jsx index f8997515..97f9d9d0 100644 --- a/src/components/App.jsx +++ b/src/components/App.jsx @@ -4,7 +4,7 @@ import bootstrap from 'bootstrap/scss/bootstrap.scss'; import Story from './Story'; import CreateStory from './CreateStory'; import posts from '../mock-posts'; -import styles from '../styles/main.scss'; +import styles from './App.scss'; class App extends Component { constructor(props) { @@ -35,7 +35,7 @@ class App extends Component { return (