106 lines
1.8 KiB
CSS
106 lines
1.8 KiB
CSS
/* Styling untuk modal */
|
|
.modal-dialog {
|
|
max-width: 800px; /* Sesuaikan lebar modal sesuai kebutuhan */
|
|
}
|
|
|
|
.modal-content {
|
|
padding: 20px;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 0;
|
|
}
|
|
|
|
/* Styling for Modal Content */
|
|
.modal-content {
|
|
display: flex;
|
|
align-items: center; /* Mengatur vertikal alignment agar konten berada di tengah */
|
|
}
|
|
|
|
/* Styling for Car Image Container */
|
|
.car-image-container {
|
|
text-align: center;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.car-image-container::before {
|
|
content: "";
|
|
display: block;
|
|
padding-top: 80%;
|
|
}
|
|
|
|
.car-image-container img {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
object-fit: cover;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
|
|
/* Styling for Car Details and Buttons */
|
|
.quick-view-details,
|
|
.quick-view-buttons {
|
|
flex: 1; /* Memanfaatkan fleksibilitas untuk membagi ruang secara proporsional */
|
|
padding: 20px;
|
|
}
|
|
|
|
.quick-view-details h3 {
|
|
font-size: 24px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.quick-view-details p {
|
|
font-size: 18px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.quick-view-buttons .btn {
|
|
margin: 5px;
|
|
}
|
|
|
|
|
|
|
|
/* Styling untuk tooltip */
|
|
.tooltipp {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.tooltipp .tooltip-text {
|
|
visibility: hidden;
|
|
width: 120px;
|
|
background-color: black;
|
|
color: white;
|
|
text-align: center;
|
|
padding: 5px 0;
|
|
border-radius: 6px;
|
|
position: absolute;
|
|
z-index: 1;
|
|
bottom: 125%;
|
|
left: 50%;
|
|
margin-left: -60px;
|
|
opacity: 0;
|
|
transition: opacity 0.3s;
|
|
}
|
|
|
|
.tooltipp .tooltip-text::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 50%;
|
|
margin-left: -5px;
|
|
border-width: 5px;
|
|
border-style: solid;
|
|
border-color: black transparent transparent transparent;
|
|
}
|
|
|
|
.tooltipp:hover .tooltip-text {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
}
|