Skip to content

Commit e2c37b8

Browse files
committed
tweak icon and list spacing
1 parent 2f979ab commit e2c37b8

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

src/css/docs-ndl.css

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,14 @@ body.docs-ndl .widget .sectionbody {
207207
border-radius: 1rem;
208208
border: none;
209209
padding: 1rem;
210+
column-gap: 0;
210211
row-gap: 0;
211-
column-gap: 2rem;
212+
justify-content: center;
213+
align-content: center;
214+
}
215+
216+
body.docs-ndl .widget.lists .sectionbody {
217+
justify-content: space-between;
212218
}
213219

214220
body.docs-ndl .widget.banner .sectionbody {
@@ -498,25 +504,20 @@ body.docs-ndl .banner .button {
498504

499505
/* highlights */
500506

501-
body.docs-ndl .highlights .sectionbody > div.openblock {
502-
flex: 1 1 40%;
503-
}
504-
505-
body.docs-ndl .highlights .sectionbody > div.icon {
506-
flex: 0 1 52%;
507-
padding-top: 1rem;
508-
padding-bottom: 1rem;
509-
padding-left: 4rem;
510-
padding-right: 5.438rem;
507+
body.docs-ndl .highlights .sectionbody > div {
508+
flex: 0 1 50%;
509+
justify-content: center;
511510
align-self: center;
511+
padding: 1rem;
512512
}
513513

514514
body.docs-ndl .highlights .sectionbody > div.icon span.image {
515515
display: flex;
516516
}
517517

518-
body.docs-ndl .highlights .list {
519-
padding-left: 1rem;
518+
body.docs-ndl .highlights .list,
519+
body.docs-ndl .highlights .caption {
520+
padding-left: 0;
520521
}
521522

522523
body.docs-ndl .highlights .list ul li {
@@ -719,19 +720,15 @@ body.docs-ndl .cards .icon span {
719720
display: flex;
720721
}
721722

722-
body.docs-ndl .widget.highlights .icon {
723-
padding: 2rem;
724-
}
725-
726723
/* For the 1st, 3rd etc highlights, move the image to the right */
727-
body.docs-ndl .widget.highlights:nth-of-type(odd) .icon {
724+
body.docs-ndl .widget.highlights:nth-of-type(even) .icon {
728725
order: 1;
729726
}
730727

731728
/* We can use this rule to apply styles to the 2nd, 4th highlights etc widget */
732-
body.docs-ndl .widget.highlights:nth-of-type(even) .openblock {
733-
/* margin-right:40px; */
734-
}
729+
/* body.docs-ndl .widget.highlights:nth-of-type(even) .openblock {
730+
margin-right:40px;
731+
} */
735732

736733
/* For the bottom cards */
737734
body.docs-ndl .cards:nth-last-child(-n+2) .sectionbody {

0 commit comments

Comments
 (0)