1
0
mirror of https://github.com/tabler/tabler.git synced 2026-07-22 13:31:50 +04:00

interactions docs

This commit is contained in:
codecalm
2021-01-23 15:42:13 +01:00
parent 7a69e8f6ef
commit 695ad78581
3 changed files with 32 additions and 2 deletions
+4
View File
@@ -117,6 +117,10 @@ utils:
title: Cursors
url: docs/cursors.html
interactions:
title: Interactions
url: docs/interactions.html
plugins:
title: Plugins
icon: apps
+26
View File
@@ -0,0 +1,26 @@
---
title: Interactions
description: Utility classes that change how users interact with contents of a website.
menu: docs.utils.interactions
---
## Text selection
Change the way in which the content is selected when the user interacts with it.
{% capture code %}
<p class="user-select-all">This paragraph will be entirely selected when clicked by the user.</p>
<p class="user-select-auto">This paragraph has default select behavior.</p>
<p class="user-select-none">This paragraph will not be selectable when clicked by the user.</p>
{% endcapture %}
{% include example.html code=code %}
## Pointer events
Tabler provides .pe-none and .pe-auto classes to prevent or add element interactions.
{% capture code %}
<p><a href="#" class="pe-none" tabindex="-1" aria-disabled="true">This link</a> can not be clicked.</p>
<p><a href="#" class="pe-auto">This link</a> can be clicked (this is default behavior).</p>
{% endcapture %}
{% include example.html code=code %}
+2 -2
View File
@@ -16,8 +16,8 @@ page-header: Documentation
<div class="card-body">
<div class="markdown">
<div>
<div class="d-flex mb-4">
<h1 class="mt-0">{{ page.title }}</h1>
<div class="d-flex mb-3">
<h1 class="m-0">{{ page.title }}</h1>
{% if page.bootstrap-link %}
<p class="ms-auto">