bigbluebutton-Github/bigbluebutton-html5/imports/ui/stylesheets/styled-components/globalStyles.js

170 lines
3.2 KiB
JavaScript
Raw Normal View History

2021-11-06 03:59:01 +08:00
import { createGlobalStyle } from 'styled-components';
import { smallOnly } from '/imports/ui/stylesheets/styled-components/breakpoints';
2021-11-11 04:31:00 +08:00
import {
smPaddingX,
borderRadius,
borderSize,
borderSizeSmall,
} from '/imports/ui/stylesheets/styled-components/general';
import {
dropdownBg,
colorText,
colorWhite,
colorGrayLighter,
colorOverlay,
2021-11-11 04:31:00 +08:00
} from '/imports/ui/stylesheets/styled-components/palette';
2021-11-06 03:59:01 +08:00
const GlobalStyle = createGlobalStyle`
2021-11-11 04:31:00 +08:00
// BBBMenu
2021-11-06 03:59:01 +08:00
@media ${smallOnly} {
.MuiPaper-root.MuiMenu-paper.MuiPopover-paper {
top: 0 !important;
left: 0 !important;
bottom: 0 !important;
right: 0 !important;
max-width: none;
}
}
.MuiList-padding {
padding: 0 !important;
}
2021-11-06 03:59:01 +08:00
.MuiPaper-root {
background-color: ${dropdownBg};
border-radius: ${borderRadius};
border: 0;
z-index: 9999;
max-width: 22rem;
}
2021-11-11 04:31:00 +08:00
// modal
@keyframes fade-in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.permissionsOverlay {
position: fixed;
z-index: 1002;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(0, 0, 0, .85);
animation: fade-in .5s ease-in;
}
2021-11-11 03:10:35 +08:00
.modalOverlay {
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: ${colorOverlay};
2021-11-11 03:10:35 +08:00
}
.fullscreenModalOverlay {
z-index: 1000;
background: #fff;
display: flex;
align-items: center;
justify-content: center;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
2021-11-11 04:31:00 +08:00
// toast
.toastClass {
position: relative;
margin-bottom: ${smPaddingX};
padding: ${smPaddingX};
border-radius: ${borderRadius};
box-shadow: 0 ${borderSizeSmall} 10px 0 rgba(0, 0, 0, 0.1), 0 ${borderSize} 15px 0 rgba(0, 0, 0, 0.05);
display: flex;
justify-content: space-between;
color: ${colorText};
-webkit-animation-duration: 0.75s;
animation-duration: 0.75s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
max-width: 20rem !important;
min-width: 20rem !important;
width: 20rem !important;
cursor: pointer;
background-color: ${colorWhite};
&:hover,
&:focus {
background-color: #EEE;
}
}
.toastBodyClass {
margin: auto auto;
flex: 1;
background-color: inherit;
max-width: 17.75rem !important;
}
@keyframes track-progress {
0% {
width: 100%;
}
100% {
width: 0;
}
}
.toastProgressClass {
position: absolute;
bottom: 0;
left: 0;
right: auto;
width: 0;
height: 5px;
z-index: 9999;
animation: track-progress linear 1;
background-color: ${colorGrayLighter};
border-radius: ${borderRadius};
[dir="rtl"] & {
left: auto;
right: 0;
}
}
2021-11-11 19:47:39 +08:00
.actionToast {
background-color: ${colorWhite};
display: flex;
padding: ${smPaddingX};
border-radius: ${borderRadius};
2021-11-11 19:47:39 +08:00
i.close {
left: none !important;
}
}
2022-02-25 01:00:27 +08:00
.raiseHandToast {
background-color: ${colorWhite};
padding: 1rem;
i.close {
left: none !important;
}
}
2021-11-06 03:59:01 +08:00
`;
2021-11-11 04:31:00 +08:00
2021-11-06 03:59:01 +08:00
export default GlobalStyle;