Bug 142380 - DRY: Use CSS variables to eliminate repetition
Summary: DRY: Use CSS variables to eliminate repetition
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: low enhancement
Assignee: Not Assigned
URL:
Whiteboard: target:7.4.0 target:7.5.0 target:7.4....
Keywords:
Depends on:
Blocks: New-Help
  Show dependency treegraph
 
Reported: 2021-05-19 16:28 UTC by Adolfo Jayme Barrientos
Modified: 2023-01-30 20:46 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adolfo Jayme Barrientos 2021-05-19 16:28:33 UTC
Use CSS variables so that values like font families and colors can be defined only once, and colors can be derived in a systematic, consistent fashion.

All major browsers support them now. https://caniuse.com/css-variables
Comment 1 Olivier Hallot 2021-05-19 20:34:14 UTC
Yeah. Parametrize may give us better CSS management.
Comment 2 Buovjaga 2021-09-24 11:30:32 UTC
As naming things is always hard, this might give inspiration: https://www.pollen.style/

I mean just to steal ideas for naming, not shipping the library itself.
Comment 3 Commit Notification 2022-01-05 17:17:08 UTC
Olivier Hallot committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/8d2e185e13b0afe7c007144fc05ae68357d7c470

tdf#142380 (part) Use variables in css
Comment 4 Commit Notification 2022-06-20 12:39:26 UTC
Adolfo Jayme Barrientos committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/8db4f0bd980c14b969f8bc08d3a1ecac7d5f7336

tdf#142380 tdf#142531 Update font stack, w/o “system-ui”
Comment 5 Commit Notification 2022-06-20 12:41:44 UTC
Adolfo Jayme Barrientos committed a patch related to this issue.
It has been pushed to "libreoffice-7-4":

https://git.libreoffice.org/help/commit/9257660dcda0ba8aa7fe6b3b96c430c0ed6e8bf1

tdf#142380 tdf#142531 Update font stack, w/o “system-ui”
Comment 6 Commit Notification 2023-01-30 20:46:54 UTC
Adolfo Jayme Barrientos committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/c6cea6707879ad1c8f5bd11ff26b774f2e59b013

tdf#142380 Use CSS variable for background color