summaryrefslogtreecommitdiff
path: root/sass/src/common/local.scss
diff options
context:
space:
mode:
Diffstat (limited to 'sass/src/common/local.scss')
-rw-r--r--sass/src/common/local.scss126
1 files changed, 119 insertions, 7 deletions
diff --git a/sass/src/common/local.scss b/sass/src/common/local.scss
index 4c52486..71f9e81 100644
--- a/sass/src/common/local.scss
+++ b/sass/src/common/local.scss
@@ -21,10 +21,6 @@
color: #f5c4ce !important;
}
-td.cancelled {
- text-decoration: line-through;
-}
-
.wagons span {
margin-right: 0.5ex;
color: #808080;
@@ -72,7 +68,123 @@ ul.suggestions {
}
}
-table.departures tr.now td {
- padding-top: 2em;
- padding-bottom: 2em;
+.departures li {
+ transition: background .3s;
+ display: grid;
+ grid-template-columns: 10ch 11ch 1fr;
+ align-items: center;
+ &:hover {
+ background-color: $departures-highlight-color;
+ }
+ &.cancelled {
+ background-color: $departures-cancelled-color;
+ font-style: italic;
+ .dep-line {
+ background-color: transparent;
+ border: 1px solid;
+ color: $off-black;
+ }
+ .dep-dest::before {
+ content: "Fahrt nach";
+ }
+ .dep-dest::after {
+ content: "entfällt";
+ }
+ }
+}
+.followee-checkin {
+ font-size: 0.9rem;
+ display: block;
+ i.material-icons {
+ vertical-align: middle;
+ }
+}
+.departures #now {
+ background-color: $departures-highlight-color;
+ padding: 2rem 20px;
+ grid-template-columns: 10ch 1fr;
+ strong {
+ font-weight: bold;
+ }
+}
+
+
+.departures .dep-line {
+ text-align: center;
+ padding: .2rem;
+ color: white;
+ background: color('grey', 'darken-3');
+ border-radius: .2rem;
+ display: inline-block;
+ font-weight: 600;
+ line-height: 1;
+ margin-right: 0.8rem;
+ height: fit-content;
+
+ &.Bus, &.RUF, &.AST {
+ background-color: #a3167e;
+ border-radius: 5rem;
+ padding: .2rem .5rem;
+ }
+ &.STR {
+ background-color: #c5161c;
+ border-radius: 5rem;
+ padding: .2rem .5rem;
+ }
+ &.S, &.RS, &.RER, &.SKW {
+ background-color: #008d4f;
+ border-radius: 5rem;
+ padding: .2rem .5rem;
+ }
+ &.U, &.STB, &.M {
+ background-color: #014e8d;
+ border-radius: 5rem;
+ padding: .2rem .5rem;
+ }
+ &.RE, &.IRE {
+ background-color: #ff4f00;
+ }
+ &.RB, &.MEX, &.TER {
+ background-color: #1f4a87;
+ }
+ // DE
+ &.IC, &.ICE, &.EC, &.ECE, &.D,
+ // CH
+ &.IR,
+ // FR
+ &.TGV, &.OGV, &.EST,
+ // PL
+ &.TLK, &.EIC {
+ background-color: #ff0404;
+ font-weight: 900;
+ font-style: italic;
+ padding: .2rem;
+ }
+ &.RJ, &.RJX {
+ background-color: #c63131;
+ }
+ &.NJ, &.EN {
+ background-color: #29255b;
+ }
+ &.WB {
+ background-color: #2e85ce;
+ }
+ &.FLX {
+ background-color: #71d800;
+ }
+}
+
+@media screen and (max-width: 600px) {
+ .departures li {
+ grid-template-columns: 11ch 1fr;
+ .dep-line, .dep-time {
+ grid-column: 1;
+ margin-right: 0.8rem;
+ text-align: center;
+ }
+ .dep-dest {
+ grid-column: 2;
+ grid-row: 1 / span 2;
+ }
+ }
}