Helo popUp responsive

This commit is contained in:
Diyar Akhgar 2025-06-13 02:16:00 +03:30
parent ce9d9e6fbe
commit 8fac246b9d

View File

@ -41,7 +41,9 @@
<img :src="card.icon" alt="icon"> <img :src="card.icon" alt="icon">
</span> </span>
<div class="card-body"> <div class="card-body">
{{ card.title }} <span>
{{ card.title }}
</span>
</div> </div>
<div class="card-footer"> <div class="card-footer">
مشاهده محتوا مشاهده محتوا
@ -198,21 +200,20 @@ export default {
-ms-overflow-style: none; -ms-overflow-style: none;
} }
.modal-content::-webkit-scrollbar { .modal-content::-webkit-scrollbar {
display: none; display: none;
} }
.popUp-header { .popUp-header {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
background-color: #101010; background-color: #101010;
color: #fff; color: #fff;
width: 100%; width: 100%;
padding: 20px 26px; padding: 20px 26px;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
border-radius: 20px 20px 0px 0px; border-radius: 20px 20px 0px 0px;
} }
.popUp-header h2 { .popUp-header h2 {
@ -220,113 +221,261 @@ export default {
} }
.popUp-header button { .popUp-header button {
background-color: #101010; background-color: #101010;
border: none; border: none;
cursor: pointer; cursor: pointer;
} }
.popUp-body { .popUp-body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 1rem; gap: 1rem;
padding-bottom: 2.5rem; padding-bottom: 2.5rem;
} }
.popUp-object { .popUp-object {
margin-top: 1rem !important; margin-top: 1rem !important;
padding: 20px; padding: 20px;
background-color: #FFFFFF; background-color: #FFFFFF;
border-radius: 16px; border-radius: 16px;
width: 100%; width: 100%;
max-width: 620px; max-width: 620px;
display: block; margin: auto;
margin: auto; gap: 1rem;
} display: flex;
flex-direction: column;
.popUp-object {
display: flex;
flex-direction: column;
gap: 1.5rem;
} }
.popUp-object h2 { .popUp-object h2 {
font-size: 20px; font-size: 20px;
color: #101010; color: #101010;
line-height: 140%; line-height: 140%;
font-weight: 600; font-weight: 600;
} }
.cards { .cards {
display: flex; display: flex;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
gap: 2rem 0; gap: 2rem 0;
} }
.card { .card {
width: 31.5%; width: 31.5%;
height: 10.5rem; height: 10.5rem;
border-radius: 12px; border-radius: 12px;
position: relative; position: relative;
} }
.card-header { .card-header {
width: 100%; width: 100%;
height: 3.5rem; height: 3.5rem;
background-color: #182561; background-color: #182561;
border-top-left-radius: 12px; border-top-left-radius: 12px;
border-top-right-radius: 12px; border-top-right-radius: 12px;
} }
.card-logo img { .card-logo img {
height: 30px; height: 30px;
width: 30px; width: 30px;
} }
.card-logo { .card-logo {
position: absolute; position: absolute;
top: 15px; top: 15px;
right: 34%; right: 34%;
background-color: #fff; background-color: #fff;
border-radius: 100%; border-radius: 100%;
padding: 1rem 1rem 0.7rem 1rem; padding: 1rem 1rem 0.7rem 1rem;
border: 1px solid #182561; border: 1px solid #182561;
} }
.card-body { .card-body {
background-color: #F7F6FA; background-color: #F7F6FA;
height: 4.5rem; height: 4.5rem;
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;
justify-content: center; justify-content: center;
padding-bottom: 1.2rem; padding-bottom: 1.2rem;
}
.card-body span {
width: 90%;
text-overflow: ellipsis;
overflow-x: clip;
white-space: nowrap;
text-align: center;
} }
.card-footer { .card-footer {
color: #667387; color: #667387;
font-size: 14px; font-size: 14px;
border-top: 0.5px solid #E2DEE9; border-top: 0.5px solid #E2DEE9;
background-color: #F7F6FA; background-color: #F7F6FA;
height: 2.5rem; height: 2.5rem;
border-bottom-left-radius: 12px; border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px; border-bottom-right-radius: 12px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
} }
.exit-btn { .exit-btn {
background-color: #3A57E8; background-color: #3A57E8;
border-radius: 8px; border-radius: 8px;
color: #fff; color: #fff;
border: none; border: none;
padding: 15px 45px 15px 45px; padding: 15px 45px 15px 45px;
display: block; display: block;
margin: auto; margin: auto;
font-size: 16px; font-size: 16px;
cursor: pointer; cursor: pointer;
}
/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
.popUp-body {
padding-right: 1rem;
padding-left: 1rem;
}
.modal-content {
max-width: 90%;
padding-bottom: 1.5rem;
height: 80vh;
}
.popUp-header {
padding: 15px 20px;
}
.popUp-header h2 {
font-size: 18px;
}
.popUp-object {
padding: 15px;
max-width: 100%;
}
.popUp-object h2 {
font-size: 18px;
}
.cards {
gap: 1.5rem 0;
justify-content: space-between;
}
.card {
width: 48%;
height: 9rem;
}
.card-header {
height: 2.2rem;
}
.card-logo {
top: 10px;
right: 33%;
padding: 15px 15px 10px 15px;
}
.card-logo img {
height: 18px;
width: 18px;
}
.card-body {
height: 3.3rem;
font-size: 14px;
padding-bottom: 0.5rem;
}
.card-footer {
font-size: 12px;
height: 2rem;
}
.exit-btn {
padding: 12px 30px;
font-size: 14px;
}
}
/* Tablet (min-width: 600px - max-width: 1024px) */
@media (min-width: 600px) and (max-width: 1024px) {
.modal-content {
max-width: 85%;
height: 90vh;
}
.popUp-object {
max-width: 90%;
}
.card {
width: 31%;
height: 10rem;
}
.card-logo {
right: 32%;
}
.popUp-header h2 {
font-size: 20px;
}
.popUp-object h2 {
font-size: 19px;
}
.exit-btn {
padding: 14px 40px;
font-size: 15px;
}
}
/* Desktop Medium (min-width: 1024px - max-width: 1280px) */
@media (min-width: 1024px) and (max-width: 1280px) {
.modal-content {
max-width: 680px;
}
.popUp-object {
max-width: 600px;
}
.card {
width: 31.5%;
height: 10.5rem;
}
.card-logo {
right: 34%;
}
}
/* Desktop Large (min-width: 1280px) */
@media (min-width: 1280px) {
.modal-content {
max-width: 700px;
}
.popUp-object {
max-width: 620px;
}
.card {
width: 31.5%;
height: 10.5rem;
}
} }
</style> </style>