-
Notifications
You must be signed in to change notification settings - Fork 47
Фомин Денис #28
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
ilearnf
wants to merge
20
commits into
urfu-2016:master
Choose a base branch
from
ilearnf: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
Фомин Денис #28
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
cb51584
initial
ilearnf ffdd31a
task
ilearnf e066a79
hru
ilearnf 242c830
lint
ilearnf e9dfb72
linted
ilearnf 94ab1a3
task
ilearnf 6c177a8
lint
ilearnf 482b823
lint
ilearnf 84e845a
lint
ilearnf 0d12227
lint
ilearnf 9fe9c9a
lint
ilearnf 2efed0e
img lint
ilearnf 016be83
created imgs
ilearnf 891f4e8
lint;
ilearnf f142732
corrections
ilearnf 1f81156
lint
ilearnf 1c77bca
lint
ilearnf cd3ba26
lint
ilearnf 1e23842
lint
ilearnf 3269a23
lint
ilearnf 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.
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.
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.
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,399 @@ | ||
| body | ||
| { | ||
| position: relative; | ||
| min-height: 100%; | ||
| } | ||
|
|
||
| html | ||
| { | ||
| height: 100%; | ||
| } | ||
|
|
||
| .grid | ||
| { | ||
| padding-bottom: 50px; | ||
| display: grid; | ||
| grid-template-columns: 3fr 1fr; | ||
| } | ||
|
|
||
| main | ||
| { | ||
| display: grid; | ||
| grid-template-columns: 1fr 3fr; | ||
| grid-template-areas: 'nav content'; | ||
| padding: 2px; | ||
| background: rgb(230, 230, 230); | ||
| } | ||
|
|
||
| .breed-category-radio | ||
| { | ||
| display: none; | ||
| } | ||
|
|
||
| .breed-labels | ||
| { | ||
| grid-column-start: nav-start; | ||
| grid-column-end: nav-end; | ||
| text-align: center; | ||
| padding: 2px; | ||
| height: 100%; | ||
| } | ||
|
|
||
| .breed-category | ||
| { | ||
| display: block; | ||
| width: 100%; | ||
| height: 50px; | ||
| background: rgb(200, 200, 200); | ||
| border-bottom: 1px solid black; | ||
| } | ||
|
|
||
| .breed-category:hover | ||
| { | ||
| background: #ccf; | ||
| } | ||
|
|
||
| .breed-category:checked | ||
| { | ||
| background: blue; | ||
| } | ||
|
|
||
| .breed-category-radio[title='thai']:checked ~ .cards-grid-template .card:not( | ||
| [title='thai']) | ||
| { | ||
| opacity: .6; | ||
| } | ||
|
|
||
| .breed-category-radio[ | ||
| title='mainecoon']:checked ~ .cards-grid-template .card:not( | ||
| [title='maincoone']) | ||
| { | ||
| opacity: .6; | ||
| } | ||
|
|
||
| .breed-category-radio[title='home']:checked ~ .cards-grid-template .card:not( | ||
| [title='home']) | ||
| { | ||
| opacity: .6; | ||
| } | ||
|
|
||
| .breed-category-radio[title='bengal']:checked ~ .cards-grid-template .card:not( | ||
| [title='bengal']) | ||
| { | ||
| opacity: .6; | ||
| } | ||
|
|
||
| .breed-category-radio[title='somaly']:checked ~ .cards-grid-template .card:not( | ||
| [title='somaly']) | ||
| { | ||
| opacity: .6; | ||
| } | ||
|
|
||
| .rating | ||
| { | ||
| grid-row: auto; | ||
| padding: 2px; | ||
| background: rgb(200, 200, 200); | ||
| } | ||
|
|
||
| .cards-grid-template | ||
| { | ||
| grid-column-start: content-start; | ||
| grid-column-end: content-end; | ||
| display: grid; | ||
| grid-template-columns: 1fr 1fr 1fr; | ||
| grid-template-areas: 'first second second' | ||
| 'third fourth fifth' | ||
| 'sixth sixth seventh' | ||
| 'eighth eighth eighth'; | ||
| } | ||
|
|
||
| .card-image | ||
| { | ||
| width: 100%; | ||
| height: 100%; | ||
| } | ||
|
|
||
| .cards-grid-template > .card | ||
| { | ||
| height: 250px; | ||
| width: 99%; | ||
| padding: 2px; | ||
| position: relative; | ||
| } | ||
|
|
||
| .cards-grid-template > :nth-child(8n+1) | ||
| { | ||
| grid-column-start: first-start; | ||
| grid-column-end: first-end; | ||
| } | ||
|
|
||
| .cards-grid-template > :nth-child(8n+2) | ||
| { | ||
| grid-column-start: second-start; | ||
| grid-column-end: second-end; | ||
| } | ||
|
|
||
| .cards-grid-template > :nth-child(8n+3) | ||
| { | ||
| grid-column-start: third-start; | ||
| grid-column-end: third-end; | ||
| } | ||
|
|
||
| .cards-grid-template > :nth-child(8n+4) | ||
| { | ||
| grid-column-start: fourth-start; | ||
| grid-column-end: fourth-end; | ||
| } | ||
|
|
||
| .cards-grid-template > :nth-child(8n+5) | ||
| { | ||
| grid-column-start: fifth-start; | ||
| grid-column-end: fifth-end; | ||
| } | ||
|
|
||
| .cards-grid-template > :nth-child(8n+6) | ||
| { | ||
| grid-column-start: sixth-start; | ||
| grid-column-end: sixth-end; | ||
| } | ||
|
|
||
| .cards-grid-template > :nth-child(8n+7) | ||
| { | ||
| grid-column-start: seventh-start; | ||
| grid-column-end: seventh-end; | ||
| } | ||
|
|
||
| .cards-grid-template > :nth-child(8n) | ||
| { | ||
| grid-column-start: eighth-start; | ||
| grid-column-end: eighth-end; | ||
| } | ||
|
|
||
| .rating > .rating-values | ||
| { | ||
| display: grid; | ||
| grid-template-columns: auto; | ||
| } | ||
|
|
||
| .rating-info | ||
| { | ||
| display: grid; | ||
| grid-template-columns: auto 50px; | ||
| grid-template-areas: 'title title' | ||
| 'bar value'; | ||
| order: 50; | ||
| } | ||
|
|
||
| .rating-breed-name | ||
| { | ||
| grid-column-start: title-start; | ||
| grid-column-end: title-end; | ||
| color: blue; | ||
| } | ||
|
|
||
| .rating-title | ||
| { | ||
| color: blue; | ||
| order: 1; | ||
| } | ||
|
|
||
| .rating-value | ||
| { | ||
| color: blue; | ||
| grid-column-start: value-start; | ||
| grid-column-end: value-end; | ||
| } | ||
|
|
||
| .rating-sort | ||
| { | ||
| display: inline-block; | ||
| order: 2; | ||
| } | ||
|
|
||
| .rating-bar | ||
| { | ||
| height: 20px; | ||
| border: 1px solid blue; | ||
| grid-column-start: bar-start; | ||
| grid-column-end: bar-end; | ||
| } | ||
|
|
||
| /* stylelint-disable declaration-block-no-duplicate-properties */ | ||
|
|
||
| .rating-bar[title='5'] | ||
| { | ||
| width: 50%; | ||
| background: yellow; | ||
| background: -webkit-linear-gradient(left, yellow, white); | ||
| background: -o-linear-gradient(right, yellow, white); | ||
| background: -moz-linear-gradient(right, yellow, white); | ||
| background: linear-gradient(to right, yellow, white); | ||
| } | ||
|
|
||
| .rating-bar[title='10'] | ||
| { | ||
| width: 100%; | ||
| background: green; | ||
| background: -webkit-linear-gradient(left, green, white); | ||
| background: -o-linear-gradient(right, green, white); | ||
| background: -moz-linear-gradient(right, green, white); | ||
| background: linear-gradient(to right, green, white); | ||
| } | ||
|
|
||
| .rating-bar[title='1'] | ||
| { | ||
| width: 10%; | ||
| background: red; | ||
| background: -webkit-linear-gradient(left, red, white); | ||
| background: -o-linear-gradient(right, red, white); | ||
| background: -moz-linear-gradient(right, red, white); | ||
| background: linear-gradient(to right, red, white); | ||
| } | ||
|
|
||
| .rating-bar[title='2'] | ||
| { | ||
| width: 20%; | ||
|
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. попробуй заюзать attr(), вдруг получится убрать повторение правил :) |
||
| background: red; | ||
| background: -webkit-linear-gradient(left, red, white); | ||
| background: -o-linear-gradient(right, red, white); | ||
| background: -moz-linear-gradient(right, red, white); | ||
| background: linear-gradient(to right, red, white); | ||
| } | ||
|
|
||
| .rating-bar[title='3'] | ||
| { | ||
| width: 30%; | ||
| background: red; | ||
| background: -webkit-linear-gradient(left, red, white); | ||
| background: -o-linear-gradient(right, red, white); | ||
| background: -moz-linear-gradient(right, red, white); | ||
| background: linear-gradient(to right, red, white); | ||
| } | ||
|
|
||
| .rating-bar[title='4'] | ||
| { | ||
| width: 40%; | ||
| background: red; | ||
| background: -webkit-linear-gradient(left, red, white); | ||
| background: -o-linear-gradient(right, red, white); | ||
| background: -moz-linear-gradient(right, red, white); | ||
| background: linear-gradient(to right, red, white); | ||
| } | ||
|
|
||
| .rating-bar[title='6'] | ||
| { | ||
| width: 60%; | ||
| background: yellow; | ||
| background: -webkit-linear-gradient(left, yellow, white); | ||
| background: -o-linear-gradient(right, yellow, white); | ||
| background: -moz-linear-gradient(right, yellow, white); | ||
| background: linear-gradient(to right, yellow, white); | ||
| } | ||
|
|
||
| .rating-bar[title='7'] | ||
| { | ||
| width: 70%; | ||
| background: yellow; | ||
| background: -webkit-linear-gradient(left, yellow, white); | ||
| background: -o-linear-gradient(right, yellow, white); | ||
| background: -moz-linear-gradient(right, yellow, white); | ||
| background: linear-gradient(to right, yellow, white); | ||
| } | ||
|
|
||
| .rating-bar[title='8'] | ||
| { | ||
| width: 80%; | ||
| background: green; | ||
| background: -webkit-linear-gradient(left, green, white); | ||
| background: -o-linear-gradient(right, green, white); | ||
| background: -moz-linear-gradient(right, green, white); | ||
| background: linear-gradient(to right, green, white); | ||
| } | ||
|
|
||
| .rating-bar[title='9'] | ||
| { | ||
| width: 90%; | ||
| background: green; | ||
| background: -webkit-linear-gradient(left, green, white); | ||
| background: -o-linear-gradient(right, green, white); | ||
| background: -moz-linear-gradient(right, green, white); | ||
| background: linear-gradient(to right, green, white); | ||
| } | ||
|
|
||
| /* stylelint-enable declaration-block-no-duplicate-properties */ | ||
|
|
||
| .rating-sort:checked ~ .rating-info[title='10'] | ||
| { | ||
| order: 3; | ||
| } | ||
|
|
||
| .rating-sort:checked ~ .rating-info[title='9'] | ||
| { | ||
| order: 4; | ||
| } | ||
|
|
||
| .rating-sort:checked ~ .rating-info[title='8'] | ||
| { | ||
| order: 5; | ||
| } | ||
|
|
||
| .rating-sort:checked ~ .rating-info[title='7'] | ||
| { | ||
| order: 6; | ||
| } | ||
|
|
||
| .rating-sort:checked ~ .rating-info[title='6'] | ||
| { | ||
| order: 7; | ||
| } | ||
|
|
||
| .rating-sort:checked ~ .rating-info[title='5'] | ||
| { | ||
| order: 8; | ||
| } | ||
|
|
||
| .rating-sort:checked ~ .rating-info[title='4'] | ||
| { | ||
| order: 9; | ||
| } | ||
|
|
||
| .rating-sort:checked ~ .rating-info[title='3'] | ||
| { | ||
| order: 19; | ||
| } | ||
|
|
||
| .rating-sort:checked ~ .rating-info[title='2'] | ||
| { | ||
| order: 11; | ||
| } | ||
|
|
||
| .rating-sort:checked ~ .rating-info[title='1'] | ||
| { | ||
| order: 12; | ||
| } | ||
|
|
||
| .card-info | ||
| { | ||
| display: none; | ||
| } | ||
|
|
||
| .card:hover > .card-info | ||
| { | ||
| position: absolute; | ||
| top: 150px; | ||
| width: 100%; | ||
| background: rgba(50, 50, 50, .5); | ||
| display: block; | ||
| color: white; | ||
| text-align: color; | ||
| } | ||
|
|
||
| footer | ||
| { | ||
| height: 50px; | ||
| position: absolute; | ||
| bottom: 0; | ||
| left: 0; | ||
| width: 100%; | ||
| } | ||
Oops, something went wrong.
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.
здесь #ccf, а ниже blue. Давай единообразно делать