TACC / Core-CMS

The Core CMS codebase used by TACC Portals.
https://cep.tacc.utexas.edu
2 stars 1 forks source link

chore: tup-677 css/django/vite interoperability #778

Closed wesleyboar closed 8 months ago

wesleyboar commented 8 months ago

Overview

Edit CSS so that Django and Vite do not use it unexpectedly.

[!WARNING] This change causes errors collecting them as static files, so all collectstatic commands have had --ignore param added to avoid the error. This is intended to be a temporary workaround.

Related

Pull Requests - https://github.com/TACC/tup-ui/pull/400 requires: - https://github.com/TACC/Core-Styles/pull/285 - https://github.com/TACC/Core-CMS/pull/778 requires: - https://github.com/TACC/Core-Styles/pull/285 - https://github.com/TACC/Core-CMS-Resources/pull/197 requires: - https://github.com/TACC/Camino/pull/44

Changes

CSS

Static Files / Cache

Testing

  1. Uncertain. See https://github.com/TACC/tup-ui/pull/398.
  2. Verify in a WYSIWYG editor that an instance of "Styles" → "Block Styles" → "Island" is styled.

UI

c-island

Notes

How to FIx The Issue w/ Font

In some of these font files url(fonts/...) needs to be url(../fonts/..) e.g. https://github.com/TACC/Core-Styles/blob/v2.22.4/dist/settings/font.css. — (paraphrased) @jarosenb

The paths to fonts have — in the past — been manipulated via https://github.com/TACC/Core-Styles/blob/v2.22.4/src/.postcssrc.base.yml#L37-L43. — (paraphrased) @wesleyboar