diff options
Diffstat (limited to 'web/css')
-rw-r--r-- | web/css/.gitignore | 1 | ||||
-rw-r--r-- | web/css/Makefile | 25 | ||||
-rw-r--r-- | web/css/labitrack.d/01-basic.css | 49 | ||||
-rw-r--r-- | web/css/labitrack.d/10-canvas.css | 3 |
4 files changed, 78 insertions, 0 deletions
diff --git a/web/css/.gitignore b/web/css/.gitignore new file mode 100644 index 0000000..1521c8b --- /dev/null +++ b/web/css/.gitignore @@ -0,0 +1 @@ +dist diff --git a/web/css/Makefile b/web/css/Makefile new file mode 100644 index 0000000..886b5a2 --- /dev/null +++ b/web/css/Makefile @@ -0,0 +1,25 @@ +DIRS=$(wildcard *.d) +FILEEXT=ss # less or css +OUTEXT=.css +SRCTARGETS=$(patsubst %.d,dist/%.src$(OUTEXT),$(DIRS)) +MINTARGETS=$(patsubst %.d,dist/%.min$(OUTEXT),$(DIRS)) + +depend=$(shell sh -c 'ls $$(echo $1 | cut -d/ -f2 | cut -d. -f1).d/*$(FILEEXT)') + +.PHONY: all mkdist +all: $(MINTARGETS) +clean: + rm -f $(SRCTARGETS) + rm -f $(MINTARGETS) +mkdist: + @@mkdir -p dist + +.SECONDEXPANSION: +$(SRCTARGETS): $$(call depend,$$@) | mkdist + date + cat $^ > $@ + +.SECONDEXPANSION: +$(MINTARGETS): $$(patsubst %.min$(OUTEXT),%.src$(OUTEXT),$$@) + date + lessc -x $^ > $@ diff --git a/web/css/labitrack.d/01-basic.css b/web/css/labitrack.d/01-basic.css new file mode 100644 index 0000000..0de66b8 --- /dev/null +++ b/web/css/labitrack.d/01-basic.css @@ -0,0 +1,49 @@ +/* Override some defaults */ +html, body { + background-color: #eee; +} +body { + padding-top: 40px; /* 40px to make the container go all the way to the bottom of the topbar */ +} +.container > footer p { + text-align: center; /* center align it with the container */ +} +.container { + width: 560px; /* 10 columns */ +} + +/* The white background content wrapper */ +.content { + background-color: #fff; + padding: 20px; + margin: 0 -20px; /* negative indent the amount of the padding to maintain the grid system */ + -webkit-border-radius: 0 0 6px 6px; + -moz-border-radius: 0 0 6px 6px; + border-radius: 0 0 6px 6px; + -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15); + -moz-box-shadow: 0 1px 2px rgba(0,0,0,.15); + box-shadow: 0 1px 2px rgba(0,0,0,.15); +} + +/* Page header tweaks */ +.page-header { + background-color: #f5f5f5; + padding: 20px 20px 10px; + margin: -20px -20px 20px; +} + +/* Styles you shouldn't keep as they are for displaying this base example only */ +.content .span10, +.content .span4 { + min-height: 500px; +} +/* Give a quick and non-cross-browser friendly divider */ +.content .span4 { + margin-left: 0; + padding-left: 19px; + border-left: 1px solid #eee; +} + +.topbar .btn { + border: 0; +} diff --git a/web/css/labitrack.d/10-canvas.css b/web/css/labitrack.d/10-canvas.css new file mode 100644 index 0000000..9cfbc9c --- /dev/null +++ b/web/css/labitrack.d/10-canvas.css @@ -0,0 +1,3 @@ +canvas, img { + border: 1px solid black; +} |