Clean up CSS, class/ID names
Related to #1 (closed)
There are a lot of really terrible ID and class names throughout the page: #page-content
, #container
, etc. They're vague, and usually aren't representative of what the element actually is. Most of them are left over from early in the dev process when I just needed a name for something.
Additionally, CSS is strewn everywhere. A few macros define their own <style>
and <script>
tags, and several elements have inline CSS. These are messy and hard to follow, and will break if a landing page is served with a strict CSP.
-
The styles (inline and style tags) need to all be pulled into the main style tag in page.html -
IDs need to be cleaned up and given actual names that represent the element -
Class names need to be cleaned up as well ( onion-url-span-uncopied
isn't great) -
Scripts need to be consolidated into their own files -
Consider SCSS as part of the build process to make the styles even easier to read -
Clean up jinja macros. They're unreadable and obtuse
Edited by Kez