Skip to content

Commit f1ad1d8

Browse files
committed
Add list-reset utility
1 parent 56c51e8 commit f1ad1d8

7 files changed

Lines changed: 61 additions & 15 deletions

File tree

css/preflight.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,6 @@ iframe {
6868
border: 0;
6969
}
7070

71-
ol,
72-
ul {
73-
list-style: none;
74-
margin: 0;
75-
padding: 0;
76-
}
77-
7871
/**
7972
* Suppress the focus outline on elements that cannot be accessed via keyboard.
8073
* This prevents an unwanted focus outline from appearing around elements that

dist/tailwind.css

Lines changed: 30 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tailwind.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/source/_layouts/master.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
<li class="mb-2"><a href="{{ $page->baseUrl }}/styles/interactivity/user-select" class="{{ $page->active('/user-select') ? 'text-dark text-medium' : 'text-dark-soft' }}">User Select</a></li>
103103
</ul>
104104
</li>
105+
<li class="mb-2"><a href="{{ $page->baseUrl }}/styles/lists" class="{{ $page->active('/lists') ? 'text-dark text-medium' : 'text-dark-soft' }}">Lists</a></li>
105106
<li class="mb-2"><a href="{{ $page->baseUrl }}/styles/opacity" class="{{ $page->active('/opacity') ? 'text-dark text-medium' : 'text-dark-soft' }}">Opacity</a></li>
106107
<li class="mb-2"><a href="{{ $page->baseUrl }}/styles/overflow" class="{{ $page->active('/overflow') ? 'text-dark text-medium' : 'text-dark-soft' }}">Overflow</a></li>
107108
<li class="mb-2"><a href="{{ $page->baseUrl }}/styles/positioning" class="{{ $page->active('/positioning') ? 'text-dark text-medium' : 'text-dark-soft' }}">Positioning</a></li>

docs/source/styles/lists.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
extends: _layouts.markdown
3+
title: "Lists"
4+
---
5+
6+
# Lists
7+
8+
<div class="subnav">
9+
<a class="subnav-link" href="#usage">Usage</a>
10+
<a class="subnav-link" href="#responsive">Responsive</a>
11+
<a class="subnav-link" href="#customizing">Customizing</a>
12+
</div>
13+
14+
Include documentation around:
15+
16+
- `list-reset` helper

src/generators/lists.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import defineClasses from '../util/defineClasses'
2+
3+
export default function() {
4+
return defineClasses({
5+
'list-reset': {
6+
'list-style': 'none',
7+
'margin': '0',
8+
'padding': '0',
9+
},
10+
})
11+
}

src/lib/generateUtilities.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import cursor from '../generators/cursor'
1212
import display from '../generators/display'
1313
import flex from '../generators/flex'
1414
import floats from '../generators/floats'
15+
import lists from '../generators/lists'
1516
import opacity from '../generators/opacity'
1617
import overflow from '../generators/overflow'
1718
import pointerEvents from '../generators/pointerEvents'
@@ -75,6 +76,7 @@ export default function(options) {
7576
pointerEvents(options),
7677
resize(options),
7778
cursor(options),
79+
lists(options),
7880
])
7981

8082
atRule.before(container(options))

0 commit comments

Comments
 (0)