Skip to content

Cubes / Anastasiya Santalova#2

Open
AnastasiyaSantalova wants to merge 9 commits into
epam-js-jun-2019:masterfrom
AnastasiyaSantalova:master
Open

Cubes / Anastasiya Santalova#2
AnastasiyaSantalova wants to merge 9 commits into
epam-js-jun-2019:masterfrom
AnastasiyaSantalova:master

Conversation

@AnastasiyaSantalova
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@svvald svvald left a comment

Choose a reason for hiding this comment

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

I have some issues displaying the widget in IE11 using both flexbox and grids
изображение
изображение

I guess it's OK though since IE11 doesn't have full support for them (especially for grids).

In general I'd say that you've done really good work with some points that could be improved.

@@ -0,0 +1,8 @@
// Colors for weather blocks
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

There is a good practice to name files that contain some variables, mixins etc. using leading underscore like _variables.scss. It is called partials and will prevent SASS from directly compiling these files entirely but only replacing the parts of the imported file you are using.
https://sass-lang.com/documentation/at-rules/import#partials

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Fixed!


padding: 0 30px;

@include fullScreen;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

As far as I understand this mixin will make the block to have full width and height of its parent block but it won't actually be the fullscreen. I don't insist on renaming it here but it could be confusing in real projects.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

You right, thanks. It's my fault.


// Visible elements before hover

.weather__block_visible {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You can avoid duplicating and rewriting the full classnames using SASS parent selector (sorry for one-line code, it seems that GitHub doesn't support newline symbols):
.weather { display: flex; &__block { width: 100%; } }

https://sass-lang.com/documentation/style-rules/parent-selector

However, be careful with it and always try to make your selectors as flat as possible since deeply nested rules are really hard to maintain.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I agree with your comment, but didn't fix so much, because my current structure of nesting does not allow to improve it without changing all code.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Tell me please, how can I check my markup on IE11, if I work on Mac?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actually I didn't work on Mac so I can't advice you anything specific. Take a look at this article:
https://dzone.com/articles/7-ways-you-can-test-your-website-on-internet-explo

Maybe it will help, the first point looks quite simple and well-working at the same time

Copy link
Copy Markdown

@svvald svvald Jul 24, 2019

Choose a reason for hiding this comment

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

Also I don't insist on renaming all the classnames using SASS features, it still looks good, I just gave you the recommendation for future :)

@@ -0,0 +1,317 @@
@import "_variables";
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Didn't SASS fail during the compilation? As far as I'm concerned, you should still import files without using underscore even though filenames contain it.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hmm, it works... But, OK! :)

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