From 07e4a2dafe248280b5610f8c7d09b0f30b530f54 Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Mon, 10 Jun 2024 09:41:25 -0400 Subject: Initial modifications to rebuilt only changed files based on mod date, performance updates --- build/current-color/index.html | 66 ------------------------------------------ 1 file changed, 66 deletions(-) delete mode 100644 build/current-color/index.html (limited to 'build/current-color') diff --git a/build/current-color/index.html b/build/current-color/index.html deleted file mode 100644 index 6a8239a..0000000 --- a/build/current-color/index.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - CSS Value: `currentColor` - - - - - - - -
-

CSS Value: currentColor

-

2019-04-13

-

There are a large number of nuanced and mostly unheard of CSS value types, but today we are going to focus on currentColor. So what is the currentColor value type anyway?

-
-

The currentColor value type will apply the existing color value to other properties like background-color, etc.

-
-

See it in action

-

Let’s assume with have a single div with the following properties:

-
div {
-    color: dodgerblue;
-}
-
-

If we wanted to use that same color for other properties on elements inside that initial div, it’s simple - we just need to call currentColor like so:

-
div {
-    color: dodgerblue;
-}
-
-div header {
-    background-color: currentColor;
-}
-
-div a {
-    border-bottom: 1px solid currentColor;
-}
-
-

Sidenote: If you re-declare the default color property further along in your CSS, the currentColor value will update according to the last color set.

-

And that’s it. Best of all, this value type is supported across all major browsers!

- \ No newline at end of file -- cgit v1.2.3-54-g00ecf