Skip to content

Commit

Permalink
fix(lists): bullet position by using padding instead of margin
Browse files Browse the repository at this point in the history
- for moving the ul as the margin value can be overriden by
  the centering of elements from page-document direct children
  • Loading branch information
ichim-david committed Nov 24, 2022
1 parent 393e8ed commit 0ecae2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions theme/themes/eea/elements/list.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ dl dd {
}

/* Unordered list */

// use padding instead
ul.ui.list, .ui.bulleted.list {
padding-left: @bulletDistance;
margin-left: 0;
}
.ui.bulleted.list .list > .item:before,
.ui.bulleted.list .list > a.item:before,
.ui.bulleted.list > .item:before,
Expand Down
2 changes: 1 addition & 1 deletion theme/themes/eea/elements/list.variables
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
/* Bulleted */

@bulletSize: 1.1rem;
@bulletDistance: 1.25rem;
@bulletDistance: @rem-space-5;
@bulletOffset: -@bulletDistance;

@bulletOpacity: 1;
Expand Down

0 comments on commit 0ecae2e

Please sign in to comment.