mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
RTL support (#29)
This commit is contained in:
committed by
Luiz F. A. de Prá
parent
7207be04f0
commit
fe847fb152
24
Makefile
24
Makefile
@@ -1,15 +1,29 @@
|
||||
# LESS params
|
||||
LESS_DIR = ./static/less
|
||||
LESS_FILE = style.less
|
||||
LESS_RTL_FILE = style-rtl.less
|
||||
|
||||
# CSS params
|
||||
CSS_DIR = ./static/css
|
||||
CSS_FILE = style.min.css
|
||||
CSS_RTL_FILE = style-rtl.min.css
|
||||
CSS_TMP_FILE = tmp.css
|
||||
|
||||
.PHONY: clean demo build
|
||||
|
||||
build: clean
|
||||
lessc $(LESS_DIR)/$(LESS_FILE) > $(CSS_DIR)/$(CSS_TMP_FILE)
|
||||
uglifycss $(CSS_DIR)/$(CSS_TMP_FILE) > $(CSS_DIR)/$(CSS_FILE)
|
||||
define build_less
|
||||
lessc $(LESS_DIR)/$(1) > $(CSS_DIR)/$(CSS_TMP_FILE)
|
||||
uglifycss $(CSS_DIR)/$(CSS_TMP_FILE) > $(CSS_DIR)/$(2)
|
||||
rm -f $(CSS_DIR)/$(CSS_TMP_FILE)
|
||||
endef
|
||||
|
||||
.PHONY: clean demo build build-ltr build-rtl
|
||||
|
||||
build: clean build-ltr build-rtl
|
||||
|
||||
build-ltr:
|
||||
$(call build_less,$(LESS_FILE),$(CSS_FILE))
|
||||
|
||||
build-rtl:
|
||||
$(call build_less,$(LESS_RTL_FILE),$(CSS_RTL_FILE))
|
||||
|
||||
demo: build
|
||||
mkdir -p demo/themes/coder
|
||||
|
||||
Reference in New Issue
Block a user