Merge pull request #308 from MyIgel/themes
Themes: Moved bootstrap and improved generate script
This commit is contained in:
commit
868780239f
|
@ -2,5 +2,5 @@
|
|||
path = vendor/parsedown
|
||||
url = https://github.com/erusev/parsedown.git
|
||||
[submodule "vendor/bootstrap"]
|
||||
path = vendor/bootstrap
|
||||
path = themes/assets/bootstrap
|
||||
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/";
|
||||
|
||||
|
|
|
@ -1,7 +1,15 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
lessc theme0.less > ../public/css/theme0.css
|
||||
lessc theme1.less > ../public/css/theme1.css
|
||||
lessc theme2.less > ../public/css/theme2.css
|
||||
lessc theme3.less > ../public/css/theme3.css
|
||||
lessc theme4.less > ../public/css/theme4.css
|
||||
FILE_PATH="$(dirname "$0")"
|
||||
|
||||
for file in $(ls "${FILE_PATH}/"*.less); do
|
||||
filename="${file##*/}"
|
||||
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)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@import "../vendor/bootstrap/less/variables";
|
||||
@import "assets/bootstrap/less/variables";
|
||||
|
||||
@brand-primary: #758499;
|
||||
@brand-success: #7b9c41;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@import "../vendor/bootstrap/less/variables";
|
||||
@import "assets/bootstrap/less/variables";
|
||||
|
||||
@brand-primary: #f19224;
|
||||
@brand-success: #39AB50;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@import "../vendor/bootstrap/less/variables";
|
||||
@import "assets/bootstrap/less/variables";
|
||||
|
||||
/*
|
||||
The MIT License (MIT)
|
||||
|
|
Loading…
Reference in New Issue