summaryrefslogtreecommitdiffstats
path: root/web/css
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>2012-06-28 19:49:45 +0000
committerAsbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>2012-06-28 19:49:45 +0000
commit5e54ba7aa27b95d1e0568693915e735ab8058ff7 (patch)
tree1c2743605a6cce00edb82b5f15b9a3f08f6ace30 /web/css
downloadlabitrack-5e54ba7aa27b95d1e0568693915e735ab8058ff7.tar.gz
labitrack-5e54ba7aa27b95d1e0568693915e735ab8058ff7.tar.xz
labitrack-5e54ba7aa27b95d1e0568693915e735ab8058ff7.zip
Initial version
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
Diffstat (limited to 'web/css')
-rw-r--r--web/css/.gitignore1
-rw-r--r--web/css/Makefile25
-rw-r--r--web/css/labitrack.d/01-basic.css49
-rw-r--r--web/css/labitrack.d/10-canvas.css3
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;
+}