Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
fix mobile cat icon color (bug 1067600)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngokevin committed Sep 25, 2014
1 parent 16a3509 commit f2e6caa
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/media/css/categories.styl
Expand Up @@ -66,7 +66,17 @@
}
}

.desktop-cat-header {
display: none;
}

@media $at-least-desktop {
.mobile-cat-header {
display: none;
}
.desktop-cat-header {
display: block;
}
.category-header {
background: none;
padding: 0;
Expand Down
10 changes: 10 additions & 0 deletions src/media/css/category-icons.styl
Expand Up @@ -21,6 +21,16 @@ sprite-background-position($vertical-pos) {
&.cur-cat:before {
background-position: 0 $vertical-pos;
}
&.mobile-cat-header:focus:before,
&.mobile-cat-header:hover:before,
&.mobile-cat-header:before {
background-position: 100% $vertical-pos;
}
&.desktop-cat-header:focus:before,
&.desktop-cat-header:hover:before,
&.desktop-cat-header:before {
background-position: 0 $vertical-pos;
}
}

.cat-icon,
Expand Down
7 changes: 6 additions & 1 deletion src/templates/category.html
Expand Up @@ -13,7 +13,12 @@

<section class="main">
<header class="category-header">
<h3 class="cat-{{ category }} cat-icon cur-cat" data-cat-slug="{{ category }}">
<h3 class="cat-{{ category }} cat-icon mobile-cat-header"
data-cat-slug="{{ category }}">
{{ category_name }}
</h3>
<h3 class="cat-{{ category }} cat-icon desktop-cat-header"
data-cat-slug="{{ category }}">
{{ category_name }}
</h3>
</header>
Expand Down

0 comments on commit f2e6caa

Please sign in to comment.