|
@import "compass/css3"; |
|
|
|
// EXAMPLE ONLY // |
|
|
|
body { |
|
font-family: Sans-Serif; |
|
font-size: 0.75em; |
|
font-smooth: always; |
|
-webkit-font-smoothing: antialiased; |
|
text-shadow: 1px 1px 1px rgba(0,0,0,0.004); |
|
text-align: center; |
|
padding-top: 100px; |
|
white-space: nowrap; |
|
background: #fafafa; |
|
} |
|
.button-holder { |
|
display: inline-block; |
|
padding: 0.5em; |
|
border-radius: 2px; |
|
background: #fff; |
|
@include |
|
box-shadow( inset 0 0 2px rgba(#000, 0.2)); |
|
@include |
|
background-image( |
|
linear-gradient(rgba(#000, 0),rgba(#000, 0.015)) |
|
); |
|
} |
|
|
|
// END EXAMPLE // |
|
|
|
@font-face { |
|
font-family: 'Entypo'; |
|
src: url('../fonts/entypo.eot'); |
|
src: url('../fonts/entypo.eot?#iefix') format('embedded-opentype'), |
|
url('../fonts/entypo.woff') format('woff'), |
|
url('../fonts/entypo.ttf') format('truetype'), |
|
url('../fonts/entypo.svg#entypo') format('svg'); |
|
font-weight: normal; |
|
font-style: normal; |
|
} |
|
|
|
.button { |
|
|
|
// DESPLAY PROPERTIES // |
|
display: inline-block; |
|
|
|
// DIMENSIONS // |
|
padding: 0.1em 0.75em 0; |
|
line-height: 2.25em; |
|
|
|
// BORDER // |
|
border-color: rgba(#000, 0.4); |
|
@include border-radius(0.1875em); |
|
border-style: solid; |
|
border-width: 1px; |
|
|
|
// HIGHLIGHT & REFLECTION // |
|
@include |
|
box-shadow( |
|
inset 0 1px 0 0 rgba(#fff, 0.20), |
|
inset 0 0 0 2px rgba(#000, 0.05), |
|
inset 0 1em 0 0 rgba(#fff, 0.1) |
|
); |
|
|
|
// BACKGROUND PROPERTIES // |
|
background-size: 100% 200%; |
|
background-origin: border-box; |
|
|
|
// DEFAULT BACKGROUND COLOR // |
|
background-color: #666666; |
|
|
|
// GRADIENT OVERLAY // |
|
@include |
|
background-image( |
|
linear-gradient(rgba(#000, 0),rgba(#000, 0.2),rgba(#000, 0.4)) |
|
); |
|
|
|
// TEXT // |
|
color: white; |
|
text-decoration: none; |
|
text-shadow: 0 1px 0 rgba(#000, 0.1), |
|
0 -1px 0 rgba(#000, 0.2); |
|
|
|
// STATE TRANSITION // |
|
@include transition(background-position 150ms ease-in-out); |
|
|
|
// STATES // |
|
|
|
&:hover { |
|
background-position: 0 center; |
|
} |
|
|
|
&:active { |
|
@include transition(background-position 50ms ease-in-out); |
|
background-position: 0 bottom; |
|
border-color: rgba(#000, 0.5); |
|
box-shadow: inset 0 0 0 1px rgba(#fff, 0.05), |
|
inset 0 -1.5em 2px 0 rgba(#000, 0.05); |
|
|
|
} |
|
|
|
// COLOR SUBCLASSES // |
|
|
|
$base-color: #0080ff; |
|
$color-offset: 240; |
|
|
|
&.primary { |
|
background-color: adjust-hue($base-color, $color-offset * 0.0); |
|
} |
|
|
|
&.secondary { |
|
background-color: adjust-hue($base-color, $color-offset * 0.5); |
|
} |
|
|
|
&.tertiary { |
|
background-color: adjust-hue($base-color, $color-offset * 0.75); |
|
} |
|
|
|
&.white { |
|
background-color: #fff; |
|
color: #333; |
|
text-shadow: none; |
|
} |
|
|
|
// ICON SUBCLASSES // |
|
|
|
&.icon { |
|
|
|
&:before, &:after { |
|
font-family: 'Entypo'; |
|
font-size: 2.5em; |
|
position: relative; |
|
top: 0.12em; |
|
line-height: 0 |
|
} |
|
|
|
&.phone:before { |
|
content: 'π― '; |
|
} |
|
|
|
&.add-contact:before { |
|
content: 'ξ'; |
|
} |
|
|
|
&.login:after { |
|
content: ' ξ'; |
|
} |
|
|
|
&.cancel:before { |
|
content: 'β '; |
|
} |
|
|
|
&.tree:before { |
|
content: 'πͺ '; |
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|