-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
add task solution #3733
base: master
Are you sure you want to change the base?
add task solution #3733
Conversation
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.
fix it firstly, you can ask for some help with tests in the chat
src/style.css
Outdated
.stars--1 :first-child { | ||
background-image: url(images/star-active.svg); | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
} | ||
|
||
.stars--2 :nth-child(-n + 2) { | ||
background-image: url(images/star-active.svg); | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
} | ||
|
||
.stars--3 :nth-child(-n + 3) { | ||
background-image: url(images/star-active.svg); | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
} | ||
|
||
.stars--4 :nth-child(-n + 4) { | ||
background-image: url(images/star-active.svg); | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
} | ||
|
||
.stars--5 :nth-child(n) { | ||
background-image: url(images/star-active.svg); | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
} |
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 join these using the comma
src/style.css
Outdated
background-position: center; | ||
background-repeat: no-repeat; |
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.
it's redundant 'cause you specified that in .stars__star
src/style.css
Outdated
.stars { | ||
width: 96px; | ||
display: flex; | ||
justify-content: space-between; | ||
} |
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.
.stars { | |
width: 96px; | |
display: flex; | |
justify-content: space-between; | |
} | |
.stars { | |
display: flex; | |
} |
it's redundant 'cause you specified the width property in star styles
src/style.css
Outdated
.container { | ||
display: flex; | ||
flex-direction: column; | ||
} |
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.
remove the container too
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.
good job
Hi, the test does not pass, what could be the problem?