Merge pull request #308 from MyIgel/themes

Themes: Moved bootstrap and improved generate script
This commit is contained in:
msquare 2017-05-24 14:06:38 +02:00 committed by GitHub
commit 868780239f
9 changed files with 21 additions and 13 deletions

2
.gitmodules vendored
View File

@ -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

View File

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

View File

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

View File

@ -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

View File

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

View File

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

View File

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

View File

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