From 3e198526e66b88301882b14240f0d50b8819b520 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 18 Feb 2024 18:40:14 +0200 Subject: dynamically load .style.js files; move the files closer to related components --- src/components/poll/poll_graph.style.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/components/poll/poll_graph.style.js (limited to 'src/components/poll/poll_graph.style.js') diff --git a/src/components/poll/poll_graph.style.js b/src/components/poll/poll_graph.style.js new file mode 100644 index 00000000..01b4d35c --- /dev/null +++ b/src/components/poll/poll_graph.style.js @@ -0,0 +1,14 @@ +export default { + name: 'PollGraph', + selector: '.poll-graph', + validInnerComponents: [ + 'Text' + ], + defaultRules: [ + { + directives: { + background: '--accent' + } + } + ] +} -- cgit v1.2.3-70-g09d2 From 099a2eb27f7bbde9dffe475ba25ce2f138a75670 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 22 Feb 2024 00:31:20 +0200 Subject: proper polls support --- src/components/poll/poll_graph.style.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/components/poll/poll_graph.style.js') diff --git a/src/components/poll/poll_graph.style.js b/src/components/poll/poll_graph.style.js index 01b4d35c..247a266a 100644 --- a/src/components/poll/poll_graph.style.js +++ b/src/components/poll/poll_graph.style.js @@ -1,13 +1,11 @@ export default { name: 'PollGraph', - selector: '.poll-graph', - validInnerComponents: [ - 'Text' - ], + selector: '.result-fill', defaultRules: [ { directives: { - background: '--accent' + background: '--accent', + opacity: 0.5 } } ] -- cgit v1.2.3-70-g09d2