|
1 |
| -/* Fixed navigation bar at the top */ |
| 1 | + |
| 2 | +/* Add a black background color to the top navigation */ |
2 | 3 | .topnav {
|
3 |
| - background-color: #ffffff; /* Sets background color to white */ |
| 4 | + background-color: #ffffff; |
4 | 5 | overflow: hidden;
|
5 |
| - position: fixed; |
6 |
| - z-index: 999; |
7 |
| - width: 100%; |
8 |
| - top: 0; /* Aligns the nav to the very top */ |
9 |
| - margin: 0; /* Removes any margin */ |
10 |
| - padding: 0 10px; /* Adds padding to prevent overflow */ |
11 |
| - box-sizing: border-box; /* Ensures padding is within width */ |
| 6 | + position:fixed; |
| 7 | + z-index:999; |
| 8 | + width:100%; |
| 9 | + } |
| 10 | + |
| 11 | + |
| 12 | + .topnav #myLinks { |
| 13 | + display: inline; |
| 14 | + } |
| 15 | + |
| 16 | +.topnav a.icon { |
| 17 | + display: none; |
12 | 18 | }
|
13 | 19 |
|
14 |
| -/* Links inside the navigation bar */ |
15 |
| -.topnav a.normal { |
16 |
| - color: #808080; /* Sets text color to grey */ |
| 20 | + .topnav img { |
| 21 | + margin-bottom:0pt; |
| 22 | + margin-top:10pt; |
| 23 | + margin-left:30%; |
| 24 | + } |
| 25 | + |
| 26 | + /* Style the links inside the navigation bar */ |
| 27 | + .topnav a.normal { |
| 28 | + float: right; |
| 29 | + color: #808080; |
17 | 30 | text-align: center;
|
18 |
| - padding: 10px 15px; /* Adjust padding for spacing */ |
| 31 | + padding: 10px 9px; |
19 | 32 | text-decoration: none;
|
20 | 33 | font-size: 17px;
|
21 |
| - display: inline-block; /* Ensures inline alignment */ |
22 |
| -} |
| 34 | + } |
| 35 | + |
| 36 | + /* Change the color of links on hover */ |
| 37 | + .topnav a.normal:hover { |
| 38 | + background-color: #ddd; |
| 39 | + color: black; |
| 40 | + } |
| 41 | + |
| 42 | + /* Add a color to the active/current link */ |
| 43 | + .topnav a.right { |
| 44 | + margin-right:30%; |
| 45 | + } |
23 | 46 |
|
24 |
| -/* Hover effects for links */ |
25 |
| -.topnav a.normal:hover { |
26 |
| - background-color: #f0f0f0; /* Light grey background on hover */ |
27 |
| - color: #000000; /* Black text on hover */ |
28 |
| -} |
| 47 | + @media print, screen and (max-width: 1000px) { |
29 | 48 |
|
30 |
| -/* Adjusts right margin for links */ |
31 |
| -.topnav a.right { |
32 |
| - margin-right: 0; /* Removes any excess margin */ |
33 |
| -} |
| 49 | + .topnav img { |
| 50 | + margin-left:3%; |
| 51 | + } |
| 52 | + |
| 53 | + .topnav a.right { |
| 54 | + margin-right:3%; |
| 55 | + } |
| 56 | + |
| 57 | + .topnav a.normal { |
| 58 | + padding: 10px 5px; |
| 59 | + } |
| 60 | + |
| 61 | + } |
| 62 | + |
| 63 | + @media print, screen and (max-width: 1200px) and (min-width: 1001px) { |
| 64 | + |
| 65 | + .topnav img { |
| 66 | + margin-left:6%; |
| 67 | + } |
| 68 | + .topnav a.right { |
| 69 | + margin-right:6%; |
| 70 | + } |
| 71 | + |
| 72 | + } |
| 73 | + |
| 74 | + @media print, screen and (max-width: 1400px) and (min-width: 1201px) { |
| 75 | + |
| 76 | + .topnav img { |
| 77 | + margin-left:12%; |
| 78 | + } |
| 79 | + .topnav a.right { |
| 80 | + margin-right:12%; |
| 81 | + } |
| 82 | + |
| 83 | + } |
| 84 | + |
| 85 | + |
| 86 | + @media print, screen and (max-width: 1600px) and (min-width: 1401px) { |
| 87 | + |
| 88 | + .topnav img { |
| 89 | + margin-left:16%; |
| 90 | + } |
| 91 | + .topnav a.right { |
| 92 | + margin-right:16%; |
| 93 | + } |
34 | 94 |
|
35 |
| -/* Mobile Styles */ |
36 |
| -@media screen and (max-width: 960px) { |
| 95 | + } |
| 96 | + |
| 97 | + @media print, screen and (max-width: 1800px) and (min-width: 1601px) { |
| 98 | + |
| 99 | + .topnav img { |
| 100 | + margin-left:19%; |
| 101 | + } |
| 102 | + .topnav a.right { |
| 103 | + margin-right:19%; |
| 104 | + } |
| 105 | + |
| 106 | + } |
| 107 | + |
| 108 | + @media print, screen and (max-width: 2000px) and (min-width: 1801px) { |
| 109 | + |
| 110 | + .topnav img { |
| 111 | + margin-left:22%; |
| 112 | + } |
| 113 | + .topnav a.right { |
| 114 | + margin-right:22%; |
| 115 | + } |
| 116 | + |
| 117 | + } |
| 118 | + |
| 119 | + |
| 120 | + @media print, screen and (max-width: 480px) { |
37 | 121 | .topnav #myLinks {
|
38 | 122 | display: none;
|
39 |
| - width: 100%; |
40 |
| - } |
| 123 | + } |
| 124 | + } |
41 | 125 |
|
42 |
| - .topnav.responsive #myLinks { |
43 |
| - display: block; |
44 |
| - width: 100%; |
45 |
| - text-align: left; |
46 |
| - } |
| 126 | + @media print, screen and (max-width: 960px) { |
47 | 127 |
|
48 |
| - .topnav a.normal { |
| 128 | + .topnav #myLinks { |
| 129 | + display: none; |
| 130 | + } |
| 131 | + |
| 132 | + .topnav a.normal { |
| 133 | + color: white; |
| 134 | + float: none; |
| 135 | + padding: 14px 16px; |
| 136 | + text-decoration: none; |
| 137 | + font-size: 17px; |
49 | 138 | display: block;
|
50 |
| - text-align: left; |
51 |
| - } |
| 139 | + } |
52 | 140 |
|
53 |
| - .topnav a.icon { |
54 |
| - float: right; |
| 141 | + .topnav a.icon { |
| 142 | + color: white; |
55 | 143 | display: block;
|
56 |
| - } |
57 |
| -} |
| 144 | + padding: 10px 16px; |
| 145 | + font-size: 17px; |
| 146 | + position: absolute; |
| 147 | + float: right; |
| 148 | + right: 0; |
| 149 | + top: 0; |
| 150 | + margin-right:5%; |
| 151 | + } |
58 | 152 |
|
59 |
| -/* Adjust image alignment inside the navigation bar */ |
60 |
| -.topnav img { |
61 |
| - margin: 0; |
62 |
| - padding: 10px; |
63 |
| - vertical-align: middle; |
64 |
| - max-width: 100%; |
65 |
| -} |
| 153 | + .topnav a.right { |
| 154 | + color: white; |
| 155 | + float: none; |
| 156 | + padding: 14px 16px; |
| 157 | + text-decoration: none; |
| 158 | + font-size: 17px; |
| 159 | + display: block; |
| 160 | + margin-right:0; |
| 161 | + } |
| 162 | + } |
| 163 | + |
0 commit comments