nickyeoman/sasslibrary
Composer 安装命令:
composer require nickyeoman/sasslibrary
包简介
sass library
README 文档
README
Links
Philosophy
I like to keep my code clean, so the main goal of this project is the following:
- Keep a library of useful styles that can easily be called
- Don't load anything you don't use
- Don't load more than one style sheet
- Try not to minimize the number of classes per element.
Usage
TODO: # sudo docker build -t sass-container .
The intended use is as follows:
# create directory schema mkdir -p PROJECTNAME/sass PROJECTNAME/public/css cd PROJECTNAME # Get the library composer require nickyeoman/sassLibrary # Create an index page or include the css file in your template cp vendor/nickyeoman/sasslibrary/html/sample.layout.html public/index.html # Create a master sass file in the sass directory of your project. mkdir sass; touch sass/project.sass # import the libraries echo '@import ../vendor/nickyeoman/sasslibrary/master.sass' > sass/PROJECTNAME.sass # compile sass sass sass/project.sass public/css/main.css
Nothing should happen as you have to explicitly call on the library for it to render. For example, in sass/project.sass you will want to do:
html +htmldefaults +library +print
Install SASS on Ubuntu
First you need npm:
sudo apt install npm
Then you need sass:
sudo npm install -g sass
统计信息
- 总下载量: 184
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: CC0-1.0
- 更新时间: 2021-10-01