Skip to content

Commit 7c0bcf3

Browse files
committed
Update docs for new radius utilities
1 parent ec5bb5e commit 7c0bcf3

30 files changed

+444
-266
lines changed

docs/source/_assets/js/components/ResponsiveCodeSample.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<p class="text-xs">xl</p>
2323
</span>
2424
</div>
25-
<div class="rounded overflow-hidden border-2 border-smoke mb-8">
25+
<div class="radius-md overflow-hidden border-2 border-smoke mb-8">
2626
<div class="p-4 bg-smoke-lighter border-b-2 border-smoke">
2727
<div class="whitespace-pre font-mono text-slate-lighter text-sm overflow-x-scroll" v-html="highlightedCode"></div>
2828
</div>

docs/source/_assets/less/markdown.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
> p code, p& code& {
3232
@apply .inline-block;
3333
@apply .bg-smoke-lighter;
34-
@apply .rounded-sm;
34+
@apply .radius-sm;
3535
@apply .text-sm;
3636
@apply .p-1;
3737
@apply .leading-none;
@@ -46,7 +46,7 @@
4646
@apply .font-mono;
4747
@apply .border-2;
4848
@apply .border-smoke;
49-
@apply .rounded;
49+
@apply .radius-md;
5050
font-weight: 400;
5151
}
5252

docs/source/_layouts/documentation.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</p>
2525
</div>
2626
<div class="relative">
27-
<input id="docsearch" class="placeholder-grey-dark rounded bg-white border border-smoke py-2 pr-4 pl-10 block w-full appearance-none" type="text" placeholder="Search the docs">
27+
<input id="docsearch" class="placeholder-grey-dark radius-md bg-white border border-smoke py-2 pr-4 pl-10 block w-full appearance-none" type="text" placeholder="Search the docs">
2828
<div class="pointer-events-none absolute pin-y pin-l pl-3 flex items-center">
2929
<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>
3030
</div>

docs/source/_partials/code-sample.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="rounded overflow-hidden border-2 border-grey-light mb-8 bg-white">
1+
<div class="radius-md overflow-hidden border-2 border-grey-light mb-8 bg-white">
22
<div class="border-b-2 border-grey-light p-4 {{ $class ?? '' }}">
33
{{ $slot }}
44
</div>

