-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
develop #5480
base: master
Are you sure you want to change the base?
develop #5480
Changes from all commits
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,3 +1,4 @@ | ||
<!-- #region head --> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
|
@@ -9,10 +10,54 @@ | |
<title>Stars</title> | ||
<link | ||
rel="stylesheet" | ||
href="./style.css" | ||
href="style.css" | ||
/> | ||
</head> | ||
<!-- endregion --> | ||
<body> | ||
<h1>Stars</h1> | ||
<div class="box-stars"> | ||
<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"> | ||
<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> | ||
Comment on lines
+18
to
+60
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. Consider using more semantic HTML tags instead of generic |
||
</div> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,40 @@ | ||
/* add styles here */ | ||
body { | ||
margin: 0; | ||
} | ||
|
||
.box-stars { | ||
display: flex; | ||
flex-direction: column; | ||
|
||
/* justify-content: space-between; */ | ||
|
||
/* width: 96px; | ||
height: 116px; */ | ||
|
||
/* padding: 22px; */ | ||
Comment on lines
+9
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. There are several commented-out styles. If these styles are not needed, consider removing them to keep the CSS clean and maintainable. |
||
|
||
background: #fff; | ||
} | ||
|
||
.stars { | ||
display: flex; | ||
|
||
/* justify-content: space-between; */ | ||
} | ||
|
||
.stars__star { | ||
background-image: url(images/star.svg); | ||
width: 16px; | ||
height: 16px; | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
margin: 0 4px 0 0; | ||
} | ||
|
||
.stars--1 .stars__star:nth-child(-n + 1), | ||
.stars--2 .stars__star:nth-child(-n + 2), | ||
.stars--3 .stars__star:nth-child(-n + 3), | ||
.stars--4 .stars__star:nth-child(-n + 4), | ||
.stars--5 .stars__star:nth-child(-n + 5) { | ||
background-image: url(images/star-active.svg); | ||
} | ||
Comment on lines
+5
to
+40
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 current CSS structure does not follow the BEM methodology as required. Each BEM block should have its own separate CSS file. Consider restructuring your CSS to adhere to this requirement. |
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 current HTML structure does not follow the BEM methodology as required. Each BEM block should be in its own separate file. Consider restructuring your HTML to adhere to this requirement.