Skip to content

Commit

Permalink
Merge pull request #29 from magento-devdocs/master
Browse files Browse the repository at this point in the history
Merge the list icons to the devdocs-stable branch
  • Loading branch information
belbiy committed Dec 17, 2018
2 parents 0e79c05 + 0b3633e commit edabd81
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 1 deletion.
1 change: 1 addition & 0 deletions _scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
@import 'partials/tooltip';
@import 'partials/popover';
@import 'partials/ee-only';
@import 'partials/list-icons';

.hide {
display: none;
Expand Down
25 changes: 25 additions & 0 deletions _scss/partials/_list-icons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Custom list icons
// Assign class name to the list item like this: * {:.fix} This is fixed

li.new, li.fix {
list-style: none;
position: relative;

&::before {
position: absolute;
content: '';
display: inline-block;
width: 18px;
height: 18px;
top: .2em;
left: -1.5em;
}
}

li.new::before {
background: url(../i/icons/new.svg);
}

li.fix::before {
background: url(../i/icons/fix.svg);
}
2 changes: 1 addition & 1 deletion assets/css/app.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/i/icons/fix.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/i/icons/new.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions example.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ This is the example of an ordered list in our documentation.
* Another unordered list item
* Yet another list item

### With Icons

* {:.new} This list item is a new feature
* {:.fix} This is a bugfix

## Images

![Alt text](http://via.placeholder.com/1000x500)
Expand Down

0 comments on commit edabd81

Please sign in to comment.