rating.variables
2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*******************************
Rating
*******************************/
@margin: 0em @relativeMini;
@whiteSpace: nowrap;
@verticalAlign: baseline;
@iconCursor: pointer;
@iconWidth: 1.25em;
@iconHeight: auto;
@iconTransition:
opacity @defaultDuration @defaultEasing,
background @defaultDuration @defaultEasing,
text-shadow @defaultDuration @defaultEasing,
color @defaultDuration @defaultEasing
;
/*-------------------
Types
--------------------*/
/* Standard */
@inactiveBackground: transparent;
@inactiveColor: rgba(0, 0, 0, 0.15);
@selectedBackground: @inactiveBackground;
@selectedColor: @textColor;
@activeBackground: @inactiveBackground;
@activeColor: @darkTextColor;
/* Star */
@starIconWidth: @iconWidth;
@starIconHeight: @iconHeight;
@starShadowWidth: 1px;
@starInactiveBackground: @inactiveBackground;
@starInactiveColor: @inactiveColor;
@starInactiveTextShadow: none;
@starActiveBackground: @activeBackground;
@starActiveColor: #FFE623;
@starActiveShadowColor: #DDC507;
@starActiveTextShadow:
0px -@starShadowWidth 0px @starActiveShadowColor,
-@starShadowWidth 0px 0px @starActiveShadowColor,
0px @starShadowWidth 0px @starActiveShadowColor,
@starShadowWidth 0px 0px @starActiveShadowColor
;
@starSelectedBackground: @selectedBackground;
@starSelectedColor: #FFCC00;
@starSelectedShadowColor: #E6A200;
@starSelectedTextShadow:
0px -@starShadowWidth 0px @starSelectedShadowColor,
-@starShadowWidth 0px 0px @starSelectedShadowColor,
0px @starShadowWidth 0px @starSelectedShadowColor,
@starShadowWidth 0px 0px @starSelectedShadowColor
;
/* Heart */
@heartIconWidth: 1.4em;
@heartIconHeight: @iconHeight;
@heartShadowWidth: 1px;
@heartInactiveBackground: @inactiveBackground;
@heartInactiveColor: @inactiveColor;
@heartInactiveTextShadow: none;
@heartActiveBackground: @activeBackground;
@heartActiveColor: #FF6D75;
@heartActiveShadowColor: #CD0707;
@heartActiveTextShadow:
0px -@heartShadowWidth 0px @heartActiveShadowColor,
-@heartShadowWidth 0px 0px @heartActiveShadowColor,
0px @heartShadowWidth 0px @heartActiveShadowColor,
@heartShadowWidth 0px 0px @heartActiveShadowColor
;
@heartSelectedBackground: @selectedBackground;
@heartSelectedColor: #FF3000;
@heartSelectedShadowColor: #AA0101;
@heartSelectedTextShadow:
0px -@heartShadowWidth 0px @heartSelectedShadowColor,
-@heartShadowWidth 0px 0px @heartSelectedShadowColor,
0px @heartShadowWidth 0px @heartSelectedShadowColor,
@heartShadowWidth 0px 0px @heartSelectedShadowColor
;
/*-------------------
States
--------------------*/
@interactiveActiveIconOpacity: 1;
@interactiveSelectedIconOpacity: 1;
/*-------------------
Variations
--------------------*/
@massive: 2rem;