-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(css): Add example of
overflow-clip-margin
(#2474)
- Loading branch information
1 parent
3f4131c
commit 4a01bef
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
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
8 changes: 8 additions & 0 deletions
8
live-examples/css-examples/basic-box-model/overflow-clip-margin.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,8 @@ | ||
#example-element { | ||
width: 15em; | ||
height: 9em; | ||
border: medium dotted; | ||
padding: 0.75em; | ||
text-align: left; | ||
overflow: clip; | ||
} |
37 changes: 37 additions & 0 deletions
37
live-examples/css-examples/basic-box-model/overflow-clip-margin.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,37 @@ | ||
<section id="example-choice-list" class="example-choice-list large" data-property="overflow-clip-margin"> | ||
|
||
<div class="example-choice"> | ||
<pre><code class="language-css">overflow-clip-margin: 0px;</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" initial-choice="true"> | ||
<pre><code class="language-css">overflow-clip-margin: 20px;</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">overflow-clip-margin: 2rem;</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">overflow-clip-margin: 4ch;</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"> | ||
<p id="example-element">Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the earth.</p> | ||
</section> | ||
</div> |