Skip to content

Commit 324239a

Browse files
committed
ui *b0mb*
- more fun 3d animation & controls - better responsive behavior
1 parent e69c195 commit 324239a

File tree

6 files changed

+22
-26
lines changed

6 files changed

+22
-26
lines changed

app/stylus/animations.styl

+5-8
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ box-shadow(arg1, arg2, arg3)
2727

2828
@keyframes move-down
2929
0%
30-
transform translateY(-3) rotateZ(0deg)
31-
15%
32-
transform scale(1.1)
30+
transform translateY(-5px)
3331
30%
34-
transform rotateY(-3deg) translateY(3px)
32+
transform translateY(4px) scale(1.15)
3533
100%
36-
transform scale(.9) translateY(-2px)
34+
transform scale(.9) translateY(-3px)
3735

3836
@keyframes hover-around
3937
0%
@@ -52,12 +50,11 @@ box-shadow(arg1, arg2, arg3)
5250
animation-iteration-count infinite
5351
animation-direction alternate
5452
.move-down
55-
perspective 300
53+
perspective 100
5654
transformation-style preserve-3d
5755
animation-name move-down
58-
animation-name hover-around
5956
animation-direction alternate
60-
animation-duration 2s
57+
animation-duration 1s
6158
animation-iteration-count infinite
6259

6360
@keyframes tiny-grow

app/stylus/controls.styl

+11-11
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ label.switch-control
170170
text-shadow 0px 1px 0 black
171171
else
172172
text-shadow 0px 1px 0 black,1px 1px 0 rgba(100,100,100,.5)
173+
transform scale(1.02) translateY(-1px)
173174
transition none
174175
button:disabled:hover::before, input[type="submit"]:disabled:hover::before, input[type="button"]:disabled:hover::before
175176
background-image linear-gradient(to bottom, rgba(255,255,255,.05) 0%, rgba(255,255,255,.1) 80%)
@@ -190,7 +191,7 @@ button:disabled, input[type="submit"]:disabled, input[type="button"]:disabled
190191
//border-bottom 1px solid dark_theme_color
191192
//border-right 1px solid dark_theme_color
192193
border-bottom-color #888
193-
transform translateY(2px)
194+
transform translateY(1px)
194195
border-radius 8px / 4px
195196
opacity .9
196197
// bottom "darken" fx
@@ -210,16 +211,15 @@ input[type="submit"]::after, button::after, .button::after
210211
background-image linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.25) 100%)
211212
opacity .75
212213
height 4px
213-
// XXX this is stealing clicks! (...but it looks so good ;/)
214214
//- top gloss fx
215-
//input[type="submit"]:active::before, button:active::before, .button:active::before
216-
// height 53%!important
217-
// opacity .7
218-
//input[type="submit"]:hover::before, button:hover::before, .button:hover::before
219-
// background-image linear-gradient(to bottom, rgba(255,255,255,.33) 0%, rgba(255,255,255,.28) 100%)
220-
// opacity .9
221-
// height 48%
222-
// transition opacity .08s ease-out, height .02s ease-out
215+
input[type="submit"]:active::before, button:active::before, .button:active::before
216+
height 53%!important
217+
opacity .5!important
218+
input[type="submit"]:hover::before, button:hover::before, .button:hover::before
219+
background-image linear-gradient(to bottom, rgba(255,255,255,.33) 0%, rgba(255,255,255,.28) 100%)
220+
opacity .9
221+
height 48%
222+
transition opacity .08s ease-out, height .02s ease-out
223223
input[type="submit"]::before, button::before, .button::before
224224
position absolute
225225
content ''
@@ -263,6 +263,6 @@ input[type="submit"]::before, button::before, .button::before
263263
font-weight 500
264264
padding 6px 15px
265265
text-align center
266-
border-radius 6px/5px
266+
border-radius 3px
267267
//}}}
268268
// vim: fdm=marker

app/stylus/layout.styl

+2-1
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,7 @@ body.scrolled
639639
height header_height!important
640640
.onclick-scroll-top
641641
cursor n-resize
642+
z-index 9
642643
width 22px
643644
height 22px
644645
opacity 1
@@ -692,7 +693,7 @@ body.collapsed
692693
border none
693694
background-color theme_color
694695
height 48px
695-
width 28px
696+
width 23px
696697
border-radius 3px
697698
top 34px
698699
left 8px

app/stylus/mutants-layout.styl

+1-1
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ html.profile
739739
.forum
740740
.overview
741741
text-transform capitalize
742-
margin 0 0 20px -5px
742+
margin 0 0 20px 5px
743743
color #555
744744
font-size 1em
745745
border-bottom 1px solid #ddd

app/stylus/responsive.styl

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
display none
1111
#main_content.main-content
1212
.forum
13-
margin-left 0
13+
margin-left 20px
1414
footer
1515
.post-container
1616
width 85%!important
@@ -27,7 +27,7 @@
2727
.main-content
2828
.forum, .search
2929
padding-left 20px!important
30-
margin-left 0!important
30+
margin-left 20px!important
3131
.social
3232
bottom 12px
3333
z-index 6

component/Sales.styl

+1-3
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,7 @@ body.scrolled
307307
position absolute
308308
top 55px
309309
left 170px
310-
animation-duration 1s
311-
animation-iteration-count infinite
312-
animation-direction alternate
310+
transition none
313311
&:hover
314312
letter-spacing 4px
315313
color #fff

0 commit comments

Comments
 (0)