|
74 | 74 | width: 100%; /* these cards are larger than the default due to the contents of each being so large */ |
75 | 75 | margin: 0.5em 0; |
76 | 76 | } |
| 77 | + |
| 78 | + /* For browsers which support grid layouts - Reset the widths and margins applied in the initial .card styles above as they aren't required when using grid layout */ |
| 79 | + @supports (display: grid) |
| 80 | + { |
| 81 | + .card |
| 82 | + { |
| 83 | + width: auto; |
| 84 | + margin: 0; |
| 85 | + } |
| 86 | + } |
77 | 87 |
|
78 | 88 | .cardHead |
79 | 89 | { |
|
96 | 106 |
|
97 | 107 | #outputCategoriesMenu /* APPS | COLLECTIONS | REPORTS | GRAPHICS */ |
98 | 108 | { |
99 | | - padding-top: 3.3em; |
| 109 | + padding-top: 3.4em; |
100 | 110 | margin-top: 0; |
101 | 111 | margin-bottom: 0; |
102 | 112 | margin-left: 2.5em; |
|
168 | 178 | } |
169 | 179 |
|
170 | 180 |
|
171 | | - /* Display cards in a single column on smaller displays, rather than in the default 2-column */ |
| 181 | + /* Reduce the size of certain elements on very small displays */ |
172 | 182 | @media (max-width:750px) |
173 | 183 | { |
| 184 | + /* Display cards in a single column on smaller displays, rather than in the default 2-column */ |
174 | 185 | .cardContainer |
175 | 186 | { |
176 | | - grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* to fix issue on small displays where the minimum width is still to large and so causes horizontal scrolling */ |
| 187 | + grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* to fix issue on small displays where the minimum width is still to large and so causes horizontal scrolling */ |
| 188 | + gap: 1em; |
| 189 | + |
| 190 | + /* legacy spec definitions for extra safety */ |
| 191 | + grid-gap: 1em; |
177 | 192 | } |
178 | | - } |
179 | | - |
180 | | - /* Reduce the size of the output categories menu on very small displays */ |
181 | | - @media (max-width:640px) { |
| 193 | + |
182 | 194 | #outputCategoriesMenu /* APPS | COLLECTIONS | REPORTS | GRAPHICS */ |
183 | 195 | { |
184 | 196 | padding-top: 3.2em; |
185 | | - margin-bottom: -1px; |
| 197 | + margin-bottom: -2px; |
| 198 | + margin-left: 1.1em; |
186 | 199 | } |
187 | 200 |
|
188 | 201 | #outputCategoriesMenu a |
189 | 202 | { |
190 | | - font-size: 0.80em; |
| 203 | + font-size: 0.7em; |
| 204 | + } |
| 205 | + |
| 206 | + #featured |
| 207 | + { |
| 208 | + border-radius: 1em; |
| 209 | + padding: 0.7em; |
191 | 210 | } |
192 | 211 | } |
193 | 212 |
|
194 | | - /* For browsers which support grid layouts - Reset the widths and margins applied in the .card styles above as they aren't required when using grid layout */ |
195 | | - @supports (display: grid) |
| 213 | + @media (max-width:620px) |
196 | 214 | { |
197 | | - .card |
| 215 | + #outputCategoriesMenu /* APPS | COLLECTIONS | REPORTS | GRAPHICS */ |
198 | 216 | { |
199 | | - width: auto; |
200 | | - margin: 0; |
| 217 | + padding-top: 5.9em; |
201 | 218 | } |
202 | 219 | } |
203 | 220 | </style> |
|
212 | 229 | <li><a href="#footer" class="themeBlockDark">Skip to footer</a></li> |
213 | 230 | </ul> |
214 | 231 | <img src="https://www.trafforddatalab.io/assets/logo/trafforddatalab_logo.svg" alt="Trafford Data Lab" width="93" class="traffordDataLabLogo"/> |
215 | | - <p class="hideContent">Main Menu</p> |
216 | | - <ul class="navbar"> |
| 232 | + <p id="mainMenu" class="hideContent">Main Menu</p> |
| 233 | + <ul class="navbar" labelled-by="mainMenu"> |
217 | 234 | <li><a href="charticles.html">Charticles</a></li> |
218 | 235 | <li><a href="data.html">Data</a></li> |
219 | 236 | <li><a href="learning.html">Learning</a></li> |
|
0 commit comments