From 3ef9e4d7b8fa24801d913587b7342f93318e3ff6 Mon Sep 17 00:00:00 2001 From: Alexey Safronov Date: Fri, 6 Sep 2019 09:24:48 +0300 Subject: [PATCH] web: components: Fixed global styles for storybook --- web/ASC.Web.Components/.storybook/config.js | 3 +++ web/ASC.Web.Components/.storybook/{index.css => styles.scss} | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) rename web/ASC.Web.Components/.storybook/{index.css => styles.scss} (54%) diff --git a/web/ASC.Web.Components/.storybook/config.js b/web/ASC.Web.Components/.storybook/config.js index 18a411e0e9..61e3eccfef 100644 --- a/web/ASC.Web.Components/.storybook/config.js +++ b/web/ASC.Web.Components/.storybook/config.js @@ -2,6 +2,9 @@ import { configure, addDecorator, addParameters } from '@storybook/react'; import { withA11y } from '@storybook/addon-a11y'; import { addReadme } from 'storybook-readme'; import { withConsole } from '@storybook/addon-console'; + +import '!style-loader!css-loader!./styles.scss'; + //import 'bootstrap/dist/css/bootstrap.css'; //import 'react-toastify/dist/ReactToastify.min.css'; /* diff --git a/web/ASC.Web.Components/.storybook/index.css b/web/ASC.Web.Components/.storybook/styles.scss similarity index 54% rename from web/ASC.Web.Components/.storybook/index.css rename to web/ASC.Web.Components/.storybook/styles.scss index 1b7f356ad7..53ec471971 100644 --- a/web/ASC.Web.Components/.storybook/index.css +++ b/web/ASC.Web.Components/.storybook/styles.scss @@ -5,6 +5,5 @@ you have to go to `webpack.config.js` file and enable the options in there */ -html { - padding: 2rem; -} +@import '../node_modules/bootstrap/dist/css/bootstrap.css'; +@import '../node_modules/react-toastify/dist/ReactToastify.min.css';