303 lines
9.5 KiB
CSS
303 lines
9.5 KiB
CSS
.w_route_card {
|
|
padding: 20px;
|
|
--route-card-bg: #FFFFFF;
|
|
--route-card-margin: 20px 0;
|
|
--route-card-box_shadow: 0 -1px 10px rgba(198, 199, 203, 0.2), -1px 4px 10px rgba(198, 199, 203, 0.2);
|
|
--route-text-color: #272424;
|
|
|
|
--big-font-size: 16px;
|
|
--medium-font-size: 14px;
|
|
--small-font-size: 10px;
|
|
|
|
--route-text-container-bg: #F1F1F1;
|
|
--route-text-container-padding: 15px;
|
|
--route-text-container-margin: 0 0 0 51px;
|
|
--route-text-container-border-radius: 10px;
|
|
--route-text-img-filter: brightness(0) saturate(100%) invert(100%) sepia(2%) saturate(256%) hue-rotate(113deg) brightness(115%) contrast(89%);
|
|
|
|
--route-card-owner-avatar-size: 52px;
|
|
|
|
--route-owner-type-color: #065BFF;
|
|
|
|
--route-cargo-type-color: #272424;
|
|
|
|
--route_card_route_data-margin-top: 30px;
|
|
|
|
--route-btn-border: 1.5px solid #FF613A;
|
|
--route-btn-border-radius: 10px;
|
|
--route-btn-padding: 7.5px 0;
|
|
--route-btn-width: 171px;
|
|
--route-btn-height: 100%;
|
|
--route-btn-bg: #FFFFFF;
|
|
--route-btn-hover-bg: #FF613A;
|
|
--route-btn-hover-text-color: #FFFFFF;
|
|
--route-btn-title-color: #272424;
|
|
--route-btn-text-data-color: #27242499;
|
|
|
|
--route-date-data-justify: center;
|
|
--route-date-data-margin: 4px 0 0 0;
|
|
|
|
background: var(--route-card-bg);
|
|
margin: var(--route-card-margin);
|
|
box-shadow: var(--route-card-box_shadow);
|
|
border-radius: 10px;
|
|
color: var(--route-text-color);
|
|
.route_card_info_data{
|
|
position: relative;
|
|
.route_card_text_img{
|
|
position: absolute;
|
|
top: 5px;
|
|
left: 0;
|
|
filter: var(--route-text-img-filter);
|
|
display: block;
|
|
z-index: 1;
|
|
}
|
|
.route_card_owner_avatar{
|
|
height: var(--route-card-owner-avatar-size);
|
|
width: var(--route-card-owner-avatar-size);
|
|
border-radius: 100%;
|
|
display: block;
|
|
position: absolute;
|
|
top: 11px;
|
|
left: 6px;
|
|
z-index: 10;
|
|
}
|
|
.route_card_text_container{
|
|
background: var(--route-text-container-bg);
|
|
padding: var(--route-text-container-padding);
|
|
margin: var(--route-text-container-margin);
|
|
border-radius: var(--route-text-container-border-radius);
|
|
font-size: var(--big-font-size);
|
|
}
|
|
.route_card_owner_info{
|
|
height: 47px;
|
|
margin-left: 75px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
|
|
.route_card_info_left_part{
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
.card_owner_name{
|
|
font-weight: 600;
|
|
font-size: var(--big-font-size);
|
|
}
|
|
.card_splitter{
|
|
height: 22px;
|
|
width: 2px;
|
|
background: #E6E6E6;
|
|
}
|
|
.card_owner_type{
|
|
&.mover{
|
|
--route-owner-type-color: #45C226;
|
|
}
|
|
font-size: var(--medium-font-size);
|
|
color: var(--route-owner-type-color);
|
|
font-weight: 600;
|
|
}
|
|
.card_cargo_type{
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-size: var(--medium-font-size);
|
|
color: var(--route-cargo-type-color);
|
|
font-weight: 600;
|
|
|
|
div.orange{color: #FF613A}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.route_card_route_data{
|
|
margin-top: var(--route_card_route_data-margin-top);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 60px;
|
|
|
|
.from_to_place_data{
|
|
.label{
|
|
color: #27242499;
|
|
font-size: var(--big-font-size);
|
|
font-weight: 600;
|
|
margin-bottom: 10px;
|
|
&.departure_from{
|
|
text-align: left;
|
|
} &.arrival_to{
|
|
text-align: right;
|
|
}
|
|
}
|
|
.place{
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
.country{
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
|
|
img{
|
|
width: 16px;
|
|
height: 12px;
|
|
display: block;
|
|
object-fit: contain;
|
|
}
|
|
.country_code{
|
|
color: #27242499;
|
|
font-size: var(--medium-font-size);
|
|
}
|
|
}
|
|
.place_title{
|
|
font-size: var(--big-font-size);
|
|
font-weight: 800;
|
|
color: #272424;
|
|
}
|
|
}
|
|
}
|
|
.route_way_data{
|
|
flex-grow: 1;
|
|
.route_transport{
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 5px;
|
|
margin-bottom: 10px;
|
|
margin-top: 8px;
|
|
.route_transport_name{
|
|
font-size: var(--medium-font-size);
|
|
font-weight: 600;
|
|
}
|
|
img{
|
|
height: 12px;
|
|
display: block;
|
|
}
|
|
}
|
|
.way_progress_line_container{
|
|
position: relative;
|
|
width: 100%;
|
|
height: 15px;
|
|
.way_progress_round{
|
|
height: 20px;
|
|
width: 20px;
|
|
background: #FFFFFF;
|
|
border-radius: 100%;
|
|
position: absolute;
|
|
top: -10px;
|
|
z-index: 11;
|
|
&:first-of-type{
|
|
border: 3px solid #065BFF;
|
|
left: 0;
|
|
}
|
|
&:last-of-type{
|
|
border: 3px solid #45C226;
|
|
right: 0;
|
|
}
|
|
}
|
|
.way_progress_line{
|
|
width: calc(100% - 10px);
|
|
margin-left: 10px;
|
|
height: 4px;
|
|
position: absolute;
|
|
top: 2px;
|
|
z-index: 1;
|
|
background: linear-gradient(90deg, rgba(6,91,255,1) 0%, rgba(69,194,38,1) 100%);
|
|
}
|
|
.way_progress_arrows_line{
|
|
width: calc(100% - 10px);
|
|
margin-left: 10px;
|
|
height: 4px;
|
|
position: absolute;
|
|
top: 2px;
|
|
z-index: 10;
|
|
background-image: url("/static/v2/icons/widgets/w_route_card/route_arrow.svg");
|
|
background-repeat: repeat-x;
|
|
background-size: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.route_card_actions_container{
|
|
margin-top: 23px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
.delete_route{
|
|
cursor: pointer;
|
|
color: #27242499;
|
|
font-size: var(--medium-font-size);
|
|
&:hover{
|
|
color: #FF613A;
|
|
}
|
|
}
|
|
.right_part_action_btns{
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
}
|
|
}
|
|
.route_btn{
|
|
cursor: pointer;
|
|
&.solid{
|
|
--route-btn-width: 222px;
|
|
--route-btn-padding: 12px 0;
|
|
--route-btn-bg: #FF613A;
|
|
--route-btn-title-color: #ffffff;
|
|
}
|
|
&.inactive{
|
|
cursor: default;
|
|
--route-btn-title-color: #27242499;
|
|
--route-btn-border: 1.5px solid #FF613A99;
|
|
}
|
|
width: var(--route-btn-width);
|
|
border: var(--route-btn-border);
|
|
border-radius: var(--route-btn-border-radius);
|
|
padding: var(--route-btn-padding);
|
|
background: var(--route-btn-bg);
|
|
height: var(--route-btn-height);
|
|
text-align: center;
|
|
transition: 200ms all;
|
|
&:has(img){
|
|
display: flex;
|
|
gap: 5px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: unset;
|
|
}
|
|
&:not(&.inactive){
|
|
&:hover{
|
|
background: var(--route-btn-hover-bg);
|
|
.route_btn_title{color: var(--route-btn-hover-text-color);}
|
|
.route_btn_data{color: var(--route-btn-hover-text-color);}
|
|
box-shadow: 0 4px 4px rgba(189, 104, 104, 0.25);
|
|
}
|
|
}
|
|
.route_btn_title{
|
|
color: var(--route-btn-title-color);
|
|
font-size: var(--medium-font-size);
|
|
&.big{
|
|
font-size: var(--big-font-size);
|
|
}
|
|
}
|
|
.route_btn_data{
|
|
font-size: var(--small-font-size);
|
|
color: var(--route-btn-text-data-color);
|
|
}
|
|
img{
|
|
min-width: 16px;
|
|
display: block;
|
|
}
|
|
}
|
|
.route_date_data{
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
justify-content: var(--route-date-data-justify);
|
|
margin: var(--route-date-data-margin);
|
|
font-size: var(--medium-font-size);
|
|
width: 100%;
|
|
.date_data_value{
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
} |