You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

194 lines
3.8 KiB

/*!
* # Semantic UI 2.1.6 - Rating
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2015 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*******************************
Rating
*******************************/
.ui.rating {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
white-space: nowrap;
vertical-align: baseline;
}
.ui.rating:last-child {
margin-right: 0em;
}
/* Icon */
.ui.rating .icon {
padding: 0em;
margin: 0em;
text-align: center;
font-weight: normal;
font-style: normal;
-webkit-box-flex: 1;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
cursor: pointer;
width: 1.25em;
height: auto;
-webkit-transition: opacity 0.1s ease, background 0.1s ease, text-shadow 0.1s ease, color 0.1s ease;
transition: opacity 0.1s ease, background 0.1s ease, text-shadow 0.1s ease, color 0.1s ease;
}
/*******************************
Types
*******************************/
/*-------------------
Standard
--------------------*/
/* Inactive Icon */
.ui.rating .icon {
background: transparent;
color: rgba(0, 0, 0, 0.15);
}
/* Active Icon */
.ui.rating .active.icon {
background: transparent;
color: rgba(0, 0, 0, 0.85);
}
/* Selected Icon */
.ui.rating .icon.selected,
.ui.rating .icon.selected.active {
background: transparent;
color: rgba(0, 0, 0, 0.87);
}
/*-------------------
Star
--------------------*/
/* Inactive */
.ui.star.rating .icon {
width: 1.25em;
height: auto;
background: transparent;
color: rgba(0, 0, 0, 0.15);
text-shadow: none;
}
/* Active Star */
.ui.star.rating .active.icon {
background: transparent !important;
color: #FFE623 !important;
text-shadow: 0px -1px 0px #DDC507, -1px 0px 0px #DDC507, 0px 1px 0px #DDC507, 1px 0px 0px #DDC507 !important;
}
/* Selected Star */
.ui.star.rating .icon.selected,
.ui.star.rating .icon.selected.active {
background: transparent !important;
color: #FFCC00 !important;
text-shadow: 0px -1px 0px #E6A200, -1px 0px 0px #E6A200, 0px 1px 0px #E6A200, 1px 0px 0px #E6A200 !important;
}
/*-------------------
Heart
--------------------*/
.ui.heart.rating .icon {
width: 1.4em;
height: auto;
background: transparent;
color: rgba(0, 0, 0, 0.15);
text-shadow: none !important;
}
/* Active Heart */
.ui.heart.rating .active.icon {
background: transparent !important;
color: #FF6D75 !important;
text-shadow: 0px -1px 0px #CD0707, -1px 0px 0px #CD0707, 0px 1px 0px #CD0707, 1px 0px 0px #CD0707 !important;
}
/* Selected Heart */
.ui.heart.rating .icon.selected,
.ui.heart.rating .icon.selected.active {
background: transparent !important;
color: #FF3000 !important;
text-shadow: 0px -1px 0px #AA0101, -1px 0px 0px #AA0101, 0px 1px 0px #AA0101, 1px 0px 0px #AA0101 !important;
}
/*******************************
States
*******************************/
/*-------------------
Disabled
--------------------*/
/* disabled rating */
.ui.disabled.rating .icon {
cursor: default;
}
/*-------------------
User Interactive
--------------------*/
/* Selected Rating */
.ui.rating.selected .active.icon {
opacity: 1;
}
.ui.rating.selected .icon.selected,
.ui.rating .icon.selected {
opacity: 1;
}
/*******************************
Variations
*******************************/
.ui.mini.rating {
font-size: 0.69230769rem;
}
.ui.tiny.rating {
font-size: 0.84615385rem;
}
.ui.small.rating {
font-size: 0.92307692rem;
}
.ui.rating {
font-size: 1rem;
}
.ui.large.rating {
font-size: 1.15384615rem;
}
.ui.huge.rating {
font-size: 1.46153846rem;
}
.ui.massive.rating {
font-size: 2rem;
}
/*******************************
Site Overrides
*******************************/