EOS/Content/css/LiveTrackingTitan.css
Nidhi Bhargava f0c1ab20e1 code push
2025-09-04 16:25:07 +05:30

296 lines
4.7 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}
body {
background-color: #ffe6e6;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
overflow: hidden;
}
.tracking-container {
width: 90%;
max-width: 400px;
height: 100vh;
display: flex;
flex-direction: column;
background: white;
border-radius: 0px;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
width: 100%;
}
.tracking-container h5 {
color: #fff;
background-color: #E5373B;
padding: 10px;
font-size: 15px;
}
.tracking-container h5 small {
display: block;
width: 100%;
padding-top: 5px;
font-weight: 400
}
.map {
flex: 5;
background: #ccc;
}
.map iframe {
width: 100%;
height: 100%;
border: none;
}
.info {
flex: 6;
padding: 10px;
overflow-y: auto;
}
.driver-info {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
}
.driver-info img {
width: 50px;
height: 50px;
border-radius: 50%;
}
.driver-info .time img {
width: 25px;
height: 25px;
border-radius: 50%;
margin-right: 5px;
}
.driver-info .time span {
display: flex;
align-items: center;
}
.driver-info .details {
flex: 1;
margin-left: 10px;
}
.driver-info .details {
display: flex;
align-items: center;
}
.driver-info .details.new-add img {
width: 25px;
height: 25px;
margin-right: 5px
}
.driver-info .details h3 {
font-size: 16px;
margin-bottom: 5px;
}
.driver-info .details p {
font-size: 14px;
color: #888;
}
.driver-info .time {
text-align: right;
}
.driver-info .time span {
font-size: 18px;
font-weight: bold;
}
.tracking-steps {
list-style: none;
position: relative;
}
.tracking-steps li {
display: flex;
align-items: center;
padding: 10px 0;
position: relative;
}
.tracking-steps li:not(:last-child)::after {
content: "";
position: absolute;
width: 2px;
height: calc(82% + 9px);
background: #ccc;
top: 29%;
right: 11px;
z-index: 1;
}
.tracking-steps li i {
font-size: 20px;
color: #ff6f6f;
margin-right: 15px;
z-index: 2;
}
.tracking-steps li .step-details {
flex: 1;
}
.tracking-steps li .step-details h4 {
font-size: 14px;
font-weight: normal;
margin-bottom: 5px;
}
.tracking-steps li .step-details p {
font-size: 12px;
color: #888;
}
.tracking-steps li .status {
display: flex;
justify-content: center;
align-items: center;
width: 24px;
height: 24px;
border-radius: 50%;
border: 2px solid #E5373B;
position: relative;
z-index: 2;
background-color: #E5373B;
}
.tracking-steps li .status:after {
content: '';
position: absolute;
width: 4px;
height: 9px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
top: 4px;
left: 7px;
}
.popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 300px;
background: white;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
padding: 20px;
display: none;
z-index: 1000;
}
.popup h4 {
margin-bottom: 10px;
font-size: 18px;
color: #333;
}
.popup button {
margin-top: 10px;
padding: 10px 20px;
background: #E5373B;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.popup button:hover {
background: #b72a2e;
}
.popup .close-btn {
position: absolute;
top: 10px;
right: 10px;
background: #E5373B;
border: none;
border-radius: 50%;
width: 20px;
height: 20px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
padding: 0;
font-size: 15px;
}
.time p {
font-size: 12px;
padding-top: 5px;
}
.popup .close-btn:hover {
background: #999;
}
.tracking-steps li.completed .status {
background: green;
border-color: green;
}
.step-details p {
display: flex;
align-items: center;
}
li.in-progress span.status {
background: orange;
border-color: orange;
}
li.completed, li.pending {
opacity: 0.5;
}
li.in-progress {
opacity: 1;
}
.popup p a {
display: flex;
align-items: center;
}
.popup p a img {
margin-right: 5px;
}
@media (max-width: 768px) {
.tracking-container {
width: 100%;
}
.driver-info .details h3 {
font-size: 14px;
}
.driver-info .details p {
font-size: 12px;
}
}