add nice show more button

This commit is contained in:
Lisa Passing 2015-03-10 17:21:18 +01:00
parent ce8e4db442
commit 9661bd11fd
4 changed files with 19 additions and 1 deletions

View File

@ -49,6 +49,10 @@
margin-bottom: 1em
border-bottom: solid $cream-dark 2px
.repo-main
.button--showmore
margin-top: 2em
.repo-main-commit
&,
small
@ -87,6 +91,7 @@
margin-right: 1.4em
border-right: $cream-dark 1px solid
line-height: $line-height-m
overflow: hidden
&:after
@include fadeOut(right, -90deg, $cream-light)
a

View File

@ -114,6 +114,7 @@ $button-border-color: #d4d4d4
@extend %border-radius-4px
&:hover,
&:active
border: none
background-color: lighten(#696867, 10)
&:focus
background-color: #696867
@ -122,3 +123,14 @@ $button-border-color: #d4d4d4
width: 1.7em
height: 1.7em
border-radius: 50%
.button--showmore
height: auto
padding: 0.3em 0.7em
font-size: $font-size-m
.icon
width: 1.1em
height: 0.65em
margin-right: .5em

View File

@ -1 +1 @@
{{view.label}}
<span class="icon icon--eye"></span>{{view.label}}

View File

@ -2,6 +2,7 @@
View = Ember.View.extend
tagName: 'button'
classNames: ['button button--grey button--showmore']
classNameBindings: ['isLoading', 'showMore']
showMore: true
attributeBindings: ['disabled']