项目作者: Apiko-Academy

项目描述 :
Vue Semantic-UI boilerplate
高级语言: JavaScript
项目地址: git://github.com/Apiko-Academy/vuejs-semantic-ui.git
创建时间: 2017-01-18T07:46:46Z
项目社区:https://github.com/Apiko-Academy/vuejs-semantic-ui

开源协议:

下载


vuejs-semantic-ui

Vue Semantic-UI boilerplate

Build Setup

  1. # install dependencies
  2. npm install
  3. # build semantic-ui
  4. npm run build-semantic-ui
  5. # serve with hot reload at localhost:8080
  6. npm run dev
  7. # build for production with minification
  8. npm run build

Using Semantic-UI

import semantic JS and css at your app root file

  1. import '../semantic/dist/semantic.min.css';
  2. import 'semantic';

Then you can use semantic ui classes as well as JS. For example:

  1. $('.ui.accordion')
  2. .accordion();

configuring Semantic-UI

You can configure semantic themes using guides at http://semantic-ui.com/introduction/build-tools.html
Call npm run build-semaintic-ui after you’ve made you configuration

Using Sass

You can write Sass style directly at you Vue components like this:

  1. <style lang="sass">
  2. h2 {
  3. border: 2px solid aquamarine;
  4. }
  5. </style>

or
import scss styles from your styles folder

  1. <style lang="sass">
  2. @import "~styles/border"
  3. </style>

For detailed explanation on how things work, checkout the guide and docs for vue-loader.