-
Notifications
You must be signed in to change notification settings - Fork 99
Набойченко Георгий #95
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
Open
georgy-n
wants to merge
4
commits into
urfu-2018:master
Choose a base branch
from
georgy-n:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,107 @@ | ||
| .card | ||
| { | ||
| width: 300px; | ||
| border: 1.5px solid rgba(150, 145, 145, .3); | ||
| display: inline-block; | ||
| margin: 15px 15px 0 0; | ||
| } | ||
|
|
||
| .card:hover | ||
| { | ||
| box-shadow: 0 0 10px; | ||
| color: #1b1a1a; | ||
| } | ||
|
|
||
| .full-info-switch | ||
| { | ||
| display: none; | ||
| } | ||
|
|
||
| .full-info-switch-pic | ||
| { | ||
| width: 30px; | ||
| height: 30px; | ||
| display: block; | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| .full-info-switch:not(:checked) ~ .full-info-switch-pic | ||
| { | ||
| background: url(images/pic.jpg) center / contain; | ||
| } | ||
|
|
||
| .full-info-switch:checked ~ .full-info-switch-pic | ||
| { | ||
| background: url(images/pic2.jpg) center / contain; | ||
| } | ||
|
|
||
| .full-info-switch:checked ~ .card | ||
| { | ||
| width: 350px; | ||
| display: block; | ||
| } | ||
|
|
||
| .full-info-switch:not(:checked) ~ .card | ||
| { | ||
| display: inline-block; | ||
| } | ||
|
|
||
| .full-info-switch:checked ~ .card > .short-info, | ||
| .full-info-switch:not(:checked) ~ .card > .full-info | ||
| { | ||
| display: none; | ||
| } | ||
|
|
||
| img | ||
| { | ||
| width: 100%; | ||
| display: block; | ||
| } | ||
|
|
||
| img:hover | ||
| { | ||
| box-shadow: 0 0 10px; | ||
| color: #1b1a1a; | ||
| } | ||
|
|
||
| .short-info > ul | ||
| { | ||
| list-style-type: none; | ||
| padding: 0; | ||
|
|
||
| } | ||
|
|
||
| .name-link | ||
| { | ||
| text-decoration: none; | ||
| color: #1b1a1a; | ||
| } | ||
|
|
||
| .short-info > ul > li:hover | ||
| { | ||
| font-size: 104%; | ||
| } | ||
|
|
||
| .short-info | ||
| { | ||
| font-size: 15px; | ||
| font-family: Arial, Helvetica, sans-serif; | ||
| margin: 10px 0 0 16px; | ||
| } | ||
|
|
||
| .full-info | ||
| { | ||
| font-size: 15px; | ||
| font-family: Arial, Helvetica, sans-serif; | ||
| margin: 10px 0 20px 16px; | ||
| } | ||
|
|
||
| .cat-name | ||
| { | ||
| text-overflow: ellipsis; | ||
| overflow: hidden; | ||
| white-space: nowrap; | ||
| font-size: 25px; | ||
| font-family: Arial, Helvetica, sans-serif; | ||
| margin: 10px 0 0 15px; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,8 +2,164 @@ | |
| <html lang="ru"> | ||
| <head> | ||
| <meta charset="utf-8"> | ||
| <link rel="stylesheet" href="index.css" type="text/css"> | ||
| <title>Задача «Про котиков»</title> | ||
| </head> | ||
| <body> | ||
| <input id="FullInfoSwitch" class="full-info-switch" type="checkbox"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. id тоже лучше через |
||
| <label class="full-info-switch-pic" for="FullInfoSwitch"></label> | ||
| <article class="card"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. котики должны располагаться по центру |
||
| <img src="images/1.jpg" alt="cat"> | ||
| <h2 class="cat-name"><a class="name-link" href="#">Бора-бора</a></h2> | ||
| <div class="short-info"> | ||
| <ul> | ||
| <li>Возраст: 11 месяцев</li> | ||
| <li>Болезни: нет</li> | ||
| <li>Порода: лев</li> | ||
| <li>Статус: ищет хозяина</li> | ||
| </ul> | ||
| </div> | ||
| <div class="full-info"> | ||
| Дружелюбный, ласковый, ручной.<br> | ||
| Возраст почти пол года.<br> | ||
| Все прививки поставлены | ||
| </div> | ||
| </article> | ||
| <article class="card"> | ||
| <img src="images/1.jpg" alt="cat"> | ||
| <h2 class="cat-name"><a class="name-link" href="#">Бора-бора</a></h2> | ||
| <div class="short-info"> | ||
| <ul> | ||
| <li>Возраст: 11 месяцев</li> | ||
| <li>Болезни: нет</li> | ||
| <li>Порода: лев</li> | ||
| <li>Статус: ищет хозяина</li> | ||
| </ul> | ||
| </div> | ||
| <div class="full-info"> | ||
| Дружелюбный, ласковый, ручной.<br> | ||
| Возраст почти пол года.<br> | ||
| Все прививки поставлены | ||
| </div> | ||
| </article> | ||
| <article class="card"> | ||
| <img src="images/1.jpg" alt="cat"> | ||
| <h2 class="cat-name"><a class="name-link" href="#">Бора-бора</a></h2> | ||
| <div class="short-info"> | ||
| <ul> | ||
| <li>Возраст: 11 месяцев</li> | ||
| <li>Болезни: нет</li> | ||
| <li>Порода: лев</li> | ||
| <li>Статус: ищет хозяина</li> | ||
| </ul> | ||
| </div> | ||
| <div class="full-info"> | ||
| Дружелюбный, ласковый, ручной.<br> | ||
| Возраст почти пол года.<br> | ||
| Все прививки поставлены | ||
| </div> | ||
| </article> | ||
| <article class="card"> | ||
| <img src="images/1.jpg" alt="cat"> | ||
| <h2 class="cat-name"><a class="name-link" href="#">Бора-бора</a></h2> | ||
| <div class="short-info"> | ||
| <ul> | ||
| <li>Возраст: 11 месяцев</li> | ||
| <li>Болезни: нет</li> | ||
| <li>Порода: лев</li> | ||
| <li>Статус: ищет хозяина</li> | ||
| </ul> | ||
| </div> | ||
| <div class="full-info"> | ||
| Дружелюбный, ласковый, ручной.<br> | ||
| Возраст почти пол года.<br> | ||
| Все прививки поставлены | ||
| </div> | ||
| </article> | ||
| <article class="card"> | ||
| <img src="images/1.jpg" alt="cat"> | ||
| <h2 class="cat-name"><a class="name-link" href="#">Бора-бора</a></h2> | ||
| <div class="short-info"> | ||
| <ul> | ||
| <li>Возраст: 11 месяцев</li> | ||
| <li>Болезни: нет</li> | ||
| <li>Порода: лев</li> | ||
| <li>Статус: ищет хозяина</li> | ||
| </ul> | ||
| </div> | ||
| <div class="full-info"> | ||
| Дружелюбный, ласковый, ручной.<br> | ||
| Возраст почти пол года.<br> | ||
| Все прививки поставлены | ||
| </div> | ||
| </article> | ||
| <article class="card"> | ||
| <img src="images/1.jpg" alt="cat"> | ||
| <h2 class="cat-name"><a class="name-link" href="#">Бора-бора</a></h2> | ||
| <div class="short-info"> | ||
| <ul> | ||
| <li>Возраст: 11 месяцев</li> | ||
| <li>Болезни: нет</li> | ||
| <li>Порода: лев</li> | ||
| <li>Статус: ищет хозяина</li> | ||
| </ul> | ||
| </div> | ||
| <div class="full-info"> | ||
| Дружелюбный, ласковый, ручной.<br> | ||
| Возраст почти пол года.<br> | ||
| Все прививки поставлены | ||
| </div> | ||
| </article> | ||
| <article class="card"> | ||
| <img src="images/1.jpg" alt="cat"> | ||
| <h2 class="cat-name"><a class="name-link" href="#">Бора-бора</a></h2> | ||
| <div class="short-info"> | ||
| <ul> | ||
| <li>Возраст: 11 месяцев</li> | ||
| <li>Болезни: нет</li> | ||
| <li>Порода: лев</li> | ||
| <li>Статус: ищет хозяина</li> | ||
| </ul> | ||
| </div> | ||
| <div class="full-info"> | ||
| Дружелюбный, ласковый, ручной.<br> | ||
| Возраст почти пол года.<br> | ||
| Все прививки поставлены | ||
| </div> | ||
| </article> | ||
| <article class="card"> | ||
| <img src="images/1.jpg" alt="cat"> | ||
| <h2 class="cat-name"><a class="name-link" href="#">Бора-бора</a></h2> | ||
| <div class="short-info"> | ||
| <ul> | ||
| <li>Возраст: 11 месяцев</li> | ||
| <li>Болезни: нет</li> | ||
| <li>Порода: лев</li> | ||
| <li>Статус: ищет хозяина</li> | ||
| </ul> | ||
| </div> | ||
| <div class="full-info"> | ||
| Дружелюбный, ласковый, ручной.<br> | ||
| Возраст почти пол года.<br> | ||
| Все прививки поставлены | ||
| </div> | ||
| </article> | ||
| <article class="card"> | ||
| <img src="images/1.jpg" alt="cat"> | ||
| <h2 class="cat-name"><a class="name-link" href="#">Бора-бора</a></h2> | ||
| <div class="short-info"> | ||
| <ul> | ||
| <li>Возраст: 11 месяцев</li> | ||
| <li>Болезни: нет</li> | ||
| <li>Порода: лев</li> | ||
| <li>Статус: ищет хозяина</li> | ||
| </ul> | ||
| </div> | ||
| <div class="full-info"> | ||
| Дружелюбный, ласковый, ручной.<br> | ||
| Возраст почти пол года.<br> | ||
| Все прививки поставлены | ||
| </div> | ||
| </article> | ||
| </body> | ||
| </html> | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
хотелось бы видеть разных котиков, в том числе в вертикальной ориентации, чтобы проверить, как будет работать с такими