-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
completed task 'stars' #3475
completed task 'stars' #3475
Conversation
TKuts
commented
Aug 14, 2023
- DEMO LINK
- TEST REPORT LINK
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.
I see you did a hard work) Let's improve it a little bit
.stars--2 :nth-child(n + 3), | ||
.stars--3 :nth-child(n + 4), | ||
.stars--4 :nth-child(n + 5) { | ||
background-image: url("./images/star.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.
why not moving this style under stars_star
selector?
src/style.css
Outdated
.stars :last-child { | ||
margin: 0; | ||
} |
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.
you can use your margin-left: 4px;
with :not(:first-child)
instead of the above
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.
Almost done!
src/style.css
Outdated
.stars--1 :first-child, | ||
.stars--2 :nth-child(-n + 2), | ||
.stars--3 :nth-child(-n + 3), | ||
.stars--4 :nth-child(-n + 4), | ||
.stars--5 :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.
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.
.