bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/actions-bar/reactions-button/styles.js

103 lines
2.0 KiB
JavaScript
Raw Normal View History

2023-06-14 01:51:42 +08:00
import styled from 'styled-components';
import { colorWhite } from '/imports/ui/stylesheets/styled-components/palette';
import Button from '/imports/ui/components/common/button/component';
2023-06-14 01:51:42 +08:00
import {
2023-08-09 02:28:05 +08:00
colorGrayDark,
2023-06-14 01:51:42 +08:00
colorGrayLightest,
btnPrimaryColor,
2023-08-09 02:28:05 +08:00
btnPrimaryActiveBg,
2023-06-14 01:51:42 +08:00
} from '/imports/ui/stylesheets/styled-components/palette';
const RaiseHandButton = styled(Button)`
${({ ghost }) => ghost && `
& > span {
box-shadow: none;
background-color: transparent !important;
border-color: ${colorWhite} !important;
}
`}
`;
2023-06-27 22:08:49 +08:00
const ReactionsDropdown = styled.div`
position: relative;
2023-06-14 01:51:42 +08:00
`;
const ButtonWrapper = styled.div`
2023-08-09 02:28:05 +08:00
border: 1px solid transparent;
2023-06-14 01:51:42 +08:00
cursor: pointer;
height: 2.5rem;
display: flex;
align-items: center;
border-radius: 50%;
margin: 0 .5rem;
2023-08-09 02:28:05 +08:00
&:focus {
background-color: ${colorGrayDark};
2023-06-14 01:51:42 +08:00
}
& > button {
cursor: pointer;
flex: auto;
}
& > * > span {
2023-08-09 02:28:05 +08:00
padding: 4px;
2023-06-14 01:51:42 +08:00
}
2023-07-19 22:36:34 +08:00
${({ active }) => active && `
color: ${btnPrimaryColor};
2023-08-09 02:28:05 +08:00
background-color: ${btnPrimaryActiveBg};
2023-07-19 22:36:34 +08:00
&:hover{
filter: brightness(90%);
color: ${btnPrimaryColor};
2023-08-09 02:28:05 +08:00
background-color: ${btnPrimaryActiveBg} !important;
2023-07-19 22:36:34 +08:00
}
`}
2023-06-14 01:51:42 +08:00
`;
const RaiseHandButtonWrapper = styled(ButtonWrapper)`
width: 2.5rem;
2023-06-14 01:51:42 +08:00
border-radius: 1.7rem;
${({ isMobile }) => !isMobile && `
border: 1px solid ${colorGrayLightest};
padding: 1rem 0.5rem;
width: auto;
`}
2023-06-14 01:51:42 +08:00
${({ active }) => active && `
color: ${btnPrimaryColor};
2023-08-09 02:28:05 +08:00
background-color: ${btnPrimaryActiveBg};
2023-06-14 01:51:42 +08:00
&:hover{
filter: brightness(90%);
color: ${btnPrimaryColor};
2023-08-09 02:28:05 +08:00
background-color: ${btnPrimaryActiveBg} !important;
2023-06-14 01:51:42 +08:00
}
`}
`;
2024-04-24 01:56:23 +08:00
const ToggleButtonWrapper = styled(ButtonWrapper)`
width: auto;
padding: 1rem 0.5rem;
cursor: inherit;
& > div {
margin-right: 0.5rem;
filter: grayscale(100%);
}
&:hover {
background-color: transparent !important;
}
`;
2023-06-14 01:51:42 +08:00
export default {
RaiseHandButton,
ReactionsDropdown,
2023-06-14 01:51:42 +08:00
ButtonWrapper,
RaiseHandButtonWrapper,
2024-04-24 01:56:23 +08:00
ToggleButtonWrapper,
2023-06-14 01:51:42 +08:00
};