-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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 stars #5292
base: master
Are you sure you want to change the base?
add stars #5292
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 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -13,6 +13,49 @@ | |||||||||||
/> | ||||||||||||
</head> | ||||||||||||
<body> | ||||||||||||
<h1>Stars</h1> | ||||||||||||
<header class="conteiner"> | ||||||||||||
<div class="stars stars--0"> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
</div> | ||||||||||||
<div class="stars stars--1"> | ||||||||||||
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. Add the blank line between the blocks
Suggested change
|
||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
</div> | ||||||||||||
<div class="stars stars--2"> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
</div> | ||||||||||||
<div class="stars stars--3"> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
</div> | ||||||||||||
<div class="stars stars--4"> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
</div> | ||||||||||||
<div class="stars stars--5"> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
<div class="stars__star"></div> | ||||||||||||
</div> | ||||||||||||
</header> | ||||||||||||
</body> | ||||||||||||
</html> |
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1 +1,58 @@ | ||||||||||||||||||||||||||||||||||||||||
/* add styles here */ | ||||||||||||||||||||||||||||||||||||||||
* { | ||||||||||||||||||||||||||||||||||||||||
margin: 0; | ||||||||||||||||||||||||||||||||||||||||
box-sizing: border-box; | ||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||
.conteiner { | ||||||||||||||||||||||||||||||||||||||||
display: flex; | ||||||||||||||||||||||||||||||||||||||||
flex-direction: column; | ||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||
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.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
.stars__star { | ||||||||||||||||||||||||||||||||||||||||
background-position: center; | ||||||||||||||||||||||||||||||||||||||||
border-radius: 0.5px; | ||||||||||||||||||||||||||||||||||||||||
display: flex; | ||||||||||||||||||||||||||||||||||||||||
margin-right: 4px; | ||||||||||||||||||||||||||||||||||||||||
background-repeat: no-repeat; | ||||||||||||||||||||||||||||||||||||||||
height: 16px; | ||||||||||||||||||||||||||||||||||||||||
line-height: 0; | ||||||||||||||||||||||||||||||||||||||||
width: 16px; | ||||||||||||||||||||||||||||||||||||||||
background-image: url(images/star-active.svg); | ||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||
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.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
.stars { | ||||||||||||||||||||||||||||||||||||||||
position: relative; | ||||||||||||||||||||||||||||||||||||||||
display: flex; | ||||||||||||||||||||||||||||||||||||||||
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. Redundant
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
align-items: center; | ||||||||||||||||||||||||||||||||||||||||
justify-content: center; | ||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||
.stars--0 .stars__star:nth-child(1), | ||||||||||||||||||||||||||||||||||||||||
.stars--0 .stars__star:nth-child(2), | ||||||||||||||||||||||||||||||||||||||||
.stars--0 .stars__star:nth-child(3), | ||||||||||||||||||||||||||||||||||||||||
.stars--0 .stars__star:nth-child(4), | ||||||||||||||||||||||||||||||||||||||||
.stars--0 .stars__star:nth-child(5) { | ||||||||||||||||||||||||||||||||||||||||
background-image: url(images/star.svg); | ||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||
.stars--1 .stars__star:nth-child(2), | ||||||||||||||||||||||||||||||||||||||||
.stars--1 .stars__star:nth-child(3), | ||||||||||||||||||||||||||||||||||||||||
.stars--1 .stars__star:nth-child(4), | ||||||||||||||||||||||||||||||||||||||||
.stars--1 .stars__star:nth-child(5) { | ||||||||||||||||||||||||||||||||||||||||
background-image: url(images/star.svg); | ||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||
.stars--2 .stars__star:nth-child(3), | ||||||||||||||||||||||||||||||||||||||||
.stars--2 .stars__star:nth-child(4), | ||||||||||||||||||||||||||||||||||||||||
.stars--2 .stars__star:nth-child(5) { | ||||||||||||||||||||||||||||||||||||||||
background-image: url(images/star.svg); | ||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||
.stars--3 .stars__star:nth-child(4), | ||||||||||||||||||||||||||||||||||||||||
.stars--3 .stars__star:nth-child(5) { | ||||||||||||||||||||||||||||||||||||||||
background-image: url(images/star.svg); | ||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||
.stars--4 .stars__star:nth-child(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.
Redundant wrapper