-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Stars #6597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Stars #6597
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,41 @@ | ||
| /* add styles here */ | ||
| .stars__star{ | ||
| width: 20px; | ||
| height: 20px; | ||
| background-image:url(images/star.svg); | ||
| background-size: | ||
| contain; | ||
|
Comment on lines
+9
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's standard practice to keep a CSS property and its value on the same line for better readability, like |
||
| background-repeat: no-repeat; | ||
| background-position: center; | ||
| } | ||
|
Comment on lines
+5
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The task requires setting the distance between stars based on the Figma design. Currently, the stars will have no space between them. Consider adding a |
||
|
|
||
| .stars{ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The task requires resetting the browser's default margins. This is typically done with a rule for the |
||
| display: flex; | ||
| margin: 0; | ||
| } | ||
|
|
||
| .stars_star_active{ | ||
| background-image: url(images/star-active.svg); | ||
| } | ||
|
||
|
|
||
|
|
||
| .stars--0 .stars__star:nth-child(-n+0) { | ||
| background-image: url(images/star-active.svg); | ||
| } | ||
|
|
||
| .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); | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The formatting of attributes is inconsistent throughout the file. For example, there are extra spaces around the
=inclassattributes (e.g.,class ="..."). The standard convention is to have no spaces, likeclass="...". Please correct this for all similar occurrences in the file.