bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/meeting-ended/rating/styles.js

77 lines
1.5 KiB
JavaScript
Raw Normal View History

2021-10-30 02:51:42 +08:00
import styled from 'styled-components';
import { colorPrimary } from '/imports/ui/stylesheets/styled-components/palette';
import { smallOnly } from '/imports/ui/stylesheets/styled-components/breakpoints';
2018-05-09 00:30:00 +08:00
2021-10-30 02:51:42 +08:00
const StarRating = styled.div`
2018-05-09 00:30:00 +08:00
font-family: 'bbb-icons' !important;
2021-10-30 02:51:42 +08:00
& > fieldset {
2018-05-09 00:30:00 +08:00
border: none;
display: inline-block;
&:not(:checked) {
2021-10-30 02:51:42 +08:00
& > input {
2018-05-09 00:30:00 +08:00
position: absolute;
top: -9999px;
clip: rect(0,0,0,0);
}
2021-10-30 02:51:42 +08:00
& > label {
2018-05-09 00:30:00 +08:00
float: right;
width: 1em;
padding: 0 .05em 0 .1rem;
2018-05-09 00:30:00 +08:00
overflow: hidden;
white-space: nowrap;
cursor: pointer;
font-size: 2.5rem;
2018-05-09 00:30:00 +08:00
color: black;
font-weight: 100;
[dir="rtl"] & {
padding: 0 .1rem 0 .05em;
}
2021-10-30 02:51:42 +08:00
@media ${smallOnly} {
2018-05-09 00:30:00 +08:00
font-size: 2rem;
}
2018-05-09 00:30:00 +08:00
&:before {
2021-10-30 02:51:42 +08:00
content: '\\e951';
2018-05-09 00:30:00 +08:00
}
&:hover,
&:hover ~ label {
2021-10-30 02:51:42 +08:00
color: ${colorPrimary};
text-shadow: 0 0 3px ${colorPrimary};
2018-05-09 00:30:00 +08:00
&:before {
2021-10-30 02:51:42 +08:00
content: '\\e951';
2018-05-09 00:30:00 +08:00
}
}
}
}
2021-10-30 02:51:42 +08:00
& > input:checked {
2018-05-09 00:30:00 +08:00
& ~ label {
&:before {
2021-10-30 02:51:42 +08:00
content: '\\e952';
color: ${colorPrimary};
2018-05-09 00:30:00 +08:00
}
}
}
2021-10-30 02:51:42 +08:00
& > label:active {
2018-05-09 00:30:00 +08:00
position: relative;
top: 2px;
}
}
2021-10-30 02:51:42 +08:00
`;
2021-10-30 02:51:42 +08:00
const Legend = styled.legend`
font-family: Arial, sans-serif;
font-weight: normal;
2021-10-30 02:51:42 +08:00
`;
export default {
StarRating,
Legend,
};