소스 검색

🔨: add sass global variables file

master
Adrien 4 년 전
부모
커밋
13d8e7789c
3개의 변경된 파일17개의 추가작업 그리고 13개의 파일을 삭제
  1. +1
    -4
      build/utils.js
  2. +0
    -9
      src/App.vue
  3. +16
    -0
      src/styles/main.sass

+ 1
- 4
build/utils.js 파일 보기

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



+ 0
- 9
src/App.vue 파일 보기

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


<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
margin: 0



+ 16
- 0
src/styles/main.sass 파일 보기

@@ -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+ */

불러오는 중...
취소
저장