Skip to content

Commit 654f10e

Browse files
authored
Merge pull request #141 from tailwindcss/yaml-subtitles
Re-apply #138 "Move page descriptions into YAML"
2 parents 79c61eb + 4c1017c commit 654f10e

File tree

66 files changed

+101
-416
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+101
-416
lines changed

docs/source/_layouts/documentation.blade.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,14 @@
190190
<div id="content" class="px-6 pb-8 pt-20 md:pt-16 w-full max-w-lg mx-auto">
191191
<div id="app" v-cloak>
192192
<div class="markdown">
193+
<h1>{{ $page->title }}</h1>
194+
195+
@if($page->description)
196+
<div class="text-xl text-slate-light mb-4">
197+
{{ $page->description }}
198+
</div>
199+
@endif
200+
193201
@yield('content')
194202
</div>
195203
</div>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<div class="mt-8">
2+
<div class="bg-blue-lightest border-l-4 border-blue-light rounded-b text-blue-darkest px-4 py-3">
3+
<div class="flex">
4+
<div class="py-1">
5+
<svg class="h-6 w-6 text-blue-light mr-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-2c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm-.5-5h1c.276 0 .5.224.5.5v1c0 .276-.224.5-.5.5h-1c-.276 0-.5-.224-.5-.5v-1c0-.276.224-.5.5-.5zm0-8h1c.276 0 .5.224.5.5V8l-.5 3-1 .5L9 8V5.5c0-.276.224-.5.5-.5z"/></svg>
6+
</div>
7+
<div>
8+
<p class="font-semibold">Work in progress!</p>
9+
<p class="text-sm">More detailed examples are coming soon.</p>
10+
</div>
11+
</div>
12+
</div>
13+
</div>

docs/source/docs/adding-new-utilities.blade.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
extends: _layouts.documentation
33
title: "Adding New Utilities"
4+
description: null
45
---
56

6-
# Adding New Utilities
7-
87
Although Tailwind provides a pretty comprehensive set of utility classes out of the box, you're inevitably going to run into situations where you need to add a few of your own.
98

109
Deciding on the best way to extend a framework can be paralyzing, so here's some best practices and tools to help you add your own utilities "the Tailwind way."

docs/source/docs/background-color.blade.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
---
22
extends: _layouts.documentation
3-
title: "Backgrounds"
3+
title: "Background Color"
4+
description: "Utilities for controlling an element's background color."
45
---
56

6-
# Background Color
7-
8-
<div class="text-xl text-slate-light mb-4">
9-
Utilities for controlling an element's background color.
10-
</div>
11-
127
@include('_partials.feature-badges', [
138
'responsive' => true,
149
'customizable' => true,

docs/source/docs/background-position.blade.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
---
22
extends: _layouts.documentation
33
title: "Background Position"
4+
description: "Utilities for controlling the position of an element's background image."
45
---
56

6-
# Background Position
7-
8-
<div class="text-xl text-slate-light mb-4">
9-
Utilities for controlling the position of an element's background image.
10-
</div>
11-
127
@include('_partials.feature-badges', [
138
'responsive' => true,
149
'customizable' => false,

docs/source/docs/background-size.blade.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
---
22
extends: _layouts.documentation
33
title: "Background Size"
4+
description: "Utilities for controlling the background size of an element's background image."
45
---
56

6-
# Background Size
7-
8-
<div class="text-xl text-slate-light mb-4">
9-
Utilities for controlling the background size of an element's background image.
10-
</div>
11-
127
@include('_partials.feature-badges', [
138
'responsive' => true,
149
'customizable' => false,

docs/source/docs/border-color.blade.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
---
22
extends: _layouts.documentation
33
title: "Border Color"
4+
description: "Utilities for controlling the color of an element's borders."
45
---
56

6-
# Border Color
7-
8-
<div class="text-xl text-slate-light mb-4">
9-
Utilities for controlling the color of an element's borders.
10-
</div>
11-
127
@include('_partials.feature-badges', [
138
'responsive' => true,
149
'customizable' => true,

docs/source/docs/border-radius.blade.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
---
22
extends: _layouts.documentation
33
title: "Border Radius"
4+
description: "Utilities for controlling the border radius of an element."
45
---
56

6-
# Border Radius
7-
8-
<div class="text-xl text-slate-light mb-4">
9-
Utilities for controlling the border radius of an element.
10-
</div>
11-
127
@include('_partials.feature-badges', [
138
'responsive' => true,
149
'customizable' => true,

docs/source/docs/border-style.blade.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
---
22
extends: _layouts.documentation
33
title: "Border Style"
4+
description: "Utilities for controlling the style of an element's borders."
45
---
56

6-
# Border Style
7-
8-
<div class="text-xl text-slate-light mb-4">
9-
Utilities for controlling the style of an element's borders.
10-
</div>
11-
127
@include('_partials.feature-badges', [
138
'responsive' => true,
149
'customizable' => false,

docs/source/docs/border-width.blade.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
---
22
extends: _layouts.documentation
33
title: "Border Width"
4+
description: "Utilities for controlling the width an element's borders."
45
---
56

6-
# Border Width
7-
8-
<div class="text-xl text-slate-light mb-4">
9-
Utilities for controlling the width an element's borders.
10-
</div>
11-
127
@include('_partials.feature-badges', [
138
'responsive' => true,
149
'customizable' => true,

0 commit comments

Comments
 (0)