Skip to content

Commit

Permalink
Rename appearance-none to input-reset, move docs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Oct 13, 2017
1 parent f1ad1d8 commit b41a5ae
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 23 deletions.
10 changes: 5 additions & 5 deletions dist/tailwind.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/source/_layouts/master.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
<ul class="mb-8">
<li class="mb-2"><a href="{{ $page->baseUrl }}/styles/base" class="{{ $page->active('/styles/base') ? 'text-dark text-medium' : 'text-dark-soft' }}">Base</a></li>
<li class="mb-2"><a href="{{ $page->baseUrl }}/styles/alignment" class="{{ $page->active('/styles/alignment') ? 'text-dark text-medium' : 'text-dark-soft' }}">Alignment</a></li>
<li class="mb-2"><a href="{{ $page->baseUrl }}/styles/appearance" class="{{ $page->active('/appearance') ? 'text-dark text-medium' : 'text-dark-soft' }}">Appearance</a></li>
<li class="mb-2">
<a href="{{ $page->baseUrl }}/styles/backgrounds/color" class="block mb-2 {{ $page->active('/backgrounds/') ? 'text-dark text-medium' : 'text-dark-soft' }}">Backgrounds</a>
<ul class="pl-4 {{ $page->active('/backgrounds/') ? 'block' : 'hidden' }}">
Expand Down
13 changes: 0 additions & 13 deletions docs/source/styles/appearance.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/source/styles/forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ title: "Forms"

Include documentation around:

- `appearance-none` helper
- `input-reset` helper
- Creating input groups/custom selects and using `pointer-events-none`
- The placeholder text styling in our base styles
2 changes: 1 addition & 1 deletion src/generators/appearance.js → src/generators/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import defineClasses from '../util/defineClasses'

export default function() {
return defineClasses({
'appearance-none': { 'appearance': 'none' },
'input-reset': { 'appearance': 'none' },
})
}
4 changes: 2 additions & 2 deletions src/lib/generateUtilities.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import _ from 'lodash'
import appearance from '../generators/appearance'
import backgroundColors from '../generators/backgroundColors'
import backgroundPositions from '../generators/backgroundPositions'
import backgroundSize from '../generators/backgroundSize'
Expand All @@ -12,6 +11,7 @@ import cursor from '../generators/cursor'
import display from '../generators/display'
import flex from '../generators/flex'
import floats from '../generators/floats'
import forms from '../generators/forms'
import lists from '../generators/lists'
import opacity from '../generators/opacity'
import overflow from '../generators/overflow'
Expand Down Expand Up @@ -42,7 +42,7 @@ export default function(options) {
css.walkAtRules('tailwind', atRule => {
if (atRule.params === 'utilities') {
const utilities = _.flatten([
appearance(options),
forms(options),
textSizes(options),
textWeights(options),
textFonts(options),
Expand Down

0 comments on commit b41a5ae

Please sign in to comment.