Commit f4324d54 authored by Kushal Pandya's avatar Kushal Pandya

Reorder CSS to prevent compound selector limit

Revise selector structure to avoid
causing `selector-max-compound-selectors` warning in Stylint.
parent 0484e49e
......@@ -12,30 +12,12 @@
border-bottom: 1px solid $border-color;
}
.related-items-tree-body {
> .tree-root {
padding-top: $gl-vert-padding;
padding-bottom: 0;
> .list-item:last-child .tree-root:last-child {
margin-bottom: 0;
}
}
}
.sub-tree-root {
margin-left: $gl-padding-24;
padding: 0;
}
.tree-item {
&.has-children.item-expanded {
> .list-item-body > .card-slim,
> .tree-root .tree-item:last-child .card-slim {
margin-bottom: $gl-vert-padding;
}
}
.btn-tree-item-chevron {
margin-bottom: $gl-padding-4;
margin-right: $gl-padding-4;
......@@ -60,3 +42,19 @@
}
}
}
.related-items-tree-body > .tree-root {
padding-top: $gl-vert-padding;
padding-bottom: 0;
}
.tree-root > .list-item:last-child .tree-root:last-child {
margin-bottom: 0;
}
.tree-item.has-children.item-expanded {
> .list-item-body > .card-slim,
.tree-item:last-child .card-slim {
margin-bottom: $gl-vert-padding;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment