Skip to content

Commit

Permalink
ui *b0mb*
Browse files Browse the repository at this point in the history
- more fun 3d animation & controls
- better responsive behavior
  • Loading branch information
khoerling committed Oct 14, 2014
1 parent e69c195 commit 324239a
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 26 deletions.
13 changes: 5 additions & 8 deletions app/stylus/animations.styl
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ box-shadow(arg1, arg2, arg3)

@keyframes move-down
0%
transform translateY(-3) rotateZ(0deg)
15%
transform scale(1.1)
transform translateY(-5px)
30%
transform rotateY(-3deg) translateY(3px)
transform translateY(4px) scale(1.15)
100%
transform scale(.9) translateY(-2px)
transform scale(.9) translateY(-3px)

@keyframes hover-around
0%
Expand All @@ -52,12 +50,11 @@ box-shadow(arg1, arg2, arg3)
animation-iteration-count infinite
animation-direction alternate
.move-down
perspective 300
perspective 100
transformation-style preserve-3d
animation-name move-down
animation-name hover-around
animation-direction alternate
animation-duration 2s
animation-duration 1s
animation-iteration-count infinite

@keyframes tiny-grow
Expand Down
22 changes: 11 additions & 11 deletions app/stylus/controls.styl
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ label.switch-control
text-shadow 0px 1px 0 black
else
text-shadow 0px 1px 0 black,1px 1px 0 rgba(100,100,100,.5)
transform scale(1.02) translateY(-1px)
transition none
button:disabled:hover::before, input[type="submit"]:disabled:hover::before, input[type="button"]:disabled:hover::before
background-image linear-gradient(to bottom, rgba(255,255,255,.05) 0%, rgba(255,255,255,.1) 80%)
Expand All @@ -190,7 +191,7 @@ button:disabled, input[type="submit"]:disabled, input[type="button"]:disabled
//border-bottom 1px solid dark_theme_color
//border-right 1px solid dark_theme_color
border-bottom-color #888
transform translateY(2px)
transform translateY(1px)
border-radius 8px / 4px
opacity .9
// bottom "darken" fx
Expand All @@ -210,16 +211,15 @@ input[type="submit"]::after, button::after, .button::after
background-image linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.25) 100%)
opacity .75
height 4px
// XXX this is stealing clicks! (...but it looks so good ;/)
//- top gloss fx
//input[type="submit"]:active::before, button:active::before, .button:active::before
// height 53%!important
// opacity .7
//input[type="submit"]:hover::before, button:hover::before, .button:hover::before
// background-image linear-gradient(to bottom, rgba(255,255,255,.33) 0%, rgba(255,255,255,.28) 100%)
// opacity .9
// height 48%
// transition opacity .08s ease-out, height .02s ease-out
input[type="submit"]:active::before, button:active::before, .button:active::before
height 53%!important
opacity .5!important
input[type="submit"]:hover::before, button:hover::before, .button:hover::before
background-image linear-gradient(to bottom, rgba(255,255,255,.33) 0%, rgba(255,255,255,.28) 100%)
opacity .9
height 48%
transition opacity .08s ease-out, height .02s ease-out
input[type="submit"]::before, button::before, .button::before
position absolute
content ''
Expand Down Expand Up @@ -263,6 +263,6 @@ input[type="submit"]::before, button::before, .button::before
font-weight 500
padding 6px 15px
text-align center
border-radius 6px/5px
border-radius 3px
//}}}
// vim: fdm=marker
3 changes: 2 additions & 1 deletion app/stylus/layout.styl
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ body.scrolled
height header_height!important
.onclick-scroll-top
cursor n-resize
z-index 9
width 22px
height 22px
opacity 1
Expand Down Expand Up @@ -692,7 +693,7 @@ body.collapsed
border none
background-color theme_color
height 48px
width 28px
width 23px
border-radius 3px
top 34px
left 8px
Expand Down
2 changes: 1 addition & 1 deletion app/stylus/mutants-layout.styl
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ html.profile
.forum
.overview
text-transform capitalize
margin 0 0 20px -5px
margin 0 0 20px 5px
color #555
font-size 1em
border-bottom 1px solid #ddd
Expand Down
4 changes: 2 additions & 2 deletions app/stylus/responsive.styl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
display none
#main_content.main-content
.forum
margin-left 0
margin-left 20px
footer
.post-container
width 85%!important
Expand All @@ -27,7 +27,7 @@
.main-content
.forum, .search
padding-left 20px!important
margin-left 0!important
margin-left 20px!important
.social
bottom 12px
z-index 6
Expand Down
4 changes: 1 addition & 3 deletions component/Sales.styl
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,7 @@ body.scrolled
position absolute
top 55px
left 170px
animation-duration 1s
animation-iteration-count infinite
animation-direction alternate
transition none
&:hover
letter-spacing 4px
color #fff
Expand Down

0 comments on commit 324239a

Please sign in to comment.