CSS: Add CSS for file listings
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Nov 2018 10:54:38 +0000 (10:54 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Nov 2018 10:54:38 +0000 (10:54 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
.gitignore
Makefile.am
src/scss/listing.scss [new file with mode: 0644]

index 2a44160..389a745 100644 (file)
@@ -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
index ade67f2..821513c 100644 (file)
@@ -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 (file)
index 0000000..3a9464f
--- /dev/null
@@ -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;
+}