Skip to content

Commit a48cfbd

Browse files
authored
Merge pull request #55 from couchbase/fix-spacing-issues
Fix the alignment issues for image icon and definition list
2 parents e9fbcb3 + 79d78fb commit a48cfbd

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
@@ -444,6 +444,13 @@ ul ul ul {
444444
width: auto;
445445
}
446446

447+
.doc span.image {
448+
line-height: 1;
449+
vertical-align: -0.5em;
450+
display: inline-flex;
451+
padding: 0 0.25ex;
452+
}
453+
447454
.doc .quoteblock {
448455
margin-top: var(--base-medium-space);
449456
}
@@ -645,7 +652,7 @@ table.tableblock pre code.language-bash.hljs {
645652
}
646653

647654
.doc .dlist dt + dd {
648-
margin-top: var(--base-small-space);
655+
margin-top: var(--base-extra-small-space);
649656
}
650657

651658
/* .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
@@ -115,31 +115,17 @@
115115
}
116116

117117
.nav-menu .nav-item[data-depth='0'] > .nav-list {
118-
/*
119-
margin-top: -0.0625rem;
120-
margin-bottom: 0.625rem;
121-
*/
122118
margin-bottom: 0.75rem;
123-
/* margin-left: 1rem; */
124-
/* border-left: 1px solid var(--color-brand-gray5); */
125119
}
126120

127-
/* .nav-menu .nav-item.is-active.is-active-depth-2[data-depth='0'] > .nav-list {
128-
margin-left: 1.875rem;
129-
border-left: none;
130-
} */
131-
132-
/* .nav-menu .nav-item.is-active.is-active-depth-2[data-depth='0'] > .nav-line {
133-
display: none;
134-
} */
135-
136121
.nav-menu .nav-item:not(.is-active) > .nav-list {
137122
display: none;
138123
}
139124

140-
/* .nav-menu .nav-item {
141-
margin-left: 0.75em;
142-
} */
125+
.nav-item[data-depth="1"] span.nav-line {
126+
padding-top: var(--base-extra-small-space);
127+
padding-bottom: var(--base-extra-small-space);
128+
}
143129

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

0 commit comments

Comments
 (0)