Skip to content

Commit

Permalink
fix: Live departures styling fixes (#893)
Browse files Browse the repository at this point in the history
* departure time alignment

* add focus state to live dep tabs
  • Loading branch information
houbly committed Nov 30, 2021
1 parent f9b0cd7 commit 47ecf9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion src/wmnds/patterns/live-departures/live-departures.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

&__times {
display: flex;
justify-content: space-between;
justify-content: flex-start;
flex-wrap: nowrap;

@media (max-width: $breakpoint-sm - 1) {
Expand All @@ -68,6 +68,10 @@
}

&__time {
max-width: calc(100% / 3);
flex-grow: 1;
flex-basis: 20%;

@media (max-width: $breakpoint-sm - 1) {
&:nth-child(3) ~ * {
display: none;
Expand Down Expand Up @@ -241,6 +245,12 @@
background-color: get-color(primary);
}

&__input:focus + #{ $self }__label {
z-index: 1;
outline: 0;
box-shadow: 0 0 0 2px $white, 0 0 0 4px get-color(secondary);
}

&__input ~ #{ $self }__arrivals,
&__input ~ #{ $self }__departures {
display: none;
Expand Down
2 changes: 1 addition & 1 deletion src/www/pages/patterns/live-departures/index.njk.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
name: "16",
destination: "Wolverhampton",
operator: "National Express West Midlands",
times: [3, 7, 28]
times: [3, 7]
},
{
name: "17",
Expand Down

0 comments on commit 47ecf9b

Please sign in to comment.