diff options
author | Jonas Smedegaard <dr@jones.dk> | 2011-02-01 14:24:21 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2021-03-24 21:41:34 +0100 |
commit | 4817ee672b7d0f8267a0d1e269b4810f785b111c (patch) | |
tree | c0cd160b027ce4bf5ba8f4524051885cf19ec4eb | |
parent | 7aafb99daf5f5d94aec0c3feccd2d42e06cbf7f4 (diff) |
convert css to sass 1/2: rename *.css files to *.scss, and add build scripts
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile | 12 | ||||
-rw-r--r-- | actiontabs/style.scss (renamed from actiontabs/style.css) | 0 | ||||
-rw-r--r-- | blueview/style.scss (renamed from blueview/style.css) | 0 | ||||
-rw-r--r-- | default/style.scss (renamed from default/style.css) | 0 | ||||
-rw-r--r-- | goldtype/style.scss (renamed from goldtype/style.css) | 0 | ||||
-rw-r--r-- | include.mk | 15 | ||||
-rw-r--r-- | monochrome/style.scss (renamed from monochrome/style.css) | 0 |
8 files changed, 29 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0092bf4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.css +*.css.map diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..24e2475 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +cssprojects ?= default actiontabs blueview goldtype monochrome + +sass_includes = default + +#sass_beautify = yes +#no_sass_sourcemap = yes + +all: $(cssprojects) + +include include.mk + +.PHONY: all diff --git a/actiontabs/style.css b/actiontabs/style.scss index ffe37fb..ffe37fb 100644 --- a/actiontabs/style.css +++ b/actiontabs/style.scss diff --git a/blueview/style.css b/blueview/style.scss index 785683e..785683e 100644 --- a/blueview/style.css +++ b/blueview/style.scss diff --git a/default/style.css b/default/style.scss index 9f82899..9f82899 100644 --- a/default/style.css +++ b/default/style.scss diff --git a/goldtype/style.css b/goldtype/style.scss index b9305d3..b9305d3 100644 --- a/goldtype/style.css +++ b/goldtype/style.scss diff --git a/include.mk b/include.mk new file mode 100644 index 0000000..8d4a712 --- /dev/null +++ b/include.mk @@ -0,0 +1,15 @@ +cssprojectinfiles = $(foreach file,$(if $1,$(shell find $1 -name '*.scss')),$(if $(filter-out _%,$(notdir $(file))),$(file))) +cssprojectoutfiles = $(patsubst %.scss,%.css,$(call cssprojectinfiles,$1)) + +cssprojectcontent = $(call cssprojectoutfiles,$(cssprojects)) + +$(cssprojects): $(cssprojectcontent) + +%.css: %.scss + sassc$(sass_includes:%= --load-path %) --style $(if $(sass_beautify),expanded,compressed)$(if $(no_sass_sourcemap),, --sourcemap) $< $@ + $(if $(sass_beautify),perl -i -pe 's/ /\t/g' $@) + +clean:: + rm -f $(call cssprojectoutfiles,$(cssprojects)) + +.PHONY: clean $(cssprojects) diff --git a/monochrome/style.css b/monochrome/style.scss index 2dcfda0..2dcfda0 100644 --- a/monochrome/style.css +++ b/monochrome/style.scss |