Skip to content

Commit 259f423

Browse files
author
anmol372
committed
Left-Side Nav-Bar Styling
1 parent 48163bd commit 259f423

File tree

4 files changed

+161
-5
lines changed

4 files changed

+161
-5
lines changed

assets/scss/_docs.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.td-sidebar-nav .td-sidebar-link__page {
22
color: #222;
3-
font-weight: normal;
3+
//font-weight: normal;
44
}
55

66
.of-docs__wrapper {
@@ -11,14 +11,14 @@
1111
list-style: disc;
1212
margin-left: 2rem;
1313
}
14-
.td-sidebar-nav .td-sidebar-link__page {
14+
.td-sidebar-nav .td-sidebar-link__page {
1515
font-weight: normal;
1616
}
1717
h1,h2,h3,h4,h5,h6 {
1818
color: var(--of--Color--brand--200);
1919
font-weight: 800;
2020
letter-spacing: 2px;
21-
//margin: var(--of--spacer--md) 0 var(--of--spacer--sm);
21+
margin: var(--of--spacer--md) 0 var(--of--spacer--sm);
2222

2323
a:hover {
2424
text-decoration: none;

assets/scss/_sidebar-tree.scss

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
//
2+
// Left side navigation
3+
//
4+
.td-sidebar-nav {
5+
padding-right: 0.5rem;
6+
margin-right: -15px;
7+
margin-left: -15px;
8+
9+
@include media-breakpoint-up(md) {
10+
@supports (position: sticky) {
11+
// max-height: calc(100vh - 10rem);
12+
max-height: calc(100vh - 4rem);
13+
overflow-y: auto;
14+
}
15+
}
16+
17+
18+
@include media-breakpoint-up(md) {
19+
display: block !important;
20+
}
21+
22+
23+
&__section {
24+
li {
25+
list-style: none;
26+
}
27+
28+
ul {
29+
padding: 0;
30+
margin: 0;
31+
}
32+
33+
@include media-breakpoint-up(md) {
34+
& > ul {
35+
padding-left: .5rem;
36+
}
37+
}
38+
39+
40+
padding-left: 0;
41+
}
42+
43+
&__section-title {
44+
display: block;
45+
//font-weight: $font-weight-medium;
46+
font-weight: 550;
47+
48+
.active {
49+
//font-weight: $font-weight-bold;
50+
font-weight: 800;
51+
color: $gray-900;
52+
}
53+
54+
a {
55+
color: $gray-700;
56+
}
57+
}
58+
59+
.td-sidebar-link {
60+
display: block;
61+
padding-bottom: 0.375rem;
62+
63+
&__page {
64+
color: $gray-600;
65+
font-weight: $font-weight-light;
66+
}
67+
}
68+
69+
a {
70+
&:hover {
71+
color: $blue;
72+
text-decoration: none;
73+
}
74+
75+
&.active {
76+
//font-weight: $font-weight-bold;
77+
font-weight: 800;
78+
color: $gray-800;
79+
80+
}
81+
}
82+
83+
.dropdown {
84+
a {
85+
color: $gray-700;
86+
}
87+
88+
.nav-link {
89+
padding: 0 0 1rem;
90+
}
91+
}
92+
}
93+
94+
.td-sidebar {
95+
padding-top: 4rem;
96+
margin-bottom: var(--of--spacer--md);
97+
display:flex;
98+
justify-content: center;
99+
background: var(--of--color-white--200);
100+
span {
101+
margin-left: var(--of--spacer--md);
102+
font-family: var(--of--font-family);
103+
}
104+
@include media-breakpoint-up(md) {
105+
padding-top: var(--of--spacer--md);
106+
padding-bottom: 4rem;
107+
background-color: $td-sidebar-bg-color;
108+
margin-bottom: 0;
109+
padding-right: 1rem;
110+
border-right: 1px solid $td-sidebar-border-color;
111+
}
112+
113+
&__toggle {
114+
line-height: 1;
115+
color: $gray-900;
116+
margin: 1rem;
117+
}
118+
119+
&__search {
120+
padding: 1rem 15px;
121+
margin-right: -15px;
122+
margin-left: -15px;
123+
}
124+
125+
&__inner {
126+
order: 0;
127+
128+
@include media-breakpoint-up(md) {
129+
@supports (position: sticky) {
130+
position: sticky;
131+
top:71px;
132+
z-index: 10;
133+
height: calc(100vh - 6rem);
134+
}
135+
}
136+
137+
138+
@include media-breakpoint-up(xl) {
139+
flex: 0 1 320px;
140+
}
141+
142+
143+
.td-search-box {
144+
width: 100%;
145+
}
146+
147+
&__heading {
148+
padding: var(--of--spacer--md);
149+
background: var(--of--color-brand--300);
150+
color: var(--of--color-white--100);
151+
margin-left: -15px;
152+
margin-right: -15px;
153+
}
154+
}
155+
}

assets/scss/_styles_project.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
@import "../../themes/docsy/assets/scss/support/mixins";
44

55
@import "../../themes/docsy/assets/vendor/bootstrap/scss/bootstrap";
6-
//@import "../../themes/docsy/assets/vendor/bootstrap/scss/reboot";
76

87
@import "../../themes/docsy/assets/vendor/Font-Awesome/scss/fontawesome.scss";
98
@import "../../themes/docsy/assets/vendor/Font-Awesome/scss/solid.scss";
@@ -15,7 +14,7 @@
1514
@import "../../themes/docsy/assets/scss/blog";
1615
@import "../../themes/docsy/assets/scss/code";
1716
@import "../../themes/docsy/assets/scss/nav";
18-
@import "../../themes/docsy/assets/scss/sidebar-tree";
17+
//@import "../../themes/docsy/assets/scss/sidebar-tree";
1918
@import "../../themes/docsy/assets/scss/sidebar-toc";
2019
@import "../../themes/docsy/assets/scss/buttons";
2120
@import "../../themes/docsy/assets/scss/breadcrumb";
@@ -63,6 +62,7 @@ footer {
6362
@import "variables";
6463
@import "reset";
6564
@import "type";
65+
@import "sidebar-tree";
6666

6767
//components
6868
@import "header";

content/en/docs/Glossary/Glossary.md renamed to content/en/docs/Glossary/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
---
23
title: "Glossary"
34
linkTitle: "Glossary"

0 commit comments

Comments
 (0)