Browse Source
Themes UI rating, modifies clearable to be set to true when only one icon is used
pull/993/head
Themes UI rating, modifies clearable to be set to true when only one icon is used
pull/993/head
9 changed files with 200 additions and 78 deletions
Split View
Diff Options
-
14RELEASE NOTES.md
-
19server/documents/modules/rating.html.eco
-
9src/definitions/modules/rating.js
-
123src/definitions/modules/rating.less
-
4src/definitions/modules/sidebar.less
-
3src/themes/_site/modules/rating.overrides
-
3src/themes/_site/modules/rating.variables
-
58src/themes/packages/default/modules/rating.overrides
-
45src/themes/packages/default/modules/rating.variables
@ -0,0 +1,3 @@ |
|||
/******************************* |
|||
Overrides |
|||
*******************************/ |
@ -0,0 +1,3 @@ |
|||
/******************************* |
|||
Overrides |
|||
*******************************/ |
58
src/themes/packages/default/modules/rating.overrides
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,45 @@ |
|||
/*------------------- |
|||
Rating |
|||
--------------------*/ |
|||
|
|||
@display: inline-block; |
|||
@margin: 0em 0.5rem 0em 0em; |
|||
@verticalAlign: middle; |
|||
|
|||
@iconHitbox: 1.2em; |
|||
@inactiveColor: rgba(0, 0, 0, 0.15); |
|||
|
|||
/*------------------- |
|||
Types |
|||
--------------------*/ |
|||
|
|||
/* Star */ |
|||
@starInactiveColor: @inactiveColor; |
|||
@starHoverColor: #FFB70A; |
|||
@starActiveColor: #FFCB08; |
|||
|
|||
/* Heart */ |
|||
@heartInactiveColor: @inactiveColor; |
|||
@heartHoverColor: #FF2733; |
|||
@heartActiveColor: #EF404A; |
|||
|
|||
/*------------------- |
|||
States |
|||
--------------------*/ |
|||
|
|||
@inactiveColor: rgba(0, 0, 0, 0.15); |
|||
@hoverColor: @textColor; |
|||
@activeColor: @darkTextColor; |
|||
|
|||
@interactiveIconOpacity: 0.5; |
|||
@interactiveHoveredIconOpacity: 1; |
|||
|
|||
/*------------------- |
|||
Variations |
|||
--------------------*/ |
|||
|
|||
@small: 14px; |
|||
@medium: 16px; |
|||
@large: 24px; |
|||
@huge: 28px; |
|||
@oversizedVerticalAlign: middle; |
Write
Preview
Loading…
Cancel
Save