328 lines
6.6 KiB
SCSS
328 lines
6.6 KiB
SCSS
@use "../../../styles/colors" as colors;
|
|
@use "../../../styles/variables" as vars;
|
|
@use "../../../styles/fonts" as fonts;
|
|
|
|
.schedule-flight-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: #fff;
|
|
|
|
&__leg {
|
|
display: grid;
|
|
grid-template-columns:
|
|
30px 80px 120px 70px minmax(45px, 240px) 100px 70px minmax(45px, 240px);
|
|
align-items: center;
|
|
gap: 0 vars.$space-l;
|
|
padding: vars.$space-l vars.$space-xl;
|
|
font-size: 14px;
|
|
color: colors.$text-color;
|
|
}
|
|
|
|
&__leg-number {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
border: 1px solid colors.$border;
|
|
color: colors.$blue;
|
|
font-weight: fonts.$font-medium;
|
|
font-size: 13px;
|
|
}
|
|
|
|
&__leg-flight-number {
|
|
color: colors.$text-color;
|
|
font-weight: fonts.$font-medium;
|
|
}
|
|
|
|
&__leg-operator {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 4px;
|
|
}
|
|
|
|
&__leg-aircraft {
|
|
font-size: 11px;
|
|
color: colors.$light-gray;
|
|
}
|
|
|
|
&__leg-time {
|
|
text-align: left;
|
|
|
|
&--arrival {
|
|
text-align: left;
|
|
}
|
|
}
|
|
|
|
&__leg-station {
|
|
min-width: 0;
|
|
|
|
&--arrival .station {
|
|
align-items: flex-start;
|
|
}
|
|
}
|
|
|
|
&__leg-duration {
|
|
align-self: center;
|
|
border-top: 1px solid colors.$border;
|
|
padding-top: 6px;
|
|
margin-top: 6px;
|
|
text-align: center;
|
|
color: colors.$light-gray;
|
|
font-size: 13px;
|
|
}
|
|
|
|
// Connection / intermediate-landing box that sits between two leg
|
|
// rows. Mirrors Angular's `transfer-inline-extended` styling: dashed
|
|
// side borders, white centred pill with the icon + caption + ground
|
|
// time + optional station-change pair.
|
|
&__transfer {
|
|
display: flex;
|
|
justify-content: center;
|
|
position: relative;
|
|
background: #fff;
|
|
border-left: 1px dashed colors.$border;
|
|
border-right: 1px dashed colors.$border;
|
|
margin-top: -8px;
|
|
margin-bottom: -8px;
|
|
font-size: 12px;
|
|
color: colors.$text-color;
|
|
|
|
&::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 50%;
|
|
width: 100%;
|
|
border-top: 1px dotted colors.$border;
|
|
z-index: 0;
|
|
}
|
|
}
|
|
|
|
&__transfer-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0 vars.$space-m;
|
|
border-right: 1px solid colors.$border;
|
|
align-self: stretch;
|
|
|
|
svg {
|
|
width: 20px;
|
|
height: 7px;
|
|
fill: colors.$orange;
|
|
}
|
|
}
|
|
|
|
// The pill itself (icon + content) sits above the dotted through-line.
|
|
&__transfer-icon,
|
|
&__transfer-content {
|
|
background: #fff;
|
|
z-index: 1;
|
|
}
|
|
|
|
&__transfer-content {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: vars.$space-m;
|
|
padding: vars.$space-s vars.$space-m;
|
|
border: 1px solid colors.$border;
|
|
border-left: 0;
|
|
border-radius: 0 3px 3px 0;
|
|
}
|
|
|
|
&__transfer-icon {
|
|
border: 1px solid colors.$border;
|
|
border-right: 1px solid colors.$border;
|
|
border-radius: 3px 0 0 3px;
|
|
}
|
|
|
|
&__transfer-caption {
|
|
font-weight: fonts.$font-medium;
|
|
}
|
|
|
|
&__transfer-time {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
|
|
img {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
}
|
|
|
|
&__transfer-stations {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: colors.$light-gray;
|
|
}
|
|
|
|
&__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: vars.$space-m;
|
|
padding: vars.$space-l vars.$space-xl;
|
|
border-top: 1px dashed colors.$border;
|
|
background: #fff;
|
|
}
|
|
|
|
&__spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
&__share-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
padding: 0;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background-color 120ms ease;
|
|
|
|
img { width: 20px; height: 20px; }
|
|
|
|
&:hover { background-color: rgba(46, 87, 255, 0.08); }
|
|
}
|
|
|
|
&__buy-btn {
|
|
background: colors.$orange;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 4px;
|
|
padding: 10px 24px;
|
|
font-size: 14px;
|
|
font-weight: fonts.$font-medium;
|
|
cursor: pointer;
|
|
min-width: 150px;
|
|
transition: background-color 150ms ease;
|
|
|
|
&:hover { background: #e68200; }
|
|
}
|
|
|
|
&__status-btn {
|
|
background: colors.$blue;
|
|
color: #fff;
|
|
border: 1px solid colors.$blue;
|
|
border-radius: 4px;
|
|
padding: 10px 24px;
|
|
font-size: 14px;
|
|
font-weight: fonts.$font-medium;
|
|
cursor: pointer;
|
|
min-width: 150px;
|
|
transition: background-color 150ms ease;
|
|
|
|
&:hover { background: colors.$blue--hover; }
|
|
}
|
|
|
|
// ----- horizontal timeline (route summary) -----------------------------
|
|
&__timeline {
|
|
padding: vars.$space-l vars.$space-xl vars.$space-m;
|
|
border-bottom: 1px solid colors.$border;
|
|
background: #fff;
|
|
color: colors.$text-color;
|
|
}
|
|
|
|
&__timeline-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: vars.$space-l;
|
|
font-size: 14px;
|
|
}
|
|
|
|
&__timeline-leg {
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 1 1 0;
|
|
gap: vars.$space-s;
|
|
min-width: 0;
|
|
}
|
|
|
|
&__timeline-time {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
&__timeline-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
flex: 1 1 0;
|
|
min-width: 60px;
|
|
color: colors.$light-gray;
|
|
font-size: 13px;
|
|
position: relative;
|
|
}
|
|
|
|
&__timeline-bar {
|
|
flex: 1;
|
|
height: 1px;
|
|
width: 100%;
|
|
border-top: 1px solid colors.$border;
|
|
}
|
|
|
|
&__timeline-section-num {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 22px;
|
|
padding: 1px 6px;
|
|
border: 1px solid colors.$border;
|
|
border-radius: 3px;
|
|
background: #fff;
|
|
color: colors.$text-color;
|
|
font-size: 12px;
|
|
font-weight: fonts.$font-medium;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
&__timeline-section-dur {
|
|
margin-top: 2px;
|
|
color: colors.$light-gray;
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&__timeline-transit {
|
|
flex-shrink: 0;
|
|
color: colors.$text-color;
|
|
font-weight: fonts.$font-medium;
|
|
font-size: 13px;
|
|
padding: 0 vars.$space-s;
|
|
}
|
|
|
|
&__timeline-stations {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: vars.$space-l;
|
|
margin-top: vars.$space-s;
|
|
font-size: 14px;
|
|
}
|
|
|
|
&__timeline-station {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
|
|
&:first-child { text-align: left; }
|
|
&:last-child { text-align: right; }
|
|
&:not(:first-child):not(:last-child) { text-align: center; }
|
|
}
|
|
|
|
&__timeline-station-city {
|
|
color: colors.$text-color;
|
|
font-weight: fonts.$font-medium;
|
|
}
|
|
|
|
&__timeline-station-terminal {
|
|
color: colors.$light-gray;
|
|
font-size: 12px;
|
|
}
|
|
}
|