2014-07-12 02:00:18 +02:00
|
|
|
//
|
|
|
|
// kremalicious3
|
|
|
|
// --------------
|
|
|
|
// Buttons
|
|
|
|
//
|
|
|
|
|
2014-07-13 01:58:31 +02:00
|
|
|
// Reset default button element
|
|
|
|
button
|
|
|
|
padding: 0
|
|
|
|
cursor: pointer
|
|
|
|
background: transparent
|
|
|
|
border: 0
|
|
|
|
-webkit-appearance: none
|
|
|
|
|
|
|
|
&:active
|
|
|
|
background: $link-color
|
|
|
|
transition: none
|
|
|
|
text-shadow: none
|
|
|
|
|
2014-07-12 02:00:18 +02:00
|
|
|
.btn
|
|
|
|
@extend .textcenter
|
|
|
|
display: inline-block
|
|
|
|
margin-bottom: 0
|
|
|
|
font-weight: normal
|
|
|
|
vertical-align: middle
|
2014-07-13 00:42:57 +02:00
|
|
|
touch-action: manipulation
|
2014-07-12 02:00:18 +02:00
|
|
|
cursor: pointer
|
|
|
|
background-image: none // Reset unusual Firefox-on-Android default style
|
|
|
|
white-space: nowrap
|
|
|
|
user-select: none
|
|
|
|
transition: all .2s ease-in-out
|
|
|
|
|
|
|
|
// Default Button
|
2014-07-12 21:22:47 +02:00
|
|
|
button-size($padding-base-vertical, $padding-base-horizontal, $font-size-small, $line-height-base, $border-radius-base)
|
2014-07-12 02:00:18 +02:00
|
|
|
background-color: rgba(255,255,255,.1)
|
|
|
|
border: 1px solid rgba(94,131,162,.3)
|
|
|
|
border-bottom-color: rgba(94,131,162,.4)
|
|
|
|
font-family: $headings-font-family
|
|
|
|
font-weight: $headings-font-weight
|
|
|
|
color: $brand-grey
|
|
|
|
text-transform: uppercase
|
2014-07-13 01:08:55 +02:00
|
|
|
box-shadow: 0 1px 3px rgba($brand-grey-light, .2), inset 0 1px 0 rgba(255,255,255,.7)
|
2014-07-12 02:00:18 +02:00
|
|
|
|
2014-07-12 21:22:47 +02:00
|
|
|
&:hover,
|
2014-07-12 02:00:18 +02:00
|
|
|
&:focus
|
2014-07-12 21:22:47 +02:00
|
|
|
background-color: rgba(255,255,255,.5)
|
2014-07-12 02:00:18 +02:00
|
|
|
|
2014-07-12 21:22:47 +02:00
|
|
|
&:active
|
|
|
|
background-color: transparent
|
|
|
|
border-top-color: rgba(94,131,162,.5)
|
|
|
|
box-shadow: 0 1px 0 #fff
|
|
|
|
transition: none
|
2014-07-12 02:00:18 +02:00
|
|
|
|
|
|
|
&:focus
|
|
|
|
outline: 0
|
|
|
|
border-color: $input-border-focus
|
|
|
|
|
2014-07-12 21:22:47 +02:00
|
|
|
// Disabled State
|
|
|
|
&.disabled,
|
|
|
|
&[disabled],
|
|
|
|
fieldset[disabled] &
|
|
|
|
cursor: not-allowed
|
|
|
|
pointer-events: none // Future-proof disabling of clicks
|
|
|
|
opacity: .6
|
|
|
|
box-shadow: none
|
2014-07-12 02:00:18 +02:00
|
|
|
|
2014-07-13 01:08:55 +02:00
|
|
|
// grid buttons
|
|
|
|
&.col2,
|
|
|
|
&.col3
|
|
|
|
margin-bottom: ($line-height-computed/2)
|
|
|
|
|
|
|
|
@media $breakpoint2
|
|
|
|
margin-bottom: 0
|
|
|
|
|
2014-07-12 02:00:18 +02:00
|
|
|
.btn span
|
2014-07-12 21:22:47 +02:00
|
|
|
font-size: .9em
|
|
|
|
color: rgba(19, 56, 50, .6)
|
|
|
|
margin-left: .3em
|
2014-07-12 02:00:18 +02:00
|
|
|
|
|
|
|
// Primary Button
|
|
|
|
.btn-primary
|
2014-07-12 21:22:47 +02:00
|
|
|
color: darken($link-color, 50%)
|
|
|
|
text-shadow: 0 1px 0 rgba(255,255,255,.3)
|
|
|
|
background: lighten($link-color, 15%)
|
|
|
|
border-color: $link-color
|
|
|
|
box-shadow: 0 1px 3px $brand-grey-light, inset 0 1px 0 rgba(255,255,255,.4)
|
2014-07-12 02:00:18 +02:00
|
|
|
|
2014-07-12 21:22:47 +02:00
|
|
|
&:hover,
|
|
|
|
&:focus
|
|
|
|
color: darken($link-color, 50%)
|
|
|
|
background-color: lighten($link-color, 25%)
|
|
|
|
text-shadow: 0 1px 0 rgba(255,255,255,.3)
|
2014-07-12 02:00:18 +02:00
|
|
|
|
2014-07-12 21:22:47 +02:00
|
|
|
&:active
|
|
|
|
color: darken($link-color, 50%)
|
|
|
|
background-color: lighten($link-color, 15%)
|
|
|
|
box-shadow: 0 1px 0 #fff, inset 0 2px 5px rgba(43,100,92,.5)
|
2014-07-12 02:00:18 +02:00
|
|
|
|
|
|
|
.more-link
|
2014-07-12 21:22:47 +02:00
|
|
|
font-family: $headings-font-family
|
|
|
|
font-weight: $headings-font-weight
|
|
|
|
font-size: $font-size-small
|
|
|
|
color: $link-color
|
|
|
|
text-transform: uppercase
|
2014-07-12 02:00:18 +02:00
|
|
|
|
2014-07-12 21:22:47 +02:00
|
|
|
// icon
|
2014-07-12 02:00:18 +02:00
|
|
|
i:before
|
|
|
|
top: .15em
|
|
|
|
position: relative
|
|
|
|
|
|
|
|
.btn-block
|
2014-07-12 21:22:47 +02:00
|
|
|
display: block
|
2014-07-12 02:00:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Tweet button
|
|
|
|
//
|
|
|
|
.btn.twitter-share
|
|
|
|
display: inline-block
|
|
|
|
padding: 1px 3px 0 3px
|
|
|
|
height: 21px
|
2014-07-12 21:22:47 +02:00
|
|
|
border: 1px solid #ccc
|
|
|
|
border-radius: 3px
|
|
|
|
font: bold 11px/17px Helvetica, Arial, sans-serif
|
|
|
|
text-align: left
|
|
|
|
color: #333
|
|
|
|
text-transform: none
|
2014-07-12 02:00:18 +02:00
|
|
|
text-decoration: none
|
2014-07-12 21:22:47 +02:00
|
|
|
text-shadow: 0 1px 0 rgba(255, 255, 255, .5)
|
|
|
|
background-color: #f8f8f8
|
|
|
|
background-image: linear-gradient(top, #fff, #dedede)
|
|
|
|
vertical-align: top
|
|
|
|
box-shadow: none
|
2014-07-12 02:00:18 +02:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active
|
|
|
|
border-color: #bbb
|
|
|
|
background-color: #d9d9d9
|
2014-07-12 21:22:47 +02:00
|
|
|
background-image: linear-gradient(top, #f8f8f8, #d9d9d9)
|
2014-07-12 02:00:18 +02:00
|
|
|
|
|
|
|
&:active
|
|
|
|
top: 0
|
|
|
|
background-color: #efefef
|
2014-07-12 21:22:47 +02:00
|
|
|
box-shadow: inset 0 3px 5px rgba(0,0,0, .1)
|
2014-07-12 02:00:18 +02:00
|
|
|
|
|
|
|
// icon
|
2014-07-12 21:22:47 +02:00
|
|
|
&:before
|
|
|
|
font-size: 15px
|
2014-07-12 02:00:18 +02:00
|
|
|
margin-right: 2px
|
2014-07-13 01:42:15 +02:00
|
|
|
margin-left: 0
|
2014-07-12 02:00:18 +02:00
|
|
|
top: 1px
|
|
|
|
color: #0089cb
|
2014-07-12 21:22:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
// Close button
|
|
|
|
/////////////////////////////////////
|
|
|
|
|
|
|
|
.close
|
|
|
|
@extend .textcenter
|
|
|
|
width: 16px
|
|
|
|
height: 16px
|
2014-07-13 01:58:31 +02:00
|
|
|
line-height: 1
|
|
|
|
font-size: $font-size-small
|
2014-07-12 21:22:47 +02:00
|
|
|
border-radius: 16px
|
|
|
|
display: block
|
|
|
|
background: $brand-grey-light
|
|
|
|
color: #fff
|
|
|
|
|
2014-07-13 01:58:31 +02:00
|
|
|
&:hover,
|
|
|
|
&:focus
|
2014-07-13 00:42:57 +02:00
|
|
|
background: $link-color-hover
|
2014-07-13 01:58:31 +02:00
|
|
|
color: #fff
|
|
|
|
cursor: pointer
|