docs/source/_partials/customized-config.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="border-2 border-smoke rounded mb-8">
1+
<div class="border-2 border-smoke radius-md mb-8">
22
<div class="bg-smoke-lighter p-4 font-mono text-sm">
33
<div class="whitespace-pre text-grey-dark">{</div>
44
<div class="whitespace-pre text-grey-light"> // ...</div>

docs/source/_partials/feature-badges.blade.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,63 @@
11
<div class="mb-6">
22
<div class="flex flex-wrap -mb-2">
33
@if ($responsive)
4-
<a href="#responsive" class="mb-2 inline-flex items-center rounded-full border border-grey-light bg-grey-lightest text-xs font-semibold pl-1 pt-1 pb-1 pr-2 leading-none mr-2">
5-
<span class="inline-flex rounded-full bg-green-light text-white mr-1">
4+
<a href="#responsive" class="mb-2 inline-flex items-center radius-full border border-grey-light bg-grey-lightest text-xs font-semibold pl-1 pt-1 pb-1 pr-2 leading-none mr-2">
5+
<span class="inline-flex radius-full bg-green-light text-white mr-1">
66
<svg class="h-4 w-4" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.8 9.4c-.33-.442-.958-.53-1.4-.2-.442.33-.53.958-.2 1.4l3 4c.38.508 1.134.537 1.553.06l7-8c.363-.417.32-1.05-.094-1.413-.417-.363-1.05-.32-1.413.094L8.06 12.414 5.8 9.4z"/></svg>
77
</span>
88
<span>Responsive</span>
99
</a>
1010
@else
11-
<span class="mb-2 inline-flex items-center rounded-full border border-grey-light bg-grey-lightest text-xs font-semibold pl-1 pt-1 pb-1 pr-2 leading-none opacity-50 mr-2">
12-
<span class="inline-flex rounded-full bg-grey text-white mr-1">
11+
<span class="mb-2 inline-flex items-center radius-full border border-grey-light bg-grey-lightest text-xs font-semibold pl-1 pt-1 pb-1 pr-2 leading-none opacity-50 mr-2">
12+
<span class="inline-flex radius-full bg-grey text-white mr-1">
1313
<svg class="h-4 w-4" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 8.586L6.707 5.293c-.39-.39-1.024-.39-1.414 0-.39.39-.39 1.024 0 1.414L8.586 10l-3.293 3.293c-.39.39-.39 1.024 0 1.414.39.39 1.024.39 1.414 0L10 11.414l3.293 3.293c.39.39 1.024.39 1.414 0 .39-.39.39-1.024 0-1.414L11.414 10l3.293-3.293c.39-.39.39-1.024 0-1.414-.39-.39-1.024-.39-1.414 0L10 8.586z"/></svg>
1414
</span>
1515
<span>Responsive</span>
1616
</span>
1717
@endif
1818

1919
@if ($customizable)
20-
<a href="#customizing" class="mb-2 inline-flex items-center rounded-full border border-grey-light bg-grey-lightest text-xs font-semibold pl-1 pt-1 pb-1 pr-2 leading-none mr-2">
21-
<span class="inline-flex rounded-full bg-green-light text-white mr-1">
20+
<a href="#customizing" class="mb-2 inline-flex items-center radius-full border border-grey-light bg-grey-lightest text-xs font-semibold pl-1 pt-1 pb-1 pr-2 leading-none mr-2">
21+
<span class="inline-flex radius-full bg-green-light text-white mr-1">
2222
<svg class="h-4 w-4" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.8 9.4c-.33-.442-.958-.53-1.4-.2-.442.33-.53.958-.2 1.4l3 4c.38.508 1.134.537 1.553.06l7-8c.363-.417.32-1.05-.094-1.413-.417-.363-1.05-.32-1.413.094L8.06 12.414 5.8 9.4z"/></svg>
2323
</span>
2424
<span>Customizable</span>
2525
</a>
2626
@else
27-
<span class="mb-2 inline-flex items-center rounded-full border border-grey-light bg-grey-lightest text-xs font-semibold pl-1 pt-1 pb-1 pr-2 leading-none opacity-50 mr-2">
28-
<span class="inline-flex rounded-full bg-grey text-white mr-1">
27+
<span class="mb-2 inline-flex items-center radius-full border border-grey-light bg-grey-lightest text-xs font-semibold pl-1 pt-1 pb-1 pr-2 leading-none opacity-50 mr-2">
28+
<span class="inline-flex radius-full bg-grey text-white mr-1">
2929
<svg class="h-4 w-4" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 8.586L6.707 5.293c-.39-.39-1.024-.39-1.414 0-.39.39-.39 1.024 0 1.414L8.586 10l-3.293 3.293c-.39.39-.39 1.024 0 1.414.39.39 1.024.39 1.414 0L10 11.414l3.293 3.293c.39.39 1.024.39 1.414 0 .39-.39.39-1.024 0-1.414L11.414 10l3.293-3.293c.39-.39.39-1.024 0-1.414-.39-.39-1.024-.39-1.414 0L10 8.586z"/></svg>
3030
</span>
3131
<span>Customizable</span>
3232
</span>
3333
@endif
3434

3535
@if ($hover)
36-
<a href="#hover" class="mb-2 inline-flex items-center rounded-full border border-grey-light bg-grey-lightest text-xs font-semibold pl-1 pt-1 pb-1 pr-2 leading-none mr-2">
37-
<span class="inline-flex rounded-full bg-green-light text-white mr-1">
36+
<a href="#hover" class="mb-2 inline-flex items-center radius-full border border-grey-light bg-grey-lightest text-xs font-semibold pl-1 pt-1 pb-1 pr-2 leading-none mr-2">
37+
<span class="inline-flex radius-full bg-green-light text-white mr-1">
3838
<svg class="h-4 w-4" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.8 9.4c-.33-.442-.958-.53-1.4-.2-.442.33-.53.958-.2 1.4l3 4c.38.508 1.134.537 1.553.06l7-8c.363-.417.32-1.05-.094-1.413-.417-.363-1.05-.32-1.413.094L8.06 12.414 5.8 9.4z"/></svg>
3939
</span>
4040
<span>Hover</span>
4141
</a>
4242
@else
43-
<span class="mb-2 inline-flex items-center rounded-full border border-grey-light bg-grey-lightest text-xs font-semibold pl-1 pt-1 pb-1 pr-2 leading-none opacity-50 mr-2">
44-
<span class="inline-flex rounded-full bg-grey text-white mr-1">
43+
<span class="mb-2 inline-flex items-center radius-full border border-grey-light bg-grey-lightest text-xs font-semibold pl-1 pt-1 pb-1 pr-2 leading-none opacity-50 mr-2">
44+
<span class="inline-flex radius-full bg-grey text-white mr-1">
4545
<svg class="h-4 w-4" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 8.586L6.707 5.293c-.39-.39-1.024-.39-1.414 0-.39.39-.39 1.024 0 1.414L8.586 10l-3.293 3.293c-.39.39-.39 1.024 0 1.414.39.39 1.024.39 1.414 0L10 11.414l3.293 3.293c.39.39 1.024.39 1.414 0 .39-.39.39-1.024 0-1.414L11.414 10l3.293-3.293c.39-.39.39-1.024 0-1.414-.39-.39-1.024-.39-1.414 0L10 8.586z"/></svg>
4646
</span>
4747
<span>Hover</span>
4848
</span>
4949
@endif
5050

5151
@if ($focus)
52-
<span class="mb-2 inline-flex items-center rounded-full border border-grey-light bg-grey-lightest text-xs font-semibold pl-1 pt-1 pb-1 pr-2 leading-none mr-2">
53-
<span class="inline-flex rounded-full bg-green-light text-white mr-1">
52+
<span class="mb-2 inline-flex items-center radius-full border border-grey-light bg-grey-lightest text-xs font-semibold pl-1 pt-1 pb-1 pr-2 leading-none mr-2">
53+
<span class="inline-flex radius-full bg-green-light text-white mr-1">
5454
<svg class="h-4 w-4" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.8 9.4c-.33-.442-.958-.53-1.4-.2-.442.33-.53.958-.2 1.4l3 4c.38.508 1.134.537 1.553.06l7-8c.363-.417.32-1.05-.094-1.413-.417-.363-1.05-.32-1.413.094L8.06 12.414 5.8 9.4z"/></svg>
5555
</span>
5656
<span>Focus</span>
5757
</span>
5858
@else
59-
<span class="mb-2 inline-flex items-center rounded-full border border-grey-light bg-grey-lightest text-xs font-semibold pl-1 pt-1 pb-1 pr-2 leading-none opacity-50 mr-2">
60-
<span class="inline-flex rounded-full bg-grey text-white mr-1">
59+
<span class="mb-2 inline-flex items-center radius-full border border-grey-light bg-grey-lightest text-xs font-semibold pl-1 pt-1 pb-1 pr-2 leading-none opacity-50 mr-2">
60+
<span class="inline-flex radius-full bg-grey text-white mr-1">
6161
<svg class="h-4 w-4" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 8.586L6.707 5.293c-.39-.39-1.024-.39-1.414 0-.39.39-.39 1.024 0 1.414L8.586 10l-3.293 3.293c-.39.39-.39 1.024 0 1.414.39.39 1.024.39 1.414 0L10 11.414l3.293 3.293c.39.39 1.024.39 1.414 0 .39-.39.39-1.024 0-1.414L11.414 10l3.293-3.293c.39-.39.39-1.024 0-1.414-.39-.39-1.024-.39-1.414 0L10 8.586z"/></svg>
6262
</span>
6363
<span>Focus</span>

docs/source/_partials/work-in-progress-example.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<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">
2+
<div class="bg-blue-lightest border-l-4 border-blue-light radius-b-md text-blue-darkest px-4 py-3">
33
<div class="flex">
44
<div class="py-1">
55
<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>

docs/source/_partials/work-in-progress.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="bg-blue-lightest border-l-4 border-blue-light rounded-b text-blue-darkest px-4 py-3 mb-4">
1+
<div class="bg-blue-lightest border-l-4 border-blue-light radius-b-md text-blue-darkest px-4 py-3 mb-4">
22
<div class="flex">
33
<div class="py-1">
44
<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>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ features:
3737
In addition to the standard responsive variations, border colors also come in `hover:` variations that apply the given border color on hover.
3838

3939
@component('_partials.code-sample', ['class' => 'text-center'])
40-
<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">
40+
<button class="border-2 border-blue hover:border-red bg-transparent text-blue-dark hover:text-red-dark py-2 px-4 font-semibold radius-md">
4141
Button
4242
</button>
4343
@endcomponent

0 commit comments

Comments
 (0)