mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-22 11:34:21 +00:00
Stefano Pigozzi
892ae7055b
* Create full implementation of font groups * Fix typo mixin → mixins * Add all possible values of the `font` CSS property to font groups. * Create full implementation of color groups * Improve documentation of font groups mixins * Add overloads for color group mixins * Bump version to 5.0.0 * Add `bhsl` prefix to color hsl groups * Add `bfont` prefix to font groups * Port `royalblue` theme to color groups * Rename `utils` → `groups` * Begin skeleton rewrite * Add missing </editor-fold> * Reimplement "Page" rules * Use `rem` instead of `em` as footer margin * Add bottom page-footer margin * Re-add chapters * Delete the apache2 example * Remove compiled css for now * Re-add separators * Re-add images * Improve docs and remove figures (for now?) * Implement tables and other things * Start working on lists * Update VSCode launch config * Add initial experimental support for `list-unordered` and `list-ordered` * WIP: some work on glossaries and tables * WIP: modifiers * Make a lot of progress which I'm to lazy to commit properly * FANCY CLASSIC STYLES * Start configuring a codespaces environment * Fix table caption background color * mess around a bit with backdrops * Apply some tweaks to tables * Comment out classic stylesheets * Add skeleton for inputs and forms * Mark missing things * Huge progress but im lost * Create yarn.lock so intellij stops annoying me about npm * Complete inputs and misc things * Complete collapsible details * Complete text elements * Complete forms
54 lines
1 KiB
Bash
Executable file
54 lines
1 KiB
Bash
Executable file
#!/bin/bash
|
|
# Maybe a Makefile would be better...
|
|
|
|
echo "Finding mixins..."
|
|
mixins=$(ls ../src/mixins/**.less)
|
|
echo "Mixins:"
|
|
echo "$mixins"
|
|
echo
|
|
|
|
echo "Finding rules..."
|
|
rules=$(ls ../src/rules/*.less ../src/rules/**/*.less)
|
|
echo "Rules:"
|
|
echo "$rules"
|
|
echo
|
|
|
|
echo "Finding selectors..."
|
|
selectors=$(ls ../src/selectors/*.less ../src/selectors/**/*.less)
|
|
echo "Selectors:"
|
|
echo "$selectors"
|
|
echo
|
|
|
|
for selector in $selectors
|
|
do
|
|
for rule in $rules
|
|
do
|
|
|
|
bselector=$(basename "$selector" ".less")
|
|
brule=$(basename "$rule" ".less")
|
|
# Dot notation is used so .module.css files can be generated
|
|
base="$brule.$bselector"
|
|
|
|
echo "Creating $base.less..."
|
|
|
|
echo "// Mixins" > "$base.less"
|
|
for mixin in $mixins
|
|
do
|
|
echo "@import (less) \"$mixin\";" >> "$base.less"
|
|
done
|
|
echo >> "$base.less"
|
|
|
|
echo "// Selector" >> "$base.less"
|
|
echo "@import (less) \"$selector\";" >> "$base.less"
|
|
echo >> "$base.less"
|
|
|
|
echo "// Rule" >> "$base.less"
|
|
echo "@import (less) \"$rule\";" >> "$base.less"
|
|
echo >> "$base.less"
|
|
|
|
echo "Compiling $base.css..."
|
|
lessc "$base.less" "$base.css"
|
|
|
|
done
|
|
done
|
|
|