This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
Refactor styling #134
Labels
invalid
This doesn't seem right
workflow
Workflow improvements
wpcs-compliance
WordPress Coding Standards conformance
Milestone
Currently, we have 8 CSS stylesheets in the
css/
dir (ignoring the minified ones that are still tracked in version control for reasons:tm:). When building the Plugin for release, these are concatenated in various combinations into a bunch offootnotes-<code>.css
files, which are then minified and linked conditionally based on user-defined settings (which are used to build the<code>
).There are a number of issues with this:
<code>
s are hard-coded, meaning thatbuild_stylesheets.sh
must be updated if the user-defined settings ever change; andAs part of #87, I will also look into how we can reorganise this. For example, starting to refactor the stylesheets into SCSS to make namespacing more reliable, splitting components into individual files, etc. Once we have a proper CSS build pipeline in place, this should have the knock-on effect of removing the need for the
build_stylesheets.sh
command, as we'll be able to define much more fine-grained stylesheets to be conditionally imported (and, of course, we can roll in #88 as well).The text was updated successfully, but these errors were encountered: