Skip to content
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

Added content #667

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Added content #667

wants to merge 5 commits into from

Conversation

chumasov
Copy link

Copy link

@VinnieJ-2k20 VinnieJ-2k20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Details in comment.

src/index.html Outdated
Comment on lines 12 to 28
<div id="qa-block" class="block">
<div class="red-border">
<div class="blue-border">
<div class="red-border">
<div class="yellow-border">
<div class="red-border">
<div class="text">
In programming languages, a closure is a technique for implementing lexically
scoped name binding in a language with first-class functions. Operationally, a
closure is a record storing a function together with an environment.
</div>
</div>
</div>
</div>
</div>
</div>
</div>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are creating too many unnecessary elements.
If necessary, you can assign multiple classes to one HTML element:
class="block blue-border"

Also, you can add red border as border to element and blue or yellow colof as background.
Try completing this task with no more than three divs layers.

@chumasov chumasov requested a review from VinnieJ-2k20 March 23, 2021 12:27
@chumasov
Copy link
Author

Last commit wrong text. 'blue' must be 'block'. Should I make a new commit?

Copy link

@VinnieJ-2k20 VinnieJ-2k20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost there.
Details in comment.

src/style.css Outdated
Comment on lines 11 to 28
.blue {
background-color: #308dc0;
border: 1px solid #e95d49;
padding: 10px;
}

.yellow {
background-color: #ffa500;
border: 1px solid #e95d49;
padding: 10px;
}

.text {
border: 1px solid #e95d49;
margin: 0;
padding: 10px;
background-color: #ddd;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have same styles for border and padding in three selectors.
Remember, don't repeat yourself.
Create one more common class for these styles.

Also, you can safely combine .blue and .block into one class. They have no overlapping styles.

@chumasov chumasov requested a review from VinnieJ-2k20 March 23, 2021 15:40
Copy link

@VinnieJ-2k20 VinnieJ-2k20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants