diff --git a/src/index.html b/src/index.html index 3e4d7e8ab0..3ddfa1515b 100644 --- a/src/index.html +++ b/src/index.html @@ -13,6 +13,49 @@ /> -

Stars

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/style.css b/src/style.css index a63fa10d43..8c6b94eb58 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,42 @@ -/* add styles here */ +/* #region page */ +body { + margin: 0; +} + +/* #endregion */ + +/* #region stars */ +.stars { + display: flex; +} + +.stars__star { + width: 16px; + height: 16px; + margin-right: 4px; + background-image: url(./images/star.svg); + background-repeat: no-repeat; + background-position: center; +} + +.stars--1 .stars__star:nth-child(-n + 1) { + background-image: url(images/star-active.svg); +} + +.stars--2 .stars__star:nth-child(-n + 2) { + background-image: url(images/star-active.svg); +} + +.stars--3 .stars__star:nth-child(-n + 3) { + background-image: url(images/star-active.svg); +} + +.stars--4 .stars__star:nth-child(-n + 4) { + background-image: url(images/star-active.svg); +} + +.stars--5 .stars__star:nth-child(-n + 5) { + background-image: url(images/star-active.svg); +} + +/* #endregion */