diff --git a/1.png b/1.png new file mode 100644 index 0000000..4db26c1 Binary files /dev/null and b/1.png differ diff --git a/2.png b/2.png new file mode 100644 index 0000000..b97db76 Binary files /dev/null and b/2.png differ diff --git a/3.png b/3.png new file mode 100644 index 0000000..6a63c1b Binary files /dev/null and b/3.png differ diff --git a/4.png b/4.png new file mode 100644 index 0000000..c78d123 Binary files /dev/null and b/4.png differ diff --git a/5.png b/5.png new file mode 100644 index 0000000..f87b05f Binary files /dev/null and b/5.png differ diff --git a/index.css b/index.css index e69de29..25307f2 100644 --- a/index.css +++ b/index.css @@ -0,0 +1,127 @@ +body +{ + margin: 0; + padding: 0; +} + +section +{ + width: 100%; + height: 100vh; +} + +section.bar +{ + vertical-align: top; + width: 22%; + height: 48%; + margin: 1%; + display: inline-block; + text-align: center; + border: 1px solid #000; + +} + +section.bar:hover +{ + width: 24%; + height: 52%; + margin: 0; +} + +section.description +{ + font-size: 12px; + word-wrap: break-word; + overflow: hidden; + height: 36%; + width: 96%; + margin: 2%; +} + +section.description:hover +{ + font-size: 15px; +} + +div.image +{ + margin: 2%; + padding: 0; + height: 56%; + width: 96%; +} + +div.image:hover +{ + margin: 0; + padding: 0; + height: 60%; + width: 100%; +} + +div.name:hover, +div.category:hover, +div.price:hover +{ + font-size: 150%; + color: #f00; +} + +div.image > img +{ + margin: 0; + max-width: 100%; + max-height: 100%; + border-radius: 50px; +} + +div.rating img +{ + width: 20px; +} + +input.checkbox:checked + section > section.bar +{ + display: block; + vertical-align: top; + width: 97%; + height: 31%; + margin: 1%; + text-align: left; + border: 1px solid #000; +} + +input.checkbox:checked + section > section.bar:hover +{ + height: 34%; + width: 99%; + margin: 0; + display: block; +} + +input.checkbox:checked + section > section.bar > section.description +{ + font-size: 12px; + word-wrap: break-word; + overflow: hidden; + height: 100%; + width: 59%; + margin: 0; + display: inline-block; +} + +input.checkbox:checked + section > section.bar > div.image +{ + display: inline-block; + width: 40%; + height: 100%; + margin: 0; +} + +input.checkbox:checked + section > section.bar > div.image > img +{ + margin: 0; + max-width: 100%; + border-radius: 50px; +} diff --git a/index.html b/index.html index d810ba7..4add4a3 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,118 @@
+