|
|
# Hshassets Version2
|
|
|
|
|
|
The new version of hshassets work slightly different to former version.
|
|
|
It desolve the dependences to hshassets by generate a css file to the project which includes all information formerly stayed in hshassets. I assume two possible kinds of application. Either you want to base your styles on hshassets without any changes or you want to use hshassets as base style but you have to add your own styles.
|
|
|
|
|
|
### You want to base your style on hshassets without any changes?
|
|
|
|
|
|
## You want to base your style on hshassets without any changes?
|
|
|
|
|
|
If you want to base your style on hshassets without any changes you can do so even if no asset directory exists in your project. Just use the management command `buildassets`.
|
|
|
In this case the stylesheets will be created on base of scss files saved in hshassets. By default the color scheme of hshassets is based on "service". The compiled css files will be saved in the project. That's it!
|
|
|
|
|
|
### You need your own style based on hshassets?
|
|
|
|
|
|
## You need your own style based on hshassets?
|
|
|
|
|
|
There is a simple support for creating a "_init.scss" file.
|
|
|
```initassets [appname] [-e|--empty]```
|
... | ... | @@ -15,7 +19,18 @@ There is a simple support for creating a "_init.scss" file. |
|
|
- -e or --empty creates an empty _init.scss, otherwise bulma stuff is included
|
|
|
- assets and sass directories will be created as well if not existing
|
|
|
|
|
|
### How to set color scheme for your project?
|
|
|
|
|
|
## Build assets based on _init.scss
|
|
|
|
|
|
Use command ```buildassets [appname]```
|
|
|
- no appname builds static files on all apps with assets directory inside (except hshassets, see note)
|
|
|
- appname builds statif files on specific app
|
|
|
|
|
|
> **Note:**
|
|
|
> If you want to build assets for "hshassets" you have to run command ```buildassets hshassets```.
|
|
|
|
|
|
|
|
|
## How to set color scheme for your project?
|
|
|
The default color style of hshassets is `service` which we will use mostly I guess.
|
|
|
|
|
|
If you want to change the color scheme you have to import one of the following styles by adding these snippet to your _init.scss.
|
... | ... | @@ -33,7 +48,7 @@ After that line you have to import bulma files. You do that by adding the line ` |
|
|
> @import '_hshassets_style.scss;
|
|
|
|
|
|
|
|
|
### This version based on
|
|
|
## This version based on
|
|
|
* [Bulma](https://bulma.io/) (v0.7.4)
|
|
|
* [Bulma accordion](https://wikiki.github.io/components/accordion/)
|
|
|
* [Fontawesome](https://fontawesome.com/) (5.7.2 free ) |
|
|
\ No newline at end of file |