avm99963 | 99bb77c | 2020-01-27 03:15:08 +0100 | [diff] [blame] | 1 | @media (orientation: landscape) { |
| 2 | :root { |
| 3 | --unit-size: 1vh; |
| 4 | } |
| 5 | } |
| 6 | |
| 7 | @media (orientation: portrait) { |
| 8 | :root { |
| 9 | --unit-size: 1vw; |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | body { |
| 14 | background: black; |
| 15 | color: white; |
| 16 | font-family: "Arial", sans-serif; |
| 17 | font-weight: bold; |
| 18 | |
| 19 | margin: 0; |
| 20 | } |
| 21 | |
| 22 | #container { |
| 23 | width: 100%; |
| 24 | } |
| 25 | |
| 26 | body.view-new #trains { |
| 27 | max-width: calc(85*var(--unit-size)); |
| 28 | } |
| 29 | |
| 30 | body.view-old #trains { |
| 31 | width: 100%; |
| 32 | } |
| 33 | |
| 34 | .train { |
| 35 | display: flex; |
| 36 | flex-direction: row; |
| 37 | flex-wrap: nowrap; |
| 38 | |
| 39 | margin: calc(2*var(--unit-size)); |
| 40 | /*margin-bottom: calc(5*var(--unit-size));*/ |
| 41 | } |
| 42 | |
| 43 | body.view-new .train { |
| 44 | margin-bottom: calc(8*var(--unit-size)); |
| 45 | } |
| 46 | |
| 47 | .train * { |
| 48 | align-self: center; |
| 49 | } |
| 50 | |
| 51 | .train .logo { |
| 52 | text-align: center; |
| 53 | } |
| 54 | |
| 55 | body.view-old .train .logo { |
| 56 | padding: calc(1*var(--unit-size)); |
| 57 | margin-right: calc(2*var(--unit-size)); |
| 58 | |
| 59 | line-height: calc(11.5*var(--unit-size)); |
| 60 | width: calc(11.5*var(--unit-size)); |
| 61 | height: calc(11.5*var(--unit-size)); |
| 62 | } |
| 63 | |
| 64 | body.view-new .train .logo { |
| 65 | padding: calc(0.25*var(--unit-size)); |
| 66 | margin: calc(1*var(--unit-size)) calc(1.5*var(--unit-size)) calc(1*var(--unit-size)) 0; |
| 67 | |
| 68 | line-height: calc(11*var(--unit-size)); |
| 69 | width: calc(11*var(--unit-size)); |
| 70 | height: calc(11*var(--unit-size)); |
| 71 | } |
| 72 | |
| 73 | .train .destination { |
| 74 | flex-grow: 1; |
| 75 | } |
| 76 | |
| 77 | body.view-old .train .destination { |
| 78 | font-size: calc(6.75*var(--unit-size)); |
| 79 | margin-left: calc(2*var(--unit-size)); |
| 80 | } |
| 81 | |
| 82 | body.view-new .train .destination { |
| 83 | font-size: calc(5.5*var(--unit-size)); |
| 84 | margin-bottom: calc(3*var(--unit-size)); |
| 85 | } |
| 86 | |
| 87 | .train .time { |
| 88 | min-width: calc(19.25*var(--unit-size)); |
| 89 | margin: 0 calc(2*var(--unit-size)); |
| 90 | |
| 91 | font-size: calc(6.5*var(--unit-size)); |
| 92 | text-align: left; |
| 93 | } |