Please change inline CSS to CSS classes #2736

Open
opened 2022-08-06 06:17:10 +00:00 by ao · 1 comment
Member

Pages including [1] include inline CSS. Please do not use style attributes to design an element. So instead of:

<p style="color: red;">text</p>

use CSS classes instead, or create them if necessary.

More information why this is bad style, and what to do instead:
https://wiki.fsfe.org/TechDocs/Mainpage/Editing/BestPractices#No_in-line_CSS

[1] activities/android/android.en.xhtml

Pages including [1] include inline CSS. Please do not use style attributes to design an element. So instead of: <p style="color: red;">text</p> use CSS classes instead, or create them if necessary. More information why this is bad style, and what to do instead: https://wiki.fsfe.org/TechDocs/Mainpage/Editing/BestPractices#No_in-line_CSS [1] activities/android/android.en.xhtml
ao added the
help wanted
design
labels 2022-08-06 06:17:11 +00:00
Owner

Thanks. I am not sure how we should track this in a ticket. It's a herculean task to replace all custom styles by CSS classes as most of them would not exist yet.

Please note that the pre-commit hooks check for such custom styles already and throw a warning, so this could be a motivation to look for replacements one by one. Especially graphics should be relatively easy to replace by the figures and their classes.

Thanks. I am not sure how we should track this in a ticket. It's a herculean task to replace *all* custom styles by CSS classes as most of them would not exist yet. Please note that the pre-commit hooks check for such custom styles already and throw a warning, so this could be a motivation to look for replacements one by one. Especially graphics should be relatively easy to replace by the figures and their classes.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: FSFE/fsfe-website#2736
No description provided.