summaryrefslogtreecommitdiff
path: root/sass
diff options
context:
space:
mode:
Diffstat (limited to 'sass')
-rw-r--r--sass/app.scss773
-rw-r--r--sass/dark.scss12
-rw-r--r--sass/light.scss12
3 files changed, 506 insertions, 291 deletions
diff --git a/sass/app.scss b/sass/app.scss
index 915ea1f..75074bd 100644
--- a/sass/app.scss
+++ b/sass/app.scss
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011-2020 Daniel Friesel
+ * Copyright (C) 2011-2020 Birte Kristina Friesel
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@@ -10,7 +10,7 @@ body {
}
html {
- font-family: Sans-Serif;
+ font-family: "Arimo", "Arial", Sans-Serif;
}
a {
@@ -18,8 +18,19 @@ a {
text-decoration: none;
}
+.visually-hidden {
+ clip: rect(0 0 0 0);
+ clip-path: inset(50%);
+ height: 1px;
+ overflow: hidden;
+ position: absolute;
+ white-space: nowrap;
+ width: 1px;
+}
+
p,
div.about,
+div.config,
div.input-field,
div.notes {
max-width: 94%;
@@ -27,6 +38,13 @@ div.notes {
margin-right: auto;
}
+div.journey,
+div.nextstop {
+ max-width: 98%;
+ margin-left: auto;
+ margin-right: auto;
+}
+
p {
text-align: justify;
}
@@ -132,6 +150,9 @@ div.content {
background-color: $powercar-wagon-color;
}
+ .closed {
+ background-color: $closed-wagon-color;
+ }
.nondestwagon {
border-style: dashed;
@@ -144,13 +165,29 @@ div.content {
.type {
display: inline-block;
width: 5em;
- color: $fg2;
+ color: $fg;
}
a.type {
color: $link-color;
}
+ .groupno {
+ color: $fg;
+ }
+
+ .grouptype {
+ color: $fg2;
+ }
+
+ .grouptype:before {
+ content: "(";
+ }
+
+ .grouptype:after {
+ content: ")";
+ }
+
.uicunknown {
color: $fg3;
}
@@ -181,7 +218,7 @@ div.content {
font-weight: bold;
}
- .uic78::before {
+ .uic78:before {
content: "-";
}
@@ -199,7 +236,7 @@ div.content {
color: $fg3;
}
- .uiccheck::before {
+ .uiccheck:before {
content: "-";
}
}
@@ -235,339 +272,463 @@ div.app {
border-width:1px 2px;
width:100%;
margin-bottom: 5em;
-}
-div.app > ul {
- position:relative;
- width:100%;
+ > ul {
+ position:relative;
+ width:100%;
+
+ list-style-type:none;
+ margin:0;
+ padding:0;
+
+ > li {
+ min-height:7em;
+ display:block;
+ width:100%;
+ position:relative;
+ border-bottom: 1px solid $li-border-color;
+ background-color: $bg;
+
+ &.cancelled {
+ background-color: $cancelled-bg-color;
+ .time {
+ color: $fg !important;
+ }
+ }
+
+ &.past {
+ opacity: 0.8;
+ background-color: $past-bg-color;
+ }
+
+ > a {
+ color:$fg;
+ }
+
+ .anchor {
+ position: relative;
+ top: -12em;
+ }
+
+ .line {
+ font-size: 2.7em;
+ position:absolute;
+ bottom:5px;
+ left:2px;
+ max-width: 6em;
+ max-height: 3ex;
+ overflow: hidden;
+
+ .trainno {
+ font-weight: normal;
+ }
+
+ .trainno_sub {
+ font-weight: normal;
+ font-size: 0.6em;
+ text-align: center;
+ margin-top: -0.2em;
+ }
+ }
+
+ .sbahn .trainno_sub {
+ font-weight: normal;
+ font-size: 0.5em;
+ text-align: center;
+ margin-top: -0.25em;
+ }
+
+ .lineinfo {
+ color:$fg;
+ font-size: 2em;
+ position:absolute;
+ top:0px;
+ left:2px;
+ }
+
+ .route, .info {
+ background-color: transparent;
+ font-size:2.1em;
+ position:absolute;
+ top: 0;
+ left: 7.7em;
+ right: 7em;
+ height: 1.5em;
+ overflow: hidden;
+ white-space: nowrap;
+ }
+
+ .route {
+ color: $route-color;
+ }
+
+ .info {
+ color: $info-color;
+ }
+
+ .dest, .origin {
+ background-color: transparent;
+ font-size:4em;
+ position:absolute;
+ bottom:0;
+ left:4em;
+ width: 70%;
+ white-space: nowrap;
+ overflow: hidden;
+ color: $fg;
+ }
+
+ .dest {
+ background-color: transparent;
+ color: $fg;
+ }
+
+ .origin {
+ background-color: transparent;
+ color: $fg2;
+
+ &:before {
+ content: "von ";
+ }
+ }
+
+ .load {
+ color: $fg;
+ font-weight: normal;
+ margin-right: 0.5em;
+ }
+
+ .platform {
+ background-color: transparent;
+ font-size: 3em;
+ font-weight: bold;
+ position: absolute;
+ right: 5px;
+ bottom: 0;
+ padding-left: 0.2em;
+ color: $fg;
+ }
+
+ .changed-platform {
+ color: $info-color;
+ }
+
+
+ .time {
+ background-color: transparent;
+ font-size:2.3em;
+ position:absolute;
+ right:5px;
+ top:1px;
+ padding-left: 0.2em;
+ color: $fg;
+
+ &.delayed {
+ color: $delay-color;
+ background-color: transparent;
+ }
+
+ &.a-bit-delayed {
+ color: $smalldelay-color;
+ background-color: transparent;
+ }
+
+ &.on-time {
+ color: $ontime-color;
+ background-color: transparent;
+ }
+
+ .no-realtime {
+ background-color: transparent;
+ padding-right: 1ex;
+ i.material-icons {
+ font-size: 12px;
+ }
+ }
+
+ .delay {
+ font-size:1em;
+ color: $delay-color;
+ background-color: transparent;
+ padding-right: 1ex;
+ }
+
+ .undelay {
+ font-size:1em;
+ color: $undelay-color;
+ padding-right: 1ex;
+ }
+
+ .delaynorm {
+ font-size:0.9em;
+ color: $delaynorm-color;
+ }
+
+ .undelaynorm {
+ font-size:0.9em;
+ color: $undelaynorm-color;
+ }
+ }
+ }
+ }
- list-style-type:none;
- margin:0;
- padding:0;
-}
+ .trainsubtype {
+ font-weight: normal;
+ font-size: 70%;
+ position: relative;
+ vertical-align: baseline;
+ top: -0.6ex;
+ left: -0.5ex;
+ }
-div.app > ul > li {
- min-height:7em;
- display:block;
- width:100%;
- position:relative;
- cursor: pointer;
- border-bottom: 1px solid $li-border-color;
- background-color: $bg;
-}
+ .replacement {
+ color: $replacement-color;
+ }
-div.app li .line {
- font-size: 2.7em;
- position:absolute;
- bottom:5px;
- left:2px;
- max-width: 6em;
- max-height: 3ex;
- overflow: hidden;
-}
+ .replaced {
+ color: $replaced-color;
+ }
-div.app .trainsubtype {
- font-weight: normal;
- font-size: 70%;
- position: relative;
- vertical-align: baseline;
- top: -0.6ex;
- left: -0.5ex;
-}
+ .sbahn {
+ font-weight:bold;
+ border-radius: 30px;
+ padding:3px 6px 2px 6px;
+ background-color: $sbahn-color;
+ }
-div.app li .line .trainno {
- font-weight: normal;
-}
+ .bahn, .fern, .ext {
+ font-weight:bold;
+ border-radius: 5px;
+ padding:3px 5px 2px 5px;
+ }
-div.app li .line .trainno_sub {
- font-weight: normal;
- font-size: 0.6em;
- text-align: center;
- margin-top: -0.2em;
-}
+ .bahn {
+ background-color: $bahn-color;
+ }
-div.app li .sbahn .trainno_sub {
- font-weight: normal;
- font-size: 0.5em;
- text-align: center;
- margin-top: -0.25em;
-}
+ .fern {
+ background-color: $fern-color;
+ }
-div.app li .lineinfo {
- color:$fg;
- font-size: 2em;
- position:absolute;
- top:0px;
- left:2px;
-}
+ .ext {
+ border: 2px solid $bahn-color;
+ }
-div.app .replacement {
- color: $replacement-color;
-}
+ .tram, .bus, .ubahn {
+ padding:3px 5px 2px 5px;
+ }
-div.app .replaced {
- color: $replaced-color;
-}
+ .tram {
+ background-color: $tram-color;
+ }
-div.app .sbahn {
- font-weight:bold;
- border-radius: 30px;
- padding:3px 6px 2px 6px;
- background-color: $sbahn-color;
-}
+ .bus {
+ background-color: $bus-color;
+ }
-div.app .bahn,
-div.app .fern,
-div.app .ext {
- font-weight:bold;
- border-radius: 5px;
- padding:3px 5px 2px 5px;
-}
+ .ubahn {
+ background-color: $ubahn-color;
+ }
-div.app .bahn {
- background-color: $bahn-color;
-}
+ .moreinfo {
+ font-size:2.1em;
+ position:fixed;
+ left:0;
+ right:0;
+ bottom:0em;
+ z-index: 5;
+ overflow: auto;
+ cursor: default;
+ background-color: $bg;
+
+ .mheader, .mfooter {
+ max-width: 50em;
+ margin-left: auto;
+ margin-right: auto;
+ }
-div.app .fern {
- background-color: $fern-color;
-}
+ .mheader {
+ text-align: center;
+ font-size: 120%;
+ padding-top: 0.5em;
+ padding-bottom: 0.5em;
+ padding-left: 1em;
+ padding-right: 1em;
+ border-bottom: 0.1em dashed #cccccc;
+ }
-div.app .ext {
- border: 2px solid $bahn-color;
-}
+ .mfooter {
+ padding-top: 0.5em;
+ padding-left: 1em;
+ padding-right: 1em;
+ }
-div.app li .route {
- background-color: transparent;
- font-size:2.1em;
- position:absolute;
- top:1px;
- left:7.7em;
- height: 1.2em;
- width: 70%;
- overflow: hidden;
- color: $route-color;
-}
+ .dataline {
+ font-size: 120%;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ margin-bottom: 0.5em;
-div.app li .info {
- color: $info-color;
- background-color: transparent;
- font-size:2.1em;
- position:absolute;
- top:1px;
- left:7.7em;
- height: 1.2em;
- width: 70%;
- overflow: hidden;
-}
+ > div {
+ width: 33%;
+ }
+ }
-div.app .moreinfo {
- font-size:2.1em;
- position:fixed;
- left:0;
- right:0;
- bottom:0em;
- z-index: 5;
- overflow: auto;
- cursor: default;
- background-color: $bg;
-}
+ .wagonorder-preview {
+ font-size: 110%;
+ width: 100%;
+ text-align: center;
+ margin-bottom: 1em;
-div.app .moreinfo .mheader,
-div.app .moreinfo .mfooter {
- max-width: 50em;
- margin-left: auto;
- margin-right: auto;
-}
+ a {
+ color: $fg;
+ }
-div.app .collapsed-moreinfo {
- display: none;
-}
+ .otherno {
+ color: $fg2;
+ }
-div.app .expanded-moreinfo {
- display: block;
-}
+ .meta {
+ color: $fg1;
+ }
+ }
-div.app .moreinfo .mheader {
- text-align: center;
- font-size: 120%;
- padding-top: 0.5em;
- padding-bottom: 0.5em;
- padding-left: 1em;
- padding-right: 1em;
- border-bottom: 0.1em dashed #cccccc;
-}
+ .departure {
+ text-align: right;
+ }
-div.app .moreinfo .mfooter {
- padding-top: 0.5em;
- padding-left: 1em;
- padding-right: 1em;
-}
+ .platform {
+ text-align: center;
+ }
-div.app .moreinfo .dataline {
- font-size: 120%;
- width: 100%;
- display: flex;
- justify-content: space-between;
- margin-bottom: 1em;
-}
+ .arrival {
+ display: inline-block;
+ text-align: right;
+ }
-div.app .moreinfo .dataline > div {
- width: 33%;
-}
+ .loading {
+ text-align: center;
+ width: 100%;
+ color: #888888;
+ }
-div.app .moreinfo .departure {
- text-align: right;
-}
+ .minfo {
+ color: $info-color;
+ }
-div.app .moreinfo .platform {
- text-align: center;
-}
+ .timehidden {
+ color: $fg2;
+ }
-div.app .moreinfo .arrival {
- display: inline-block;
- text-align: right;
-}
+ .undelay {
+ color: $undelay-color;
+ }
-div.app .moreinfo .loading {
- text-align: center;
- width: 100%;
- color: #888888;
-}
+ .verbose {
+ margin-bottom: 1em;
-div.app .moreinfo .minfo {
- color: $info-color;
-}
+ .no-realtime {
+ color: $cancelled-stop-color;
+ }
+ }
-div.app .moreinfo .verbose {
- margin-bottom: 1em;
-}
+ .messages {
+ i.material-icons {
+ font-size: 14px;
+ }
+ }
-div.app .moreinfo .mroute .important-stop {
- color: $fg;
-}
+ .details {
+ margin-top: 1em;
+ }
-div.app .moreinfo .mroute .generic-stop {
- color: $fg2;
-}
+ .mroute {
+ .important-stop {
+ color: $fg;
+ }
-div.app .moreinfo .mroute .additional-stop {
- color: $additional-stop-color;
-}
+ .generic-stop {
+ color: $fg2;
+ }
-div.app .moreinfo .mroute .cancelled-stop {
- color: $cancelled-stop-color;
-}
+ .additional-stop {
+ color: $additional-stop-color;
+ }
-div.app .moreinfo .db-attr {
- margin-bottom: 1em;
+ .cancelled-stop {
+ color: $cancelled-stop-color;
+ }
- span {
- margin-right: 0.5em;
- }
-}
+ .past-stop {
+ list-style-type: disc;
+ }
-div.app li .dest {
- background-color: transparent;
- font-size:4em;
- position:absolute;
- top:0.62em;
- left:4em;
- bottom:0px;
- width: 70%;
- overflow: hidden;
- color: $fg;
-}
+ .future-stop {
+ list-style-type: circle;
+ }
-div.app li .origin {
- background-color: transparent;
- font-size:4em;
- position:absolute;
- top:0.62em;
- left:4em;
- bottom:0px;
- width: 70%;
- overflow: hidden;
- color: $fg2;
+ .time-early {
+ color: $early-stop-color;
+ }
- &:before {
- content: "von ";
- }
-}
+ .time-delayed {
+ color: $delayed-stop-color;
+ }
-div.app li.cancelled {
- background-color: $cancelled-bg-color;
-}
+ .time-sched-only {
+ color: $delayed-stop-color;
+ }
-div.app li .countdown {
- background-color: transparent;
- font-size: 3em;
- position: absolute;
- right: 5px;
- bottom: 2px;
- padding-left: 0.2em;
- color: $fg;
-}
+ .time-sched-ontime {
+ color: $early-stop-color;
+ }
-div.app li .header {
- color:$fg;
- font-size:2em;
- font-weight:bold;
- padding-top:8px;
- border-width-top:0;
- display:block;
- text-align:center;
-}
-div.app li .head {
- border-bottom-width:0;
-}
+ .annotation {
+ color: $fg2;
+ list-style-type: none;
+ padding-left: 3em;
+ }
-div.app li .countdown .delay {
- font-size:1em;
- color: $delay-color;
- background-color: transparent;
- padding-right:7px;
-}
+ .-sched:before {
+ content: " ";
+ }
-div.app li .countdown .undelay {
- font-size:1em;
- color: $undelay-color;
- padding-right:7px;
-}
+ .time-sched:after {
+ content: " ";
+ }
-div.app li .countdown .delaynorm {
- font-size:0.9em;
- color: $delaynorm-color;
- padding-right:7px;
-}
+ .time-sched-only:before {
+ content: "(";
+ }
-div.app li .countdown .undelaynorm {
- font-size:0.9em;
- color: $undelaynorm-color;
- padding-right:7px;
-}
+ .time-sched-only:after {
+ content: ")";
+ }
-div.app li .countdown .platform {
- font-weight: bold;
-}
+ i.material-icons {
+ font-size: 14px;
+ }
+ }
-div.app li .countdown .changed-platform {
- color: $info-color;
-}
+ .db-attr {
+ margin-bottom: 1em;
-div.app li .time {
- background-color: transparent;
- font-size:2.3em;
- position:absolute;
- right:5px;
- top:4px;
- padding-left: 0.2em;
- color: $fg;
-}
+ span {
+ margin-right: 0.5em;
+ }
+ }
+
+ }
+
+ .collapsed-moreinfo {
+ display: none;
+ }
-div.app span.delayed {
- color: $delay-color;
- background-color: transparent;
+ .expanded-moreinfo {
+ display: block;
+ }
}
ul.ui-autocomplete {
@@ -605,15 +766,34 @@ div.candidatelist a .distance {
padding-bottom: 0.3em;
}
-div.about {
+div.candidatelist a .traininfo {
+ font-size: 0.7em;
+ color: #999999;
+ padding-top: 0.2em;
+ padding-bottom: 0.3em;
+}
+
+div.config {
margin-top: 2em;
font-family: Sans-Serif;
color: $fg2;
+
+ a {
+ color: $link-color;
+ cursor: pointer;
+ text-decoration: none;
+ }
}
-div.about a {
- color: $link-color;
- text-decoration: none;
+div.about {
+ margin-top: 1em;
+ font-family: Sans-Serif;
+ color: $fg2;
+
+ a {
+ color: $link-color;
+ text-decoration: none;
+ }
}
.notice {
@@ -751,6 +931,13 @@ div.field {
margin-right: 0.5ex;
}
+.smallbutton img {
+ display: block;
+ float: left;
+ margin-right: 0.7ex;
+ height: 1.2em;
+}
+
input, select, .button {
display: inline-block;
width: 60em;
@@ -818,6 +1005,10 @@ input[type="submit"]:active,
box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
}
+.button-active {
+ font-weight: bold;
+}
+
.button-light {
color: $fg1;
background-color: $bg;
@@ -833,6 +1024,10 @@ input[type="submit"]:active,
border-color: $button-hover-border;
}
+div.backendlink {
+ margin-top: 1ex;
+}
+
div.notes {
margin-top: 2em;
}
diff --git a/sass/dark.scss b/sass/dark.scss
index 725b8dd..78b61b0 100644
--- a/sass/dark.scss
+++ b/sass/dark.scss
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011-2020 Daniel Friesel
+ * Copyright (C) 2011-2020 Birte Kristina Friesel
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@@ -24,22 +24,32 @@ $sbahn-color: #115511;
$bahn-color: #333333;
$fern-color: #551111;
$ext-border-color: #993333;
+$tram-color: #441111;
+$ubahn-color: #071e62;
+$bus-color: #551155;
$route-color: #dddddd;
$info-color: #ff7777;
$delay-color: #ff7777;
+$smalldelay-color: #dd9999;
$undelay-color: #77ff77;
$delaynorm-color: #dd9999;
$undelaynorm-color: #99dd99;
+$ontime-color: #aaeeaa;
$additional-stop-color: #77ff77;
$cancelled-stop-color: #ff7777;
+$early-stop-color: #ccffcc;
+$delayed-stop-color: #ff9999;
+
$cancelled-bg-color: #512f00;
+$past-bg-color: $bg05;
$firstclass-wagon-color: #333300;
$powercar-wagon-color: #222222;
+$closed-wagon-color: #222222;
$button-hover: #111111;
$button-hover-border: #333333;
diff --git a/sass/light.scss b/sass/light.scss
index 156077f..60981b1 100644
--- a/sass/light.scss
+++ b/sass/light.scss
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011-2020 Daniel Friesel
+ * Copyright (C) 2011-2020 Birte Kristina Friesel
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@@ -24,22 +24,32 @@ $sbahn-color: #95d79f;
$bahn-color: #eeeeee;
$fern-color: #ffdddd;
$ext-border-color: #ff6666;
+$tram-color: #ffcccc;
+$ubahn-color: #aac0ff;
+$bus-color: #eeaaee;
$route-color: #444444;
$info-color: #ff0000;
$delay-color: #ff0000;
+$smalldelay-color: #bb3333;
$undelay-color: #006600;
$delaynorm-color: #bb3333;
$undelaynorm-color: #338833;
+$ontime-color: #227722;
$additional-stop-color: #009900;
$cancelled-stop-color: #cc0000;
+$early-stop-color: #007700;
+$delayed-stop-color: #990000;
+
$cancelled-bg-color: #ffe7d0;
+$past-bg-color: $bg05;
$firstclass-wagon-color: #ffff99;
$powercar-wagon-color: #cccccc;
+$closed-wagon-color: #dddddd;
$button-hover: #e6e6e6;
$button-hover-border: #adadad;