forked from mdn/interactive-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add example of `text-wrap` * Adding ability to edit text * Changing the tip text
- Loading branch information
Showing
3 changed files
with
67 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
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,11 @@ | ||
.whole-content-wrapper { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
width: 100%; | ||
} | ||
|
||
#example-element { | ||
border: 1px solid #c5c5c5; | ||
width: 250px; | ||
} |
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,49 @@ | ||
<section id="example-choice-list" class="example-choice-list large" data-property="text-wrap"> | ||
<div class="example-choice" initial-choice="true"> | ||
<pre><code class="language-css">text-wrap: wrap;</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">text-wrap: nowrap;</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">text-wrap: balance;</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">text-wrap: pretty;</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">text-wrap: stable;</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 class="whole-content-wrapper"> | ||
<p>Edit the text in the box:</p> | ||
<div id="example-element" class="transition-all"> | ||
<p contenteditable> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatem aut cum eum id quos est. | ||
</p> | ||
</div> | ||
</div> | ||
</section> | ||
</div> |