/
githubmirror
/
Semantic-UI
Обзор
Документация
Войти
/
githubmirror
/
Semantic-UI
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
dist/components/rating.css
257 строк
20 KB
jlukic
Rebuild with gulp4
06 окт 2022, 17:21
06 окт 2022, 17:21
0300061
Код
Авторство
О чём код?
/*! * # Semantic UI 2.5.0 - Rating * http://github.com/semantic-org/semantic-ui/ * * * Released under the MIT license * http://opensource.org/licenses/MIT * */ /******************************* Rating *******************************/ .ui.rating { 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; flex: 1 0 auto; cursor: pointer; width: 1.25em; height: auto; 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.78571429rem; } .ui.tiny.rating { font-size: 0.85714286rem; } .ui.small.rating { font-size: 0.92857143rem; } .ui.rating { font-size: 1rem; } .ui.large.rating { font-size: 1.14285714rem; } .ui.huge.rating { font-size: 1.42857143rem; } .ui.massive.rating { font-size: 2rem; } /******************************* Theme Overrides *******************************/ @font-face { font-family: 'Rating'; src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMggjCBsAAAC8AAAAYGNtYXCj2pm8AAABHAAAAKRnYXNwAAAAEAAAAcAAAAAIZ2x5ZlJbXMYAAAHIAAARnGhlYWQBGAe5AAATZAAAADZoaGVhA+IB/QAAE5wA … [Строка слишком длинная. Вы можете скачать файл] font-weight: normal; font-style: normal; } .ui.rating .icon { font-family: 'Rating'; line-height: 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; font-weight: normal; font-style: normal; text-align: center; } /* Empty Star */ .ui.rating .icon:before { content: '\f005'; } /* Active Star */ .ui.rating .active.icon:before { content: '\f005'; } /*------------------- Star --------------------*/ /* Unfilled Star */ .ui.star.rating .icon:before { content: '\f005'; } /* Active Star */ .ui.star.rating .active.icon:before { content: '\f005'; } /* Partial */ .ui.star.rating .partial.icon:before { content: '\f006'; } .ui.star.rating .partial.icon { content: '\f005'; } /*------------------- Heart --------------------*/ /* Empty Heart .ui.heart.rating .icon:before { content: '\f08a'; } */ .ui.heart.rating .icon:before { content: '\f004'; } /* Active */ .ui.heart.rating .active.icon:before { content: '\f004'; } /******************************* Site Overrides *******************************/