bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/common/button/button-emoji/styles.js

92 lines
1.5 KiB
JavaScript
Raw Normal View History

2021-11-10 19:55:16 +08:00
import styled from 'styled-components';
2022-02-15 22:51:51 +08:00
import Icon from '/imports/ui/components/common/icon/component';
2021-12-10 22:55:37 +08:00
import {
btnDefaultColor,
btnDefaultBg,
colorBackground,
} from '/imports/ui/stylesheets/styled-components/palette';
2021-11-10 19:55:16 +08:00
import { btnSpacing } from '/imports/ui/stylesheets/styled-components/general';
const EmojiButtonIcon = styled(Icon)`
position: absolute;
top: 0;
height: 40%;
2021-11-10 19:55:16 +08:00
left: 0;
width: 75%;
margin-left: 14%;
2021-11-10 19:55:16 +08:00
font-size: 50%;
2022-02-22 04:40:00 +08:00
margin-top: 30%;
2021-11-10 19:55:16 +08:00
color: ${btnDefaultColor};
`;
const Label = styled.span`
& + i,
& + button {
margin: 0 0 0 ${btnSpacing};
[dir="rtl"] & {
margin: 0 ${btnSpacing} 0 0;
}
}
&:hover {
opacity: .5;
}
`;
const EmojiButton = styled.button`
position: absolute;
border-radius: 50%;
width: 1em;
height: 1em;
2021-12-10 22:55:37 +08:00
right: -.2em;
2021-11-10 19:55:16 +08:00
bottom: 0;
background-color: ${btnDefaultBg};
overflow: hidden;
z-index: 2;
border: none;
2023-04-21 02:56:00 +08:00
padding: 0;
2021-11-10 19:55:16 +08:00
2022-05-13 21:42:19 +08:00
[dir="rtl"] & {
right: initial;
left: -.2em;
}
2021-11-10 19:55:16 +08:00
&:hover {
transform: scale(1.5);
transition-duration: 150ms;
}
& > i {
position: absolute;
top: 0;
height: 60%;
left: 0;
margin-left: 25%;
font-size: 50%;
margin-top: 40%;
color: ${btnDefaultColor};
}
`;
2021-12-10 22:55:37 +08:00
const EmojiButtonSpace = styled.div`
position: absolute;
height: 1.4em;
width: 1.4em;
background-color: ${colorBackground};
right: -.4em;
bottom: -.2em;
border-radius: 50%;
2022-05-13 21:42:19 +08:00
[dir="rtl"] & {
right: initial;
left: -.4em;
}
2021-12-10 22:55:37 +08:00
`;
2021-11-10 19:55:16 +08:00
export default {
EmojiButtonIcon,
Label,
EmojiButton,
2021-12-10 22:55:37 +08:00
EmojiButtonSpace,
2021-11-10 19:55:16 +08:00
};