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/assets/stylesheets/application/_fonts.scss | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 app/assets/stylesheets/application/_fonts.scss (limited to 'app/assets/stylesheets/application/_fonts.scss') diff --git a/app/assets/stylesheets/application/_fonts.scss b/app/assets/stylesheets/application/_fonts.scss deleted file mode 100644 index 5bb13f1..0000000 --- a/app/assets/stylesheets/application/_fonts.scss +++ /dev/null @@ -1,12 +0,0 @@ -/* Override ForkAwesome font path to match Webpack's */ -$fa-font-path: '/packs/media/fonts'; - -/* Align font icon with the marker's head */ -.extra-marker-svg i.fa { - position: absolute; - top: 9px; - font-size: 16px; - left: -2px; - right: 0px; - text-align: center; -} -- cgit v1.2.3