summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2013-10-12 18:50:55 +0200
committerJonas Smedegaard <dr@jones.dk>2021-03-24 21:41:34 +0100
commit14e6ec969ae256a233ac8b7fa7f01068c74219d5 (patch)
tree3c36d8fcbca38a0fda11781f4d447f6611187858
parent168187d37d5a329cddf21c438311fbc7b8ba4be5 (diff)
provide default styling as mixin 2/2: wrap styling into mixins, and re-add style.scss
-rw-r--r--default/_ikiwiki.scss16
-rw-r--r--default/style.scss2
2 files changed, 18 insertions, 0 deletions
diff --git a/default/_ikiwiki.scss b/default/_ikiwiki.scss
index 2ebbc20..4d73124 100644
--- a/default/_ikiwiki.scss
+++ b/default/_ikiwiki.scss
@@ -1,13 +1,19 @@
+@mixin ikiwiki-boilerplate {
/* ikiwiki style sheet */
/* Note that instead of modifying this style sheet, you can instead edit
* local.css and use it to override or change settings in this one.
*/
+}
+
+@mixin ikiwiki-reset {
/* html5 compat */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
+}
+@mixin ikiwiki-style-legacy {
div.header, header.header {
margin: 0;
font-size: 140%;
@@ -692,7 +698,9 @@ a.login_large_btn:focus {
.trailsep {
display: none;
}
+}
+@mixin ikiwiki-flexbox {
/* mobile/small-screen-friendly layout */
@media (max-width: 600px) {
.sidebar {
@@ -735,3 +743,11 @@ a.login_large_btn:focus {
padding: 4px 4px;
}
}
+}
+
+@mixin ikiwiki {
+ @include ikiwiki-boilerplate;
+ @include ikiwiki-reset;
+ @include ikiwiki-style-legacy;
+ @include ikiwiki-flexbox;
+}
diff --git a/default/style.scss b/default/style.scss
new file mode 100644
index 0000000..a23d692
--- /dev/null
+++ b/default/style.scss
@@ -0,0 +1,2 @@
+@import "ikiwiki";
+@include ikiwiki;