-
Notifications
You must be signed in to change notification settings - Fork 9
Homework 2 #8
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
base: master
Are you sure you want to change the base?
Homework 2 #8
Conversation
DanilRostov
left a comment
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! Almost all responsive markup looks good :) Some small issues, but nothing critical.
Anatoly Shlom/flex/css/flex.less
Outdated
| align-self: center; | ||
| } | ||
| .nav-block__date { | ||
| width: 33%; |
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.
Somehow changing to width: 100px; didn't fix the issue( what am i doing wrong?
fix attempt here 3dee598
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.
Nice
| background: rgba(0, 0, 0, 0.5); | ||
| margin: 10% 0 0 0; | ||
| } | ||
| @media (max-width: 600px) { |
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 you didn't use screen here?
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 thought i don't have to, because this conditions influence only mobile version
| <div class="weather-block__location"> | ||
| Paris, France | ||
| </div> | ||
| <div class="wind-block"> |
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.
Doesn't too matter, but why it's a block whether 'weather-block__location' is not?
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.
That's okay, but looks like that wind-block is an element of weather-block
| text-align: center; | ||
| } | ||
| } | ||
| /* И еще вопрос - можно ли задавать @media только для конкретных условий, как блок выше. Или делать @media для всех условий*/ |
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.
Which conditions do you mean? You may apply media for different devices and different sizes. All styles inside this block will work. More info and examples you can find here: https://developer.mozilla.org/en-US/docs/Web/CSS/@media
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 seems to me, that now i got the answer) thank you)
Anatoly Shlom/grid/css/grid.css
Outdated
| justify-content: center; | ||
| } | ||
| .nav-block__divider_active { | ||
| padding-top: 0.3em; |
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.
Not a good idea to mix different measures like px and em. Consider to use one please.
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.
fixed
| <body> | ||
| <main class="widget"> | ||
| <!--article class="widget-data"--> | ||
| <!-- Интересный вопрос, как в моем случае сохранить сетку и не сломать семантику?--> |
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 same as I've added a comment to your previous PR, article isn't the most appropriate tag here.
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.
Thank you) Now i got the point
| font-size: 29px; | ||
| font-weight: 400; | ||
| } | ||
| .wind-block__speed-format { |
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.
Preprocessor allows you to write it like so:
.wind-block {
font-size: 29px;
font-weight: 400;
&__speed {
...
}
&__speed-format {
...
}
}
By this way you wouldn't rename all styles when you decided to change name of the block
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.
Thats really awesome feature!! Thank you!!


Reformated all classes with BEM methodology, started to use LESS
Created two responsive pages located in Flex/Grid folders.