Update style.css
Browse files
style.css
CHANGED
|
@@ -70,20 +70,42 @@ header h1 {
|
|
| 70 |
opacity: 0;
|
| 71 |
overflow: hidden;
|
| 72 |
flex-direction: column;
|
|
|
|
| 73 |
background: #004e56;
|
| 74 |
position: absolute;
|
| 75 |
top: 60px; /* below header */
|
| 76 |
right: 10px;
|
| 77 |
left: 10px;
|
| 78 |
z-index: 200;
|
| 79 |
-
border-radius:
|
| 80 |
-
box-shadow: 0
|
| 81 |
-
transition: max-height 0.4s ease, opacity 0.4s ease;
|
|
|
|
| 82 |
}
|
| 83 |
|
| 84 |
#top-nav.show {
|
| 85 |
-
max-height:
|
| 86 |
opacity: 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
}
|
| 88 |
|
| 89 |
@media (min-width: 768px) {
|
|
@@ -92,10 +114,23 @@ header h1 {
|
|
| 92 |
display: flex;
|
| 93 |
flex-direction: row;
|
| 94 |
justify-content: center;
|
|
|
|
| 95 |
background: none;
|
| 96 |
box-shadow: none;
|
| 97 |
max-height: none;
|
| 98 |
opacity: 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
}
|
| 100 |
|
| 101 |
#menu-toggle {
|
|
|
|
| 70 |
opacity: 0;
|
| 71 |
overflow: hidden;
|
| 72 |
flex-direction: column;
|
| 73 |
+
align-items: flex-start;
|
| 74 |
background: #004e56;
|
| 75 |
position: absolute;
|
| 76 |
top: 60px; /* below header */
|
| 77 |
right: 10px;
|
| 78 |
left: 10px;
|
| 79 |
z-index: 200;
|
| 80 |
+
border-radius: 8px;
|
| 81 |
+
box-shadow: 0 6px 12px rgba(0,0,0,0.25);
|
| 82 |
+
transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.3s ease;
|
| 83 |
+
padding: 0 0; /* collapsed */
|
| 84 |
}
|
| 85 |
|
| 86 |
#top-nav.show {
|
| 87 |
+
max-height: 300px; /* enough to show all items */
|
| 88 |
opacity: 1;
|
| 89 |
+
padding: 10px 16px; /* adds breathing space when opened */
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
#top-nav a {
|
| 93 |
+
display: block;
|
| 94 |
+
padding: 10px 0;
|
| 95 |
+
color: white;
|
| 96 |
+
text-decoration: none;
|
| 97 |
+
width: 100%;
|
| 98 |
+
border-bottom: 1px solid rgba(255,255,255,0.2);
|
| 99 |
+
font-size: 16px;
|
| 100 |
+
transition: background 0.3s ease;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
#top-nav a:last-child {
|
| 104 |
+
border-bottom: none;
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
#top-nav a:hover {
|
| 108 |
+
background: rgba(255,255,255,0.1);
|
| 109 |
}
|
| 110 |
|
| 111 |
@media (min-width: 768px) {
|
|
|
|
| 114 |
display: flex;
|
| 115 |
flex-direction: row;
|
| 116 |
justify-content: center;
|
| 117 |
+
align-items: center;
|
| 118 |
background: none;
|
| 119 |
box-shadow: none;
|
| 120 |
max-height: none;
|
| 121 |
opacity: 1;
|
| 122 |
+
padding: 0;
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
#top-nav a {
|
| 126 |
+
padding: 10px 16px;
|
| 127 |
+
color: white;
|
| 128 |
+
border: none;
|
| 129 |
+
font-size: 16px;
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
#top-nav a:hover {
|
| 133 |
+
background: rgba(255,255,255,0.15);
|
| 134 |
}
|
| 135 |
|
| 136 |
#menu-toggle {
|