add nice show more button
This commit is contained in:
parent
ce8e4db442
commit
9661bd11fd
|
@ -49,6 +49,10 @@
|
||||||
margin-bottom: 1em
|
margin-bottom: 1em
|
||||||
border-bottom: solid $cream-dark 2px
|
border-bottom: solid $cream-dark 2px
|
||||||
|
|
||||||
|
.repo-main
|
||||||
|
.button--showmore
|
||||||
|
margin-top: 2em
|
||||||
|
|
||||||
.repo-main-commit
|
.repo-main-commit
|
||||||
&,
|
&,
|
||||||
small
|
small
|
||||||
|
@ -87,6 +91,7 @@
|
||||||
margin-right: 1.4em
|
margin-right: 1.4em
|
||||||
border-right: $cream-dark 1px solid
|
border-right: $cream-dark 1px solid
|
||||||
line-height: $line-height-m
|
line-height: $line-height-m
|
||||||
|
overflow: hidden
|
||||||
&:after
|
&:after
|
||||||
@include fadeOut(right, -90deg, $cream-light)
|
@include fadeOut(right, -90deg, $cream-light)
|
||||||
a
|
a
|
||||||
|
|
|
@ -114,6 +114,7 @@ $button-border-color: #d4d4d4
|
||||||
@extend %border-radius-4px
|
@extend %border-radius-4px
|
||||||
&:hover,
|
&:hover,
|
||||||
&:active
|
&:active
|
||||||
|
border: none
|
||||||
background-color: lighten(#696867, 10)
|
background-color: lighten(#696867, 10)
|
||||||
&:focus
|
&:focus
|
||||||
background-color: #696867
|
background-color: #696867
|
||||||
|
@ -122,3 +123,14 @@ $button-border-color: #d4d4d4
|
||||||
width: 1.7em
|
width: 1.7em
|
||||||
height: 1.7em
|
height: 1.7em
|
||||||
border-radius: 50%
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{{view.label}}
|
<span class="icon icon--eye"></span>{{view.label}}
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
View = Ember.View.extend
|
View = Ember.View.extend
|
||||||
tagName: 'button'
|
tagName: 'button'
|
||||||
|
classNames: ['button button--grey button--showmore']
|
||||||
classNameBindings: ['isLoading', 'showMore']
|
classNameBindings: ['isLoading', 'showMore']
|
||||||
showMore: true
|
showMore: true
|
||||||
attributeBindings: ['disabled']
|
attributeBindings: ['disabled']
|
||||||
|
|
Loading…
Reference in New Issue
Block a user