consul/ui/packages/consul-ui/app
John Cowen 9eab715149
ui: Move all our icons to use CSS custom properties instead of SASS vars (#10298)
* ui: Move all our icons to use CSS custom properties

The good thing about SASS vars is, if you don't use them they get removed from the final build. Whereas with CSS we have no tree-shaking to get rid of unused CSS custom properties. We can mostly work around this and for some things like colors its no big deal if we have some hex-codes in the build that we don't use as hex-codes are relatively small.

We've been slowly but surely moving all of our colors (and other things) to use CSS custom properties instead of SASS vars now that we have them available.

This commit makes use of the 'tree-shaking' abilities of @extend to ensure that we only compile in the icons that we use.

This commit is mostly churn-less as we already use @extend for the majority of our icons, so generally there is zero change here for working on the UI, but I did spot one single place where we were using SASS vars instead of @extend. This now uses the new form (second commit)

Interestingly this reduces our CSS payload by ~2kb to ~53kb (around 25kb of that is these icons)
2021-06-21 11:54:58 +01:00
..
abilities ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
adapters ui: Auth Methods - Create Binding Rules tab (#9914) 2021-03-26 11:47:47 -04:00
components ui: %horizontal-kv-list CSS component (and related) (#10285) 2021-06-21 11:40:14 +01:00
controllers ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
decorators ui: Serf Health Check warning notice (#10194) 2021-05-13 11:36:51 +01:00
filter/predicates ui: Serf Health Check warning notice (#10194) 2021-05-13 11:36:51 +01:00
forms
helpers ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
initializers ui: CSP Improvements (#9847) 2021-03-17 10:46:21 +00:00
instance-initializers ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
locations ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
mixins ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
models ui: Unix Domain Socket support (#10287) 2021-05-26 17:52:25 +01:00
modifiers ui: Add all tooltips to the default tabbing order in the page (#9888) 2021-03-18 14:35:50 +00:00
routes ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
routing ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
search/predicates ui: Serf Health Check warning notice (#10194) 2021-05-13 11:36:51 +01:00
serializers ui: Auth Methods - Create Binding Rules tab (#9914) 2021-03-26 11:47:47 -04:00
services ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
sort/comparators ui: Reformat MaxTokenTTL to sortBy as an integer (#9969) 2021-04-07 12:43:04 -04:00
styles ui: Move all our icons to use CSS custom properties instead of SASS vars (#10298) 2021-06-21 11:54:58 +01:00
templates ui: %horizontal-kv-list CSS component (and related) (#10285) 2021-06-21 11:40:14 +01:00
utils ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
validations
app.js
env.js
formats.js ui: Install ember-intl (#9399) 2020-12-15 18:29:32 +00:00
index.html
router.js ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00