Skip to content

Commit 7fbd81f

Browse files
author
rakeshAlgo
committed
Fix the alignment issues for icon and defination list
1 parent 795f926 commit 7fbd81f

File tree

2 files changed

+12
-19
lines changed

2 files changed

+12
-19
lines changed

src/css/doc.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,13 @@ ul ul ul {
430430
width: auto;
431431
}
432432

433+
.doc span.image {
434+
line-height: 1;
435+
vertical-align: -0.5em;
436+
display: inline-flex;
437+
padding: 0 0.25ex;
438+
}
439+
433440
.doc .abstract blockquote {
434441
font-size: 0.9375rem;
435442
margin: 1rem 0 1.5625rem 0;
@@ -619,7 +626,7 @@ table.tableblock pre code.language-bash.hljs {
619626
}
620627

621628
.doc .dlist dt + dd {
622-
margin-top: 0.125rem;
629+
margin-top: var(--base-extra-small-space);
623630
}
624631

625632
.doc .dlist dd > .openblock > .content > :first-child {

src/css/nav.css

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -137,31 +137,17 @@
137137
}
138138

139139
.nav-menu .nav-item[data-depth='0'] > .nav-list {
140-
/*
141-
margin-top: -0.0625rem;
142-
margin-bottom: 0.625rem;
143-
*/
144140
margin-bottom: 0.75rem;
145-
/* margin-left: 1rem; */
146-
/* border-left: 1px solid var(--color-brand-gray5); */
147141
}
148142

149-
/* .nav-menu .nav-item.is-active.is-active-depth-2[data-depth='0'] > .nav-list {
150-
margin-left: 1.875rem;
151-
border-left: none;
152-
} */
153-
154-
/* .nav-menu .nav-item.is-active.is-active-depth-2[data-depth='0'] > .nav-line {
155-
display: none;
156-
} */
157-
158143
.nav-menu .nav-item:not(.is-active) > .nav-list {
159144
display: none;
160145
}
161146

162-
/* .nav-menu .nav-item {
163-
margin-left: 0.75em;
164-
} */
147+
.nav-item[data-depth="1"] span.nav-line {
148+
padding-top: var(--base-extra-small-space);
149+
padding-bottom: var(--base-extra-small-space);
150+
}
165151

166152
/* NOTE navigation list without a category */
167153
.nav-item[data-depth="0"] > .nav-list:first-child {

0 commit comments

Comments
 (0)