bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/audio/permissions-overlay/styles.scss

194 lines
3.1 KiB
SCSS
Raw Normal View History

2019-03-20 01:51:21 +08:00
:root {
--position-top-firefox: 8em;
--position-left-firefox: 22em;
--position-top-chrome: 5.5em;
--position-left-chrome: 18em;
2019-09-19 02:02:29 +08:00
--position-top-safari: 150px;
2019-03-20 01:51:21 +08:00
--arrow-top: -65px;
--arrow-left: -20px;
--rtl-hint-top: 15rem;
2019-03-20 01:51:21 +08:00
}
@mixin arrowIconStyle() {
&:after {
2019-03-20 01:51:21 +08:00
top: var(--arrow-top);
left: var(--arrow-left);
right: auto;
font-size: 20px;
display: block;
font-family: 'bbb-icons';
content: "\E906";
position: relative;
[dir="rtl"] & {
left: auto;
right: var(--arrow-left);
}
:global(.animationsEnabled) & {
animation: bounce 2s infinite;
}
}
}
@mixin useRTLPosition() {
right: none;
left: none;
top: var(--rtl-hint-top);
}
2018-06-22 00:33:40 +08:00
@mixin positionHint() {
:global(.browser-firefox) & {
2019-03-20 01:51:21 +08:00
top: var(--position-top-firefox);
left: var(--position-left-firefox);
right: auto;
[dir="rtl"] & {
@include useRTLPosition();
}
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);
right: auto;
[dir="rtl"] & {
@include useRTLPosition();
}
2018-06-22 00:33:40 +08:00
}
:global(.browser-safari) & {
2019-03-20 01:51:21 +08:00
top: var(--position-top-safari);
2019-09-19 02:02:29 +08:00
left:0;
right:0;
margin-left: auto;
margin-right: auto;
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);
:global(.animationsEnabled) & {
animation: fade-in .5s ease-in;
}
2017-11-09 02:41:15 +08:00
}
2019-03-20 01:51:21 +08:00
.content {
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-09-19 02:02:29 +08:00
position: absolute;
2019-03-20 01:51:21 +08:00
background: none;
box-shadow: none;
2017-11-09 02:41:15 +08:00
color: #fff;
font-size: 16px;
font-weight: 400;
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
[dir="rtl"] & {
padding: 0 var(--jumbo-padding-x) 0 0;
}
2017-11-09 02:41:15 +08:00
small {
display: block;
font-size: 12px;
line-height: 14px;
margin-top: 3px;
opacity: .6;
}
@include arrowIconStyle();
2017-11-09 02:41:15 +08:00
}
@-webkit-keyframes bounce {
0%,
20%,
50%,
80%,
100% {
2017-11-09 02:41:15 +08:00
-webkit-transform: translateY(0);
transform: translateY(0);
}
40% {
2017-11-09 02:41:15 +08:00
-webkit-transform: translateY(10px);
transform: translateY(10px);
}
60% {
2017-11-09 02:41:15 +08:00
-webkit-transform: translateY(5px);
transform: translateY(5px);
}
}
@-moz-keyframes bounce {
0%,
20%,
50%,
80%,
100% {
2017-11-09 02:41:15 +08:00
transform: translateY(0);
}
40% {
2017-11-09 02:41:15 +08:00
transform: translateY(10px);
}
60% {
2017-11-09 02:41:15 +08:00
transform: translateY(5px);
}
}
@keyframes bounce {
0%,
20%,
50%,
80%,
100% {
2017-11-09 02:41:15 +08:00
-ms-transform: translateY(0);
transform: translateY(0);
}
40% {
2017-11-09 02:41:15 +08:00
-ms-transform: translateY(10px);
transform: translateY(10px);
}
60% {
2017-11-09 02:41:15 +08:00
-ms-transform: translateY(5px);
transform: translateY(5px);
}
}
2017-11-17 19:52:48 +08:00
@keyframes bounceRotate {
0%,
20%,
50%,
80%,
100% {
-ms-transform: translateY(0) rotate(180deg);
transform: translateY(0) rotate(180deg);
}
40% {
-ms-transform: translateY(10px) rotate(180deg);
transform: translateY(10px) rotate(180deg);
}
60% {
-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;
}
100% {
2017-11-17 19:52:48 +08:00
opacity: 1;
}
}