Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[List] Make sure "list" css is not applied to icons #281

Merged
merged 3 commits into from
Dec 3, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/definitions/elements/list.less
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ ol.ui.list li:last-child,
/* Child List */
ul.ui.list ul,
ol.ui.list ol,
.ui.list .list {
.ui.list .list:not(.icon) {
clear: both;
margin: 0em;
padding: @childListPadding;
Expand Down Expand Up @@ -292,7 +292,7 @@ ol.ui.list ol li,
margin-left: 0em !important;
padding-left: 0em !important;
}
.ui.horizontal.list .list {
.ui.horizontal.list .list:not(.icon) {
padding-left: 0em;
padding-bottom: 0em;
}
Expand Down Expand Up @@ -584,7 +584,7 @@ ul.ui.list li:before,
}

ul.ui.list ul,
.ui.bulleted.list .list {
.ui.bulleted.list .list:not(.icon) {
padding-left: @bulletChildDistance;
}

Expand Down Expand Up @@ -616,7 +616,7 @@ ul.ui.horizontal.bulleted.list li:first-child::before,

ol.ui.list,
.ui.ordered.list,
.ui.ordered.list .list,
.ui.ordered.list .list:not(.icon),
ol.ui.list ol {
counter-reset: ordered;
margin-left: @orderedCountDistance;
Expand Down Expand Up @@ -662,7 +662,7 @@ ol.ui.list li[value]:before {

/* Child Lists */
ol.ui.list ol,
.ui.ordered.list .list {
.ui.ordered.list .list:not(.icon) {
margin-left: @orderedChildCountDistance;
}
ol.ui.list ol li:before,
Expand Down Expand Up @@ -707,7 +707,7 @@ ol.ui.horizontal.list li:before,

/* Divided bulleted */
.ui.divided.bulleted.list:not(.horizontal),
.ui.divided.bulleted.list .list {
.ui.divided.bulleted.list .list:not(.icon) {
margin-left: 0em;
padding-left: 0em;
}
Expand All @@ -723,7 +723,7 @@ ol.ui.horizontal.list li:before,
.ui.divided.ordered.list > .item {
padding-left: @orderedCountDistance;
}
.ui.divided.ordered.list .item .list {
.ui.divided.ordered.list .item .list:not(.icon) {
margin-left: 0em;
margin-right: 0em;
padding-bottom: @itemVerticalPadding;
Expand Down Expand Up @@ -803,7 +803,7 @@ ol.ui.horizontal.list li:before,
.ui.celled.bulleted.list > .item {
padding-left: (@bulletDistance);
}
.ui.celled.bulleted.list .item .list {
.ui.celled.bulleted.list .item .list:not(.icon) {
margin-left: -(@bulletDistance);
margin-right: -(@bulletDistance);
padding-bottom: @itemVerticalPadding;
Expand All @@ -817,7 +817,7 @@ ol.ui.horizontal.list li:before,
.ui.celled.ordered.list > .item {
padding-left: @orderedCountDistance;
}
.ui.celled.ordered.list .item .list {
.ui.celled.ordered.list .item .list:not(.icon) {
margin-left: 0em;
margin-right: 0em;
padding-bottom: @itemVerticalPadding;
Expand Down