rewrite2 woa, neither ng-class nor class with

bindings (ng-class="{{user.preferences.skin}}_whatever") seem to play
nicely attribute seletors (class^=m_head in this example). @litenull you
ever seen this before?
This commit is contained in:
Tyler Renelle 2013-08-27 22:19:27 -04:00
parent 34ec73877f
commit 79e130dd98

View file

@ -54,10 +54,13 @@ menu
// narrower spriting for customize modal
.customize-menu
// shared option-box styles
[class^="m_hair"], [class^="m_skin"], .m_head_0
width: 60px;
height: 60px;
.m_hair_blond,.m_hair_black,.m_hair_brown,.m_hair_white,
.f_hair_blond,.f_hair_black,.f_hair_brown,.f_hair_white,
.m_skin_dead,.m_skin_orc,.m_skin_asian,.m_skin_black,.m_skin_white,
.f_skin_dead,.f_skin_orc,.f_skin_asian,.f_skin_black,.f_skin_white,
.m_head_0,.f_head_0
width: 60px
height: 60px
// head
.m_head_0
@ -85,13 +88,6 @@ menu
.m_skin_white
background-position: -2907px -20px;
// narrower spriting for customize modal
.customize-menu
// shared option-box styles
[class^="f_hair"], [class^="f_skin"], [class^="f_armor"], .f_head_0
width: 60px;
height: 60px;
// head
.f_head_0
background-position: -1917px -9px;