Merge pull request #308 from MyIgel/themes

Themes: Moved bootstrap and improved generate script
main
msquare 8 years ago committed by GitHub
commit 868780239f

2
.gitmodules vendored

@ -2,5 +2,5 @@
path = vendor/parsedown path = vendor/parsedown
url = https://github.com/erusev/parsedown.git url = https://github.com/erusev/parsedown.git
[submodule "vendor/bootstrap"] [submodule "vendor/bootstrap"]
path = vendor/bootstrap path = themes/assets/bootstrap
url = https://github.com/twbs/bootstrap.git url = https://github.com/twbs/bootstrap.git

@ -1 +1 @@
../../vendor/bootstrap/dist ../../themes/assets/bootstrap/dist

@ -1,4 +1,4 @@
@import "../vendor/bootstrap/less/bootstrap"; @import "assets/bootstrap/less/bootstrap";
@icon-font-path: "../fonts/"; @icon-font-path: "../fonts/";

@ -1,7 +1,15 @@
#!/bin/sh #!/bin/bash
lessc theme0.less > ../public/css/theme0.css FILE_PATH="$(dirname "$0")"
lessc theme1.less > ../public/css/theme1.css
lessc theme2.less > ../public/css/theme2.css for file in $(ls "${FILE_PATH}/"*.less); do
lessc theme3.less > ../public/css/theme3.css filename="${file##*/}"
lessc theme4.less > ../public/css/theme4.css themeName="${filename%.less}"
if [[ "$filename" == "base.less" ]]; then
continue;
fi
echo "Building ${themeName}"
lessc "${file}" > "${FILE_PATH}/../public/css/${themeName}.css"
done

@ -1,4 +1,4 @@
@import "../vendor/bootstrap/less/variables"; @import "assets/bootstrap/less/variables";
/* /*
The MIT License (MIT) The MIT License (MIT)

@ -1,4 +1,4 @@
@import "../vendor/bootstrap/less/variables"; @import "assets/bootstrap/less/variables";
@brand-primary: #758499; @brand-primary: #758499;
@brand-success: #7b9c41; @brand-success: #7b9c41;

@ -1,4 +1,4 @@
@import "../vendor/bootstrap/less/variables"; @import "assets/bootstrap/less/variables";
@brand-primary: #f19224; @brand-primary: #f19224;
@brand-success: #39AB50; @brand-success: #39AB50;

@ -1,4 +1,4 @@
@import "../vendor/bootstrap/less/variables"; @import "assets/bootstrap/less/variables";
/* /*
The MIT License (MIT) The MIT License (MIT)

Loading…
Cancel
Save