-
Notifications
You must be signed in to change notification settings - Fork 62
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
Авинас Мария #44
base: master
Are you sure you want to change the base?
Авинас Мария #44
Conversation
🍅 Не пройден линтинг или базовые тесты |
🍅 Не пройден линтинг или базовые тесты |
🍅 Не пройден линтинг или базовые тесты |
🍅 Не пройден линтинг или базовые тесты |
🍏 Пройден линтинг и базовые тесты |
насколько понимаю, когда в виде списка, описание кота должно уходить в отдельный столбик |
при наведении на картинку нет эффекта |
@@ -0,0 +1,92 @@ | |||
.card-to-list:checked ~ main .catPhoto |
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.
list-view-checkbox
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.
вместо card-to-list
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.
не стоит называть классы в camelCase, css не регистрочувствителен
лучше разделять дефисом: cat-photo
width: 100%; | ||
} | ||
|
||
header |
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.
Лучше не использовать в селекторе тег, который может быть испольован не один раз на странице
border: 1px solid black; | ||
} | ||
|
||
img |
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.
Лучше не использовать в селекторе тег, который может быть испольован не один раз на странице
чтобы не получилось, что если у нас появится картинка, например, в хедере, к ней применился лишний стиль
@@ -0,0 +1,92 @@ | |||
.card-to-list:checked ~ main .catPhoto | |||
{ |
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.
должно быть:
selector
{
rules
}
font-size: larger; | ||
} | ||
|
||
.image-for-list |
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.
list-icon
<input type="checkbox" class="card-to-list"> | ||
<img alt="list" src="spisok.png" title="Список" class="image-for-list"> | ||
<main> | ||
<div class="card"> |
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.
article
<span>Магазин добрых котиков</span> | ||
</header> | ||
<br> | ||
<input type="checkbox" class="card-to-list"> |
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.
лишний отступ
Мяндекс.Муррркет<br> | ||
<span>Магазин добрых котиков</span> | ||
</header> | ||
<br> |
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.
зачем <br>
? Если нужен отступ, лучше делать margin-bottom
</header> | ||
<br> | ||
<input type="checkbox" class="card-to-list"> | ||
<img alt="list" src="spisok.png" title="Список" class="image-for-list"> |
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
<img alt="list" src="spisok.png" title="Список" class="image-for-list"> | ||
<main> | ||
<div class="card"> | ||
<img class="catPhoto" alt="котик №1" src="cats_photos/cat1.jpg"> |
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 должен описывать содержание картинки, например, "фото полосатого кота"
<span>☆</span> | ||
</div> | ||
<div class="price"> | ||
<ins class="current">12 мурлей</ins> |
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.
👍
</div> | ||
<div class="price"> | ||
<ins class="current">11 мурлей</ins> | ||
<del class="old">13 мурлей</del> |
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.
лучше назвать old-price
и current-price
иначе непонятно будет, когда встретим в css класс old
Или кто-то может создать класс old
для отображения другого элемента и это повлияет на это место
🍏 Пройден линтинг и базовые тесты |
🍅 Не пройден линтинг или базовые тесты |
🍅 Не пройден линтинг или базовые тесты |
🍏 Пройден линтинг и базовые тесты |
🍏 Пройден линтинг и базовые тесты |
🍏 Пройден линтинг и базовые тесты |
🍏 Пройден линтинг и базовые тесты |
🍏 |
width: 100%; | ||
} | ||
|
||
header | ||
{ | ||
.name-of-market |
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.
market-name
, потому что of не несет смысловой нагрузки и лучше записать короче
.card:hover | ||
{ | ||
{ | ||
background-color: lightgray; |
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.
Лучше не описывать цвет словом, а с помощью hex записи
не увидел изменений |
🚀 |
Замечания по верстке:
|
|
||
.list-view-checkbox:checked ~ main .information .name | ||
{ | ||
width: 100%; |
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.
- Точно такое же свойство ниже
- Для чего ширину менять?
|
||
.list-view-checkbox:checked ~ main .card | ||
{ | ||
width: 100%; |
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.
Здесь тоже не понятно зачем устанавливать ширину 100%
🍅 Жду исправлений |
margin: 5px 0; | ||
display: inline-table; | ||
width: 250px; | ||
text-overflow: ellipsed; |
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.
Не правильное свойство. Оно не будет работать.
.card | ||
{ | ||
margin: 5px 0; | ||
display: inline-table; |
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.
Почему inline-table?
|
||
.card:hover | ||
{ | ||
background-color: lightgray; |
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.
Лучше использовать hex запись, что бы запись была короче и этот цвет проще менять(делать светлее темнее и т. д.).
.card:hover | ||
{ | ||
background-color: lightgray; | ||
border: 1px solid black; |
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.
#000 короче
<input type="checkbox" class="list-view-checkbox"> | ||
<img alt="иконка для изображения списка" src="spisok.png" title="Список" class="list-icon"> | ||
<main> | ||
<div class="card"> |
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.
Где семантика?
<img class="cat-photo" alt="фото спящего кота" src="cats_photos/cat4.jpg"> | ||
<div class="information"> | ||
<div class="name"> | ||
<a href="#">Кеша</a> |
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.
Лишняя вложенность, кажется что достаточно одной ссылки
Посмотреть решение