Skip to content

Commit c17eb3b

Browse files
ericjamesrobbiethegeek
authored andcommitted
Mobile friendly dropdown nav menu (#19)
* SASSBeautify * Actually useful mobile dropdown menu * Update _customizations.scss
1 parent 8b32d2c commit c17eb3b

1 file changed

Lines changed: 97 additions & 67 deletions

File tree

_sass/_customizations.scss

Lines changed: 97 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -5,112 +5,142 @@ $brand-brown-light: #E7DCD3;
55
$slightly-bold: 500;
66

77
a {
8-
text-decoration: none;
9-
color: $brand-teal;
10-
&:visited {
11-
color: $brand-teal;
12-
}
13-
&:hover {
14-
color: $brand-teal-dark;
158
text-decoration: none;
16-
}
9+
color: $brand-teal;
10+
11+
&:visited {
12+
color: $brand-teal;
13+
}
14+
15+
&:hover {
16+
color: $brand-teal-dark;
17+
text-decoration: none;
18+
}
1719
}
1820

1921
.teal {
20-
color: $brand-teal;
22+
color: $brand-teal;
2123
}
2224

2325
.btn-teal {
24-
background: white;
25-
border: 2px solid $brand-teal;
26+
background: white;
27+
border: 2px solid $brand-teal;
2628
}
2729

2830
.slightly-bold {
29-
font-weight: $slightly-bold;
31+
font-weight: $slightly-bold;
3032
}
3133

3234
.jumbotron {
33-
background-color: $brand-brown-light;
34-
border-bottom: 1px solid $brand-teal;
35-
h2 {
36-
display: inline-block;
37-
border-bottom: 1px solid black;
38-
}
39-
color: $brand-brown;
40-
p {
41-
font-size: 20px;
42-
}
35+
background-color: $brand-brown-light;
36+
border-bottom: 1px solid $brand-teal;
37+
38+
h2 {
39+
display: inline-block;
40+
border-bottom: 1px solid black;
41+
}
42+
43+
color: $brand-brown;
44+
45+
p {
46+
font-size: 20px;
47+
}
4348
}
4449

4550
.panel-default {
46-
border: 1px solid $brand-teal;
47-
&>.panel-heading {
48-
font-weight: $slightly-bold;
49-
background-color: $brand-brown-light;
50-
border-bottom: 1px solid $brand-teal;
51-
}
51+
border: 1px solid $brand-teal;
52+
53+
& > .panel-heading {
54+
font-weight: $slightly-bold;
55+
background-color: $brand-brown-light;
56+
border-bottom: 1px solid $brand-teal;
57+
}
5258
}
5359

5460
.navbar {
55-
margin-bottom: 0px;
56-
border-bottom: 3px solid $brand-teal;
57-
height: 70px;
58-
a {
59-
font-size: 1.3em;
60-
font-weight: $slightly-bold;
61-
letter-spacing: 2px;
62-
text-transform: uppercase;
63-
}
64-
.titleUpper {
65-
font-size: 20px;
66-
}
67-
68-
.titleLower {
69-
text-align: right;
70-
font-size: 12px;
71-
letter-spacing: 1px;
72-
}
73-
74-
.navbar-nav {
75-
margin-top: 6px;
76-
font-size: 18px;
77-
}
78-
61+
margin-bottom: 0px;
62+
border-bottom: 3px solid $brand-teal;
63+
height: 70px;
64+
65+
a {
66+
font-size: 1.3em;
67+
font-weight: $slightly-bold;
68+
letter-spacing: 2px;
69+
text-transform: uppercase;
70+
}
71+
72+
.titleUpper {
73+
font-size: 20px;
74+
}
75+
76+
.titleLower {
77+
text-align: right;
78+
font-size: 12px;
79+
letter-spacing: 1px;
80+
}
81+
82+
.navbar-nav {
83+
margin-top: 6px;
84+
font-size: 18px;
85+
}
7986
}
8087

8188
.instagram-image-container {
82-
display: flex;
83-
justify-content: space-between;
84-
flex-wrap: wrap;
89+
display: flex;
90+
justify-content: space-between;
91+
flex-wrap: wrap;
8592
}
8693

8794
.instagram-image-link {
88-
flex-shrink: 0;
89-
text-align: center;
95+
flex-shrink: 0;
96+
text-align: center;
9097
}
9198

9299
.instagram-image {
93-
height: 150px;
100+
height: 150px;
94101
}
95102

96103
.tc {
97-
text-align: center;
104+
text-align: center;
98105
}
99106

100107
.sponsor {
101-
display: inline-block;
102-
margin: 15px;
103-
height: 55px;
104-
width: auto;
105-
img {
108+
display: inline-block;
109+
margin: 15px;
106110
height: 55px;
107111
width: auto;
108-
}
112+
113+
img {
114+
height: 55px;
115+
width: auto;
116+
}
109117
}
110118

111119
.flex {
112-
display: flex;
120+
display: flex;
113121
}
122+
114123
.flex-auto {
115-
flex: 1 1 auto;
124+
flex: 1 1 auto;
116125
}
126+
127+
@media (max-width: 767px) {
128+
.navbar {
129+
.navbar-collapse {
130+
position: relative;
131+
z-index: 10;
132+
border: none;
133+
padding-right: 20px; // Line up buttons to hamburger
134+
background: rgb(255, 255, 255);
135+
background: linear-gradient(0deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
136+
}
137+
138+
.navbar-nav {
139+
font-size: 28px;
140+
}
141+
142+
.navbar-toggle {
143+
padding: 15px;
144+
}
145+
}
146+
}

0 commit comments

Comments
 (0)