|
1 | 1 | // Import NHS.UK frontend library |
2 | 2 | @import "nhsuk-frontend/dist/nhsuk"; |
| 3 | +@import "../../../node_modules/@x-govuk/govuk-prototype-components/src/x-govuk"; |
3 | 4 |
|
4 | 5 | // Local override classes |
5 | 6 | @import 'overrides'; |
@@ -149,3 +150,184 @@ border-radius: 3px; |
149 | 150 | .nhsuk-checkboxes__item[hidden] { |
150 | 151 | display: none; |
151 | 152 | } |
| 153 | + |
| 154 | +.x-govuk-sub-navigation__section-item--current { |
| 155 | + background-color: transparent; |
| 156 | +} |
| 157 | + |
| 158 | +.app-pharmacy-back-link { |
| 159 | + margin-bottom: 24px; |
| 160 | +} |
| 161 | + |
| 162 | +.app-pharmacy-page-title { |
| 163 | + margin-bottom: nhsuk-spacing(6); |
| 164 | +} |
| 165 | + |
| 166 | +@include nhsuk-media-query($from: tablet) { |
| 167 | + .app-pharmacy-back-link { |
| 168 | + margin-bottom: 48px; |
| 169 | + } |
| 170 | +} |
| 171 | + |
| 172 | +.app-section-navigation { |
| 173 | + margin-bottom: nhsuk-spacing(4); |
| 174 | +} |
| 175 | + |
| 176 | +.app-section-navigation__list { |
| 177 | + @include nhsuk-font(19); |
| 178 | + |
| 179 | + display: flex; |
| 180 | + flex-flow: row nowrap; |
| 181 | + gap: nhsuk-spacing(1) nhsuk-spacing(2); |
| 182 | + list-style: none; |
| 183 | + margin: 0; |
| 184 | + padding: 0; |
| 185 | + box-shadow: inset 0 -1px $nhsuk-border-colour; |
| 186 | + overflow-x: auto; |
| 187 | +} |
| 188 | + |
| 189 | +.app-section-navigation__item { |
| 190 | + margin: 0; |
| 191 | +} |
| 192 | + |
| 193 | +.app-section-navigation__link { |
| 194 | + @include nhsuk-link-style-default; |
| 195 | + @include nhsuk-link-style-no-visited-state; |
| 196 | + |
| 197 | + display: block; |
| 198 | + padding: nhsuk-spacing(2) 2px; |
| 199 | + text-decoration: none; |
| 200 | + white-space: nowrap; |
| 201 | +} |
| 202 | + |
| 203 | +.app-section-navigation__link[aria-current="page"] { |
| 204 | + box-shadow: inset 0 -4px $nhsuk-link-colour; |
| 205 | +} |
| 206 | + |
| 207 | +.app-section-navigation__link[aria-current="page"]:focus { |
| 208 | + box-shadow: inset 0 -4px $nhsuk-text-colour; |
| 209 | +} |
| 210 | + |
| 211 | +.app-section-navigation__current { |
| 212 | + font-weight: 700; |
| 213 | +} |
| 214 | + |
| 215 | +.app-section-navigation--vertical .app-section-navigation__list { |
| 216 | + flex-flow: column; |
| 217 | + gap: 0; |
| 218 | + box-shadow: none; |
| 219 | + overflow: visible; |
| 220 | +} |
| 221 | + |
| 222 | +.app-section-navigation--vertical .app-section-navigation__item { |
| 223 | + border-left: 4px solid transparent; |
| 224 | +} |
| 225 | + |
| 226 | +.app-section-navigation--vertical .app-section-navigation__item--current { |
| 227 | + border-left-color: $nhsuk-link-colour; |
| 228 | +} |
| 229 | + |
| 230 | +.app-section-navigation--vertical .app-section-navigation__link { |
| 231 | + padding: nhsuk-spacing(1) nhsuk-spacing(2) nhsuk-spacing(1) calc(#{nhsuk-spacing(2)} + 4px); |
| 232 | +} |
| 233 | + |
| 234 | +.app-section-navigation--vertical .app-section-navigation__link[aria-current="page"] { |
| 235 | + box-shadow: none; |
| 236 | +} |
| 237 | + |
| 238 | +.app-section-navigation--vertical .app-section-navigation__link[aria-current="page"]:focus { |
| 239 | + box-shadow: inset 0 -4px $nhsuk-text-colour; |
| 240 | +} |
| 241 | + |
| 242 | +.app-pharmacy-users-table-responsive { |
| 243 | + container-name: pharmacy-users-table; |
| 244 | + container-type: inline-size; |
| 245 | + max-width: 100%; |
| 246 | +} |
| 247 | + |
| 248 | +.app-pharmacy-users-table { |
| 249 | + width: 100%; |
| 250 | +} |
| 251 | + |
| 252 | +.app-pharmacy-users-table .app-pharmacy-users-vaccinator { |
| 253 | + white-space: nowrap; |
| 254 | + width: 1%; |
| 255 | +} |
| 256 | + |
| 257 | +.app-pharmacy-users-actions a { |
| 258 | + display: block; |
| 259 | +} |
| 260 | + |
| 261 | +.app-pharmacy-users-actions a + a { |
| 262 | + margin-top: nhsuk-spacing(1); |
| 263 | +} |
| 264 | + |
| 265 | +@media (max-width: 1200px) { |
| 266 | + .app-pharmacy-layout-nav, |
| 267 | + .app-pharmacy-layout-content { |
| 268 | + float: none; |
| 269 | + width: 100%; |
| 270 | + } |
| 271 | + |
| 272 | + .app-pharmacy-layout-nav { |
| 273 | + margin-bottom: nhsuk-spacing(4); |
| 274 | + } |
| 275 | +} |
| 276 | + |
| 277 | +@container pharmacy-users-table (max-width: 700px) { |
| 278 | + .app-pharmacy-users-table { |
| 279 | + min-width: 0; |
| 280 | + } |
| 281 | + |
| 282 | + .app-pharmacy-users-table thead { |
| 283 | + display: none; |
| 284 | + } |
| 285 | + |
| 286 | + .app-pharmacy-users-table, |
| 287 | + .app-pharmacy-users-table tbody, |
| 288 | + .app-pharmacy-users-table tr, |
| 289 | + .app-pharmacy-users-table td { |
| 290 | + display: block; |
| 291 | + width: 100%; |
| 292 | + } |
| 293 | + |
| 294 | + .app-pharmacy-users-table tr { |
| 295 | + box-sizing: border-box; |
| 296 | + border-bottom: 1px solid $nhsuk-border-colour; |
| 297 | + margin-bottom: nhsuk-spacing(3); |
| 298 | + padding-bottom: nhsuk-spacing(2); |
| 299 | + } |
| 300 | + |
| 301 | + .app-pharmacy-users-table td { |
| 302 | + border-bottom: 0; |
| 303 | + min-width: 0; |
| 304 | + padding: nhsuk-spacing(1) 0; |
| 305 | + } |
| 306 | + |
| 307 | + .app-pharmacy-users-table td::before { |
| 308 | + content: attr(data-label); |
| 309 | + display: block; |
| 310 | + font-weight: 700; |
| 311 | + margin-bottom: 2px; |
| 312 | + } |
| 313 | + |
| 314 | + .app-pharmacy-users-actions a { |
| 315 | + display: inline; |
| 316 | + margin-right: nhsuk-spacing(3); |
| 317 | + } |
| 318 | + |
| 319 | + .app-pharmacy-users-actions a + a { |
| 320 | + margin-top: 0; |
| 321 | + } |
| 322 | +} |
| 323 | + |
| 324 | +@include nhsuk-media-query($from: tablet) { |
| 325 | + .app-pharmacy-users-table { |
| 326 | + min-width: 760px; |
| 327 | + } |
| 328 | + |
| 329 | + .app-section-navigation--vertical { |
| 330 | + margin-right: -#{nhsuk-spacing(2)}; |
| 331 | + margin-left: -#{nhsuk-spacing(2)}; |
| 332 | + } |
| 333 | +} |
0 commit comments