Skip to content

Commit 2aea947

Browse files
committed
styles added and hero image
1 parent f6e611d commit 2aea947

File tree

1 file changed

+89
-17
lines changed

1 file changed

+89
-17
lines changed

src/scss/_common.scss

Lines changed: 89 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,117 @@
1+
body {
2+
font-family: "Lato", sans-serif;
3+
}
4+
svg.icon { //Invisible block that messes with my hero
5+
display: none;
6+
}
7+
18
header {
2-
background-color: teal;
9+
position: relative;
10+
top: 0;
11+
width: 100%;
12+
height: 448px;
13+
margin-bottom: 20px;
14+
// margin-left: 30px;
15+
16+
background: transparent url('../img/hero2.jpg') no-repeat; //recieved help from a web developer on this part
17+
-webkit-box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.75);
18+
-moz-box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.75);
19+
box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.75);
20+
21+
22+
a {
23+
text-decoration: none;
24+
font-weight: bold; color: #fff;
25+
border-bottom: 1px solid rgba(198, 70, 61, 0);
26+
}
27+
28+
a:hover {
29+
border-bottom: 1px solid #500000;
30+
color: #500000;
31+
}
32+
33+
34+
h1 { //Ricecoder
35+
text-align: center;
36+
color: #fff;
37+
}
338

4-
h1 {
39+
.text { //H2 and p in the header
540
text-align: center;
641
color: #fff;
742
}
843

9-
.menu-icon {
44+
.menu-list { //menu
45+
display: none;
46+
}
47+
48+
.menu-list.active { //menu active state
49+
display: inherit;
50+
background-color: #fff;
51+
float: left;
52+
53+
a { //all links in header
54+
text-decoration: none;
55+
color: #fff;
56+
display: block;
57+
}
58+
}
59+
60+
61+
62+
.menu-icon { //Hamburger Menu
1063
position: relative;
1164
display: inline-block;
12-
width: 7vw;
65+
width: 2vw;
1366
text-indent: -999px;
14-
float: right;
67+
1568

1669
}
1770

18-
.border {
19-
height: 30px;
20-
border-top: 10px solid blue;
21-
border-bottom: 10px solid blue;
71+
.border { //Hamburger Menu
72+
height: 15px;
73+
border-top: 5px solid #fff;
74+
border-bottom: 5px solid #fff;
2275
border-radius: 5%;
2376
}
2477

25-
.border::before {
78+
.border::before { //Hamburger Menu
2679
content: "";
2780
position: absolute;
28-
top: 10px;
81+
top: 5px;
2982
left: 0;
3083
width: 100%;
31-
border-top: 10px solid blue;
84+
border-top: 5px solid #fff;
3285
border-radius: 5%;
3386

3487
}
3588

36-
}
3789

38-
.menu {
39-
float: right;
40-
display: inline-block;
90+
} //END OF HEADER
4191

42-
a {
92+
//MAIN CONTAINER
93+
.container {
94+
max-width: 960px;
95+
margin: 0 auto;
96+
97+
.posts{ //Posts section
98+
padding-bottom: 10px;
99+
margin-bottom: 10px;
100+
border-bottom: 1px solid #ccc;
101+
102+
a {
43103
text-decoration: none;
44104
}
105+
106+
.comment {
107+
padding: 5px;
108+
}
109+
110+
}
111+
} //END OF MAIN CONTAINER
112+
113+
footer{
114+
padding: 10px 0;
115+
color: #ccc;
116+
background: #121417;
45117
}

0 commit comments

Comments
 (0)