bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/app/styles.js

97 lines
2.1 KiB
JavaScript
Raw Normal View History

2021-10-28 00:43:51 +08:00
import styled from 'styled-components';
import { barsPadding } from '/imports/ui/stylesheets/styled-components/general';
import { FlexColumn } from '/imports/ui/stylesheets/styled-components/placeholders';
2022-04-09 03:05:29 +08:00
import { colorBackground } from '/imports/ui/stylesheets/styled-components/palette';
2021-10-28 00:43:51 +08:00
const CaptionsWrapper = styled.div`
height: auto;
bottom: 100px;
left: 20%;
z-index: 5;
`;
const ActionsBar = styled.section`
flex: 1;
padding: ${barsPadding};
2022-04-09 03:05:29 +08:00
background-color: ${colorBackground};
2021-10-28 00:43:51 +08:00
position: relative;
order: 3;
`;
const Layout = styled(FlexColumn)``;
2021-10-28 00:43:51 +08:00
2022-04-09 03:05:29 +08:00
const DtfInvert = `
body {
background-color: var(--darkreader-neutral-background) !important;
}
header[id="Navbar"] {
background-color: var(--darkreader-neutral-background) !important;
}
section[id="ActionsBar"] {
background-color: var(--darkreader-neutral-background) !important;
}
select {
border: 0.1rem solid #FFFFFF !important;
}
select[data-test="skipSlide"] {
border: unset !important;
}
div[data-test="presentationContainer"] {
background-color: var(--darkreader-neutral-background) !important;
}
select {
border-top: unset !important;
border-right: unset !important;
border-left: unset !important;
}
.tl-container {
background-color: var(--tl-background) !important;
}
2023-02-10 21:37:29 +08:00
#TD-Tools button, #TD-TopPanel-Undo, #TD-TopPanel-Redo, #TD-Styles {
border-color: transparent !important;
}
[id="TD-StylesMenu"],
[id="TD-Styles-Color-Container"],
div[data-test="brandingArea"],
2022-04-09 03:05:29 +08:00
#connectionBars > div
`;
const DtfCss = `
[id="colorPicker"],
path,
svg
`;
const DtfImages = `
svg
2022-04-09 03:05:29 +08:00
`;
2023-03-18 01:51:39 +08:00
const TextMeasure = styled.pre`
white-space: pre;
width: auto;
border: 1px solid red;
padding: 4px;
margin: 0px;
letter-spacing: -0.03em;
opacity: 0;
position: absolute;
top: -500px;
left: 0px;
z-index: 9999;
pointer-events: none;
user-select: none;
alignment-baseline: mathematical;
dominant-baseline: mathematical;
font-family: "Source Code Pro";
`;
2021-10-28 00:43:51 +08:00
export default {
CaptionsWrapper,
ActionsBar,
Layout,
2022-04-09 03:05:29 +08:00
DtfInvert,
DtfCss,
DtfImages,
2023-03-18 01:51:39 +08:00
TextMeasure,
2021-10-28 00:43:51 +08:00
};