1 | ////
|
2 | /// @module rating: 评分
|
3 | /// @tag Rating
|
4 | /// @category component
|
5 | /// @family data-entry
|
6 | /// @varPrefix $rating-
|
7 | /// @classPrefix {prefix}-rating
|
8 | /// @order {"size/text":10,"size/icon":11,"statement/normal":10,"statement/normal/underlay":100,"statement/normal/overlay":101,"statement/hover":11,"statement/hover/underlay":110,"statement/hover/overlay":111}
|
9 | ////
|
10 |
|
11 | $rating-prefix: '.' + $css-prefix + 'rating';
|
12 |
|
13 | $rating-icon-prefix: '.' + $css-prefix + 'icon';
|
14 |
|
15 |
|
16 | /// margin (l)
|
17 | /// @namespace size/text
|
18 | $rating-small-text-margin-left: $s-2 !default;
|
19 |
|
20 | /// size
|
21 | /// @namespace size/icon
|
22 | $rating-small-icon-size: $icon-xs !default;
|
23 |
|
24 | /// size
|
25 | /// @namespace size/text
|
26 | $rating-small-font-size: $font-size-caption !default;
|
27 |
|
28 | /// margin (l)
|
29 | /// @namespace size/text
|
30 | $rating-medium-text-margin-left: $s-3 !default;
|
31 |
|
32 | /// size
|
33 | /// @namespace size/icon
|
34 | $rating-medium-icon-size: $icon-s !default;
|
35 |
|
36 | /// size
|
37 | /// @namespace size/text
|
38 | $rating-medium-font-size: $font-size-body-1 !default;
|
39 |
|
40 | /// margin (l)
|
41 | /// @namespace size/text
|
42 | $rating-large-text-margin-left: $s-4 !default;
|
43 |
|
44 | /// size
|
45 | /// @namespace size/icon
|
46 | $rating-large-icon-size: $icon-m !default;
|
47 |
|
48 | /// size
|
49 | /// @namespace size/text
|
50 | $rating-large-font-size: $font-size-subhead !default;
|
51 |
|
52 | /// color
|
53 | /// @namespace statement/normal/underlay
|
54 | $rating-normal-underlay-color: $color-fill1-4 !default;
|
55 |
|
56 | /// color
|
57 | /// @namespace statement/normal/overlay
|
58 | $rating-normal-overlay-color: $color-brand1-6 !default;
|
59 |
|
60 | /// color
|
61 | /// @namespace statement/hover/underlay
|
62 | $rating-normal-overlay-hover-color: $color-brand1-6 !default;
|
63 |
|
64 | /// low level background
|
65 | /// @namespace statement/normal/overlay
|
66 | $rating-grade-low-overlay-color: $color-text1-3 !default;
|
67 |
|
68 | /// low level background
|
69 | /// @namespace statement/hover/overlay
|
70 | $rating-grade-low-overlay-hover-color: $color-text1-2 !default;
|
71 |
|
72 | /// high level background
|
73 | /// @namespace statement/normal/overlay
|
74 | $rating-grade-high-overlay-color: $color-brand1-6 !default;
|
75 |
|
76 | /// high level background
|
77 | /// @namespace statement/hover/overlay
|
78 | $rating-grade-high-overlay-hover-color: $color-brand1-6 !default;
|
79 |
|
80 | /// rating icon
|
81 | /// @namespace statement/normal
|
82 | $rating-grade-icon-content: $icon-content-favorites-filling !default;
|