UNPKG

6.18 kBCSSView Raw
1
2.next-sr-only {
3 position: absolute;
4 width: 1px;
5 height: 1px;
6 padding: 0;
7 overflow: hidden;
8 clip: rect(0, 0, 0, 0);
9 white-space: nowrap;
10 border: 0;
11 top: 0;
12 margin: -1px; }
13
14.next-rating[dir="rtl"] .next-rating-overlay {
15 right: 0;
16 left: auto; }
17
18.next-rating[dir="rtl"] .next-rating-underlay .next-rating-icon,
19.next-rating[dir="rtl"] .next-rating-overlay .next-rating-icon {
20 margin-right: 4px;
21 margin-right: var(--s-1, 4px);
22 margin-left: 0; }
23
24.next-rating[dir="rtl"] .next-rating-underlay .next-rating-icon:last-child,
25.next-rating[dir="rtl"] .next-rating-overlay .next-rating-icon:last-child {
26 /* icon 放大会产生边缘溢出,这里使用 margin 为放大扩展一部分空间 */
27 margin-left: 4px;
28 margin-left: var(--s-1, 4px); }
29
30.next-rating {
31 vertical-align: top; }
32 .next-rating {
33 display: inline-block;
34 position: relative; }
35 .next-rating:after {
36 visibility: hidden;
37 display: block;
38 height: 0;
39 font-size: 0;
40 content: '\0020';
41 clear: both; }
42 .next-rating-base {
43 float: left; }
44 .next-rating-text {
45 float: left; }
46 .next-rating-base-disabled {
47 cursor: not-allowed; }
48 .next-rating-base-disabled .next-rating-underlay .next-rating-icon {
49 cursor: not-allowed; }
50 .next-rating-base-disabled .next-rating-overlay .next-rating-icon {
51 cursor: not-allowed; }
52 .next-rating-symbol-icon::before {
53 content: "";
54 content: var(--rating-grade-icon-content, ""); }
55 .next-rating-underlay {
56 white-space: nowrap;
57 overflow: hidden; }
58 .next-rating-underlay .next-icon {
59 color: #E2E4E8;
60 color: var(--rating-normal-underlay-color, #E2E4E8); }
61 .next-rating-stroke-mode .next-rating-underlay .next-icon {
62 color: transparent;
63 -webkit-text-stroke: 1px #5584FF;
64 -webkit-text-stroke: 1px var(--rating-normal-overlay-color, #5584FF); }
65 .next-rating-overlay {
66 white-space: nowrap;
67 overflow: hidden;
68 position: absolute;
69 width: 0;
70 top: 0;
71 left: 0; }
72 .next-rating-overlay .next-icon {
73 color: #5584FF;
74 color: var(--rating-normal-overlay-color, #5584FF); }
75 .next-rating-underlay .next-rating-icon, .next-rating-overlay .next-rating-icon {
76 cursor: pointer;
77 margin-left: 4px;
78 margin-left: var(--s-1, 4px); }
79 .next-rating-underlay .next-rating-icon:last-child, .next-rating-overlay .next-rating-icon:last-child {
80 /* icon 放大会产生边缘溢出,这里使用 margin 为放大扩展一部分空间 */
81 margin-right: 4px;
82 margin-right: var(--s-1, 4px); }
83 .next-rating-underlay .next-icon, .next-rating-overlay .next-icon {
84 transition: all 100ms linear;
85 transition: all var(--motion-duration-immediately, 100ms) var(--motion-linear, linear); }
86 .next-rating-underlay .next-icon.hover, .next-rating-overlay .next-icon.hover {
87 transform: scale3d(1.1, 1.1, 1.1); }
88 .next-rating-underlay .next-icon.clicked, .next-rating-overlay .next-icon.clicked {
89 transform: scale3d(0.9, 0.9, 0.9); }
90 .next-rating-info {
91 position: absolute;
92 top: calc(100% + 4px);
93 top: calc(100% + var(--s-1, 4px));
94 left: 0;
95 border: 1px solid #E2E4E8;
96 border: 1px solid var(--color-fill1-4, #E2E4E8);
97 background: #FFFFFF;
98 padding: 4px 8px 3px;
99 font-size: 12px;
100 white-space: nowrap; }
101 .next-rating-info:after {
102 position: absolute;
103 content: '';
104 width: 4px;
105 height: 4px;
106 transform: rotate(45deg);
107 border: 1px solid #E2E4E8;
108 border: 1px solid var(--color-fill1-4, #E2E4E8);
109 background: #FFFFFF;
110 border-bottom-color: transparent;
111 border-right-color: transparent;
112 top: -3px;
113 left: 4px; }
114 .next-rating:focus .next-rating-base:not(.next-rating-base-disabled), .next-rating.hover {
115 outline: none; }
116 .next-rating:focus .next-rating-base:not(.next-rating-base-disabled) .next-rating-overlay .next-icon, .next-rating.hover .next-rating-overlay .next-icon {
117 color: #5584FF;
118 color: var(--rating-normal-overlay-hover-color, #5584FF); }
119
120/* 状态 */
121/* ======================================== */
122.next-rating-grade-low .next-rating-overlay .next-icon {
123 color: #666666;
124 color: var(--rating-grade-low-overlay-color, #666666); }
125
126.next-rating-grade-low.hover .next-rating-overlay .next-icon {
127 color: #666666;
128 color: var(--rating-grade-low-overlay-color, #666666); }
129
130.next-rating-grade-high .next-rating-overlay .next-icon {
131 color: #5584FF;
132 color: var(--rating-grade-high-overlay-color, #5584FF); }
133
134.next-rating-grade-high.hover .next-rating-overlay .next-icon {
135 color: #5584FF;
136 color: var(--rating-grade-high-overlay-hover-color, #5584FF); }
137
138/* 尺寸 */
139/* ======================================== */
140.next-rating-small {
141 font-size: 12px;
142 font-size: var(--rating-small-font-size, 12px); }
143 .next-rating-small .next-icon:before,
144 .next-rating-small .next-icon .next-icon-remote {
145 width: 12px;
146 width: var(--rating-small-icon-size, 12px);
147 font-size: 12px;
148 font-size: var(--rating-small-icon-size, 12px);
149 line-height: inherit; }
150 .next-rating-small .next-rating-text {
151 margin-left: 8px;
152 margin-left: var(--rating-small-text-margin-left, 8px); }
153
154.next-rating-medium {
155 font-size: 12px;
156 font-size: var(--rating-medium-font-size, 12px); }
157 .next-rating-medium .next-icon:before,
158 .next-rating-medium .next-icon .next-icon-remote {
159 width: 16px;
160 width: var(--rating-medium-icon-size, 16px);
161 font-size: 16px;
162 font-size: var(--rating-medium-icon-size, 16px);
163 line-height: inherit; }
164 .next-rating-medium .next-rating-text {
165 margin-left: 12px;
166 margin-left: var(--rating-medium-text-margin-left, 12px); }
167
168.next-rating-large {
169 font-size: 16px;
170 font-size: var(--rating-large-font-size, 16px); }
171 .next-rating-large .next-icon:before,
172 .next-rating-large .next-icon .next-icon-remote {
173 width: 20px;
174 width: var(--rating-large-icon-size, 20px);
175 font-size: 20px;
176 font-size: var(--rating-large-icon-size, 20px);
177 line-height: inherit; }
178 .next-rating-large .next-rating-text {
179 margin-left: 16px;
180 margin-left: var(--rating-large-text-margin-left, 16px); }