66 lines
932 B
SCSS
66 lines
932 B
SCSS
.rating {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
font-size: 40px;
|
|
line-height: 0.75;
|
|
transition: opacity 0.3s ease 0s;
|
|
}
|
|
|
|
.rating.rating_sending {
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.rating__active {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 0;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.rating__item {
|
|
flex: 0 0 20%;
|
|
height: 100%;
|
|
opacity: 0;
|
|
}
|
|
|
|
.rating.rating_set .rating__active,
|
|
.rating.rating_set .rating__item {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.rating__body {
|
|
position: relative;
|
|
}
|
|
|
|
.rating__body::before {
|
|
display: block;
|
|
content: '★★★★★';
|
|
}
|
|
|
|
.rating__active::before {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
color: #ffd300;
|
|
content: '★★★★★';
|
|
}
|
|
|
|
.rating__items {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.rating__value {
|
|
padding: 0 0 0 10px;
|
|
font-size: 50%;
|
|
line-height: 1;
|
|
}
|