Skip to content
This repository was archived by the owner on Sep 25, 2020. It is now read-only.

Commit 2a27d9f

Browse files
committed
Link to demo from readme
1 parent d39cba2 commit 2a27d9f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Load up `./index.html` in your browser and you're off to the races!
2424

2525
## Object-Fit Utilities
2626

27-
[View the source](https://github.com/tailwindcss/plugin-examples/blob/master/plugins/object-fit/index.js)
27+
[View demo](https://tailwindcss.github.io/plugin-examples/#object-fit) · [View source](https://github.com/tailwindcss/plugin-examples/blob/master/plugins/object-fit/index.js)
2828

2929
In `plugins/object-fit/index.js` you'll find an example of a plugin that adds a set of simple, non-configurable utility classes for the `object-fit` property.
3030

@@ -47,7 +47,7 @@ This is just about the simplest type of plugin you could make.
4747

4848
## Simple Buttons
4949

50-
[View the source](https://github.com/tailwindcss/plugin-examples/blob/master/plugins/simple-buttons/index.js)
50+
[View demo](https://tailwindcss.github.io/plugin-examples/#simple-buttons) · [View source](https://github.com/tailwindcss/plugin-examples/blob/master/plugins/simple-buttons/index.js)
5151

5252
In `plugins/simple-buttons/index.js` you'll find an example of a plugin that adds new button component classes.
5353

@@ -142,7 +142,7 @@ Again, the sky is the limit in terms of the API a plugin exposes for configurati
142142

143143
## CSS Grid Utilities
144144

145-
[View the source](https://github.com/tailwindcss/plugin-examples/blob/master/plugins/css-grid/index.js)
145+
[View demo](https://tailwindcss.github.io/plugin-examples/#css-grid) · [View source](https://github.com/tailwindcss/plugin-examples/blob/master/plugins/css-grid/index.js)
146146

147147
In `plugins/css-grid/index.js` you'll find an example of a plugin that adds new utilities for using [CSS Grid Layout](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout).
148148

@@ -184,3 +184,4 @@ The plugin generates the following sets of classes:
184184
- `.col-start-{line}` and `.col-end-{line}`, for specifying a column's start and end points explicitly (useful for reordering columns or leaving gaps)
185185

186186
It's not really practical to expose all of the power of CSS Grid through utilities, but this plugin is a good example of using CSS Grid to replace a column-only float or Flexbox grid.
187+
tailwind

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<link rel="stylesheet" href="./dist/styles.css">
88
</head>
99
<body class="font-sans text-black">
10-
<div class="bg-white py-8">
10+
<div id="object-fit" class="bg-white py-8">
1111
<div class="container mx-auto px-8">
1212
<h2 class="text-2xl font-bold text-black mb-2">Object-Fit Utilities</h2>
1313
<p class="mb-6">
@@ -50,7 +50,7 @@ <h2 class="text-2xl font-bold text-black mb-2">Object-Fit Utilities</h2>
5050
</div>
5151
</div>
5252
</div>
53-
<div class="bg-grey-lighter py-8">
53+
<div id="simple-buttons" class="bg-grey-lighter py-8">
5454
<div class="container mx-auto px-8">
5555
<h2 class="text-2xl font-bold text-black mb-2">Simple Buttons</h2>
5656
<p class="mb-6">
@@ -85,7 +85,7 @@ <h3 class="text-lg text-grey-darker font-semibold mb-4">Sizes</h3>
8585
</div>
8686
</div>
8787
</div>
88-
<div class="bg-white py-8">
88+
<div id="css-grid" class="bg-white py-8">
8989
<div class="container mx-auto px-8">
9090
<h2 class="text-2xl font-bold text-black mb-2">CSS Grid Utilities</h2>
9191
<p class="mb-6">

0 commit comments

Comments
 (0)