Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #32018 -- Extracted admin colors into CSS variables. #13435

Merged
merged 1 commit into from
Jan 7, 2021

Commits on Jan 7, 2021

  1. Fixed #32018 -- Extracted admin colors into CSS variables.

    Defined all colors used in the admin CSS as variables. Implemented the
    following standardizations and accessibility improvements while at it:
    
    - Improved the contrast of text to not use ratios of less than 3:1 anymore.
    - Most hover states already used desaturated and darkened colors.
      Changed object tools to follow the same rule instead of showing the
      primary color on hover.
    
    Various places used similar colors; those have been merged with the goal
    of reducing the count of CSS variables. Contrasts have been improved in
    a few places.
    
    - Many borders used slightly different colors (e.g. #eaeaea vs. #eee)
    - Help texts used django#999, this has been changed to --body-quiet-color
      (django#666) which has a better contrast.
    
    Introduced fast color transitions on links and buttons.
    matthiask authored and carltongibson committed Jan 7, 2021
    Configuration menu
    Copy the full SHA
    8143267 View commit details
    Browse the repository at this point in the history