2019-12-08 00:32:00 +05:30
|
|
|
@import '~app/components/ui/colors.scss';
|
|
|
|
@import '~app/components/ui/fonts.scss';
|
2016-05-26 03:07:18 +05:30
|
|
|
|
2020-07-06 21:59:56 +05:30
|
|
|
$popupPadding: 20px; // Default content padding
|
|
|
|
$popupMargin: 20px; // Outer popup margins
|
2016-06-16 19:41:57 +05:30
|
|
|
|
|
|
|
@mixin popupBounding($width, $padding: null) {
|
2020-05-24 04:38:24 +05:30
|
|
|
@if ($padding == null) {
|
|
|
|
$padding: $popupMargin;
|
|
|
|
}
|
2016-06-16 19:41:57 +05:30
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
@if ($padding != $popupMargin) {
|
|
|
|
margin: $padding auto;
|
|
|
|
padding: 0 $padding;
|
|
|
|
}
|
2016-06-16 19:41:57 +05:30
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
max-width: $width;
|
2016-06-16 19:41:57 +05:30
|
|
|
}
|
2016-05-26 03:07:18 +05:30
|
|
|
|
2016-05-01 23:20:55 +05:30
|
|
|
.overlay {
|
2020-05-24 04:38:24 +05:30
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2016-05-01 23:20:55 +05:30
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
z-index: 200;
|
2016-05-01 23:20:55 +05:30
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
background: rgba(#fff, 0.8);
|
2016-05-01 23:20:55 +05:30
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
text-align: center;
|
|
|
|
white-space: nowrap;
|
2016-05-01 23:20:55 +05:30
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
2016-05-22 22:55:38 +05:30
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
perspective: 600px;
|
2016-06-05 21:42:48 +05:30
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
height: 100%;
|
|
|
|
width: 0;
|
|
|
|
}
|
2016-05-01 23:20:55 +05:30
|
|
|
}
|
|
|
|
|
2016-05-26 03:07:18 +05:30
|
|
|
.popupWrapper {
|
2020-05-24 04:38:24 +05:30
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: $popupMargin;
|
2016-05-26 03:07:18 +05:30
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
vertical-align: middle;
|
2016-06-18 21:05:39 +05:30
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
transition: max-width 0.3s;
|
2016-05-26 03:07:18 +05:30
|
|
|
}
|
2016-05-01 23:20:55 +05:30
|
|
|
|
2016-05-26 03:07:18 +05:30
|
|
|
.popup {
|
2020-05-24 04:38:24 +05:30
|
|
|
white-space: normal;
|
2021-03-26 08:49:04 +05:30
|
|
|
text-align: start;
|
2016-05-01 23:20:55 +05:30
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
background: #fff;
|
|
|
|
box-shadow: 0 0 10px rgba(#000, 0.2);
|
2016-05-26 03:07:18 +05:30
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
color: #666;
|
2016-05-01 23:20:55 +05:30
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
:invalid {
|
|
|
|
button {
|
|
|
|
opacity: 0.3;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2016-05-01 23:20:55 +05:30
|
|
|
}
|
|
|
|
}
|
2016-05-26 03:07:18 +05:30
|
|
|
|
|
|
|
.header {
|
2020-05-24 04:38:24 +05:30
|
|
|
position: relative;
|
|
|
|
background: $white;
|
|
|
|
padding: 15px $popupPadding;
|
|
|
|
border-bottom: 1px solid #dedede;
|
2016-05-26 03:07:18 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.headerTitle {
|
2020-05-24 04:38:24 +05:30
|
|
|
font-size: 20px;
|
|
|
|
font-family: $font-family-title;
|
|
|
|
text-align: center;
|
2016-05-26 03:07:18 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.body {
|
2020-07-06 21:59:56 +05:30
|
|
|
|
2016-05-26 03:07:18 +05:30
|
|
|
}
|
2016-06-03 00:00:46 +05:30
|
|
|
|
|
|
|
.close {
|
2020-07-06 21:59:56 +05:30
|
|
|
composes: close from '~app/components/ui/icons.scss';
|
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
position: absolute;
|
2021-03-26 08:49:04 +05:30
|
|
|
inset-inline-end: 0;
|
2020-05-24 04:38:24 +05:30
|
|
|
top: 0;
|
|
|
|
padding: 15px;
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 20px;
|
|
|
|
color: rgba(#000, 0.4);
|
|
|
|
background: rgba(#000, 0);
|
|
|
|
transition: 0.25s;
|
|
|
|
transform: translateX(0);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: rgba(#000, 0.6);
|
|
|
|
background: rgba(#fff, 0.75);
|
|
|
|
}
|
2016-06-03 00:00:46 +05:30
|
|
|
|
2020-07-06 21:59:56 +05:30
|
|
|
@media (min-width: 655px) {
|
2020-05-24 04:38:24 +05:30
|
|
|
position: fixed;
|
|
|
|
padding: 35px;
|
|
|
|
}
|
2020-07-06 21:59:56 +05:30
|
|
|
|
|
|
|
.trEnter &,
|
|
|
|
.trExit & {
|
|
|
|
// don't show the close during transition, because transform forces "position: fixed"
|
|
|
|
// to layout relative container, instead of body
|
|
|
|
opacity: 0;
|
|
|
|
transform: translate(100%);
|
|
|
|
transition: 0s;
|
2021-03-26 08:49:04 +05:30
|
|
|
|
|
|
|
html[dir='rtl'] & {
|
|
|
|
transform: translate(-100%);
|
|
|
|
}
|
2020-07-06 21:59:56 +05:30
|
|
|
}
|
2016-06-03 00:00:46 +05:30
|
|
|
}
|
2016-06-04 01:08:59 +05:30
|
|
|
|
|
|
|
/**
|
|
|
|
* Transition states
|
|
|
|
*/
|
2016-06-05 21:42:48 +05:30
|
|
|
$popupInitPosition: translateY(10%) rotateX(-8deg);
|
|
|
|
|
2016-06-04 01:08:59 +05:30
|
|
|
.trEnter {
|
2019-11-27 14:33:32 +05:30
|
|
|
opacity: 0;
|
2016-06-04 01:08:59 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
.popup {
|
2020-05-24 04:38:24 +05:30
|
|
|
opacity: 0;
|
|
|
|
transform: $popupInitPosition;
|
|
|
|
}
|
|
|
|
|
|
|
|
&Active {
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 0.2s ease-in;
|
|
|
|
|
|
|
|
.popup {
|
|
|
|
opacity: 1;
|
|
|
|
transform: translateY(0) rotateX(0deg);
|
|
|
|
transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1); // easeOutQuint
|
|
|
|
}
|
2016-06-04 01:08:59 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-30 19:02:50 +05:30
|
|
|
.trExit {
|
2019-11-27 14:33:32 +05:30
|
|
|
opacity: 1;
|
2020-05-24 04:38:24 +05:30
|
|
|
overflow: hidden;
|
2016-06-04 01:08:59 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
.popup {
|
2020-05-24 04:38:24 +05:30
|
|
|
opacity: 1;
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
&Active {
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 0.2s ease-in;
|
|
|
|
|
|
|
|
.popup {
|
|
|
|
opacity: 0;
|
|
|
|
transform: $popupInitPosition;
|
|
|
|
transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); // easeOutQuart
|
|
|
|
}
|
2016-06-04 01:08:59 +05:30
|
|
|
}
|
|
|
|
}
|