From 73b3fffdbe730c33480682c40e7e8271e75ddf59 Mon Sep 17 00:00:00 2001 From: hellekin Date: Sat, 23 Jan 2021 15:35:49 +0100 Subject: Move CSS to Webpack Using both the asset pipeline and webpack is confusing and leads to unpredictable results in production. This commit moves all (S)CSS to Webpack under `app/javascript/scss` so that we can test whether the development interface results in a consistent production deployment. In order to load the ForkAwesome fonts we used a long path: `$fa-font-path: "../../../node_modules/fork-awesome/fonts";` Not sure whether this works... --- app/javascript/scss/components/_user_info.scss | 70 ++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 app/javascript/scss/components/_user_info.scss (limited to 'app/javascript/scss/components/_user_info.scss') diff --git a/app/javascript/scss/components/_user_info.scss b/app/javascript/scss/components/_user_info.scss new file mode 100644 index 0000000..765be0a --- /dev/null +++ b/app/javascript/scss/components/_user_info.scss @@ -0,0 +1,70 @@ +/* + * SPDX-FileCopyrightText: 2020 IN COMMON Collective a { + display: block; + height: 100%; + width: 2.2857em; + height: 2.2857em; + padding: 0.2143em; + text-decoration: none; + cursor: pointer; + border-top: 1px solid transparent; + border-left: 1px solid transparent; + border-right: 1px solid transparent; + transition: all linear 0.15s; + outline: none; + + > img { + border-radius: 50%; + } + } + } + + &.authenticated { + + } + &.anonymous { + } +} -- cgit v1.2.3