Skip to content

Commit

Permalink
[SCSS review] preparatory steps
Browse files Browse the repository at this point in the history
- Merge previously scoped and global styles
- Use our own normalize.css instead of Bootstrap's

Prepares #111
  • Loading branch information
cyChop committed Jan 3, 2018
1 parent b2aa4d4 commit b1fe3f9
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 14 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"axios": "^0.17.1",
"bootstrap": "4.0.0-alpha.6",
"lodash": "^4.17.4",
"normalize.css": "^7.0.0",
"vue": "^2.5.13",
"vuex": "^3.0.1"
},
Expand Down
12 changes: 0 additions & 12 deletions src/app/app-global.scss
Original file line number Diff line number Diff line change
@@ -1,12 +0,0 @@
@import "../scss/font-variables";
@import "../scss/variables";
@import "../scss/bootstrap";

@font-face {
font-family: 'BevIcons';
src: url('#{$icomoon-font-path}/icomoon.ttf') format('truetype'),
url('#{$icomoon-font-path}/icomoon.woff') format('woff'),
url('#{$icomoon-font-path}/icomoon.svg#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
12 changes: 12 additions & 0 deletions src/app/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,20 @@
@import "../scss/variables";
@import "../scss/mixins";

@import "node_modules/normalize.css/normalize";

@import "node_modules/bootstrap/scss/custom";
@import "node_modules/bootstrap/scss/variables";
@import "../scss/bootstrap";

@font-face {
font-family: 'BevIcons';
src: url('#{$icomoon-font-path}/icomoon.ttf') format('truetype'),
url('#{$icomoon-font-path}/icomoon.woff') format('woff'),
url('#{$icomoon-font-path}/icomoon.svg#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}

.app {

Expand Down
1 change: 0 additions & 1 deletion src/app/app.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<template src="./app.html"></template>
<script src="./app"></script>
<style src="./app-global.scss" lang="scss"></style>
<style src="./app.scss" lang="scss"></style>
2 changes: 1 addition & 1 deletion src/scss/_bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@import "node_modules/bootstrap/scss/mixins";

// Reset and dependencies
@import "node_modules/bootstrap/scss/normalize";
//@import "node_modules/bootstrap/scss/normalize";
//@import "node_modules/bootstrap/scss/print";

// Core CSS
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6501,6 +6501,10 @@ normalize-url@^1.4.0:
query-string "^4.1.0"
sort-keys "^1.0.0"

normalize.css@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/normalize.css/-/normalize.css-7.0.0.tgz#abfb1dd82470674e0322b53ceb1aaf412938e4bf"

now-and-later@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/now-and-later/-/now-and-later-2.0.0.tgz#bc61cbb456d79cb32207ce47ca05136ff2e7d6ee"
Expand Down

0 comments on commit b1fe3f9

Please sign in to comment.