From bcd7383e858d7358ab8bbccf26132c713cfefe93 Mon Sep 17 00:00:00 2001 From: Deimos Date: Sun, 10 Mar 2019 21:14:09 -0600 Subject: [PATCH] Add SCSS module for rules used on static sites We're going to make the static sites depend on the main site's stylesheet, but as part of that we need to be able to do a little bit of customization specific to them - specifically, being able to bring over the rules for setting up how lists and links look. Hopefully we shouldn't need to use this much, but this is reasonable for now. --- tildes/scss/modules/_static-site.scss | 14 ++++++++++++++ tildes/scss/styles.scss | 1 + 2 files changed, 15 insertions(+) create mode 100644 tildes/scss/modules/_static-site.scss diff --git a/tildes/scss/modules/_static-site.scss b/tildes/scss/modules/_static-site.scss new file mode 100644 index 0000000..7bd5b7f --- /dev/null +++ b/tildes/scss/modules/_static-site.scss @@ -0,0 +1,14 @@ +// Copyright (c) 2019 Tildes contributors +// SPDX-License-Identifier: AGPL-3.0-or-later + +// Rules in this file are used by the Tildes static sites (Blog, Docs), not Tildes +// itself. In general, rules in here should be kept to the absolute minimum, and only +// used when necessary to transfer over styling to the static sites where it's not +// feasible to do that through the separate CSS file in the repo for those sites. + +body.static-site { + main { + @extend %links-text; + @extend %lists-text; + } +} diff --git a/tildes/scss/styles.scss b/tildes/scss/styles.scss index ca8d258..c197317 100644 --- a/tildes/scss/styles.scss +++ b/tildes/scss/styles.scss @@ -27,6 +27,7 @@ @import 'modules/sidebar'; @import 'modules/site-footer'; @import 'modules/site-header'; +@import 'modules/static-site'; @import 'modules/tab'; @import 'modules/text'; @import 'modules/time';