-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(css): create an example for content-visibility
- Loading branch information
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
live-examples/css-examples/container/content-visibility.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.container { | ||
width: 140px; | ||
height: 140px; | ||
border: 3px solid rgb(64, 28, 163); | ||
background-color: rgb(135, 136, 184); | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.child { | ||
border: 3px solid rgb(64, 28, 163); | ||
background-color: wheat; | ||
width: 80%; | ||
height: 80%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} |
25 changes: 25 additions & 0 deletions
25
live-examples/css-examples/container/content-visibility.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<section id="example-choice-list" class="example-choice-list large" data-property="content-visibility"> | ||
<div class="example-choice" initial-choice="true"> | ||
<pre><code class="language-css">content-visibility: visible;</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">content-visibility: hidden;</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" class="default-example"> | ||
<div id="example-element" class="container"> | ||
<div class="child"> | ||
<span>This is an inner div</span> | ||
</div> | ||
</div> | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters