Skip to content

Commit 56b062b

Browse files
committed
Convert to 2-space indentation
1 parent 40715a7 commit 56b062b

File tree

72 files changed

+3362
-3411
lines changed

Some content is hidden

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

72 files changed

+3362
-3411
lines changed

docs/source/_assets/js/app.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ window.Vue = require('vue')
77
Vue.component('responsive-code-sample', require('./components/ResponsiveCodeSample.vue'))
88

99
const app = new Vue({
10-
el: '#app'
10+
el: '#app'
1111
})
1212

1313
Prism.highlightAll()
14-
anchors.options = { placement: 'left', class: 'text-slate-light' };
15-
anchors.add();
14+
anchors.options = { placement: 'left', class: 'text-slate-light' }
15+
anchors.add()
1616

1717
// Add shortcut to search input when pressing the "/" key
1818
document.onkeyup = function (e) {
19-
if (e.which == 191) {
20-
document.getElementById('docsearch').focus();
21-
}
22-
};
19+
if (e.which == 191) {
20+
document.getElementById('docsearch').focus()
21+
}
22+
}

docs/source/_assets/js/nav.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ $.when($.ready).then(function() {
5353
// Load page history (for back/forward nav)
5454
window.onpopstate = function(e) {
5555
if(e.state){
56-
5756
// Update the page
5857
$('title').text(e.state.title)
5958
$('#nav').html(e.state.nav)

docs/source/_assets/less/prism.less

Lines changed: 51 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -7,82 +7,82 @@
77

88
code[class*="language-"],
99
pre[class*="language-"] {
10-
@apply .font-mono;
11-
@apply .text-slate-dark;
10+
@apply .font-mono;
11+
@apply .text-slate-dark;
1212

13-
background: none;
14-
text-align: left;
15-
white-space: pre;
16-
word-spacing: normal;
17-
word-break: normal;
18-
word-wrap: normal;
19-
line-height: 1.5;
13+
background: none;
14+
text-align: left;
15+
white-space: pre;
16+
word-spacing: normal;
17+
word-break: normal;
18+
word-wrap: normal;
19+
line-height: 1.5;
2020

21-
-moz-tab-size: 4;
22-
-o-tab-size: 4;
23-
tab-size: 4;
21+
-moz-tab-size: 4;
22+
-o-tab-size: 4;
23+
tab-size: 4;
2424

25-
-webkit-hyphens: none;
26-
-moz-hyphens: none;
27-
-ms-hyphens: none;
28-
hyphens: none;
25+
-webkit-hyphens: none;
26+
-moz-hyphens: none;
27+
-ms-hyphens: none;
28+
hyphens: none;
2929

30-
font-weight: 400;
30+
font-weight: 400;
3131
}
3232

3333
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
3434
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
35-
text-shadow: none;
36-
background: #b3d4fc;
35+
text-shadow: none;
36+
background: #b3d4fc;
3737
}
3838

3939
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
4040
code[class*="language-"]::selection, code[class*="language-"] ::selection {
41-
text-shadow: none;
42-
background: #b3d4fc;
41+
text-shadow: none;
42+
background: #b3d4fc;
4343
}
4444

4545
@media print {
46-
code[class*="language-"],
47-
pre[class*="language-"] {
48-
text-shadow: none;
49-
}
46+
code[class*="language-"],
47+
pre[class*="language-"] {
48+
text-shadow: none;
49+
}
5050
}
5151

5252
/* Code blocks */
5353
pre {
54-
padding: 1em;
55-
margin: .5em 0;
56-
overflow: auto;
54+
padding: 1em;
55+
margin: .5em 0;
56+
overflow: auto;
5757
}
5858

5959
:not(pre) > code[class*="language-"],
6060
pre[class*="language-"] {
61-
background: transparent;
62-
@apply .text-sm;
61+
background: transparent;
62+
@apply .text-sm;
6363
}
6464

6565
/* Inline code */
6666
:not(pre) > code[class*="language-"] {
67-
padding: .1em;
68-
border-radius: .3em;
69-
white-space: normal;
67+
padding: .1em;
68+
border-radius: .3em;
69+
white-space: normal;
7070
}
7171

7272
.token.comment,
7373
.token.prolog,
7474
.token.doctype,
7575
.token.cdata {
76-
@apply .text-grey;
76+
@apply .text-grey;
7777
}
7878

7979
.token.punctuation {
80-
@apply .text-blue-dark;
81-
// color: #999;
80+
@apply .text-blue-dark;
81+
// color: #999;
8282
}
8383

8484
.namespace {
85-
opacity: .7;
85+
opacity: .7;
8686
}
8787

8888
.token.property,
@@ -91,19 +91,19 @@ pre[class*="language-"] {
9191
.token.number,
9292
.token.constant,
9393
.token.symbol {
94-
@apply .text-blue-dark;
94+
@apply .text-blue-dark;
9595
}
9696

9797
code.language-diff, pre.language-diff {
98-
@apply .text-grey-darker;
98+
@apply .text-grey-darker;
9999
}
100100

101101
.token.deleted {
102-
@apply .text-grey;
102+
@apply .text-grey;
103103
}
104104

105105
.token.inserted {
106-
@apply .text-blue-dark;
106+
@apply .text-blue-dark;
107107
}
108108

109109
// .token.selector,
@@ -112,44 +112,43 @@ code.language-diff, pre.language-diff {
112112
// .token.builtin,
113113
// .token.inserted,
114114
.token.string {
115-
@apply .text-purple;
115+
@apply .text-purple;
116116
}
117117

118118
.token.operator,
119119
.token.entity,
120120
.token.url,
121121
.language-css .token.string,
122122
.style .token.string {
123-
color: #a67f59;
124-
background: hsla(0, 0%, 100%, .5);
123+
color: #a67f59;
124+
background: hsla(0, 0%, 100%, .5);
125125
}
126126

127127
.token.atrule,
128128
.token.attr-value,
129129
.token.keyword {
130-
@apply .text-purple;
131-
// color: #07a;
130+
@apply .text-purple;
131+
// color: #07a;
132132
}
133133

134134
.token.function {
135-
color: #DD4A68;
135+
color: #DD4A68;
136136
}
137137

138138
.token.regex,
139139
.token.important,
140140
.token.variable {
141-
color: #e90;
141+
color: #e90;
142142
}
143143

144144
.token.important,
145145
.token.bold {
146-
font-weight: bold;
146+
font-weight: bold;
147147
}
148148
.token.italic {
149-
font-style: italic;
149+
font-style: italic;
150150
}
151151

152152
.token.entity {
153-
cursor: help;
153+
cursor: help;
154154
}
155-

docs/source/_layouts/documentation.blade.php

Lines changed: 76 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -11,92 +11,89 @@
1111

1212
@section('body')
1313
<div class="min-h-screen">
14-
<div id="sidebar" class="hidden z-50 fixed pin-y pin-l overflow-y-scroll md:overflow-visible scrolling-touch md:scrolling-auto bg-smoke-light w-4/5 md:w-full md:max-w-xs flex-none border-r-2 border-smoke md:flex flex-col">
15-
<div class="border-b border-smoke flex-none px-8 py-6">
16-
<div class="mb-4">
17-
<div class="hidden md:flex md:justify-center">
18-
<a href="/" class="flex justify-center">
19-
<svg class="w-16 h-16 mx-auto block" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="M13.5 11.1C15.3 3.9 19.8.3 27 .3c10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05zM0 27.3c1.8-7.2 6.3-10.8 13.5-10.8 10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05z" transform="translate(5 16)" fill="url(#logoGradient)" fill-rule="evenodd"/></svg>
20-
</a>
21-
</div>
22-
<p class="text-center">
23-
<a href="https://github.com/tailwindcss/tailwindcss/releases" class="text-sm hover:text-grey-dark text-grey font-semibold">v{{ $page->version }}</a>
24-
</p>
25-
</div>
26-
<div class="relative">
27-
<input id="docsearch" class="rounded bg-white border border-smoke py-2 pr-4 pl-10 block w-full" type="text" placeholder="Search the docs">
28-
<div class="pointer-events-none absolute pin-y pin-l pl-3 flex items-center">
29-
<svg class="pointer-events-none text-slate w-4 h-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"/></svg>
30-
</div>
31-
</div>
14+
<div id="sidebar" class="hidden z-50 fixed pin-y pin-l overflow-y-scroll md:overflow-visible scrolling-touch md:scrolling-auto bg-smoke-light w-4/5 md:w-full md:max-w-xs flex-none border-r-2 border-smoke md:flex flex-col">
15+
<div class="border-b border-smoke flex-none px-8 py-6">
16+
<div class="mb-4">
17+
<div class="hidden md:flex md:justify-center">
18+
<a href="/" class="flex justify-center">
19+
<svg class="w-16 h-16 mx-auto block" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="M13.5 11.1C15.3 3.9 19.8.3 27 .3c10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05zM0 27.3c1.8-7.2 6.3-10.8 13.5-10.8 10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05z" transform="translate(5 16)" fill="url(#logoGradient)" fill-rule="evenodd"/></svg>
20+
</a>
3221
</div>
33-
<div class="p-8 flex-1 overflow-y-scroll">
34-
<nav id="nav" class="text-base overflow-y-scroll">
35-
@foreach ($page->navigation as $sectionName => $sectionItems)
36-
<div class="mb-8">
37-
<p class="mb-4 text-slate-light uppercase tracking-wide font-bold text-xs">{{ $sectionName }}</p>
38-
<ul>
39-
@foreach ($sectionItems as $name => $slugOrChildren)
40-
@if (is_string($slugOrChildren))
41-
<li class="mb-3"><a class="hover:underline {{ $page->active('/docs/' . $slugOrChildren) ? 'text-slate-darker font-bold' : 'text-slate-dark' }}" href="{{ $page->baseUrl }}/docs/{{ $slugOrChildren }}">{{ $name }}</a></li>
42-
@else
43-
<li class="mb-3">
44-
<a href="{{ $page->baseUrl }}/docs/{{ $slugOrChildren->first() }}" class="hover:underline block mb-2 {{ $page->anyChildrenActive($slugOrChildren) ? 'text-slate-darker font-bold' : 'text-slate-dark' }}">{{ $name }}</a>
45-
<ul class="pl-4 {{ $page->anyChildrenActive($slugOrChildren) ? 'block' : 'hidden' }}">
46-
@foreach ($slugOrChildren as $title => $link)
47-
<li class="mb-3">
48-
<a class="hover:underline {{ $page->active('/docs/' . $link) ? 'text-slate-darker font-bold' : 'text-slate-dark' }}" href="{{ $page->baseUrl }}/docs/{{ $link }}">
49-
{{ $title }}
50-
</a>
51-
</li>
52-
@endforeach
53-
</ul>
54-
</li>
55-
@endif
56-
@endforeach
57-
</ul>
58-
</div>
59-
@endforeach
60-
</nav>
22+
<p class="text-center">
23+
<a href="https://github.com/tailwindcss/tailwindcss/releases" class="text-sm hover:text-grey-dark text-grey font-semibold">v{{ $page->version }}</a>
24+
</p>
25+
</div>
26+
<div class="relative">
27+
<input id="docsearch" class="rounded bg-white border border-smoke py-2 pr-4 pl-10 block w-full" type="text" placeholder="Search the docs">
28+
<div class="pointer-events-none absolute pin-y pin-l pl-3 flex items-center">
29+
<svg class="pointer-events-none text-slate w-4 h-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"/></svg>
6130
</div>
31+
</div>
6232
</div>
63-
<div class="md:ml-80">
64-
<div class="fixed w-full z-20">
65-
<div class="pin-t bg-white md:hidden relative border-b border-grey-light h-12 flex items-center">
66-
<div id="sidebar-open" class="absolute pin-l pin-y px-4 flex items-center">
67-
<svg class="w-4 h-4 cursor-pointer text-grey" role="button" fill="#777" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"/></svg>
68-
</div>
69-
<a href="/" class="mx-auto inline-flex items-center">
70-
<svg class="w-8 h-8" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="M13.5 11.1C15.3 3.9 19.8.3 27 .3c10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05zM0 27.3c1.8-7.2 6.3-10.8 13.5-10.8 10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05z" transform="translate(5 16)" fill="url(#logoGradient)" fill-rule="evenodd"/></svg>
71-
</a>
72-
<div id="sidebar-close" class="hidden">
73-
<div class="flex items-center absolute pin-r pin-y px-4">
74-
<svg class="w-4 h-4 cursor-pointer text-grey" role="button" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"/></svg>
75-
</div>
76-
</div>
77-
</div>
33+
<div class="p-8 flex-1 overflow-y-scroll">
34+
<nav id="nav" class="text-base overflow-y-scroll">
35+
@foreach ($page->navigation as $sectionName => $sectionItems)
36+
<div class="mb-8">
37+
<p class="mb-4 text-slate-light uppercase tracking-wide font-bold text-xs">{{ $sectionName }}</p>
38+
<ul>
39+
@foreach ($sectionItems as $name => $slugOrChildren)
40+
@if (is_string($slugOrChildren))
41+
<li class="mb-3"><a class="hover:underline {{ $page->active('/docs/' . $slugOrChildren) ? 'text-slate-darker font-bold' : 'text-slate-dark' }}" href="{{ $page->baseUrl }}/docs/{{ $slugOrChildren }}">{{ $name }}</a></li>
42+
@else
43+
<li class="mb-3">
44+
<a href="{{ $page->baseUrl }}/docs/{{ $slugOrChildren->first() }}" class="hover:underline block mb-2 {{ $page->anyChildrenActive($slugOrChildren) ? 'text-slate-darker font-bold' : 'text-slate-dark' }}">{{ $name }}</a>
45+
<ul class="pl-4 {{ $page->anyChildrenActive($slugOrChildren) ? 'block' : 'hidden' }}">
46+
@foreach ($slugOrChildren as $title => $link)
47+
<li class="mb-3">
48+
<a class="hover:underline {{ $page->active('/docs/' . $link) ? 'text-slate-darker font-bold' : 'text-slate-dark' }}" href="{{ $page->baseUrl }}/docs/{{ $link }}">
49+
{{ $title }}
50+
</a>
51+
</li>
52+
@endforeach
53+
</ul>
54+
</li>
55+
@endif
56+
@endforeach
57+
</ul>
7858
</div>
79-
<div id="content" class="px-6 pb-8 pt-20 md:pt-16 w-full max-w-lg mx-auto">
80-
<div id="app" v-cloak>
81-
<div class="markdown">
82-
<h1>{{ $page->title }}</h1>
83-
84-
@if($page->description)
85-
<div class="text-xl text-slate-light mb-4">
86-
{{ $page->description }}
87-
</div>
88-
@endif
89-
90-
@if($page->features)
91-
@include('_partials.feature-badges', $page->features->all())
92-
@endif
93-
94-
@yield('content')
95-
</div>
59+
@endforeach
60+
</nav>
61+
</div>
62+
</div>
63+
<div class="md:ml-80">
64+
<div class="fixed w-full z-20">
65+
<div class="pin-t bg-white md:hidden relative border-b border-grey-light h-12 flex items-center">
66+
<div id="sidebar-open" class="absolute pin-l pin-y px-4 flex items-center">
67+
<svg class="w-4 h-4 cursor-pointer text-grey" role="button" fill="#777" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"/></svg>
68+
</div>
69+
<a href="/" class="mx-auto inline-flex items-center">
70+
<svg class="w-8 h-8" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="M13.5 11.1C15.3 3.9 19.8.3 27 .3c10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05zM0 27.3c1.8-7.2 6.3-10.8 13.5-10.8 10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05z" transform="translate(5 16)" fill="url(#logoGradient)" fill-rule="evenodd"/></svg>
71+
</a>
72+
<div id="sidebar-close" class="hidden">
73+
<div class="flex items-center absolute pin-r pin-y px-4">
74+
<svg class="w-4 h-4 cursor-pointer text-grey" role="button" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"/></svg>
75+
</div>
76+
</div>
77+
</div>
78+
</div>
79+
<div id="content" class="px-6 pb-8 pt-20 md:pt-16 w-full max-w-lg mx-auto">
80+
<div id="app" v-cloak>
81+
<div class="markdown">
82+
<h1>{{ $page->title }}</h1>
83+
@if ($page->description)
84+
<div class="text-xl text-slate-light mb-4">
85+
{{ $page->description }}
9686
</div>
97-
<script src="/js/app.js"></script>
87+
@endif
88+
@if ($page->features)
89+
@include('_partials.feature-badges', $page->features->all())
90+
@endif
91+
@yield('content')
9892
</div>
93+
</div>
94+
<script src="/js/app.js"></script>
9995
</div>
96+
</div>
10097
</div>
10198

10299
<svg style="height: 0; width: 0; position: absolute; visibility: hidden;">

0 commit comments

Comments
 (0)