Skip to content

Commit 9cd6c91

Browse files
author
rakeshAlgo
committed
fix vertical spaces and align issues
1 parent 827473f commit 9cd6c91

File tree

6 files changed

+44
-18
lines changed

6 files changed

+44
-18
lines changed

src/css/doc.css

Lines changed: 36 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
font-weight: var(--weight-semibold);
1616
letter-spacing: -0.025rem;
1717
line-height: var(--line-height-heading);
18-
margin: 1.5rem 0 1rem;
18+
margin-bottom: 0;
1919
}
2020

2121
.doc h1 {
@@ -45,8 +45,9 @@
4545

4646
.doc h2 {
4747
font-size: var(--heading-h2);
48-
max-width: fit-content;
48+
/* max-width: fit-content; */
4949
width: 100%;
50+
margin-top: var(--base-extra-large-space);
5051
/* NOTE used to restrict width of key line */
5152
}
5253

@@ -61,14 +62,17 @@
6162

6263
.doc h3 {
6364
font-size: var(--heading-h3);
65+
margin-top: var(--base-extra-large-space);
6466
}
6567

6668
.doc h4 {
6769
font-size: var(--heading-h4);
70+
margin-top: var(--base-extra-large-space);
6871
}
6972

7073
.doc h5 {
7174
font-size: var(--heading-h5);
75+
margin-top: var(--base-extra-large-space);
7276
}
7377

7478
.doc h1 > a.anchor,
@@ -126,10 +130,20 @@
126130
word-spacing: inherit;
127131
}
128132

129-
.doc .paragraph,
133+
.doc .paragraph {
134+
margin-top: var(--base-space);
135+
}
136+
137+
.doc .paragraph + .paragraph {
138+
margin-top: var(--base-medium-space);
139+
}
140+
141+
.doc .admonitionblock {
142+
margin-top: var(--base-large-space);
143+
}
144+
130145
.doc .olist,
131146
.doc .ulist,
132-
.doc .admonitionblock,
133147
.doc .exampleblock,
134148
.doc .imageblock,
135149
.doc .listingblock,
@@ -138,7 +152,7 @@
138152
.doc .swagger-container,
139153
.doc .verseblock,
140154
.doc .videoblock {
141-
margin-top: 1rem;
155+
margin-top: var(--base-medium-space);
142156
}
143157

144158
.doc .paragraph .title,
@@ -149,11 +163,11 @@
149163
.doc .literalblock .title,
150164
.doc .openblock .title,
151165
.doc caption {
152-
font-size: 1rem;
166+
font-size: var(--font-base);
153167
font-weight: var(--weight-semibold);
154168
/* letter-spacing: -0.025em; */
155169
line-height: 1.2;
156-
margin-bottom: 0.75rem;
170+
margin-bottom: var(--base-space);
157171
color: var(--color-brand-gray3);
158172
}
159173

@@ -430,14 +444,22 @@ ul ul ul {
430444
width: auto;
431445
}
432446

447+
.doc .quoteblock {
448+
margin-top: var(--base-medium-space);
449+
}
450+
433451
.doc .abstract blockquote {
434452
font-size: 0.9375rem;
435-
margin: 1rem 0 1.5625rem 0;
453+
margin: 0;
436454
font-weight: var(--weight-light);
437455
border-left: 2px solid var(--color-brand-gray5);
438456
padding-left: 1.125rem;
439457
}
440458

459+
.doc .quoteblock + .paragraph {
460+
margin-top: var(--base-extra-large-space);
461+
}
462+
441463
.doc .abstract blockquote * {
442464
font-weight: inherit;
443465
}
@@ -599,15 +621,15 @@ table.tableblock pre code.language-bash.hljs {
599621
}
600622

601623
.doc .dlist {
602-
margin: 1.5rem 0;
624+
margin: 1.5rem 0 0;
603625
}
604626

605627
.doc .dlist dl {
606628
margin: 0;
607629
}
608630

609631
.doc .dlist dt {
610-
font-weight: var(--weight-medium);
632+
font-weight: var(--weight-semibold);
611633
}
612634

613635
.doc .dlist dd + dt {
@@ -619,12 +641,12 @@ table.tableblock pre code.language-bash.hljs {
619641
}
620642

621643
.doc .dlist dt + dd {
622-
margin-top: 0.125rem;
644+
margin-top: var(--base-small-space);
623645
}
624646

625-
.doc .dlist dd > .openblock > .content > :first-child {
647+
/* .doc .dlist dd > .openblock > .content > :first-child {
626648
margin-top: 0;
627-
}
649+
} */
628650

629651
.doc .sidebarblock > .content {
630652
border: 1px solid var(--color-border);
@@ -778,7 +800,7 @@ table.tableblock pre code.language-bash.hljs {
778800
padding: var(--base-space);
779801
border-radius: 8px;
780802
border: 1px solid var(--color-brand-gray8);
781-
margin-top: var(--base-space);
803+
margin-top: var(--base-extra-large-space);
782804
}
783805

784806
.doc .tabs.ulist {

src/css/header.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
.header-bottom-row {
5050
background: var(--color-brand-blue-secondary);
5151
display: none;
52+
transition: all 0.3s;
5253
}
5354

5455
.navbar-new-bottom .nav-item {
@@ -300,7 +301,7 @@
300301
color: var(--color-brand-blue);
301302
}
302303

303-
.navbar-new-bottom.is-active {
304+
.header-bottom-row.is-active {
304305
display: block;
305306
position: absolute;
306307
width: 100%;

src/css/nav.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
scrollbar-color: var(--color-border) transparent;
99
height: 100%;
1010
z-index: var(--z-index-nav);
11+
transition: all 0.1s;
1112
}
1213

1314
.nav-menu::-webkit-scrollbar {
@@ -560,7 +561,7 @@ a.collapse-menu span {
560561
}
561562
}
562563

563-
@media screen and (min-width: 767px) {
564+
@media screen and (max-width: 767px) {
564565
nav.nav a.menu-expand-toggle {
565566
right: -3.8rem;
566567
top: 60px;

src/css/vars.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
--base-extra-small-space: 0.5rem; /* ~ 8px */
126126
--base-medium-space: 1.5rem; /* ~ 24px */
127127
--base-large-space: 2rem; /* ~ 32px */
128+
--base-extra-large-space: 2.5rem; /* ~ 40px */
128129
--column-space: 2.5rem; /* ~ 40px */
129130
--admonition-icon-space: 1rem; /* ~ 16px */
130131
--admonition-content-space: 1rem; /* ~ 16px */

src/js/04-mobile-navbar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
navbarToggle.classList.toggle('is-active')
1010
document.getElementById(navbarToggle.dataset.target).classList.toggle('is-active')
1111
document.documentElement.classList.toggle('is-clipped--navbar')
12+
document.querySelector('nav.collapse-menu').classList.remove('collapse-menu')
1213
})
1314
})
1415
})()

src/partials/header-content.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
</div>
1919
{{! End primary header }}
2020
{{! Start secondary header }}
21-
<div class="header-bottom-row">
21+
<div class="header-bottom-row" id="topbar-menu">
2222
<div class="container">
23-
<nav id="topbar-menu" class="navbar navbar-new-bottom">
23+
<nav class="navbar navbar-new-bottom">
2424

2525
<div class="navbar-collapse collapse" id="navbar2">
2626
<ul class="navbar-nav w-100 justify-content-start">

0 commit comments

Comments
 (0)