Skip to content

Commit 9ff0e8e

Browse files
authored
Tweak icon and list spacing (#275)
Adjusts padding and alignment for the highlights widget, bringing better symmetry between the two layouts.
1 parent 21f04af commit 9ff0e8e

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

src/css/docs-ndl.css

Lines changed: 19 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,21 @@ 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 2rem 1rem;
512512
}
513513

514514
body.docs-ndl .highlights .sectionbody > div.icon span.image {
515515
display: flex;
516+
justify-content: center;
516517
}
517518

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

522524
body.docs-ndl .highlights .list ul li {
@@ -689,7 +691,7 @@ body.docs-ndl .cards .sect2 a > div {
689691
body.docs-ndl .highlights .sectionbody > div,
690692
body.docs-ndl .sect2 a > div,
691693
body.docs-ndl .sect2 a > h3 {
692-
display: flex;
694+
display: flow;
693695
}
694696

695697
body.docs-ndl .cards .sect2 .icon,
@@ -724,19 +726,15 @@ body.docs-ndl .cards .icon span {
724726
display: flex;
725727
}
726728

727-
body.docs-ndl .widget.highlights .icon {
728-
padding: 2rem;
729-
}
730-
731729
/* For the 1st, 3rd etc highlights, move the image to the right */
732730
body.docs-ndl .widget.highlights:nth-of-type(odd) .icon {
733731
order: 1;
734732
}
735733

736734
/* We can use this rule to apply styles to the 2nd, 4th highlights etc widget */
737-
body.docs-ndl .widget.highlights:nth-of-type(even) .openblock {
738-
/* margin-right:40px; */
739-
}
735+
/* body.docs-ndl .widget.highlights:nth-of-type(even) .openblock {
736+
margin-right:40px;
737+
} */
740738

741739
body.docs-ndl body.docs-ndl .cards .sect2 .icon img {
742740
width: 4rem;

0 commit comments

Comments
 (0)