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">
</span>
<div class="card-body">
{{ card.title }}
<span>
{{ card.title }}
</span>
</div>
<div class="card-footer">
مشاهده محتوا
@ -198,21 +200,20 @@ export default {
-ms-overflow-style: none;
}
.modal-content::-webkit-scrollbar {
display: none;
}
.popUp-header {
display: flex;
align-items: center;
justify-content: space-between;
background-color: #101010;
color: #fff;
width: 100%;
padding: 20px 26px;
margin-bottom: 1.5rem;
border-radius: 20px 20px 0px 0px;
display: flex;
align-items: center;
justify-content: space-between;
background-color: #101010;
color: #fff;
width: 100%;
padding: 20px 26px;
margin-bottom: 1.5rem;
border-radius: 20px 20px 0px 0px;
}
.popUp-header h2 {
@ -220,113 +221,261 @@ export default {
}
.popUp-header button {
background-color: #101010;
border: none;
cursor: pointer;
background-color: #101010;
border: none;
cursor: pointer;
}
.popUp-body {
display: flex;
flex-direction: column;
gap: 1rem;
padding-bottom: 2.5rem;
display: flex;
flex-direction: column;
gap: 1rem;
padding-bottom: 2.5rem;
}
.popUp-object {
margin-top: 1rem !important;
padding: 20px;
background-color: #FFFFFF;
border-radius: 16px;
width: 100%;
max-width: 620px;
display: block;
margin: auto;
}
.popUp-object {
display: flex;
flex-direction: column;
gap: 1.5rem;
margin-top: 1rem !important;
padding: 20px;
background-color: #FFFFFF;
border-radius: 16px;
width: 100%;
max-width: 620px;
margin: auto;
gap: 1rem;
display: flex;
flex-direction: column;
}
.popUp-object h2 {
font-size: 20px;
color: #101010;
line-height: 140%;
font-weight: 600;
font-size: 20px;
color: #101010;
line-height: 140%;
font-weight: 600;
}
.cards {
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: space-between;
gap: 2rem 0;
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: space-between;
gap: 2rem 0;
}
.card {
width: 31.5%;
height: 10.5rem;
border-radius: 12px;
position: relative;
width: 31.5%;
height: 10.5rem;
border-radius: 12px;
position: relative;
}
.card-header {
width: 100%;
height: 3.5rem;
background-color: #182561;
border-top-left-radius: 12px;
border-top-right-radius: 12px;
width: 100%;
height: 3.5rem;
background-color: #182561;
border-top-left-radius: 12px;
border-top-right-radius: 12px;
}
.card-logo img {
height: 30px;
width: 30px;
height: 30px;
width: 30px;
}
.card-logo {
position: absolute;
top: 15px;
right: 34%;
background-color: #fff;
border-radius: 100%;
padding: 1rem 1rem 0.7rem 1rem;
border: 1px solid #182561;
position: absolute;
top: 15px;
right: 34%;
background-color: #fff;
border-radius: 100%;
padding: 1rem 1rem 0.7rem 1rem;
border: 1px solid #182561;
}
.card-body {
background-color: #F7F6FA;
height: 4.5rem;
display: flex;
align-items: flex-end;
justify-content: center;
padding-bottom: 1.2rem;
background-color: #F7F6FA;
height: 4.5rem;
display: flex;
align-items: flex-end;
justify-content: center;
padding-bottom: 1.2rem;
}
.card-body span {
width: 90%;
text-overflow: ellipsis;
overflow-x: clip;
white-space: nowrap;
text-align: center;
}
.card-footer {
color: #667387;
font-size: 14px;
border-top: 0.5px solid #E2DEE9;
background-color: #F7F6FA;
height: 2.5rem;
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
color: #667387;
font-size: 14px;
border-top: 0.5px solid #E2DEE9;
background-color: #F7F6FA;
height: 2.5rem;
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
.exit-btn {
background-color: #3A57E8;
border-radius: 8px;
color: #fff;
border: none;
padding: 15px 45px 15px 45px;
display: block;
margin: auto;
font-size: 16px;
cursor: pointer;
background-color: #3A57E8;
border-radius: 8px;
color: #fff;
border: none;
padding: 15px 45px 15px 45px;
display: block;
margin: auto;
font-size: 16px;
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>