From a2336412454fea975da248503fa003af30150cd4 Mon Sep 17 00:00:00 2001 From: Mizunashi Mana Date: Sun, 21 Apr 2019 21:58:36 +0900 Subject: [PATCH] Disable mergeRules on cssnano See https://github.com/cssnano/cssnano/issues/701 --- frontend/main.scss | 9 +++------ webpack.config.js | 6 +++++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/frontend/main.scss b/frontend/main.scss index 6c3532b2..0793fa06 100644 --- a/frontend/main.scss +++ b/frontend/main.scss @@ -135,12 +135,10 @@ ul.social { height: 0; margin: 5px; position: absolute; - border-width: 5px; - border-style: solid; - border-color: #ffffff; + border: 5px solid #ffffff; overflow: hidden; - ::after { + &::after { content: ""; position: absolute; width: 5px; @@ -152,7 +150,7 @@ ul.social { } } - [x-placement^="bottom"] { + &[x-placement^="bottom"] { margin-top: 5px; .tooltip-arrow { @@ -166,7 +164,6 @@ ul.social { } } - .footnote-tooltip-content { padding: 4px 10px; } diff --git a/webpack.config.js b/webpack.config.js index e9879b14..e1c5a03c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -35,7 +35,11 @@ module.exports = { options: { plugins: function () { return [ - require('cssnano'), + require('cssnano')({ + preset: ['default', { + mergeRules: false, + }] + }), require('precss'), require('autoprefixer') ];