Skip to content
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

Дорохова Татьяна #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
119 changes: 119 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
main

Choose a reason for hiding this comment

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

Все основные правила лучше применять к body

{
width: 1050px;
position: relative;
overflow: hidden;
display: block;
margin: 0 auto;
}

a
{
text-decoration: none;
font-size: 34px;
color: #111;
}

.vegetables-gallery
{
width: 3400px;
transition: all 2s ease-in-out;

Choose a reason for hiding this comment

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

Поменяй порядок: сначала правила с префиксами, потом без них

-webkit-transition: all 2s ease-in-out;
-moz-transition: all 2s ease-in-out;
-o-transition: all 2s ease-in-out;
}

.page1,
.page2,
.page3
{
display: inline-block;
margin: 0 auto;
font: 14px Arial;
}

.vegetable
{
margin: 5px;
width: 250px;
display: inline-block;
vertical-align: top;
}

.vegetable img
{
width: 100%;
}

.vegetable .vegetable-name,
.vegetable .description,
.modal
{
display: none;
}

.modal
{
position: fixed;
background: rgba(25, 184, 11, .2);
z-index: 5;
width: 100%;
height: 100%;
display: none;

Choose a reason for hiding this comment

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

Дублируется правило

top: 0;
left: 0;
}

.modal .hidden-image
{
margin: 0 auto;
margin-top: 10%;
max-width: 30%;
max-height: 30%;
}

.modal:target
{
display: block;
}

.vegetable:hover
{
box-shadow: 0 0 1px;
}

.vegetable:hover .vegetable-name,
.vegetable:hover .description
{
margin: 10px;
display: inline-block;
}

.slide1:checked ~ .vegetables-gallery
{
margin-left: 0;
}

.slide2:checked ~ .vegetables-gallery
{
margin-left: -1055px;
}

.slide3:checked ~ .vegetables-gallery
{
margin-left: -2110px;
}

.close
{
position: absolute;
font-size: 28px;
top: 30px;
right: 30px;
z-index: 15;
}

.close:hover
{
cursor: pointer;
}
282 changes: 282 additions & 0 deletions index.html

Large diffs are not rendered by default.

Binary file added vegetables/aubergine.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 vegetables/buriak.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 vegetables/carrot.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 vegetables/garlic.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 vegetables/maize.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 vegetables/momordica.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 vegetables/onion.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 vegetables/pattypan.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 vegetables/pepper.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 vegetables/radish.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 vegetables/scotch.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 vegetables/tomato.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.