Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions live-examples/css-examples/color/color-adjust.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#example-element {
padding: 1rem;
font-size: 1.5rem;
background-color: black;
background-image: linear-gradient(rgba(0, 0, 180, .5), rgba(70, 140, 220, .5));
color: #333;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
24 changes: 24 additions & 0 deletions live-examples/css-examples/color/color-adjust.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<section id="example-choice-list" class="example-choice-list large" data-property="color-adjust">
<div class="example-choice">
<pre><code class="language-css">color-adjust: economy;</code></pre>
<button type="button" class="copy hidden" aria-hidden="true">
<span class="visually-hidden">Copy to Clipboard</span>
</button>
</div>

<div class="example-choice">
<pre><code class="language-css">color-adjust: exact;</code></pre>
<button type="button" class="copy hidden" aria-hidden="true">
<span class="visually-hidden">Copy to Clipboard</span>
</button>
</div>

</section>

<div id="output" class="output large hidden">
<section id="default-example">
<div id="example-element">
<p>This contrast is terrible!</p>
</div>
</section>
</div>
8 changes: 8 additions & 0 deletions live-examples/css-examples/color/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
"title": "CSS Demo: color",
"type": "css"
},
"color-adjust": {
"baseTmpl": "tmpl/live-css-tmpl.html",
"cssExampleSrc": "../../live-examples/css-examples/color/color-adjust.css",
"exampleCode": "live-examples/css-examples/color/color-adjust.html",
"fileName": "color-adjust.html",
"title": "CSS Demo: color-adjust",
"type": "css"
},
"opacity": {
"baseTmpl": "tmpl/live-css-tmpl.html",
"cssExampleSrc":
Expand Down