|
| 1 | +body { |
| 2 | + font-family: "Lato", sans-serif; |
| 3 | +} |
| 4 | +svg.icon { //Invisible block that messes with my hero |
| 5 | + display: none; |
| 6 | +} |
| 7 | + |
1 | 8 | 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 | + } |
3 | 38 |
|
4 | | - h1 { |
| 39 | + .text { //H2 and p in the header |
5 | 40 | text-align: center; |
6 | 41 | color: #fff; |
7 | 42 | } |
8 | 43 |
|
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 |
10 | 63 | position: relative; |
11 | 64 | display: inline-block; |
12 | | - width: 7vw; |
| 65 | + width: 2vw; |
13 | 66 | text-indent: -999px; |
14 | | - float: right; |
| 67 | + |
15 | 68 |
|
16 | 69 | } |
17 | 70 |
|
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; |
22 | 75 | border-radius: 5%; |
23 | 76 | } |
24 | 77 |
|
25 | | - .border::before { |
| 78 | + .border::before { //Hamburger Menu |
26 | 79 | content: ""; |
27 | 80 | position: absolute; |
28 | | - top: 10px; |
| 81 | + top: 5px; |
29 | 82 | left: 0; |
30 | 83 | width: 100%; |
31 | | - border-top: 10px solid blue; |
| 84 | + border-top: 5px solid #fff; |
32 | 85 | border-radius: 5%; |
33 | 86 |
|
34 | 87 | } |
35 | 88 |
|
36 | | -} |
37 | 89 |
|
38 | | -.menu { |
39 | | - float: right; |
40 | | - display: inline-block; |
| 90 | +} //END OF HEADER |
41 | 91 |
|
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 { |
43 | 103 | text-decoration: none; |
44 | 104 | } |
| 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; |
45 | 117 | } |
0 commit comments