aboutsummaryrefslogtreecommitdiff
path: root/build/current-color/index.html
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-06-08 13:43:37 -0400
committerBradley Taunt <bt@btxx.org>2024-06-08 13:43:37 -0400
commit16d28628aca9b2d356de31c319f5e7bc0f5b2b02 (patch)
tree11947abb71e38cbe75116871694a44c33d257763 /build/current-color/index.html
parentdcfb172704f3afb68a30425029ec834be2883274 (diff)
Remove incorrectly generated files, fix up markdown articles
Diffstat (limited to 'build/current-color/index.html')
-rw-r--r--build/current-color/index.html13
1 files changed, 2 insertions, 11 deletions
diff --git a/build/current-color/index.html b/build/current-color/index.html
index 12972d0..6a8239a 100644
--- a/build/current-color/index.html
+++ b/build/current-color/index.html
@@ -3,11 +3,12 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="color-scheme" content="dark light">
<link rel="icon" href="data:,">
<title>CSS Value: `currentColor`</title>
<link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
<link href="/rss.xml" type="application/rss+xml" rel="alternate" title="RSS feed for blog posts" />
-<style>*{box-sizing:border-box;}body{font-family:sans-serif;line-height:1.33;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{border:1px solid;overflow:auto;padding:5px;}table{text-align:left;width:100%;}.footnotes{font-size:90%;}</style>
+<style>*{box-sizing:border-box;}body{font-family:sans-serif;line-height:1.33;margin:0 auto;max-width:650px;padding:1rem;}blockquote{background:rgba(0,0,0,0.1);border-left:4px solid;padding-left:5px;}img{max-width:100%;}pre{border:1px solid;overflow:auto;padding:5px;}table{text-align:left;width:100%;}.footnotes{font-size:90%;}</style>
</head>
<nav>
@@ -16,26 +17,18 @@
<main>
<h1 id="css-value-">CSS Value: <code>currentColor</code></h1>
-
<p>2019-04-13</p>
-
<p><em>There are a large number of nuanced and mostly unheard of</em> CSS value types, but today we are going to focus on <code>currentColor</code>. So what is the <code>currentColor</code> value type anyway?</p>
-
<blockquote>
<p>The currentColor value type will apply the existing color value to other properties like background-color, etc.</p>
</blockquote>
-
<h2 id="see-it-in-action">See it in action</h2>
-
<p>Let&#8217;s assume with have a single div with the following properties:</p>
-
<pre><code>div {
color: dodgerblue;
}
</code></pre>
-
<p>If we wanted to use that same color for other properties on elements inside that initial <code>div</code>, it&#8217;s simple - we just need to call <code>currentColor</code> like so:</p>
-
<pre><code>div {
color: dodgerblue;
}
@@ -48,9 +41,7 @@ div a {
border-bottom: 1px solid currentColor;
}
</code></pre>
-
<p><strong>Sidenote</strong>: If you re-declare the default <code>color</code> property further along in your CSS, the <code>currentColor</code> value will update according to the last color set.</p>
-
<p>And that&#8217;s it. Best of all, this value type is supported across all major browsers!</p>
<footer role="contentinfo">
<h2>Menu Navigation</h2>