Browse Source

🔨: add sass global variables file

master
Adrien 4 years ago
parent
commit
13d8e7789c
3 changed files with 17 additions and 13 deletions
  1. +1
    -4
      build/utils.js
  2. +0
    -9
      src/App.vue
  3. +16
    -0
      src/styles/main.sass

+ 1
- 4
build/utils.js View File

@@ -50,11 +50,8 @@ exports.cssLoaders = function (options) {
return { return {
css: generateLoaders(), css: generateLoaders(),
postcss: generateLoaders(), postcss: generateLoaders(),
less: generateLoaders('less'),
sass: generateLoaders('sass', { indentedSyntax: true }),
sass: generateLoaders('sass', { indentedSyntax: true, data: `@import @/styles/main.sass` }),
scss: generateLoaders('sass'), scss: generateLoaders('sass'),
stylus: generateLoaders('stylus'),
styl: generateLoaders('stylus')
} }
} }




+ 0
- 9
src/App.vue View File

@@ -17,15 +17,6 @@ export default {




<style lang="sass"> <style lang="sass">
$blizzard-background-color: #0A020F
$blizzard-font-color: #66CCFF
=blizzard-header-gradient
background: #0d39a0 /* Old browsers */
background: -moz-linear-gradient(left, #0d39a0 0%, #2f099b 100%) /* FF3.6-15 */
background: -webkit-linear-gradient(left, #0d39a0 0%,#2f099b 100%) /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to right, #0d39a0 0%,#2f099b 100%) /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */


body body
margin: 0 margin: 0




+ 16
- 0
src/styles/main.sass View File

@@ -0,0 +1,16 @@
/**
* Only add in this file pure sass code (like variables, functions and mixins) that don't get rendered
* Otherwise, this code will be duplicated in each component in the final css file
*/

// ############
// ## Colors ##
// ############
$blizzard-background-color: #0A020F
$blizzard-font-color: #66CCFF

=blizzard-header-gradient
background: #0d39a0 /* Old browsers */
background: -moz-linear-gradient(left, #0d39a0 0%, #2f099b 100%) /* FF3.6-15 */
background: -webkit-linear-gradient(left, #0d39a0 0%,#2f099b 100%) /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to right, #0d39a0 0%,#2f099b 100%) /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */

Loading…
Cancel
Save