Skip to content

Commit 90ee2d5

Browse files
authored
Merge pull request #212 from jrowlingson/tailwind-prefix
Use ad- tailwind prefix
2 parents 2ee3daa + e12fbdc commit 90ee2d5

File tree

35 files changed

+137
-136
lines changed

35 files changed

+137
-136
lines changed

addon/components/api/x-import-path/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import hbs from 'htmlbars-inline-precompile';
44
export default Component.extend({
55
tagName: '',
66
layout: hbs`
7-
<div class="import-path mb-6 font-mono" data-test-import-path>
7+
<div class="import-path ad-mb-6 ad-font-mono" data-test-import-path>
88
<span class="hljs-keyword">import</span>
99
1010
{{#if (eq item.exportType "default")}}

addon/components/api/x-meta-panel/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import hbs from 'htmlbars-inline-precompile';
44
export default Component.extend({
55
tagName: '',
66
layout: hbs`
7-
<div class="px-6 pt-3 mt-4 border border-grey-light rounded text-sm">
7+
<div class="ad-px-6 ad-pt-3 ad-mt-4 ad-border ad-border-grey-light ad-rounded ad-text-sm">
88
{{yield (hash
99
header=(component 'api/x-meta-panel/header')
1010
)}}

addon/components/api/x-meta-panel/header/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import hbs from 'htmlbars-inline-precompile';
44
export default Component.extend({
55
tagName: '',
66
layout: hbs`
7-
<h4 class="mb-2 text-grey font-bold tracking-wide uppercase text-xs">
7+
<h4 class="ad-mb-2 ad-text-grey ad-font-bold ad-tracking-wide ad-uppercase ad-text-xs">
88
{{yield}}
99
</h4>
1010
`,

addon/components/api/x-section/template.hbs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
id={{item.name}}
44
data-text="{{item.name}}"
55
data-test-item-header
6-
class="docs-h3 font-mono font-normal"
6+
class="docs-h3 ad-font-mono ad-font-normal"
77
>
88
{{#if (eq item.exportType 'default')}}
9-
<span class="border border-grey-light align-text-top leading-loose text-xs pl-2 mr-2 py-1 rounded">
9+
<span class="ad-border ad-border-grey-light ad-align-text-top ad-leading-loose ad-text-xs ad-pl-2 ad-mr-2 ad-py-1 ad-rounded">
1010
Default
1111
</span>
1212
{{/if}}
@@ -45,13 +45,13 @@
4545
Params
4646
{{/panel.header}}
4747

48-
<table class="mb-6" data-test-item-params>
48+
<table class="ad-mb-6" data-test-item-params>
4949
<tbody>
5050
{{#each item.params as |param|}}
5151
<tr data-test-item-param>
52-
<td><span class="font-mono font-bold border-r border-grey-light pr-2">{{param.name}}</span></td>
53-
<td><span class="font-mono border-r border-grey-light px-2">{{param.type}}</span></td>
54-
<td class="pl-2">{{param.description}}</td>
52+
<td><span class="ad-font-mono ad-font-bold ad-border-r ad-border-grey-light ad-pr-2">{{param.name}}</span></td>
53+
<td><span class="ad-font-mono ad-border-r ad-border-grey-light ad-px-2">{{param.type}}</span></td>
54+
<td class="ad-pl-2">{{param.description}}</td>
5555
</tr>
5656
{{/each}}
5757
</tbody>

addon/components/api/x-toggles/template.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<ul class="list-reset mb-6">
1+
<ul class="ad-list-reset ad-mb-6">
22
{{#each-in toggles as |key toggle|}}
33
{{#if (not-eq toggle undefined)}}
4-
<li class="inline ml-4">
4+
<li class="ad-inline ad-ml-4">
55
<label data-test-toggle>
66
<input type="checkbox"
77
checked={{toggle}}
88
onclick={{action onToggle key}}
9-
class='mr-1'
9+
class='ad-mr-1'
1010
>
1111

1212
{{capitalize key}}

addon/components/docs-demo/template.hbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
<div class="rounded border my-8">
1+
<div class="ad-rounded ad-border ad-my-8">
22

33
{{yield (hash
44
example=(component 'docs-demo/x-example')
55
snippet=(component 'docs-demo/x-snippet' did-init=(action 'registerSnippet') activeSnippet=activeSnippet)
66
)}}
77

88
{{#if snippets}}
9-
<nav class="docs-demo__snippets-nav py-2 px-4 font-medium bg-grey-lighter tracking-tight">
9+
<nav class="docs-demo__snippets-nav ad-py-2 ad-px-4 ad-font-medium ad-bg-grey-lighter ad-tracking-tight">
1010
{{#each snippets as |snippet|}}
1111
<button {{action 'selectSnippet' snippet}}
1212
class='
13-
mr-4 text-sm no-underline outline-none
14-
hover:text-grey-darkest
15-
{{if snippet.isActive 'text-grey-darkest' 'text-grey-dark'}}
13+
ad-mr-4 ad-text-sm ad-no-underline outline-none
14+
hover:ad-text-grey-darkest
15+
{{if snippet.isActive 'ad-text-grey-darkest' 'ad-text-grey-dark'}}
1616
'
1717
>
1818
{{snippet.label}}

addon/components/docs-demo/x-example/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import layout from './template';
44
export default Component.extend({
55
layout,
66

7-
classNames: 'p-4',
7+
classNames: 'ad-p-4',
88

99
init() {
1010
this._super(...arguments);

addon/components/docs-header/link/template.hbs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
<a href={{href}}
44
class='
5-
px-4 py-3 transition uppercase text-xs font-semibold
6-
text-grey-darkest no-underline opacity-50 hover:opacity-100
7-
{{if push 'ml-auto'}}
5+
ad-px-4 ad-py-3 ad-transition ad-uppercase ad-text-xs ad-font-semibold
6+
ad-text-grey-darkest ad-no-underline ad-opacity-50 hover:ad-opacity-100
7+
{{if push 'ad-ml-auto'}}
88
'
99
data-test-id={{data-test-id}}>
1010
{{yield}}
@@ -15,8 +15,8 @@
1515
<a {{action on-click}}
1616
href='#'
1717
class='
18-
px-4 py-3 transition uppercase text-xs font-semibold
19-
text-grey-darkest no-underline opacity-50 hover:opacity-100
18+
ad-px-4 ad-py-3 ad-transition ad-uppercase ad-text-xs ad-font-semibold
19+
ad-text-grey-darkest ad-no-underline ad-opacity-50 hover:ad-opacity-100
2020
{{if push 'ml-auto'}}
2121
'
2222
data-test-id={{data-test-id}}>
@@ -27,9 +27,9 @@
2727

2828
{{#link-to route
2929
class=(concat
30-
'px-4 py-3 transition uppercase text-xs font-semibold
31-
text-grey-darkest no-underline '
32-
(if (and (not isActive) (not (eq route 'index'))) 'opacity-50 hover:opacity-100')
30+
'ad-px-4 ad-py-3 ad-transition ad-uppercase ad-text-xs ad-font-semibold
31+
ad-text-grey-darkest ad-no-underline '
32+
(if (and (not isActive) (not (eq route 'index'))) 'ad-opacity-50 hover:ad-opacity-100')
3333
)
3434
data-test-id=data-test-id
3535
}}

addon/components/docs-header/search-box/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { on } from '@ember/object/evented';
55

66
export default Component.extend(EKMixin, {
77
layout,
8-
classNames: 'ml-auto',
8+
classNames: 'ad-ml-auto',
99

1010
query: null,
1111

addon/components/docs-header/search-box/template.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<div class='relative text-grey-darkest' data-search-box>
2-
{{svg-jar 'search' width=12 height=12 class='absolute pin-t h-full ml-1'}}
1+
<div class='ad-relative ad-text-grey-darkest' data-search-box>
2+
{{svg-jar 'search' width=12 height=12 class='ad-absolute ad-pin-t ad-h-full ad-ml-1'}}
33

44
{{!--
55
This is a dumb input - so why not use the {{input}} helper? Because apparently
@@ -11,7 +11,7 @@
1111
value={{query}}
1212
type="text"
1313
placeholder='Search'
14-
class='w-24 text-xs p-2 pl-6 rounded focus:bg-grey-lighter outline-none'
14+
class='ad-w-24 ad-text-xs ad-p-2 ad-pl-6 ad-rounded focus:ad-bg-grey-lighter outline-none'
1515
data-search-box-input
1616
data-test-search-box-input>
1717
</div>

0 commit comments

Comments
 (0)