Skip to content
Binary file added cats_photos/cat1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats_photos/cat10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats_photos/cat11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats_photos/cat12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats_photos/cat13.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats_photos/cat2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats_photos/cat3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats_photos/cat4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats_photos/cat5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats_photos/cat6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats_photos/cat7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats_photos/cat8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats_photos/cat9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
98 changes: 98 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
.list-view-checkbox:checked ~ main .cat-photo
{
width: 25%;
display: inline-block;
}

.list-view-checkbox:checked ~ main .information
{
display: inline-block;
vertical-align: top;
padding-left: 10px;
}

.list-view-checkbox:checked ~ main .information .name
{
width: 100%;
Copy link

@trixartem trixartem Nov 14, 2016

Choose a reason for hiding this comment

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

  1. Точно такое же свойство ниже
  2. Для чего ширину менять?

}

.list-view-checkbox:checked ~ main .card
{
width: 100%;

Choose a reason for hiding this comment

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

Здесь тоже не понятно зачем устанавливать ширину 100%

}

.name-of-market

Choose a reason for hiding this comment

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

market-name, потому что of не несет смысловой нагрузки и лучше записать короче

{
font-size: 2em;
text-align: center;
background-color: white;
}

.name-of-market header:first-letter
{
color: red;
}

.card
{
margin: 5px 0;
display: inline-table;

Choose a reason for hiding this comment

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

Почему inline-table?

width: 250px;
text-overflow: ellipsed;

Choose a reason for hiding this comment

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

Не правильное свойство. Оно не будет работать.

}

.name a:hover
{
color: red;
}

.category:hover
{
color: gray;
text-decoration: underline;
}

.cat-photo:hover
{
border: 1px solid red;
}

.card:hover
{
background-color: lightgray;

Choose a reason for hiding this comment

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

Лучше не описывать цвет словом, а с помощью hex записи

Choose a reason for hiding this comment

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

Лучше использовать hex запись, что бы запись была короче и этот цвет проще менять(делать светлее темнее и т. д.).

border: 1px solid black;

Choose a reason for hiding this comment

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

#000 короче

}

.cat-photo
{
max-width: 100%;
}

body
{
background-color: #ff6;
}

