-
Notifications
You must be signed in to change notification settings - Fork 12
html markup without styles #3
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?
Conversation
| @@ -0,0 +1,2 @@ | |||
| .DS_Store | |||
| Vladimir Kulikov/node_modules | |||
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.
You have script to create style.css file. That's why it also should be added in gitignore
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.
Sure, I just thought maybe you will not download this repo and compiled css files will be useful. Fixed)
Vladimir Kulikov/index.html
Outdated
| <article class="weather-widget"> | ||
| <section class="weather-widget__top"> | ||
| <div class="weather-widget__image"> | ||
| <img src="img/cloudy.png" alt=""> |
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.
alt can't be empty.
if image isn't loaded, user will see this text
Vladimir Kulikov/sass/main.scss
Outdated
| @include font('SourceSansPro-SemiBold'); | ||
| @include font('OpenSans-Regular'); | ||
|
|
||
| html { |
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.
Try to avoid adding css rule on html tag
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.
ok
Vladimir Kulikov/sass/main.scss
Outdated
| height: 100%; | ||
| } | ||
|
|
||
| body { |
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.
Here https://www.w3.org/Style/Examples/007/center.ru.html you can read how you can locate you widget in the center
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.
Added wrapper.
Vladimir Kulikov/sass/main.scss
Outdated
| box-shadow: 0 21px 19px rgba(0, 0, 0, 0.15); | ||
| } | ||
|
|
||
| .weather-widget__top { |
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.
If you use sccs, you can write like this:
.weather-widget {
&__top {
...
}
}
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 advice, thanks)
Vladimir Kulikov/sass/main.scss
Outdated
| .weather-widget__dot { | ||
| width: 6px; | ||
| height: 6px; | ||
| border: 2px solid #565a5b; |
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.
Add variable for this color
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.
done
Vladimir Kulikov/sass/main.scss
Outdated
|
|
||
| .weather-widget__dot_active { | ||
| @extend .weather-widget__dot; | ||
| background: #eee; |
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.
Add variable for this color
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.
done
Vladimir Kulikov/index.html
Outdated
| <section class="weather-widget__top"> | ||
| <div class="weather-widget__image"> | ||
| <img src="img/cloudy.png" alt=""> | ||
| <button></button> |
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.
Completely agree, alt is very useful especially on buttons without text.
Vladimir Kulikov/index.html
Outdated
| <span class="weather-widget__clear">83%</span> | ||
| </div> | ||
| <div class="weather-widget__pagination"> | ||
| <span class="weather-widget__dot weather-widget__dot_active"></span> |
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.
You use BEM. Then active is modifier. This class should be called weather-widget__dot--active
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.
Vladimir Kulikov/sass/main.scss
Outdated
| .weather-widget__top-info { | ||
| @include flex(space-between, center); | ||
| padding-bottom: 5%; | ||
| font-family: 'ProximaNova-Light'; |
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 would be cool to add fallback font
https://css-tricks.com/css-basics-fallback-font-stacks-robust-web-typography/
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.
exactly, I forgot about it)
| <section class="weather-widget__top"> | ||
| <div class="weather-widget__image"> | ||
| <img class="weather-widget__image-img" src="img/cloudy.png" alt="cloudy weather image"> | ||
| <button class="weather-widget__image-btn" alt="update"></button> |
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.
Sorry, I misprinted. I meant
<button> <img alt='...'> </button>
Tag button doesn't have attribute alt
| <article class="weather-widget"> | ||
| <section class="weather-widget__top"> | ||
| <div class="weather-widget__image"> | ||
| <img class="weather-widget__image-img" src="img/cloudy.png" alt="cloudy weather image"> |
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.
Class names for image and button are strange
No description provided.