You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
216 lines
4.2 KiB
216 lines
4.2 KiB
7 months ago
|
// Modals
|
||
|
|
||
|
.modal {
|
||
|
// Modal Header
|
||
|
|
||
|
.modal-header {
|
||
|
background-color: $body-bg;
|
||
|
|
||
|
// close button
|
||
|
.btn-close {
|
||
|
padding: 0.8rem;
|
||
|
box-shadow: 0 5px 20px 0 rgba($black, 0.1);
|
||
|
border-radius: $border-radius;
|
||
|
background-color: $white;
|
||
|
opacity: 1;
|
||
|
transition: all 0.23s ease 0.1s;
|
||
|
position: relative;
|
||
|
transform: translate(18px, -10px);
|
||
|
|
||
|
// For hover effect of close btn
|
||
|
&:hover,
|
||
|
&:focus,
|
||
|
&:active {
|
||
|
opacity: 1;
|
||
|
outline: none;
|
||
|
transform: translate(15px, -2px);
|
||
|
box-shadow: none;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.modal-fullscreen {
|
||
|
.modal-header {
|
||
|
.btn-close {
|
||
|
transform: translate(0, 0);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
// Modal Content
|
||
|
.modal-content {
|
||
|
// overflow: unset; updated to "visible" as close icon is not visible in IE
|
||
|
overflow: visible;
|
||
|
box-shadow: 0 5px 20px 0 rgba($black, 0.1);
|
||
|
}
|
||
|
|
||
|
.modal-footer {
|
||
|
padding: $modal-inner-padding;
|
||
|
}
|
||
|
|
||
|
// modal sticky for apps
|
||
|
&.modal-sticky {
|
||
|
bottom: 0;
|
||
|
right: 0;
|
||
|
top: auto;
|
||
|
left: auto;
|
||
|
height: auto;
|
||
|
position: fixed;
|
||
|
.modal-header {
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: space-between;
|
||
|
}
|
||
|
.modal-dialog {
|
||
|
margin-right: #{$content-padding} !important;
|
||
|
box-shadow: 0px 0px 24px 0 rgba($black, 0.25);
|
||
|
border-radius: $border-radius;
|
||
|
}
|
||
|
.modal-actions {
|
||
|
background: transparent;
|
||
|
box-shadow: none;
|
||
|
line-height: 0;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Modal XS
|
||
|
.modal-xs {
|
||
|
max-width: 300px;
|
||
|
}
|
||
|
|
||
|
// Modal XL
|
||
|
@media (min-width: 1200px) {
|
||
|
.modal-xl {
|
||
|
margin-left: 3%;
|
||
|
margin-right: 3%;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Slide In Modal //
|
||
|
.modal-slide-in,
|
||
|
.modal-slide-in .modal {
|
||
|
padding: 0 !important;
|
||
|
overflow: hidden !important;
|
||
|
}
|
||
|
|
||
|
.modal-slide-in {
|
||
|
.modal-dialog {
|
||
|
position: fixed;
|
||
|
top: 0;
|
||
|
right: 0;
|
||
|
bottom: 0;
|
||
|
left: auto;
|
||
|
margin: 0;
|
||
|
max-width: none;
|
||
|
width: ($modal-slide-in-width-sm - 5);
|
||
|
|
||
|
.modal-content {
|
||
|
padding-bottom: ($modal-title-line-height * $btn-close-width) + $modal-header-padding-y;
|
||
|
padding-top: ($modal-title-line-height * $btn-close-width) + $modal-header-padding-y;
|
||
|
overflow: auto;
|
||
|
border-radius: 0;
|
||
|
height: 100%;
|
||
|
}
|
||
|
|
||
|
.modal-body {
|
||
|
padding-bottom: 0;
|
||
|
padding-top: 0;
|
||
|
margin: auto 0;
|
||
|
flex-grow: 0;
|
||
|
}
|
||
|
|
||
|
@media (min-width: (map-get($grid-breakpoints, sm))) {
|
||
|
width: $modal-slide-in-width;
|
||
|
}
|
||
|
|
||
|
&.sidebar-sm {
|
||
|
width: $modal-slide-in-width-sm;
|
||
|
}
|
||
|
&.sidebar-lg {
|
||
|
@media (min-width: (map-get($grid-breakpoints, sm))) {
|
||
|
width: $modal-slide-in-width-lg;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.btn-close {
|
||
|
top: calc($modal-header-padding-y / 2);
|
||
|
z-index: 10;
|
||
|
transform: none;
|
||
|
position: absolute;
|
||
|
top: 1.5rem;
|
||
|
right: $modal-header-padding-x;
|
||
|
margin: 0;
|
||
|
padding: 0 !important;
|
||
|
line-height: 0.5;
|
||
|
transform: translate(0, -50%);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Slide from Right
|
||
|
.modal-slide-in.fade .modal-dialog,
|
||
|
.modal-slide-in .modal.fade .modal-dialog {
|
||
|
transform: translateX(100%);
|
||
|
transition: transform 0.1s ease-out;
|
||
|
}
|
||
|
|
||
|
.modal-slide-in.show .modal-dialog,
|
||
|
.modal-slide-in .modal.show .modal-dialog {
|
||
|
transform: translateX(0) !important;
|
||
|
transition: transform 0.1s ease-out;
|
||
|
}
|
||
|
|
||
|
// To remove Max-width of XS Modal in Small Screen
|
||
|
|
||
|
@media (max-width: 576px) {
|
||
|
.modal {
|
||
|
&:not(.modal-slide-in) {
|
||
|
.modal-dialog:not(.modal-fullscreen) {
|
||
|
padding-right: 1rem;
|
||
|
padding-left: 1rem;
|
||
|
}
|
||
|
}
|
||
|
.modal-xs,
|
||
|
.modal-sm {
|
||
|
max-width: unset;
|
||
|
}
|
||
|
&.modal-sticky .modal-dialog {
|
||
|
margin-right: 0.2rem !important;
|
||
|
margin-left: 0.2rem;
|
||
|
margin-bottom: 3rem;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// ------------------------------------------------
|
||
|
// Modal Examples
|
||
|
// ------------------------------------------------
|
||
|
|
||
|
// --- refer and earn start ----- //
|
||
|
|
||
|
.modal-refer-earn {
|
||
|
.modal-refer-earn-step {
|
||
|
svg {
|
||
|
height: 2.5rem;
|
||
|
width: 2.5rem;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
// --- refer and earn end ----- //
|
||
|
|
||
|
// --- share project start ----- //
|
||
|
|
||
|
@include media-breakpoint-down(lg) {
|
||
|
#shareProject {
|
||
|
.list-group {
|
||
|
.dropdown-toggle {
|
||
|
padding: 0.5rem;
|
||
|
&::after {
|
||
|
left: 0;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// --- share project end ----- //
|