Skip to content

Commit aa20b5f

Browse files
author
Niutoseq
committed
position of header and breadcrumb
1 parent 8295754 commit aa20b5f

File tree

4 files changed

+45
-37
lines changed

4 files changed

+45
-37
lines changed

docs/_static/css/general.css

Lines changed: 13 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_static/css/main.css

Lines changed: 13 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_static/scss/general.scss

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,13 @@ h2 {
8787
.wy-side-nav-search {
8888
width: 100%;
8989
background-color: var(--primary-blue);
90-
padding: 0 185px;
90+
padding: 0;
9191
position: fixed;
9292
top: 0;
9393
height: 60px;
94-
display: flex;
95-
justify-content: flex-start;
94+
display: grid;
95+
grid-template-columns: 300px 900px 300px;
96+
justify-content: center;
9697
align-items: center;
9798
column-gap: 50px;
9899

@@ -109,8 +110,10 @@ h2 {
109110
padding-bottom: 60px;
110111
padding-top: 5px;
111112
}
113+
112114
.wy-menu-vertical p.caption {
113115
color: var(--primary-blue);
116+
padding: 0 20px;
114117
}
115118

116119
.wy-menu-vertical a {
@@ -289,7 +292,6 @@ code.docutils.literal.notranslate {
289292
border-top: 0;
290293
}
291294

292-
293295
& li.current,
294296
& li.toctree-l2,
295297
& li.toctree-l2 a,
@@ -321,9 +323,6 @@ code.docutils.literal.notranslate {
321323
& a {
322324
font-size: 13px;
323325
}
324-
& a:visited {
325-
color: var(--primary-blue)!important;
326-
}
327326

328327
& li.toctree-l2 li.toctree-l3 a:hover,
329328
& .toctree-l3 a:hover,
@@ -420,11 +419,11 @@ code.docutils.literal.notranslate {
420419
/* notes (admonition notes) end */
421420

422421
/* breadcrumb */
422+
423423
.wy-side-nav-search img {
424424
background-color: transparent;
425425
position: relative;
426426
top:0;
427-
left:-10px;
428427
margin: 0;
429428
height: auto;
430429
width: 150px;
@@ -451,14 +450,22 @@ code.docutils.literal.notranslate {
451450
margin-bottom: 0;
452451
font-size: 15px;
453452
}
453+
454+
.wy-breadcrumbs {
455+
max-width: 1461px;
456+
margin: auto;
457+
458+
& li {
459+
padding-top: initial;
460+
}
461+
}
462+
454463
.wy-breadcrumbs,
455464
.wy-breadcrumbs li a,
456465
.wy-breadcrumbs-aside a {
457466
font-size: 11px;
458467
}
459-
.wy-breadcrumbs li {
460-
padding-top: initial;
461-
}
468+
462469
li.wy-breadcrumbs-aside a {
463470
padding: 10px;
464471
}
@@ -470,7 +477,6 @@ li.wy-breadcrumbs-aside a {
470477
position: fixed;
471478
top: 60px;
472479
border-bottom: 1px solid var(--grey-border);
473-
padding-left: 190px;
474480
z-index:2;
475481
background-color: white;
476482
}

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# -- Project information -----------------------------------------------------
1919

20-
project = "Support Docs"
20+
project = "Docs"
2121
copyright = "2022, Hypernode"
2222
author = "Hypernode"
2323

0 commit comments

Comments
 (0)