Skip to content

Commit

Permalink
Add more hover docs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Nov 1, 2017
1 parent 4071d6d commit 4f65e10
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 5 deletions.
3 changes: 1 addition & 2 deletions docs/source/docs/background-color.blade.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ title: "Backgrounds"
</table>
</div>


## Hover

In addition to the standard responsive variations, background colors also come in `hover:` variations that apply the given background color on hover.
Expand All @@ -53,5 +52,5 @@ In addition to the standard responsive variations, background colors also come i
Hover utilities can also be combined with responsive utilities by adding the responsive `{screen}:` prefix *before* the `hover:` prefix.

```html
<button class="bg-blue hover:bg-purple md:bg-orange md:hover:bg-red">Button</button>
<button class="... md:bg-orange md:hover:bg-red ...">Button</button>
```
17 changes: 17 additions & 0 deletions docs/source/docs/border-color.blade.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,20 @@ title: "Border Color"
</tbody>
</table>
</div>


## Hover

In addition to the standard responsive variations, border colors also come in `hover:` variations that apply the given border color on hover.

@component('_partials.code-sample', ['class' => 'text-center'])
<button class="border-2 border-blue hover:border-red bg-transparent text-blue-dark hover:text-red-dark py-2 px-4 font-semibold rounded">
Button
</button>
@endcomponent

Hover utilities can also be combined with responsive utilities by adding the responsive `{screen}:` prefix *before* the `hover:` prefix.

```html
<button class="... md:border-blue md:hover:border-red ...">Button</button>
```
4 changes: 2 additions & 2 deletions docs/source/docs/border-width.blade.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ extends: _layouts.documentation
title: "Border Width"
---

# Border Width & Position
# Border Width

<div class="text-xl text-slate-light mb-4">
Utilities for controlling the width and position of an element's borders.
Utilities for controlling the width an element's borders.
</div>

@include('_partials.feature-badges', [
Expand Down
16 changes: 16 additions & 0 deletions docs/source/docs/text-color.blade.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,19 @@ title: "Text Color"
</tbody>
</table>
</div>

## Hover

In addition to the standard responsive variations, text colors also come in `hover:` variations that apply the given text color on hover.

@component('_partials.code-sample', ['class' => 'text-center'])
<button class="text-blue-dark hover:text-red-dark border-2 border-blue hover:border-red bg-transparent py-2 px-4 font-semibold rounded">
Button
</button>
@endcomponent

Hover utilities can also be combined with responsive utilities by adding the responsive `{screen}:` prefix *before* the `hover:` prefix.

```html
<button class="... md:text-blue md:hover:text-red ...">Button</button>
```
16 changes: 15 additions & 1 deletion docs/source/docs/text-style.blade.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ title: "Style & Decoration"
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Set the font smoothing of an element to antialiased.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.subpixel-antialiased</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark whitespace-no-wrap">.subpixel-antialiased</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">
-webkit-font-smoothing: auto;<br>
-moz-osx-font-smoothing: auto;
Expand All @@ -97,3 +97,17 @@ title: "Style & Decoration"
</tbody>
</table>
</div>

## Hover

In addition to the standard responsive variations, text style utilties also come in `hover:` variations that apply the given text style on hover.

@component('_partials.code-sample', ['class' => 'text-center'])
<a href="#" class="no-underline hover:underline text-blue text-lg">Link</a>
@endcomponent

Hover utilities can also be combined with responsive utilities by adding the responsive `{screen}:` prefix *before* the `hover:` prefix.

```html
<a href="#" class="... md:no-underline md:hover:underline ...">Link</a>
```

0 comments on commit 4f65e10

Please sign in to comment.