Skip to content

Commit

Permalink
Merge pull request #942 from matuzalemsteles/ReviewClayDoc
Browse files Browse the repository at this point in the history
Add new page Typography in clayui.com and makes page popovers_tooltips consistent with lexicon page popovers_tooltips pattern
  • Loading branch information
jbalsas authored May 25, 2018
2 parents 682091d + b316c5f commit 5f8ffed
Show file tree
Hide file tree
Showing 3 changed files with 358 additions and 17 deletions.
39 changes: 23 additions & 16 deletions packages/clayui.com/src/pages/docs/components/popovers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@
title: Popovers and Tooltips
description: Components
layout: "guide"
pattern: "popovers_tooltips"
weight: 100
---

<div class="alert alert-info">Check the <a href="https://lexicondesign.io">Lexicon</a> <a href="https://lexicondesign.io/docs/patterns/{$page.pattern}.html">{$page.title} Pattern</a> for a more in-depth look at the motivations and proper usage of this component.</div>

<article id="popovers">

### Popovers

> Popovers and Tooltips are patterns to show help text in two different ways.
<div class="clay-site-popover-display">
<div class="popover bs-popover-top">
<div class="popover clay-popover-top">
<div class="arrow"></div>
<div class="inline-scroller">
<div class="popover-header">Popover top</div>
Expand All @@ -19,7 +24,7 @@ weight: 100
</div>
</div>
</div>
<div class="popover bs-popover-right">
<div class="popover clay-popover-right">
<div class="arrow"></div>
<div class="inline-scroller">
<div class="popover-header">Popover right</div>
Expand All @@ -28,7 +33,7 @@ weight: 100
</div>
</div>
</div>
<div class="popover bs-popover-bottom">
<div class="popover clay-popover-bottom">
<div class="arrow"></div>
<div class="inline-scroller">
<div class="popover-header">Popover bottom</div>
Expand All @@ -38,7 +43,7 @@ weight: 100
</div>
</div>
</div>
<div class="popover bs-popover-left">
<div class="popover clay-popover-left">
<div class="arrow"></div>
<div class="inline-scroller">
<div class="popover-header">Popover left</div>
Expand All @@ -50,7 +55,7 @@ weight: 100
</div>

```text/html
<div class="popover bs-popover-top">
<div class="popover clay-popover-top">
<div class="arrow"></div>
<div class="inline-scroller">
<div class="popover-header">Popover top</div>
Expand All @@ -60,7 +65,7 @@ weight: 100
</div>
</div>
<div class="popover bs-popover-right">
<div class="popover clay-popover-right">
<div class="arrow"></div>
<div class="inline-scroller">
<div class="popover-header">Popover right</div>
Expand All @@ -70,7 +75,7 @@ weight: 100
</div>
</div>
<div class="popover bs-popover-bottom">
<div class="popover clay-popover-bottom">
<div class="arrow"></div>
<div class="inline-scroller">
<div class="popover-header">Popover bottom</div>
Expand All @@ -81,7 +86,7 @@ weight: 100
</div>
</div>
<div class="popover bs-popover-left">
<div class="popover clay-popover-left">
<div class="arrow"></div>
<div class="inline-scroller">
<div class="popover-header">Popover left</div>
Expand All @@ -99,26 +104,28 @@ weight: 100

### Tooltips

> Tooltips are brief pieces of information that appear on hover state over an element to clarify the meaning or use of an interaction element for the user.
<div class="clay-site-tooltip-display">
<div class="tooltip bs-tooltip-right" role="tooltip">
<div class="tooltip clay-tooltip-right" role="tooltip">
<div class="arrow"></div>
<div class="tooltip-inner">
<div>Tooltip on the right</div>
</div>
</div>
<div class="tooltip bs-tooltip-left" role="tooltip">
<div class="tooltip clay-tooltip-left" role="tooltip">
<div class="arrow"></div>
<div class="tooltip-inner">
<div>Tooltip on the left</div>
</div>
</div>
<div class="tooltip bs-tooltip-bottom" role="tooltip">
<div class="tooltip clay-tooltip-bottom" role="tooltip">
<div class="arrow"></div>
<div class="tooltip-inner">
<div>Tooltip on bottom</div>
</div>
</div>
<div class="tooltip bs-tooltip-top" role="tooltip">
<div class="tooltip clay-tooltip-top" role="tooltip">
<div class="arrow"></div>
<div class="tooltip-inner">
<div>Tooltip on top</div>
Expand All @@ -127,28 +134,28 @@ weight: 100
</div>

```text/html
<div class="tooltip bs-tooltip-right" role="tooltip">
<div class="tooltip clay-tooltip-right" role="tooltip">
<div class="arrow"></div>
<div class="tooltip-inner">
<div>Tooltip on the right</div>
</div>
</div>
<div class="tooltip bs-tooltip-left" role="tooltip">
<div class="tooltip clay-tooltip-left" role="tooltip">
<div class="arrow"></div>
<div class="tooltip-inner">
<div>Tooltip on the left</div>
</div>
</div>
<div class="tooltip bs-tooltip-bottom" role="tooltip">
<div class="tooltip clay-tooltip-bottom" role="tooltip">
<div class="arrow"></div>
<div class="tooltip-inner">
<div>Tooltip on bottom</div>
</div>
</div>
<div class="tooltip bs-tooltip-top" role="tooltip">
<div class="tooltip clay-tooltip-top" role="tooltip">
<div class="arrow"></div>
<div class="tooltip-inner">
<div>Tooltip on top</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ weight: 1
> If you want to go beyond the static HTML, add our bundled library to get access to the full power of Clay!
```text/html
<script src="https://cdn.jsdelivr.net/npm/clay/lib/js/clay.js>
<script src="https://cdn.jsdelivr.net/npm/clay/lib/js/clay.js">
```

## Components
Expand Down
Loading

0 comments on commit 5f8ffed

Please sign in to comment.