From 5e54ba7aa27b95d1e0568693915e735ab8058ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Thu, 28 Jun 2012 19:49:45 +0000 Subject: Initial version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Asbjørn Sloth Tønnesen --- web/css/.gitignore | 1 + web/css/Makefile | 25 ++++++++++++++++++++ web/css/labitrack.d/01-basic.css | 49 +++++++++++++++++++++++++++++++++++++++ web/css/labitrack.d/10-canvas.css | 3 +++ 4 files changed, 78 insertions(+) create mode 100644 web/css/.gitignore create mode 100644 web/css/Makefile create mode 100644 web/css/labitrack.d/01-basic.css create mode 100644 web/css/labitrack.d/10-canvas.css (limited to 'web/css') 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; +} -- cgit v1.2.1