Skip to content

Commit a48e53b

Browse files
committed
Added more nests
1 parent 6a8559f commit a48e53b

File tree

1 file changed

+52
-36
lines changed

1 file changed

+52
-36
lines changed

webpack/sass/main.scss

+52-36
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,18 @@ h2 {
3131
padding-bottom: 3rem;
3232
}
3333

34-
.main-header .navbar-brand {
35-
margin-right: 2rem;
36-
img {
37-
width: 250px;
38-
}
39-
.legend {
40-
display: block;
41-
font-size: .9rem;
42-
letter-spacing: .15rem;
34+
.main-header {
35+
background-color: $brand-theme;
36+
.navbar-brand {
37+
margin-right: 2rem;
38+
img {
39+
width: 250px;
40+
}
41+
.legend {
42+
display: block;
43+
font-size: .9rem;
44+
letter-spacing: .15rem;
45+
}
4346
}
4447
}
4548

@@ -52,10 +55,6 @@ h2 {
5255
column-count: 2;
5356
}
5457

55-
.main-header {
56-
background-color: $brand-theme;
57-
}
58-
5958
.navbar {
6059
background: {
6160
image: linear-gradient(90deg, $brand-theme, $brand-theme-light , $brand-theme);
@@ -117,37 +116,52 @@ h2 {
117116
text-align: center;
118117
}
119118

120-
.dropdown:hover .dropdown-menu {
121-
display: block;
119+
.dropdown:hover {
120+
&:hover {
121+
.dropdown-menu {
122+
display: block;
123+
}
124+
}
122125
}
123126

124127
.dropdown-menu {
125128
margin-top: 0px;
126129
}
127130

128-
.nav-item:hover {
129-
background: $brand-theme-dark !important;
130-
}
131-
132131
.navbar-dark {
133-
.navbar-nav .nav-item .nav-link {
134-
color: $white;
135-
line-height: 1rem;
136-
border-left: 1px solid $grey;
132+
.navbar-nav {
133+
.nav-item.active{
134+
.nav-link {
135+
background: $brand-theme-dark !important;
136+
}
137+
}
138+
.nav-item {
139+
&:hover{
140+
background: $brand-theme-dark !important;
141+
}
142+
.nav-link {
143+
color: $white;
144+
line-height: 1rem;
145+
border-left: 1px solid $grey;
146+
}
147+
}
137148
}
138149
.navbar-toggler {
139150
border-color: $white;
140151
}
141-
.navbar-nav .nav-item.active .nav-link {
142-
background: $brand-theme-dark !important;
143-
}
144152
}
145153

146154
@media only screen and (max-width: 1200px) {
147-
.navbar-dark .navbar-nav .nav-item .nav-link {
148-
border: None;
149-
text-align: center;
150-
}
155+
.navbar-dark{
156+
.navbar-nav {
157+
.nav-item {
158+
.nav-link {
159+
border: None;
160+
text-align: center;
161+
}
162+
}
163+
}
164+
}
151165
}
152166

153167
.toc-card {
@@ -161,10 +175,12 @@ h2 {
161175
margin-bottom: 0;
162176
}
163177

164-
.main-footer .footer small {
165-
display: flex;
166-
align-items: center;
167-
.text-muted {
168-
margin-left: 2rem;
178+
.main-footer {
179+
.footer small {
180+
.text-muted {
181+
margin-left: 2rem;
182+
}
183+
display: flex;
184+
align-items: center;
169185
}
170-
}
186+
}

0 commit comments

Comments
 (0)