Skip to content

Commit 7f82d98

Browse files
committed
feat(themes): implemented themes
1 parent 9543d14 commit 7f82d98

File tree

1 file changed

+55
-7
lines changed

1 file changed

+55
-7
lines changed

src/scss/_themes.scss

Lines changed: 55 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
@charset "UTF-8";
22

3-
@import "elements";
4-
53
/*theme modifiers
64
====================================================*/
75

@@ -53,12 +51,12 @@
5351
border-bottom: 0px;
5452

5553
.star {
56-
font-size: 11px;
5754
height: 11px;
5855
width: 11px;
5956
@extend .star.custom-icon;
6057

6158
i {
59+
font-size: 11px;
6260
color: $kununu-color-white;
6361
text-align: center;
6462
}
@@ -85,7 +83,7 @@
8583
.star {
8684

8785
i {
88-
font-size:17px;
86+
font-size: 17px;
8987
color: $google_places-color-red !important;
9088
&.star-empty {
9189
opacity: 1 !important;
@@ -94,9 +92,9 @@
9492
content: $default-star-character-filled;
9593
}
9694
}
97-
&.star-half{
98-
width:7px;
99-
overflow:hidden;
95+
&.star-half {
96+
width: 7px;
97+
overflow: hidden;
10098
&:before {
10199
content: $default-star-character-half;
102100
}
@@ -111,4 +109,54 @@
111109

112110
}
113111

112+
&.theme-classic {
113+
114+
}
115+
116+
&.theme-material {
117+
118+
}
119+
120+
&.theme-rolling-stars {
121+
122+
.star-container {
123+
.star {
124+
transition: transform 1s;
125+
transform: rotate(0deg);
126+
}
127+
}
128+
129+
@for $i from $minRatingValue through $maxNumOfStars {
130+
&.value-#{$i} {
131+
.star-container {
132+
.star:nth-child(-n+#{$i}) {
133+
transition: transform 1s;
134+
transform: rotate(360deg);
135+
}
136+
}
137+
}
138+
}
139+
140+
&.value-0.half {
141+
.star:nth-child(1) {
142+
transition: transform 1s;
143+
transform: rotate(360deg);
144+
}
145+
}
146+
147+
@for $i from $minRatingValue through $maxNumOfStars {
148+
&.value-#{$i}.half {
149+
.star-container {
150+
@if ($i < $maxNumOfStars) {
151+
.star:nth-child(#{$i+1}) {
152+
transition: transform 1s;
153+
transform: rotate(360deg);
154+
}
155+
}
156+
}
157+
}
158+
}
159+
160+
}
161+
114162
}

0 commit comments

Comments
 (0)