-
Notifications
You must be signed in to change notification settings - Fork 62
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
Антонов Алексей #24
Open
AlekseyAnt
wants to merge
1
commit into
urfu-2016:master
Choose a base branch
from
AlekseyAnt: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
Антонов Алексей #24
Changes from all commits
Commits
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.
This file contains 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,275 @@ | ||
.radio-view | ||
{ | ||
display: none; | ||
} | ||
|
||
.header | ||
{ | ||
box-shadow: 0 20px 20px -20px #888; | ||
min-width: 700px; | ||
margin: 0 0 5px; | ||
} | ||
|
||
.header p | ||
{ | ||
margin: 0; | ||
text-align: right; | ||
} | ||
|
||
.logo | ||
{ | ||
font: 35px Comic Sans MS; | ||
margin: 0; | ||
text-align: center; | ||
} | ||
|
||
.logo > span | ||
{ | ||
font-family: Verdana; | ||
} | ||
|
||
.logo:first-letter | ||
{ | ||
color: #f00; | ||
} | ||
|
||
.cat:hover | ||
{ | ||
box-shadow: 8px -5px 8px -5px #ffd700, -8px -5px 8px -5px #ffd700; | ||
} | ||
|
||
.cat | ||
{ | ||
font-size: 0; | ||
box-shadow: 5px 0 10px #ddd, -5px 0 10px #ddd; | ||
position: relative; | ||
} | ||
|
||
.cat:after | ||
{ | ||
content: ''; | ||
position: absolute; | ||
width: 100%; | ||
height: 5%; | ||
bottom: 0; | ||
left: 0; | ||
background: linear-gradient(to bottom, #fff, #bbb 100%); | ||
} | ||
|
||
.female img:hover | ||
{ | ||
box-shadow: -10px 2px 10px -8px #ff4e40, 10px 2px 10px -8px #ff4e40; | ||
} | ||
|
||
.male img:hover | ||
{ | ||
box-shadow: -10px 2px 10px -8px blue, 10px 2px 10px -8px blue; | ||
} | ||
|
||
.img-content | ||
{ | ||
padding: 12px; | ||
box-sizing: border-box; | ||
vertical-align: bottom; | ||
text-align: center; | ||
width: 300px; | ||
} | ||
|
||
.img-content img | ||
{ | ||
max-height: 100%; | ||
max-width: 100%; | ||
} | ||
|
||
.info | ||
{ | ||
font-size: 15px; | ||
box-sizing: border-box; | ||
} | ||
|
||
figure, | ||
.info p, | ||
.info h2 | ||
{ | ||
margin: 0; | ||
} | ||
|
||
.main-info | ||
{ | ||
text-align: left; | ||
padding: 0; | ||
} | ||
|
||
.main-info h2 | ||
{ | ||
font-size: 1em; | ||
font-weight: normal; | ||
} | ||
|
||
.main-info p, | ||
.info h2 | ||
{ | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
} | ||
|
||
.kindness | ||
{ | ||
color: #ffd700; | ||
font-size: 1.5em; | ||
} | ||
|
||
.name:hover, | ||
.category:hover | ||
{ | ||
color: #f00; | ||
} | ||
|
||
.name | ||
{ | ||
font-size: 1.2em; | ||
} | ||
|
||
.category | ||
{ | ||
color: #ddd; | ||
} | ||
|
||
.price:after | ||
{ | ||
content: '₽'; | ||
} | ||
|
||
.price.current-price | ||
{ | ||
color: green; | ||
font-size: 1.5em; | ||
} | ||
|
||
.price.old-price | ||
{ | ||
text-decoration: line-through; | ||
} | ||
|
||
.description | ||
{ | ||
overflow: hidden; | ||
position: relative; | ||
} | ||
|
||
.horizontal-card:checked ~ .main | ||
{ | ||
width: 1000px; | ||
margin: 0 auto; | ||
} | ||
|
||
.horizontal-card:checked ~ .main .cat | ||
{ | ||
display: block; | ||
width: 1000px; | ||
height: 250px; | ||
margin: 15px 0; | ||
} | ||
|
||
.horizontal-card:checked ~ .main .img-content | ||
{ | ||
height: 100%; | ||
display: inline-block; | ||
} | ||
|
||
.horizontal-card:checked ~ .main .info | ||
{ | ||
display: inline-block; | ||
vertical-align: top; | ||
padding: 10px; | ||
} | ||
|
||
.horizontal-card:checked ~ .main .main-info | ||
{ | ||
padding-left: 30px; | ||
width: 300px; | ||
} | ||
|
||
.horizontal-card:checked ~ .main .description | ||
{ | ||
width: 400px; | ||
} | ||
|
||
.vertical-card:checked ~ .main .cat | ||
{ | ||
display: inline-block; | ||
width: 300px; | ||
margin: 10px; | ||
vertical-align: top; | ||
height: 550px; | ||
} | ||
|
||
.vertical-card:checked ~ .main .info | ||
{ | ||
display: block; | ||
padding: 0 10px; | ||
} | ||
|
||
.vertical-card:checked ~ .main .img-content | ||
{ | ||
height: 350px; | ||
display: table-cell; | ||
max-width: 300px; | ||
} | ||
|
||
.vertical-card:checked ~ .main .main-info | ||
{ | ||
height: 120px; | ||
} | ||
|
||
.vertical-card:checked ~ .main .description | ||
{ | ||
max-height: 80px; | ||
} | ||
|
||
.footer | ||
{ | ||
box-shadow: 0 -20px 10px -20px #888; | ||
min-width: 700px; | ||
height: 50px; | ||
} | ||
|
||
.kindness | ||
{ | ||
font-size: 0; | ||
width: 130px; | ||
} | ||
|
||
.kindness > input | ||
{ | ||
display: none; | ||
} | ||
|
||
.kindness > .half:after, | ||
div.kindness:hover > label.half:after, | ||
.kindness:hover > .half:hover:after | ||
{ | ||
content: url('images/stars/goldHalfStar.png'); | ||
} | ||
|
||
.kindness > .full:after, | ||
div.kindness:hover > label.full:after, | ||
.kindness:hover > .full:after | ||
{ | ||
content: url('images/stars/goldFullStar.png'); | ||
} | ||
|
||
.kindness > input:checked ~ .half:after, | ||
.kindness:hover > .half:hover ~ .half:after, | ||
.kindness:hover > .full:hover ~ .half:after | ||
{ | ||
content: url('images/stars/grayHalfStar.png'); | ||
} | ||
|
||
.kindness > input:checked ~ .full:after, | ||
.kindness:hover > .full:hover ~ .full:after, | ||
.kindness:hover > .half:hover ~ .full:after | ||
{ | ||
content: url('images/stars/grayFullStar.png'); | ||
} |
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.
В случае с ценой так делать, пожалуй, не стоит, потому что текст в псевдоэлементе нельзя выделить и скопировать. Но в целом пододное внимание к мелочам – это очень хорошо 👍 Так что можно не исправлять :)