[policy] Document when we should use each CSS unit

Created on 4 July 2014, almost 10 years ago
Updated 16 February 2024, 4 months ago

Problem/Motivation

We don't have anything in our CSS standards about which units to use and when, apart from media queries β†’

We have a really inconsistent implementation just in Seven alone, it would be nice to have some guidance for contributors.

Proposed resolution

Use rem units preceded by px units for a safe fallback, unless it creates an undesired effect.

Remaining tasks

Discuss
Agree
Add to the standards document

User interface changes

None

API changes

None

πŸ“Œ Task
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component
CSSΒ  β†’

Last updated 3 days ago

Created by

πŸ‡¬πŸ‡§United Kingdom LewisNyman

Live updates comments and jobs are added and updated live.
  • CSS

    It involves the content or handling of Cascading Style Sheets.

  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024