From c546d234217a5fbed31d0ec3326fca1373c965c8 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Thu, 24 Feb 2022 15:44:37 +0100 Subject: [PATCH] scss file added plus config webpack still missing something, because doesn't work yet --- .../Resources/public/pages/chillbudget.scss | 44 +++++++++++++++++++ .../Resources/public/pages/index.js | 1 + .../ChillBudgetBundle/chill.webpack.config.js | 9 ++++ 3 files changed, 54 insertions(+) create mode 100644 src/Bundle/ChillBudgetBundle/Resources/public/pages/chillbudget.scss create mode 100644 src/Bundle/ChillBudgetBundle/Resources/public/pages/index.js create mode 100644 src/Bundle/ChillBudgetBundle/chill.webpack.config.js diff --git a/src/Bundle/ChillBudgetBundle/Resources/public/pages/chillbudget.scss b/src/Bundle/ChillBudgetBundle/Resources/public/pages/chillbudget.scss new file mode 100644 index 000000000..079e40e06 --- /dev/null +++ b/src/Bundle/ChillBudgetBundle/Resources/public/pages/chillbudget.scss @@ -0,0 +1,44 @@ +.subtitle { + margin-top: 1rem; + margin-bottom: 1rem; + padding: 1rem; +} +.family-title { + margin-bottom: 1rem !important; +} +.budget-table th { + th { + color: white; + } +} +.budget-table { + th.charge { + background-color: $budget-charge-color; + } +} +.budget-table { + th.resource { + background-color: $budget-resource-color; + } +} +.budget-table { + th, td { + padding: 10px; + text-align: left; + } + td.column-wide { + width: 25%; + } + td.column-small { + width: 15%; + } +} + +.bold { + font-weight: 600; +} + +.total { + margin-top: 1rem; + border-top: 1px dashed black; +} \ No newline at end of file diff --git a/src/Bundle/ChillBudgetBundle/Resources/public/pages/index.js b/src/Bundle/ChillBudgetBundle/Resources/public/pages/index.js new file mode 100644 index 000000000..ad7eba2d9 --- /dev/null +++ b/src/Bundle/ChillBudgetBundle/Resources/public/pages/index.js @@ -0,0 +1 @@ +require('./chillbudget.scss'); \ No newline at end of file diff --git a/src/Bundle/ChillBudgetBundle/chill.webpack.config.js b/src/Bundle/ChillBudgetBundle/chill.webpack.config.js new file mode 100644 index 000000000..b6cc8e66e --- /dev/null +++ b/src/Bundle/ChillBudgetBundle/chill.webpack.config.js @@ -0,0 +1,9 @@ +// this file loads all assets from the Chill person bundle +module.exports = function(encore, entries) +{ + entries.push(__dirname + '/Resources/public/pages/index.js'); + + encore.addAliases({ + ChillBudgetAssets: __dirname + '/Resources/public' + }); +};