mirror of
https://github.com/Dadechin/XRoomDashboardFront.git
synced 2025-07-02 00:04:35 +00:00
Responsive Edit billing and AddUser PopUps
This commit is contained in:
parent
f35b30c114
commit
13b65a564c
|
@ -81,7 +81,7 @@
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group" style="justify-content: normal;">
|
<div class="form-group is-admin-form" style="justify-content: normal;">
|
||||||
<span>مدیر</span>
|
<span>مدیر</span>
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
|
@ -196,7 +196,7 @@
|
||||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
||||||
direction: rtl;
|
direction: rtl;
|
||||||
padding-bottom: 1.5rem;
|
padding-bottom: 1.5rem;
|
||||||
height: 95vh;
|
height: max-content;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
-ms-overflow-style: none;
|
-ms-overflow-style: none;
|
||||||
|
@ -313,8 +313,7 @@
|
||||||
color: #101010;
|
color: #101010;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* checkbox toggler */
|
/* Checkbox toggler */
|
||||||
|
|
||||||
.switch {
|
.switch {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -342,10 +341,169 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkbox:checked + .switch {
|
.checkbox:checked + .switch {
|
||||||
background-color: #3a57e8;
|
background-color: #3A57E8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkbox {
|
.checkbox {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Responsive Styles */
|
||||||
|
|
||||||
|
/* Mobile: max-width 600px */
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
.modal-content {
|
||||||
|
max-width: 90%;
|
||||||
|
height: 85vh;
|
||||||
|
margin: 0 1rem;
|
||||||
|
padding-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-header {
|
||||||
|
padding: 15px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-header h2 {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-header button svg {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-title {
|
||||||
|
padding: 15px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-title h2 {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-title span {
|
||||||
|
font-size: 14px;
|
||||||
|
margin-top: 0.75rem;
|
||||||
|
line-height: 150%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-objects {
|
||||||
|
max-width: 90%;
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.is-admin-form {
|
||||||
|
flex-direction: row !important;
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group label {
|
||||||
|
width: 100%;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group input {
|
||||||
|
width: 100%;
|
||||||
|
font-size: 14px;
|
||||||
|
height: 2.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-actions {
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 1rem;
|
||||||
|
padding: 15px 0;
|
||||||
|
max-width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit-btn,
|
||||||
|
.cancel-btn {
|
||||||
|
width: 48%;
|
||||||
|
height: 40px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Checkbox in mobile */
|
||||||
|
.form-group .switch {
|
||||||
|
margin-right: 0;
|
||||||
|
width: 50px !important;
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group .switch::after {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
top: 2px;
|
||||||
|
right: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.checkbox:checked + .switch::after {
|
||||||
|
right: 32px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tablet: min-width 600px - max-width 1024px */
|
||||||
|
@media (min-width: 600px) and (max-width: 1024px) {
|
||||||
|
.modal-content {
|
||||||
|
max-width: 80%;
|
||||||
|
height: 95vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-objects {
|
||||||
|
max-width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-actions {
|
||||||
|
max-width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group input {
|
||||||
|
max-width: 20rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group .switch {
|
||||||
|
margin-right: 8rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Large Tablet / Small Desktop: min-width 1024px - max-width 1280px */
|
||||||
|
@media (min-width: 1024px) and (max-width: 1280px) {
|
||||||
|
.modal-content {
|
||||||
|
max-width: 720px;
|
||||||
|
height: 95vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-objects {
|
||||||
|
max-width: 680px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-actions {
|
||||||
|
max-width: 680px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group .switch {
|
||||||
|
margin-right: 10rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Desktop: min-width 1280px */
|
||||||
|
@media (min-width: 1280px) {
|
||||||
|
.modal-content {
|
||||||
|
max-width: 700px;
|
||||||
|
height: 95vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-objects {
|
||||||
|
max-width: 620px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-actions {
|
||||||
|
max-width: 620px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="popUp-objects">
|
<div class="popUp-objects">
|
||||||
<form @submit.prevent="handleSubmit" autocomplete="off">
|
<form @submit.prevent="handleSubmit" autocomplete="off">
|
||||||
<div class="form-group" style="justify-content: normal;">
|
<div class="form-group is-compony-form" style="justify-content: normal;">
|
||||||
<span>سفارش به عنوان یک شرکت</span>
|
<span>سفارش به عنوان یک شرکت</span>
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
|
@ -171,13 +171,9 @@ export default {
|
||||||
|
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
||||||
.modal-overlay {
|
.modal-overlay {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
inset: 0;
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
background: rgba(0, 0, 0, 0.5);
|
background: rgba(0, 0, 0, 0.5);
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -187,35 +183,31 @@ export default {
|
||||||
|
|
||||||
.modal-content {
|
.modal-content {
|
||||||
background: #F7F5FA;
|
background: #F7F5FA;
|
||||||
border-radius: 8px;
|
border-radius: 20px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 700px;
|
max-width: 700px;
|
||||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
||||||
direction: rtl;
|
direction: rtl;
|
||||||
border-radius: 20px;
|
|
||||||
padding-bottom: 1.5rem;
|
padding-bottom: 1.5rem;
|
||||||
height: 95vh;
|
height: max-content;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
-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%;
|
padding: 20px 26px;
|
||||||
padding: 20px 26px;
|
margin-bottom: 1.5rem;
|
||||||
margin-bottom: 1.5rem;
|
border-radius: 20px 20px 0 0;
|
||||||
border-radius: 20px 20px 0px 0px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.popUp-header h2 {
|
.popUp-header h2 {
|
||||||
|
@ -223,41 +215,39 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.popUp-header button {
|
.popUp-header button {
|
||||||
background-color: #101010;
|
background-color: inherit;
|
||||||
border: none;
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popUp-title {
|
.popUp-title {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: start;
|
align-items: flex-start;
|
||||||
padding: 20px;
|
padding: 20px 50px 20px 20px;
|
||||||
padding-right: 50px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.popUp-title h2 {
|
.popUp-title h2 {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #101010;
|
color: #101010;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popUp-title span {
|
.popUp-title span {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #4F5A69;
|
color: #4F5A69;
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popUp-objects {
|
.popUp-objects {
|
||||||
margin-top: 1rem !important;
|
margin: 1rem auto 0;
|
||||||
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;
|
display: block;
|
||||||
margin: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group {
|
.form-group {
|
||||||
|
@ -268,7 +258,6 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group label {
|
.form-group label {
|
||||||
display: block;
|
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
@ -281,33 +270,17 @@ export default {
|
||||||
border: 1px solid #718096;
|
border: 1px solid #718096;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
max-width: 22rem
|
max-width: 22rem;
|
||||||
}
|
|
||||||
|
|
||||||
.form-group textarea {
|
|
||||||
height: 140px;
|
|
||||||
width: 100%;
|
|
||||||
padding: 8px;
|
|
||||||
border: 1px solid #718096;
|
|
||||||
border-radius: 8px;
|
|
||||||
font-size: 1rem;
|
|
||||||
max-width: 25rem;
|
|
||||||
resize: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group input:focus {
|
.form-group input:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
|
||||||
|
|
||||||
.form-group textarea:focus {
|
|
||||||
outline: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-actions {
|
.form-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 20px 0px;
|
padding: 20px 0;
|
||||||
padding-bottom: 0;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 620px;
|
max-width: 620px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
@ -315,62 +288,220 @@ export default {
|
||||||
|
|
||||||
.submit-btn,
|
.submit-btn,
|
||||||
.cancel-btn {
|
.cancel-btn {
|
||||||
text-align: center;
|
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
width: 47%;
|
width: 47%;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 18px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.submit-btn {
|
.submit-btn {
|
||||||
background-color: #3A57E8;
|
background-color: #3A57E8;
|
||||||
color: white;
|
color: white;
|
||||||
font-weight: 500;
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.cancel-btn {
|
.cancel-btn {
|
||||||
background-color: #EBEEFD;
|
background-color: #EBEEFD;
|
||||||
color: #101010;
|
color: #101010;
|
||||||
font-weight: 500;
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* checkbox toggler */
|
/* Checkbox toggler */
|
||||||
|
.switch {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
width: 60px !important;
|
||||||
|
height: 25px;
|
||||||
|
background-color: #CCCCCC;
|
||||||
|
border-radius: 20px;
|
||||||
|
margin-right: 4rem;
|
||||||
|
}
|
||||||
|
|
||||||
.switch {
|
.switch::after {
|
||||||
position : relative ;
|
content: '';
|
||||||
display : inline-block;
|
position: absolute;
|
||||||
width: 60px !important;
|
width: 20px;
|
||||||
height: 25px;
|
height: 20px;
|
||||||
background-color: #CCCCCC;
|
border-radius: 50%;
|
||||||
border-radius: 20px;
|
background-color: white;
|
||||||
margin-right: 4rem;
|
top: 2px;
|
||||||
}
|
right: 3px;
|
||||||
|
transition: all 0.3s;
|
||||||
.switch::after {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
width: 20px;
|
|
||||||
height: 20px;
|
|
||||||
border-radius: 50%;
|
|
||||||
background-color: white;
|
|
||||||
top: 2px;
|
|
||||||
right: 3px;
|
|
||||||
transition: all 0.3s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkbox:checked + .switch::after {
|
.checkbox:checked + .switch::after {
|
||||||
right: 37px;
|
right: 37px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkbox:checked + .switch {
|
.checkbox:checked + .switch {
|
||||||
background-color: #3a57e8;
|
background-color: #3A57E8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkbox {
|
.checkbox {
|
||||||
display : none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Responsive Styles */
|
||||||
|
|
||||||
|
/* Mobile: max-width 600px */
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
.modal-content {
|
||||||
|
max-width: 90%;
|
||||||
|
height: 85vh;
|
||||||
|
margin: 0 1rem;
|
||||||
|
padding-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-header {
|
||||||
|
padding: 15px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-header h2 {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-header button svg {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-title {
|
||||||
|
padding: 15px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-title h2 {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-title span {
|
||||||
|
font-size: 14px;
|
||||||
|
margin-top: 0.75rem;
|
||||||
|
line-height: 150%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-objects {
|
||||||
|
max-width: 90%;
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.is-compony-form {
|
||||||
|
flex-direction: row !important;
|
||||||
|
align-items: center !important;
|
||||||
|
justify-content: space-between !important;
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group label {
|
||||||
|
width: 100%;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group input {
|
||||||
|
width: 100%;
|
||||||
|
font-size: 14px;
|
||||||
|
height: 2.25rem;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-actions {
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 1rem;
|
||||||
|
padding: 15px 0;
|
||||||
|
max-width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit-btn,
|
||||||
|
.cancel-btn {
|
||||||
|
width: 48%;
|
||||||
|
height: 40px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Checkbox in mobile */
|
||||||
|
.form-group .switch {
|
||||||
|
margin-right: 0;
|
||||||
|
width: 50px !important;
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group .switch::after {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
top: 2px;
|
||||||
|
right: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.checkbox:checked + .switch::after {
|
||||||
|
right: 32px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tablet: min-width 600px - max-width 1024px */
|
||||||
|
@media (min-width: 600px) and (max-width: 1024px) {
|
||||||
|
.modal-content {
|
||||||
|
max-width: 80%;
|
||||||
|
height: 95vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-objects {
|
||||||
|
max-width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-actions {
|
||||||
|
max-width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group input {
|
||||||
|
max-width: 20rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group .switch {
|
||||||
|
margin-right: 3rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Large Tablet / Small Desktop: min-width 1024px - max-width 1280px */
|
||||||
|
@media (min-width: 1024px) and (max-width: 1280px) {
|
||||||
|
.modal-content {
|
||||||
|
max-width: 720px;
|
||||||
|
height: 95vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-objects {
|
||||||
|
max-width: 680px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-actions {
|
||||||
|
max-width: 680px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group .switch {
|
||||||
|
margin-right: 3.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Desktop: min-width 1280px */
|
||||||
|
@media (min-width: 1280px) {
|
||||||
|
.modal-content {
|
||||||
|
max-width: 700px;
|
||||||
|
height: 95vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popUp-objects {
|
||||||
|
max-width: 620px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-actions {
|
||||||
|
max-width: 620px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
|
@ -240,7 +240,6 @@ export default {
|
||||||
|
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
||||||
:deep(.plyr) {
|
:deep(.plyr) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -330,12 +329,11 @@ export default {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 620px;
|
max-width: 620px;
|
||||||
display: block;
|
display: block;
|
||||||
border-radius: 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview-content img {
|
.preview-content img {
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview-file {
|
.preview-file {
|
||||||
|
@ -354,7 +352,7 @@ export default {
|
||||||
|
|
||||||
.pdf-preview,
|
.pdf-preview,
|
||||||
.model-preview {
|
.model-preview {
|
||||||
width: 580px;
|
width: 100%;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -391,7 +389,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.delete-btn {
|
.delete-btn {
|
||||||
background-color: #B31C51;
|
background-color: #b02424;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -400,5 +398,178 @@ export default {
|
||||||
color: #101010;
|
color: #101010;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Responsive Styles */
|
||||||
|
|
||||||
|
/* Mobile: max-width 600px */
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
.modal-content {
|
||||||
|
max-width: 90%;
|
||||||
|
height: max-content;
|
||||||
|
margin: 0 1rem;
|
||||||
|
padding-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-header {
|
||||||
|
padding: 15px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-header h2 {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-header button svg {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-title {
|
||||||
|
padding: 15px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-title h2 {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-title span {
|
||||||
|
font-size: 14px;
|
||||||
|
margin-top: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.preview-content {
|
||||||
|
max-width: 90%;
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.preview-file {
|
||||||
|
max-height: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pdf-preview-container,
|
||||||
|
.video-preview-container,
|
||||||
|
.model-preview-container {
|
||||||
|
max-height: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pdf-preview,
|
||||||
|
.model-preview {
|
||||||
|
width: 100%;
|
||||||
|
height: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-actions {
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 0.75rem;
|
||||||
|
padding: 15px 0;
|
||||||
|
max-width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download-btn,
|
||||||
|
.delete-btn {
|
||||||
|
width: 48%;
|
||||||
|
height: 40px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close-btn {
|
||||||
|
width: 100%;
|
||||||
|
height: 40px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Custom layout for buttons in mobile */
|
||||||
|
.modal-actions {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download-btn,
|
||||||
|
.delete-btn {
|
||||||
|
flex: 0 0 calc(50% - 0.5rem); /* Two buttons side by side with gap */
|
||||||
|
}
|
||||||
|
|
||||||
|
.close-btn {
|
||||||
|
flex: 0 0 100%; /* Full width for close button */
|
||||||
|
order: 2; /* Place close button below others */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tablet: min-width 600px - max-width 1024px */
|
||||||
|
@media (min-width: 600px) and (max-width: 1024px) {
|
||||||
|
.modal-content {
|
||||||
|
max-width: 80%;
|
||||||
|
height: max-content;
|
||||||
|
}
|
||||||
|
|
||||||
|
.preview-content {
|
||||||
|
max-width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-actions {
|
||||||
|
max-width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.preview-file {
|
||||||
|
max-height: 350px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pdf-preview-container,
|
||||||
|
.video-preview-container,
|
||||||
|
.model-preview-container {
|
||||||
|
max-height: 350px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pdf-preview,
|
||||||
|
.model-preview {
|
||||||
|
width: 100%;
|
||||||
|
height: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download-btn,
|
||||||
|
.delete-btn,
|
||||||
|
.close-btn {
|
||||||
|
width: 33%;
|
||||||
|
font-size: 16px;
|
||||||
|
height: 45px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Large Tablet / Small Desktop: min-width 1024px - max-width 1280px */
|
||||||
|
@media (min-width: 1024px) and (max-width: 1280px) {
|
||||||
|
.modal-content {
|
||||||
|
max-width: 720px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.preview-content {
|
||||||
|
max-width: 680px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-actions {
|
||||||
|
max-width: 680px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pdf-preview,
|
||||||
|
.model-preview {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Desktop: min-width 1280px */
|
||||||
|
@media (min-width: 1280px) {
|
||||||
|
.modal-content {
|
||||||
|
max-width: 700px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.preview-content {
|
||||||
|
max-width: 620px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-actions {
|
||||||
|
max-width: 620px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pdf-preview,
|
||||||
|
.model-preview {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
Loading…
Reference in New Issue
Block a user