mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-07-05 16:30:37 +02:00
253 lines
4.2 KiB
SCSS
253 lines
4.2 KiB
SCSS
@media print {
|
|
.desktop-title {
|
|
display: none;
|
|
}
|
|
|
|
.back-button {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
.timetable {
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-height: 100%;
|
|
overflow-y: auto;
|
|
flex-grow: 1;
|
|
flex-basis: 0;
|
|
|
|
@media print {
|
|
display: block;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
overflow: visible;
|
|
}
|
|
|
|
.timetable-time-headers {
|
|
display: none;
|
|
|
|
@media print {
|
|
display: flex;
|
|
font-weight: $font-weight-book;
|
|
padding-top: 1em;
|
|
padding-bottom: 0.5em;
|
|
font-size: 10px;
|
|
border-bottom: 1px solid;
|
|
|
|
.hour {
|
|
margin-right: 4.5em;
|
|
}
|
|
}
|
|
}
|
|
|
|
.timetable-note {
|
|
border-top: 1px solid $light-gray;
|
|
padding-top: 19px;
|
|
margin: 8px 64px 0 64px;
|
|
font-weight: $font-weight-medium;
|
|
font-size: $font-size-normal;
|
|
line-height: 18px;
|
|
letter-spacing: -0.03em;
|
|
|
|
@media print {
|
|
display: none;
|
|
}
|
|
|
|
h2 {
|
|
letter-spacing: -0.4px;
|
|
font-size: 16px;
|
|
margin: 0;
|
|
|
|
span {
|
|
&:nth-child(1) {
|
|
font-weight: $font-weight-medium;
|
|
}
|
|
|
|
&:nth-child(2) {
|
|
font-weight: $font-weight-normal;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.timetable-row-printing {
|
|
@media print {
|
|
display: flex;
|
|
flex: 50%;
|
|
}
|
|
}
|
|
|
|
.timetable-content-container {
|
|
margin: 0 48px 16px 64px;
|
|
}
|
|
|
|
.momentum-scroll {
|
|
flex: 1 0 auto;
|
|
|
|
@media print {
|
|
display: block;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
|
|
.timetable-row {
|
|
.timetable-printable-title {
|
|
display: none;
|
|
|
|
@media print {
|
|
display: table-cell;
|
|
min-width: 4em;
|
|
margin-right: 1em;
|
|
border-right: 1px solid;
|
|
width: 4em;
|
|
text-align: center;
|
|
font-family: $font-family-narrow;
|
|
font-size: 16px;
|
|
line-height: 1.07;
|
|
font-weight: $font-weight-medium;
|
|
padding-top: 0.6em;
|
|
padding-bottom: 0.6em;
|
|
vertical-align: top;
|
|
}
|
|
}
|
|
|
|
background-color: $white;
|
|
|
|
&:nth-child(2) {
|
|
margin-top: 18px;
|
|
|
|
@media print {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
&:not(:nth-child(2)) {
|
|
margin-top: 16px;
|
|
|
|
@media print {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
.mobile .title {
|
|
font-size: $font-size-large;
|
|
}
|
|
|
|
.title {
|
|
font-size: $font-size-xlarge;
|
|
margin-bottom: 3px;
|
|
line-height: 36px;
|
|
letter-spacing: -0.67px;
|
|
|
|
@media print {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.line-name {
|
|
white-space: nowrap;
|
|
font-weight: $font-weight-normal;
|
|
}
|
|
|
|
.timetable-rowcontainer {
|
|
display: table-cell;
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
@media print {
|
|
padding-top: 0.6em;
|
|
padding-bottom: 0.6em;
|
|
padding-left: 1em;
|
|
overflow: visible;
|
|
}
|
|
}
|
|
|
|
@media print {
|
|
border-bottom: 1px dotted $black;
|
|
border-left: none;
|
|
border-right: none;
|
|
padding-left: 0;
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
padding-right: 0;
|
|
width: 100%;
|
|
display: block;
|
|
|
|
.timetablerow-linetime {
|
|
margin-right: 20px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
span {
|
|
font-size: 12px;
|
|
|
|
&.line-name {
|
|
font-weight: $font-weight-book;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.route-remarks {
|
|
background: $white;
|
|
padding-top: 0.7em;
|
|
padding-right: 1.5em;
|
|
padding-bottom: 1.5em;
|
|
padding-left: 1.5em;
|
|
}
|
|
}
|
|
|
|
.mobile .timetable {
|
|
flex-basis: 100%;
|
|
overflow-y: visible;
|
|
|
|
.timetable-content-container {
|
|
margin: 0 16px 16px 16px;
|
|
}
|
|
|
|
.timetable-note {
|
|
margin: 0 16px 8px;
|
|
}
|
|
}
|
|
|
|
.no-timetable-found-container {
|
|
border-top: 1px solid $light-gray;
|
|
margin-top: 8px;
|
|
font-weight: $font-weight-medium;
|
|
font-size: $font-size-normal;
|
|
line-height: 18px;
|
|
letter-spacing: -0.03em;
|
|
}
|
|
|
|
.no-timetable-found {
|
|
display: flex;
|
|
justify-content: center;
|
|
padding-top: 1em;
|
|
|
|
.no-timetable-icon {
|
|
margin-right: 1em;
|
|
margin-top: 0.5em;
|
|
color: white;
|
|
width: 2em;
|
|
height: 2em;
|
|
}
|
|
|
|
.info {
|
|
fill: $gray-blue;
|
|
}
|
|
}
|
|
|
|
.timetable-notification {
|
|
margin: 0 auto;
|
|
width: calc(100% - 2em);
|
|
max-width: 400px;
|
|
border-radius: 5px;
|
|
padding: 18px 32px 18px 16px;
|
|
font-weight: normal;
|
|
font-size: 14px;
|
|
|
|
&.info {
|
|
background: $info-background-color;
|
|
}
|
|
}
|