2019-03-20 01:51:21 +08:00
|
|
|
@import "../../../stylesheets/variables/_all";
|
|
|
|
|
|
|
|
:root {
|
|
|
|
--position-left-edge: 60%;
|
|
|
|
--position-bottom-edge: 5%;
|
|
|
|
--position-top-firefox: 8em;
|
|
|
|
--position-left-firefox: 22em;
|
|
|
|
--position-top-chrome: 5.5em;
|
|
|
|
--position-left-chrome: 18em;
|
|
|
|
--position-top-safari: 100px;
|
|
|
|
--position-left-safari-1280: 53em;
|
|
|
|
--position-left-safari-1440: 58em;
|
|
|
|
--position-left-safari-1680: 65em;
|
2019-03-26 00:44:55 +08:00
|
|
|
--position-left-safari-1920: 68em;
|
2019-03-20 01:51:21 +08:00
|
|
|
--arrow-top: -65px;
|
|
|
|
--arrow-left: -20px;
|
|
|
|
--arrow-top-edge: -2.5rem;
|
|
|
|
--arrow-left-edge: -21rem;
|
2019-09-17 23:07:31 +08:00
|
|
|
--rtl-hint-top: 15rem;
|
2019-03-20 01:51:21 +08:00
|
|
|
}
|
|
|
|
|
2018-06-21 09:56:45 +08:00
|
|
|
@mixin arrowIconStyle() {
|
|
|
|
&:after {
|
2019-03-20 01:51:21 +08:00
|
|
|
top: var(--arrow-top);
|
|
|
|
left: var(--arrow-left);
|
2019-05-14 21:15:54 +08:00
|
|
|
right: auto;
|
2018-06-21 09:56:45 +08:00
|
|
|
font-size: 20px;
|
|
|
|
display: block;
|
|
|
|
font-family: 'bbb-icons';
|
|
|
|
content: "\E906";
|
|
|
|
position: relative;
|
2019-03-05 10:46:37 +08:00
|
|
|
|
2019-05-14 21:15:54 +08:00
|
|
|
[dir="rtl"] & {
|
|
|
|
left: auto;
|
|
|
|
right: var(--arrow-left);
|
|
|
|
}
|
|
|
|
|
2019-04-11 23:04:10 +08:00
|
|
|
:global(.animationsEnabled) & {
|
2019-03-05 10:46:37 +08:00
|
|
|
animation: bounce 2s infinite;
|
|
|
|
}
|
2018-06-21 09:56:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
:global(.browser-edge) &:after {
|
2019-03-20 01:51:21 +08:00
|
|
|
top: var(--arrow-top-edge);
|
|
|
|
left: var(--arrow-left-edge);
|
2019-05-14 21:15:54 +08:00
|
|
|
right: auto;
|
2018-06-21 09:56:45 +08:00
|
|
|
font-size: 20px;
|
2019-04-11 23:04:10 +08:00
|
|
|
:global(.animationsEnabled) & {
|
2019-03-20 01:51:21 +08:00
|
|
|
animation: bounceRotate 2s infinite;
|
|
|
|
}
|
2019-05-14 21:15:54 +08:00
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
left: auto;
|
|
|
|
right: var(--arrow-left-edge);
|
|
|
|
}
|
2018-06-21 09:56:45 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-17 23:07:31 +08:00
|
|
|
@mixin useRTLPosition() {
|
|
|
|
right: none;
|
|
|
|
left: none;
|
|
|
|
top: var(--rtl-hint-top);
|
|
|
|
}
|
|
|
|
|
2018-06-22 00:33:40 +08:00
|
|
|
@mixin positionHint() {
|
|
|
|
:global(.browser-edge) & {
|
2019-03-20 01:51:21 +08:00
|
|
|
left: var(--position-left-edge);
|
2019-05-14 21:15:54 +08:00
|
|
|
right: auto;
|
2019-03-20 01:51:21 +08:00
|
|
|
bottom: var(--position-bottom-edge);
|
2019-05-14 21:15:54 +08:00
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
left: auto;
|
|
|
|
right: var(--position-left-edge);
|
|
|
|
}
|
2018-06-22 00:33:40 +08:00
|
|
|
}
|
|
|
|
:global(.browser-firefox) & {
|
2019-03-20 01:51:21 +08:00
|
|
|
top: var(--position-top-firefox);
|
|
|
|
left: var(--position-left-firefox);
|
2019-05-14 21:15:54 +08:00
|
|
|
right: auto;
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
2019-09-17 23:07:31 +08:00
|
|
|
@include useRTLPosition();
|
2019-05-14 21:15:54 +08:00
|
|
|
}
|
2018-06-22 00:33:40 +08:00
|
|
|
}
|
|
|
|
:global(.browser-chrome) & {
|
2019-03-20 01:51:21 +08:00
|
|
|
top: var(--position-top-chrome);
|
|
|
|
left: var(--position-left-chrome);
|
2019-05-14 21:15:54 +08:00
|
|
|
right: auto;
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
2019-09-17 23:07:31 +08:00
|
|
|
@include useRTLPosition();
|
2019-05-14 21:15:54 +08:00
|
|
|
}
|
2018-06-22 00:33:40 +08:00
|
|
|
}
|
|
|
|
:global(.browser-safari) & {
|
2019-03-20 01:51:21 +08:00
|
|
|
top: var(--position-top-safari);
|
|
|
|
@include mq($safari1280) {
|
|
|
|
left: var(--position-left-safari-1280);
|
2019-05-14 21:15:54 +08:00
|
|
|
right: auto;
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
left: auto;
|
|
|
|
right: var(--position-left-safari-1280);
|
|
|
|
}
|
2019-03-20 01:51:21 +08:00
|
|
|
}
|
|
|
|
@include mq($safari1440) {
|
|
|
|
left: var(--position-left-safari-1440);
|
2019-05-14 21:15:54 +08:00
|
|
|
right: auto;
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
right: var(--position-left-safari-1440);
|
|
|
|
left: auto;
|
|
|
|
}
|
2019-03-20 01:51:21 +08:00
|
|
|
}
|
|
|
|
@include mq($safari1680) {
|
|
|
|
left: var(--position-left-safari-1680);
|
2019-05-14 21:15:54 +08:00
|
|
|
right: auto;
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
right: var(--position-left-safari-1680);
|
|
|
|
left: auto;
|
|
|
|
}
|
2019-03-20 01:51:21 +08:00
|
|
|
}
|
2019-03-26 00:44:55 +08:00
|
|
|
@include mq($safari1920) {
|
|
|
|
left: var(--position-left-safari-1920);
|
2019-05-14 21:15:54 +08:00
|
|
|
right: auto;
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
right: var(--position-left-safari-1920);
|
|
|
|
left: auto;
|
|
|
|
}
|
2019-03-26 00:44:55 +08:00
|
|
|
}
|
2018-06-22 00:33:40 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-09 02:41:15 +08:00
|
|
|
.overlay {
|
|
|
|
position: fixed;
|
|
|
|
z-index: 1002;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
background-color: rgba(0, 0, 0, .85);
|
2019-03-05 10:46:37 +08:00
|
|
|
|
2019-04-11 23:04:10 +08:00
|
|
|
:global(.animationsEnabled) & {
|
2019-03-05 10:46:37 +08:00
|
|
|
animation: fade-in .5s ease-in;
|
|
|
|
}
|
2017-11-09 02:41:15 +08:00
|
|
|
}
|
|
|
|
|
2019-03-20 01:51:21 +08:00
|
|
|
.content {
|
2019-05-14 22:30:06 +08:00
|
|
|
color: var(--color-black);
|
2019-03-20 01:51:21 +08:00
|
|
|
}
|
|
|
|
|
2017-11-09 02:41:15 +08:00
|
|
|
.hint {
|
2018-06-22 00:33:40 +08:00
|
|
|
@include positionHint();
|
2019-03-20 01:51:21 +08:00
|
|
|
background: none;
|
|
|
|
box-shadow: none;
|
2017-11-17 19:52:48 +08:00
|
|
|
position: absolute;
|
2017-11-09 02:41:15 +08:00
|
|
|
color: #fff;
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: 400;
|
2019-05-14 21:15:54 +08:00
|
|
|
padding: 0 0 0 var(--jumbo-padding-x);
|
2017-11-09 02:41:15 +08:00
|
|
|
line-height: 18px;
|
2019-03-20 01:51:21 +08:00
|
|
|
width: 340px;
|
2017-11-09 02:41:15 +08:00
|
|
|
|
2019-05-14 21:15:54 +08:00
|
|
|
[dir="rtl"] & {
|
2019-09-17 23:07:31 +08:00
|
|
|
padding: 0 var(--jumbo-padding-x) 0 0;
|
2019-05-14 21:15:54 +08:00
|
|
|
}
|
|
|
|
|
2017-11-09 02:41:15 +08:00
|
|
|
small {
|
|
|
|
display: block;
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 14px;
|
|
|
|
margin-top: 3px;
|
|
|
|
opacity: .6;
|
|
|
|
}
|
|
|
|
|
2018-06-21 09:56:45 +08:00
|
|
|
@include arrowIconStyle();
|
2017-11-09 02:41:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@-webkit-keyframes bounce {
|
2018-10-19 04:37:14 +08:00
|
|
|
0%,
|
|
|
|
20%,
|
|
|
|
50%,
|
|
|
|
80%,
|
|
|
|
100% {
|
2017-11-09 02:41:15 +08:00
|
|
|
-webkit-transform: translateY(0);
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
2018-10-19 04:37:14 +08:00
|
|
|
40% {
|
2017-11-09 02:41:15 +08:00
|
|
|
-webkit-transform: translateY(10px);
|
|
|
|
transform: translateY(10px);
|
|
|
|
}
|
2018-10-19 04:37:14 +08:00
|
|
|
60% {
|
2017-11-09 02:41:15 +08:00
|
|
|
-webkit-transform: translateY(5px);
|
|
|
|
transform: translateY(5px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@-moz-keyframes bounce {
|
2018-10-19 04:37:14 +08:00
|
|
|
0%,
|
|
|
|
20%,
|
|
|
|
50%,
|
|
|
|
80%,
|
|
|
|
100% {
|
2017-11-09 02:41:15 +08:00
|
|
|
transform: translateY(0);
|
|
|
|
}
|
2018-10-19 04:37:14 +08:00
|
|
|
40% {
|
2017-11-09 02:41:15 +08:00
|
|
|
transform: translateY(10px);
|
|
|
|
}
|
2018-10-19 04:37:14 +08:00
|
|
|
60% {
|
2017-11-09 02:41:15 +08:00
|
|
|
transform: translateY(5px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes bounce {
|
2018-10-19 04:37:14 +08:00
|
|
|
0%,
|
|
|
|
20%,
|
|
|
|
50%,
|
|
|
|
80%,
|
|
|
|
100% {
|
2017-11-09 02:41:15 +08:00
|
|
|
-ms-transform: translateY(0);
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
2018-10-19 04:37:14 +08:00
|
|
|
40% {
|
2017-11-09 02:41:15 +08:00
|
|
|
-ms-transform: translateY(10px);
|
|
|
|
transform: translateY(10px);
|
|
|
|
}
|
2018-10-19 04:37:14 +08:00
|
|
|
60% {
|
2017-11-09 02:41:15 +08:00
|
|
|
-ms-transform: translateY(5px);
|
|
|
|
transform: translateY(5px);
|
|
|
|
}
|
|
|
|
}
|
2017-11-17 19:52:48 +08:00
|
|
|
|
2018-06-21 09:56:45 +08:00
|
|
|
@keyframes bounceRotate {
|
2018-10-19 04:37:14 +08:00
|
|
|
0%,
|
|
|
|
20%,
|
|
|
|
50%,
|
|
|
|
80%,
|
|
|
|
100% {
|
2018-06-21 09:56:45 +08:00
|
|
|
-ms-transform: translateY(0) rotate(180deg);
|
|
|
|
transform: translateY(0) rotate(180deg);
|
|
|
|
}
|
2018-10-19 04:37:14 +08:00
|
|
|
40% {
|
2018-06-21 09:56:45 +08:00
|
|
|
-ms-transform: translateY(10px) rotate(180deg);
|
|
|
|
transform: translateY(10px) rotate(180deg);
|
|
|
|
}
|
2018-10-19 04:37:14 +08:00
|
|
|
60% {
|
2018-06-21 09:56:45 +08:00
|
|
|
-ms-transform: translateY(5px) rotate(180deg);
|
|
|
|
transform: translateY(5px) rotate(180deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-17 19:52:48 +08:00
|
|
|
@keyframes fade-in {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2018-10-19 04:37:14 +08:00
|
|
|
100% {
|
2017-11-17 19:52:48 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|