commit | eae570f9546e087bbf584a502808ff5c13571634 | [log] [tgz] |
---|---|---|
author | Dan Beam <dbeam@chromium.org> | Wed Jan 02 23:21:12 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jan 02 23:21:12 2019 |
tree | 034d1f16dbe5d21fa4de26a81c401c128bc15938 | |
parent | d52d33fe18332ebcb346476673a67a01b44383ef [diff] |
Dark Mode: add a better way of creating opacity variants of colors Previously, there were things like: --some-color: #010203; --some-color-opacity-X: rgba(1, 2, 3, X); Which is a bit inflexible and leads to a bit of redundancy. Instead, let's use this syntax, which allows minting an arbitrary number of colors with var() + rgba() syntax: --some-color-rgb: 1, 2, 3; --some-color: rgb(var(--some-color)); /* later ... */ color: rgba(var(--some-color-rgb), X /* any opacity */); Bug: 883049 Change-Id: If730a1123294e43f2ea04b433c6c5a46933cc08e Reviewed-on: https://chromium-review.googlesource.com/c/1393442 Reviewed-by: Esmael El-Moslimany <aee@chromium.org> Commit-Queue: Dan Beam <dbeam@chromium.org> Cr-Commit-Position: refs/heads/master@{#619532}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .