Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 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 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 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 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 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 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 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 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 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 cat9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
139 changes: 139 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
html,
body,
div,
img,
a,
p
{
margin: 0;
padding: 0;
}

body
{
padding: 20px;
}

.hidden
{
display: none;
}

.cat
{
font-size: .85rem;
vertical-align: top;
margin: 15px;
padding: 15px;
border: 5px ridge #d3e2ed;
}

.list-view
{
display: block;
}

.list-view:not(:checked) ~ .cat
{
width: 250px;
display: inline-block;
}

.cat:hover
{
box-shadow: 0 0 10px
#a9a2ed, 0 0 25px #80ed90;
}

.cat > a,
.cat > div,
.cat > p
{
margin: auto;
width: 100%;
height: auto;
}

.list-view:checked ~ .cat > a,
.list-view:checked ~ .cat > div,
.list-view:checked ~ .cat > p
{
display: inline-block;
width: 31%;
height: auto;
vertical-align: top;
}

.cat-img img
{
width: 100%;
height: auto;
}

.cat-img:hover
{
box-shadow: 0 0 3px
#a9a2ed, 0 0 10px #80ed90;
}

.cat-img:hover + div .name
{
text-shadow: 0 0 7px #d6dced;
}

.name:hover
{
text-shadow: 0 0 7px #d6dced;
}

.breed:hover
{
text-decoration: underline;
}

.name
{
font-size: 1.1rem;
white-space: nowrap;
display: block;
overflow: hidden;
text-overflow: ellipsis;
}

.breed
{
font-size: .9rem;
}

.cat .kindness
{
background: url('kind.png');
height: 30px;
}

.kind-3
{
width: 90px;
}

.kind-4
{
width: 120px;
}

.kind-5
{
width: 150px;
}

.price
{
font-size: 1.2rem;
color: red;
}

.oldprice
{
color: #edcf1d;
text-decoration: line-through;
}
249 changes: 249 additions & 0 deletions index.html

Large diffs are not rendered by default.

Binary file added kind.png
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 list.png
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 tile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.