Skip to content

Commit

Permalink
ui: remove sass-loader and node-sass dependencies (#137)
Browse files Browse the repository at this point in the history
* converted elements to css, removed theme

* removing node-sass, sass-loader, scss refs
  • Loading branch information
m17ch committed Sep 12, 2019
1 parent 242f9ac commit 3221aab
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 502 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
@import './variables.scss';
:root {
--color-critical: #ff324d;
--color-warning: #ffd602;
--color-ok: #8cc800;
}

html {
height: 100%;
Expand All @@ -17,11 +21,10 @@ body {
a {
text-decoration: none;
color: #cd1831;
}

&:hover {
text-decoration: underline;
//color: #8f1022;
}
a:hover {
text-decoration: underline;
}

.rbc-time-content .rbc-current-time-indicator {
Expand Down Expand Up @@ -89,17 +92,17 @@ pre code {

tr.unacknowledged,
div.unacknowledged {
border-left: 3px solid $color-critical;
border-left: 3px solid var(--color-critical);
}

tr.acknowledged,
div.acknowledged {
border-left: 3px solid $color-warning;
border-left: 3px solid var(--color-warning);
}

tr.resolved,
div.resolved {
border-left: 3px solid $color-ok;
border-left: 3px solid var(--color-ok);
}

.list-label {
Expand All @@ -111,10 +114,8 @@ div.resolved {
width: 100%;
}

ul.no-separators {
li {
border: none;
}
ul.no-separators li {
border: none;
}

.margin-top-none {
Expand Down
1 change: 0 additions & 1 deletion web/src/app/styles/base/theme.scss

This file was deleted.

6 changes: 0 additions & 6 deletions web/src/app/styles/base/variables.scss

This file was deleted.

3 changes: 1 addition & 2 deletions web/src/app/styles/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
import './base/elements.scss'
import './base/theme.scss'
import './base/elements.css'
10 changes: 4 additions & 6 deletions web/src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"description": "user interface for the goalert project",
"main": "index.js",
"scripts": {
"slint": "stylelint ./app/**/*.css ./app/**/*.scss --syntax scss",
"slint": "stylelint ./app/**/*.css",
"lint": "eslint .",
"precommit-msg": "echo 'Pre-commit checks...' && exit 0",
"fmt": "prettier -l --write '**/*.{js,yml,yaml,json,css,scss,ts,html}' || eslint --fix .",
"fmt": "prettier -l --write '**/*.{js,yml,yaml,json,css,ts,html}' || eslint --fix .",
"build-deps": "webpack --config ./webpack.dll.config.js --progress"
},
"jest": {
Expand All @@ -33,9 +33,9 @@
"eslint --fix",
"git add"
],
"*.{css,scss}": [
"*.css": [
"prettier --write",
"stylelint --syntax scss",
"stylelint",
"git add"
]
},
Expand Down Expand Up @@ -145,14 +145,12 @@
"jest": "24.9.0",
"json-loader": "0.5.7",
"lint-staged": "9.2.5",
"node-sass": "4.12.0",
"postcss-loader": "3.0.0",
"prettier": "1.18.2",
"raw-loader": "3.1.0",
"react-hot-loader": "4.12.12",
"redux": "4.0.4",
"redux-devtools-extension": "2.13.8",
"sass-loader": "7.1.0",
"style-loader": "1.0.0",
"stylelint": "10.1.0",
"stylelint-config-standard": "18.3.0",
Expand Down
15 changes: 1 addition & 14 deletions web/src/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
publicPath: '/',
},
resolve: {
extensions: ['.js', '.ts', '.jsx', '.css', '.scss'],
extensions: ['.js', '.ts', '.jsx', '.css'],
alias: {
'react-dom': '@hot-loader/react-dom',
},
Expand All @@ -47,19 +47,6 @@ module.exports = {
exclude: [/node_modules/],
include: [APP],
},
{
test: /\.scss$/,
use: [
'style-loader',
'css-loader',
{
loader: 'sass-loader',
options: {
includePaths: ['./node_modules'],
},
},
],
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
Expand Down
16 changes: 1 addition & 15 deletions web/src/webpack.prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
publicPath: '/',
},
resolve: {
extensions: ['.js', '.jsx', '.css', '.scss'],
extensions: ['.js', '.jsx', '.css'],
},
module: {
rules: [
Expand All @@ -36,20 +36,6 @@ module.exports = {
],
include: [APP],
},
{
test: /\.scss$/,
use: [
'style-loader',
{ loader: 'css-loader', options: { importLoaders: 1 } },
'postcss-loader',
{
loader: 'sass-loader',
options: {
includePaths: ['./node_modules'],
},
},
],
},
{
test: /\.css$/,
use: [
Expand Down

0 comments on commit 3221aab

Please sign in to comment.