Skip to content

Commit

Permalink
Fix for bullet overlap #4
Browse files Browse the repository at this point in the history
  • Loading branch information
paulradzkov committed Jun 10, 2017
1 parent 14040eb commit 218c1c2
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
9 changes: 9 additions & 0 deletions bettertext.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,15 @@ ol:not([class]) ol {
ul:not([class]) li,
ol:not([class]) li {
transform: translateX(2.5em);
animation: fixlists 1s;
}
@keyframes fixlists {
0% {
text-indent: -0.001em;
}
100% {
text-indent: 0;
}
}
/* images */
img {
Expand Down
10 changes: 10 additions & 0 deletions bettertext.less
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@

/* lists */
/* lists without classes */

// 1) force reflow to fix bullet overlapping.
// See https://git.io/vHyUo for details.

ul:not([class]),
ol:not([class]) {
margin: 0 0 @m-default;
Expand All @@ -258,9 +262,15 @@

li {
transform: translateX(2.5em);
animation: fixlists 1s; // 1)
}
}

@keyframes fixlists {
0% { text-indent: -0.001em;}
100% { text-indent: 0;}
}

/* images */
img {
max-width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion bettertext.min.css

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

2 changes: 1 addition & 1 deletion bettertext.min.css.map

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

0 comments on commit 218c1c2

Please sign in to comment.