From bb17dfa8fb6221986f5934ffb010d7539ed237e2 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 1 Nov 2018 10:54:38 +0000 Subject: [PATCH] CSS: Add CSS for file listings Signed-off-by: Michael Tremer --- .gitignore | 1 + Makefile.am | 3 +++ src/scss/listing.scss | 29 +++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 src/scss/listing.scss diff --git a/.gitignore b/.gitignore index 2a441607..389a7458 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ /build-aux /configure /config.* +/src/scss/listing.css /src/scss/main.css /src/scripts/ipfire.org /src/scripts/ipfire.org-webapp diff --git a/Makefile.am b/Makefile.am index ade67f28..821513c7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -255,6 +255,7 @@ SCSS_FILES = \ src/scss/_variables.scss EXTRA_DIST += \ + src/scss/listing.scss \ src/templates/messages/main.scss CLEANFILES += \ @@ -263,9 +264,11 @@ CLEANFILES += \ static_DATA = \ src/static/favicon.ico \ src/static/robots.txt \ + src/scss/listing.css \ src/scss/main.css CLEANFILES += \ + src/scss/listing.css \ src/scss/main.css EXTRA_DIST += \ diff --git a/src/scss/listing.scss b/src/scss/listing.scss new file mode 100644 index 00000000..3a9464f2 --- /dev/null +++ b/src/scss/listing.scss @@ -0,0 +1,29 @@ +@import "variables"; + +// Import bootstrap +@import "../bootstrap/scss/functions"; +@import "../bootstrap/scss/variables"; +@import "../bootstrap/scss/mixins"; +@import "../bootstrap/scss/reboot"; + +// Import components we need +@import "../bootstrap/scss/type"; +@import "../bootstrap/scss/tables"; + +// Include fonts +@import "fonts"; + +body { + padding: $spacer * 2; +} + +// Make all tables .table by default +table { + @extend .table; + + width: auto; +} + +hr { + display: none; +} -- 2.39.2