create avatar viewing window & add customizer-specific stylesheet

This commit is contained in:
Zachary Kain 2013-02-09 14:41:19 -05:00
parent 625dfe4b9b
commit 675b506ff5
4 changed files with 46 additions and 25 deletions

View file

@ -19,6 +19,7 @@
color: black
// basic avatar sprite group
.avatar
cursor: pointer
position: relative
@ -27,31 +28,19 @@
.character-sprites
position: absolute
top: -15px
.lvl
position: absolute
bottom: 0px
right: 10px
.main-avatar
// main and party avatars
.main-avatar, .party-avatar
margin-top: -12px
.character-sprites
top: -15px
.character-sprites span
position: absolute
table.customize td
padding: 10px
table.customize td div
cursor: pointer
-webkit-transition: 0.5s ease-out
-moz-transition: 0.5s ease-out
transition: 0.5s ease-out
table.customize td div:active
background-color: rgb(255, 242, 204);
-webkit-transition: none
-moz-transition: none
transition: none

View file

@ -0,0 +1,29 @@
// $customizations-modal layout
.avatar-window
margin: 0
border: 1px solid darkgrey;
width: 107px;
float: right;
.char-name
margin-top: 6px;
border-top: 1px solid darkgrey;
text-align: center
table.customize td
padding: 10px
table.customize td div
cursor: pointer
-webkit-transition: 0.5s ease-out
-moz-transition: 0.5s ease-out
transition: 0.5s ease-out
table.customize td div:active
background-color: rgb(255, 242, 204);
-webkit-transition: none
-moz-transition: none
transition: none

View file

@ -5,6 +5,7 @@
@import "./shop_sprites.styl";
@import "./tasks.styl";
@import "./avatar.styl";
@import "./customizer.styl";
@import "./items.styl";
html,body,p,h1,ul,li,table,tr,th,td

View file

@ -140,11 +140,13 @@ do a find for the string after "→"
<app:myModal modalId="customizations-modal" header="Customize">
{#with _user.preferences}
<table>
<td>
<!-- user avatar preview -->
<figure class="avatar-window">
<app:avatar profile={_user} />
</td>
</table>
<figcaption class="char-name">{username(_user.auth)}</figcaption>
</figure>
<table class='customize'>
<tr>Change Gender:</tr>
<tr>