Skip to content

Conversation

@AMSHL
Copy link

@AMSHL AMSHL commented Jul 12, 2019

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

Copy link
Collaborator

@DanilRostov DanilRostov 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! Almost all responsive markup looks good :) Some small issues, but nothing critical.

align-self: center;
}
.nav-block__date {
width: 33%;
Copy link
Collaborator

Choose a reason for hiding this comment

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

You may set fix width for the text box, to prevent this
Screenshot 2019-07-20 at 13 14 13

Copy link
Author

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

Copy link
Collaborator

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) {
Copy link
Collaborator

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?

Copy link
Author

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">
Copy link
Collaborator

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?

Copy link
Author

Choose a reason for hiding this comment

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

Hmm... looks fine as i see. But maybe I just not quite understood your point
code

Copy link
Collaborator

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 для всех условий*/
Copy link
Collaborator

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

Copy link
Author

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)

justify-content: center;
}
.nav-block__divider_active {
padding-top: 0.3em;
Copy link
Collaborator

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.

Copy link
Author

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"-->
<!-- Интересный вопрос, как в моем случае сохранить сетку и не сломать семантику?-->
Copy link
Collaborator

@DanilRostov DanilRostov Jul 20, 2019

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.

Copy link
Author

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 {
Copy link
Collaborator

@DanilRostov DanilRostov Jul 20, 2019

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

Copy link
Author

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!!

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