-
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
Трушков Валерий #50
base: master
Are you sure you want to change the base?
Трушков Валерий #50
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
input[name='style-switcher']:checked ~ .products .products-item | ||
{ | ||
display: block; | ||
width: 95%; | ||
} | ||
|
||
input[name='style-switcher']:checked ~ .products .products-item-image, | ||
input[name='style-switcher']:checked ~ .products .products-item-info, | ||
input[name='style-switcher']:checked ~ .products .products-item-description, | ||
.products-item | ||
{ | ||
display: inline-block; | ||
vertical-align: top; | ||
} | ||
|
||
input[name='style-switcher']:checked ~ .products .products-item-image | ||
{ | ||
width: 20%; | ||
margin-right: 2%; | ||
} | ||
|
||
input[name='style-switcher']:checked ~ .products .products-item-info | ||
{ | ||
margin-right: 2%; | ||
width: 30%; | ||
max-width: 250px; | ||
} | ||
|
||
input[name='style-switcher']:checked ~ .products .products-item-description | ||
{ | ||
width: 30%; | ||
} | ||
|
||
.m-y-1 | ||
{ | ||
margin-top: 5px; | ||
margin-bottom: 5px; | ||
} | ||
|
||
.products | ||
{ | ||
font-size: 0; | ||
} | ||
|
||
.products-item | ||
{ | ||
font-size: 16px; | ||
margin: 1%; | ||
width: 28.5%; | ||
border: 1px solid transparent; | ||
padding: 1%; | ||
} | ||
|
||
.products-item:hover | ||
{ | ||
border-color: #000; | ||
} | ||
|
||
.products-item-image | ||
{ | ||
width: 100%; | ||
height: auto; | ||
} | ||
|
||
.products-item-info .title a | ||
{ | ||
font-size: 21px; | ||
display: block; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
.products-item-info .categories | ||
{ | ||
padding: 0; | ||
color: #555; | ||
} | ||
|
||
.products-item-info .categories li | ||
{ | ||
list-style: none; | ||
display: inline-block; | ||
} | ||
|
||
.products-item-info .categories li + li:before | ||
{ | ||
content: '-'; | ||
margin-right: 3px; | ||
} | ||
|
||
.products-item-info .price | ||
{ | ||
clear: both; | ||
} | ||
|
||
.products-item-info .price .current-price | ||
{ | ||
color: #d60004; | ||
font-size: 21px; | ||
} | ||
|
||
.products-item-info .price .old-price | ||
{ | ||
color: #555; | ||
text-decoration: line-through; | ||
margin-left: 5px; | ||
} | ||
|
||
.rank | ||
{ | ||
float: left; | ||
display: block; | ||
direction: rtl; | ||
} | ||
|
||
.rank legend | ||
{ | ||
overflow: hidden; | ||
height: 0; | ||
} | ||
|
||
.rank input | ||
{ | ||
position: absolute; | ||
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. Зачем нужен position: absolute? 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. лишний |
||
display: none; | ||
} | ||
|
||
.rank label | ||
{ | ||
color: #ddd; | ||
} | ||
|
||
.rank label:before | ||
{ | ||
content: '★'; | ||
float: right; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
cursor: pointer; | ||
} | ||
|
||
.rank input:checked ~ label | ||
{ | ||
color: #ff8f1f; | ||
} | ||
|
||
.rank label:hover, | ||
.rank label:hover ~ label | ||
{ | ||
color: #ffdcbd; | ||
} | ||
|
||
.rank input:checked + label:hover, | ||
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. Откуда взял это решение? 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. css-tricks |
||
.rank input:checked + label:hover ~ label, | ||
.rank input:checked ~ label:hover, | ||
.rank input:checked ~ label:hover ~ label, | ||
.rank label:hover ~ input:checked ~ label | ||
{ | ||
color: #ffc08a; | ||
} | ||
|
||
a:hover | ||
{ | ||
color: #f00; | ||
} | ||
|
||
@media only screen and (min-width: 768px) | ||
{ | ||
.products-item | ||
{ | ||
width: 20.5%; | ||
} | ||
} |
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.
не нужен он тут вовсе. легенда была, но ее не стало, а стили остались