Skip to content

Commit 7f1d0e5

Browse files
Update layout.scss to accomodate dropdown menu
Signed-off-by: sunilpaulmathew <sunil.kde@gmail.com>
1 parent 25603ef commit 7f1d0e5

1 file changed

Lines changed: 53 additions & 33 deletions

File tree

docs/_sass/layout.scss

Lines changed: 53 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.imageWrapper { // Sets the background image in the header area
1+
.imageWrapper {
22
height: 714px;
33
background:
44
linear-gradient(
@@ -32,7 +32,7 @@
3232
background-color: #fff;
3333
}
3434

35-
.container { // Set up the container for the site content
35+
.container {
3636
display: grid;
3737
margin: auto;
3838
max-width: $content-width;
@@ -144,10 +144,8 @@ header {
144144
margin-left: 15px;
145145
}
146146

147-
}
148-
147+
}
149148

150-
// Navigation Links
151149
.scroll {
152150
display: flex;
153151
width: 100%;
@@ -221,9 +219,6 @@ nav > ul li a:active {
221219
color: rgba($header-title-color, 1);
222220
}
223221

224-
225-
226-
// Sub Page Header Styling
227222
.subPageHeaderBackground .logo > p {
228223
color: #000;
229224
}
@@ -238,10 +233,6 @@ nav > ul li a:active {
238233
color: rgba(#000, 1);
239234
}
240235

241-
242-
243-
// App Title, Price, Description and Links
244-
245236
.appInfo {
246237
grid-area: i;
247238
display: flex;
@@ -250,6 +241,48 @@ nav > ul li a:active {
250241
align-content: flex-start;
251242
}
252243

244+
.dropbtn {
245+
background-color: black;
246+
color: white;
247+
padding: 16px;
248+
font-size: 16px;
249+
border: none;
250+
cursor: pointer;
251+
}
252+
253+
.dropdown {
254+
float: left;
255+
overflow: hidden;
256+
}
257+
258+
.dropdown-content {
259+
display: none;
260+
position: absolute;
261+
background-color: #f9f9f9;
262+
min-width: 160px;
263+
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
264+
z-index: 1;
265+
}
266+
267+
.dropdown-content a {
268+
color: black;
269+
padding: 12px 16px;
270+
text-decoration: none;
271+
display: block;
272+
}
273+
274+
.dropdown-content a:hover {
275+
background-color: #f1f1f1
276+
}
277+
278+
.dropdown:hover .dropdown-content {
279+
display: block;
280+
}
281+
282+
.dropdown:hover .dropbtn {
283+
background-color: #3e8e41;
284+
}
285+
253286
@media only screen and (max-width: 992px) {
254287

255288
.appInfo {
@@ -374,10 +407,6 @@ nav > ul li a:active {
374407
height: 75px;
375408
}
376409

377-
378-
379-
// iPhone Device Preview
380-
381410
.iphonePreview {
382411
grid-area: p;
383412
background-image: url($device-color);
@@ -466,10 +495,7 @@ nav > ul li a:active {
466495
height: 488px;
467496
}
468497

469-
}
470-
471-
472-
// Feature List
498+
}
473499

474500
.features {
475501
grid-area: c;
@@ -598,13 +624,8 @@ nav > ul li a:active {
598624

599625
.feature:nth-child(3n+1) {
600626
padding-left: 0px;
601-
}
602-
603-
}
604-
605-
606-
607-
// Footer
627+
}
628+
}
608629

609630
footer {
610631
grid-area: f;
@@ -625,8 +646,8 @@ footer {
625646

626647
.footerIcons {
627648
margin-top: 10px;
628-
padding-top: 50px;
629-
padding-bottom: 50px;
649+
padding-top: 25px;
650+
padding-bottom: 25px;
630651
display: flex;
631652
flex: 0 0 100%;
632653
justify-content: center;
@@ -679,11 +700,10 @@ footer {
679700

680701
.footerIcons {
681702
margin-top: 10px;
682-
padding-top: 50px;
683-
padding-bottom: 50px;
703+
padding-top: 25px;
704+
padding-bottom: 25px;
684705
display: flex;
685-
}
686-
706+
}
687707
}
688708

689709
.hidden {

0 commit comments

Comments
 (0)