rebuild docs
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 2.6 KiB |
File diff suppressed because one or more lines are too long
Binary file not shown.
|
Before Width: | Height: | Size: 35 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
36
index.html
36
index.html
@ -20,6 +20,7 @@
|
||||
<a class="sidebar__link" href="#clearfix">Clearfix</a>
|
||||
<a class="sidebar__link" href="#constant-width-to-height-ratio">Constant width to height ratio</a>
|
||||
<a class="sidebar__link" href="#custom-text-selection">Custom text selection</a>
|
||||
<a class="sidebar__link" href="#disable-selection">Disable selection</a>
|
||||
<a class="sidebar__link" href="#donut-spinner">Donut spinner</a>
|
||||
<a class="sidebar__link" href="#easing-variables">Easing variables</a>
|
||||
<a class="sidebar__link" href="#etched-text">Etched text</a>
|
||||
@ -178,6 +179,41 @@ in any specification.</span></p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="snippet">
|
||||
<h3 id="disable-selection">Disable selection</h3>
|
||||
<p>Makes the content unselectable.</p>
|
||||
<h4 data-type="HTML">HTML</h4><pre><code class="lang-html"><p>You can select me.</p>
|
||||
<p class="unselectable">You can't select me!</p>
|
||||
</code></pre>
|
||||
<h4 data-type="CSS">CSS</h4><pre><code class="lang-css">.unselectable {
|
||||
user-select: none;
|
||||
}
|
||||
</code></pre>
|
||||
<h4 data-type="Demo">Demo</h4>
|
||||
<div class="snippet-demo">
|
||||
<p>You can select me.</p>
|
||||
<p class="snippet-demo__disable-selection">You can't select me!</p>
|
||||
</div>
|
||||
<style>
|
||||
.snippet-demo__disable-selection {
|
||||
user-select: none;
|
||||
}
|
||||
</style>
|
||||
<h4 data-type="Explanation">Explanation</h4>
|
||||
<p><code>user-select: none</code> specifies that the text cannot be selected.</p>
|
||||
<h4 data-type="Browser support">Browser support</h4>
|
||||
<div>
|
||||
<div class="snippet__browser-support">
|
||||
86.3%
|
||||
</div>
|
||||
</div>
|
||||
<p><span class="snippet__support-note">⚠️ Requires prefixes for full support.</span></p>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://caniuse.com/#feat=user-select-none" target="_blank">https://caniuse.com/#feat=user-select-none</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="snippet">
|
||||
<h3 id="donut-spinner">Donut spinner</h3>
|
||||
<p>Creates a donut spinner that can be used to indicate the loading of content.</p>
|
||||
|
||||
Reference in New Issue
Block a user