Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
d6ce2da369c3a57f87160737ab0e6b0624229255
1 parent
069aebb7
color box checked
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
template/www.yohobuy.com/partials/product/filter-box.phtml
web-static/sass/product/_filter-box.scss
template/www.yohobuy.com/partials/product/filter-box.phtml
View file @
d6ce2da
...
...
@@ -151,7 +151,7 @@
<div class="attr-content clearfix">
{{# price}}
<a class="attr
{{#if checked}}
checked{{/if}}" href="{{href}}">¥{{name}}</a>
<a class="attr
{{#if checked}}
checked{{/if}}" href="{{href}}">¥{{name}}</a>
{{/ price}}
<div class="ud-price-range">
...
...
@@ -172,8 +172,14 @@
<div class="attr-content clearfix">
{{# color}}
<a class="attr {{#if checked}}checked{{/if}}" href="{{href}}">
<i class="color-block" style="background: {{rgb}}"></i>
<a class="attr{{#if checked}} checked{{/if}}" href="{{href}}">
{{#if checked}}
<span class="color-block">
<i class="sub-color-block" style="background: {{rgb}}"></i>
</span>
{{^}}
<i class="color-block" style="background: {{rgb}}"></i>
{{/if}}
{{name}}
</a>
{{/ color}}
...
...
web-static/sass/product/_filter-box.scss
View file @
d6ce2da
...
...
@@ -60,6 +60,19 @@
margin-right
:
0
;
}
.checked
.color-block
{
width
:
16px
;
height
:
16px
;
border
:
2px
solid
#222
;
padding
:
2px
;
.sub-color-block
{
display
:
block
;
width
:
16px
;
height
:
16px
;
}
}
.checked-conditions
{
line-height
:
30px
;
...
...
Please
register
or
login
to post a comment