.name
{
width: 250px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.name a
{
color: black;
}

.price .current-price
{
color: red;
font-size: larger;
}

.list-icon
{
width: 30px;
}
280 changes: 279 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,286 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="index.css">
<meta charset="utf-8">
<title>Мяндекс.Мурркет</title>
</head>
<body>
<header class="name-of-market">
Мяндекс.Муррркет<br>
<span>Магазин добрых котиков</span>
</header>
<input type="checkbox" class="list-view-checkbox">
<img alt="иконка для изображения списка" src="spisok.png" title="Список" class="list-icon">
<main>
<div class="card">

Choose a reason for hiding this comment

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

article

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/cat1.jpg">
<div class="information">
<div class="name" >
<a href="#">Мурзик</a>
</div>
<div class="category">Полосатый</div>
<div class="raiting">
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
</div>
<div class="price">
<ins class="current-price">12 мурлей</ins>
<del class="old-price">14 мурлей</del>
</div>
<div class="description">Самый лучший котик!</div>
</div>
</div>
<div class="card">
<img class="cat-photo" alt="фото рыжего вислоухого кота" src="cats_photos/cat2.jpg">
<div class="information">
<div class="name">
<a href="#">Рыжик</a>
</div>
<div class="category">Полосатый,Рыжий, Вислоухий</div>
<div class="raiting">
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
</div>
<div class="price">
<ins class="current-price">11 мурлей</ins>
<del class="old-price">13 мурлей</del>
</div>
<div class="description">Самый лучший котик!</div>
</div>
</div>
<div class="card">
<img class="cat-photo" alt="фото серого вислоухого кота" src="cats_photos/cat3.jpg">
<div class="information">
<div class="name">
<a href="#">Пушок</a>
</div>
<div class="category">Полосатый, Вислоухий</div>
<div class="raiting">
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
</div>
<div class="price">
<ins class="current-price">11 мурлей</ins>
</div>
<div class="description">Самый лучший котик!</div>
</div>
</div>
<div class="card">
<img class="cat-photo" alt="фото спящего кота" src="cats_photos/cat4.jpg">
<div class="information">
<div class="name">
<a href="#">Кеша</a>

Choose a reason for hiding this comment

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

Лишняя вложенность, кажется что достаточно одной ссылки

</div>
<div class="category">Полосатый</div>
<div class="raiting">
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
</div>
<div class="price">
<ins class="current-price">10 мурлей</ins>
<del class="old-price">12 мурлей</del>
</div>
<div class="description">Самый лучший котик!</div>
</div>
</div>
<div class="card">
<img class="cat-photo" alt="фото рыжего полосатого кота" src="cats_photos/cat5.jpg">
<div class="information">
<div class="name">
<a href="#">Соня</a>
</div>
<div class="category">Рыжий</div>
<div class="raiting">
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
</div>
<div class="price">
<ins class="current-price">12 мурлей</ins>
</div>
<div class="description">Самый лучший котик!</div>
</div>
</div>
<div class="card">
<img class="cat-photo" alt="фото котенка в корзинке" src="cats_photos/cat6.jpg">
<div class="information">
<div class="name">
<a href="#">Великий и ужасный Бонифаций IV, но можно просто Боня</a>
</div>
<div class="category">Котенок</div>
<div class="raiting">
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
</div>
<div class="price">
<ins class="current-price">13 мурлей</ins>
</div>
<div class="description">Самый лучший котик!</div>
</div>
</div>
<div class="card">
<img class="cat-photo" alt="фото рыжего пушистого котёнка" src="cats_photos/cat7.jpg">
<div class="information">
<div class="name">
<a href="#">Кнопа</a>
</div>
<div class="category">Котёнок, Рыжий</div>
<div class="raiting">
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
</div>
<div class="price">
<ins class="current-price">13 мурлей</ins>
</div>
<div class="description">Самый лучший котик!</div>
</div>
</div>
<div class="card">
<img class="cat-photo" alt="фото рыжего пушистого кота" src="cats_photos/cat8.jpg">
<div class="information">
<div class="name">
<a href="#">Стеша</a>
</div>
<div class="category">Рыжий, Пушистый</div>
<div class="raiting">
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
</div>
<div class="price">
<ins class="current-price">11 мурлей</ins>
<del class="old-price">13 мурлей</del>
</div>
<div class="description">Самый лучший котик!</div>
</div>
</div>
<div class="card">
<img class="cat-photo" alt="фото спящего полостаого кота" src="cats_photos/cat9.jpg">
<div class="information">
<div class="name">
<a href="#">Барсик</a>
</div>
<div class="category">Полосатый</div>
<div class="raiting">
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
</div>
<div class="price">
<ins class="current-price">11 мурлей</ins>
<del class="old-price">13 мурлей</del>
</div>
<div class="description">Самый лучший котик!</div>
</div>
</div>
<div class="card">
<img class="cat-photo" alt="фото рыжего пушистого кота на снегу" src="cats_photos/cat10.jpg">
<div class="information">
<div class="name">
<a href="#">Муся</a>
</div>
<div class="category">Рыжий, Пушистый</div>
<div class="raiting">
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
</div>
<div class="price">
<ins class="current-price">10 мурлей</ins>
<del class="old-price">12 мурлей</del>
</div>
<div class="description">Самый лучший котик!</div>
</div>
</div>
<div class="card">
<img class="cat-photo" alt="фото полостаго кота" src="cats_photos/cat11.jpg">
<div class="information">
<div class="name">
<a href="#">Васька</a>
</div>
<div class="category">Полосатый</div>
<div class="raiting">
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
</div>
<div class="price">
<ins class="current-price">11 мурлей</ins>
<del class="old-price">13 мурлей</del>
</div>
<div class="description">Самый лучший котик!</div>
</div>
</div>
<div class="card">
<img class="cat-photo" alt="фото чёрного кота" src="cats_photos/cat12.jpg">
<div class="information">
<div class="name">
<a href="#">Ужас, летящий на крыльях ночи</a>
</div>
<div class="category">Черный</div>
<div class="raiting">
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
<span>&#9734;</span>
</div>
<div class="price">
<ins class="current-price">11 мурлей</ins>
<del class="old-price">13 мурлей</del>
</div>
<div class="description">Самый добрый котик!</div>
</div>
</div>
<div class="card">
<img class="cat-photo" alt="фото серого кота с пятном на морде в виде усов" src="cats_photos/cat13.jpg">
<div class="information">
<div class="name">
<a href="#">Мистер Усач</a>
</div>
<div class="category">Необычный окрас</div>
<div class="raiting">
<span>&#9733;</span>
<span>&#9733;</span>
<span>&#9733;</span>
<span>&#9733;</span>
<span>&#9734;</span>
</div>
<div class="price">
<ins class="current-price">14 мурлей</ins>
</div>
<div class="description">Самый оригинальный котик!</div>
</div>
</div>
</main>
</body>
</html>
Binary file added spisok.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.