slick-buttons 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/README.mkdn
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
This is a super simple button style pattern for use with compass.
|
@@ -0,0 +1,38 @@
|
|
1
|
+
// Use $app-color as a configurable var in your host project :-)
|
2
|
+
// will be working on a contrasting color scheme for bg and color settings within buttons to detect color conflicts
|
3
|
+
|
4
|
+
$btn-color: $app-color; // this will default to the applications base color
|
5
|
+
|
6
|
+
// Slick Button Style - creates a base button style for all buttons
|
7
|
+
@mixin slick-buttons($btn-color, $hover: true) {
|
8
|
+
background-color:darken($btn-color, 30%);
|
9
|
+
border:1px solid darken($btn-color, 40%);
|
10
|
+
color:darken($btn-color, 5%);
|
11
|
+
display:block;
|
12
|
+
font-size:1.38em;
|
13
|
+
// margin:0 .5em;
|
14
|
+
margin:0;
|
15
|
+
padding:.25em .5em;
|
16
|
+
text-decoration:none;
|
17
|
+
@include border-radius(.2em);
|
18
|
+
@include box-shadow(darken($btn-color, 60%) 0px 1px 2px, darken($app-grey, 10%) 0px 1px 0px inset);
|
19
|
+
@include background-image(linear-gradient(darken($btn-color, 20%), darken($btn-color, 40%)));
|
20
|
+
@include text-shadow(darken($btn-color, 50%) 0px -1px 0px);
|
21
|
+
@include transition(all .25s ease);
|
22
|
+
|
23
|
+
// hover state
|
24
|
+
@if $hover {
|
25
|
+
&:hover {
|
26
|
+
background-color:darken($btn-color, 50%);
|
27
|
+
border:1px solid darken($btn-color, 60%);
|
28
|
+
color:lighten($btn-color, 100%);
|
29
|
+
@include box-shadow(darken($btn-color, 40%) 0px 1px 2px, lighten($btn-color, 10%) 0px 1px 0px inset);
|
30
|
+
@include background-image(linear-gradient($btn-color, darken($btn-color, 15%)));
|
31
|
+
}
|
32
|
+
&:active {
|
33
|
+
background-color:darken($btn-color, 60%);
|
34
|
+
@include box-shadow(darken($btn-color, 30%) 0px 1px 5px inset, $btn-color 0px -1px 0px inset);
|
35
|
+
@include background-image(linear-gradient(darken($btn-color, 15%), $btn-color));
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
// This is where you put the contents of the main stylesheet for the user's project.
|
2
|
+
// It should import your sass stylesheets and demonstrate how to use them.
|
3
|
+
|
4
|
+
@import "slick_buttons";
|
5
|
+
|
6
|
+
// Configurable Variables
|
7
|
+
$app-color: #444 !default; // this will default to the applications base color if you declare it...
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Make sure you list all the project template files here in the manifest.
|
2
|
+
stylesheet '_slick_buttons.sass', :media => 'screen, projection'
|
3
|
+
|
4
|
+
description "Slick Buttons"
|
5
|
+
|
6
|
+
help %Q{
|
7
|
+
|
8
|
+
Documentation to follow
|
9
|
+
|
10
|
+
}
|
11
|
+
|
12
|
+
welcome_message %Q{
|
13
|
+
|
14
|
+
You've just installed Slick Buttons. Sweet!
|
15
|
+
|
16
|
+
}
|
metadata
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: slick-buttons
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Mike Farnham
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-12-07 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: compass
|
16
|
+
requirement: &2168700800 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0.11'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2168700800
|
25
|
+
description: Slick css3 buttons using compass and sass
|
26
|
+
email: mike@mikefarnham.info
|
27
|
+
executables: []
|
28
|
+
extensions: []
|
29
|
+
extra_rdoc_files: []
|
30
|
+
files:
|
31
|
+
- README.mkdn
|
32
|
+
- lib/slick_buttons.rb
|
33
|
+
- stylesheets/_slick_buttons.scss
|
34
|
+
- stylesheets/slick_buttons/_slick_buttons.scss
|
35
|
+
- templates/project/_slick_buttons.scss
|
36
|
+
- templates/project/manifest.rb
|
37
|
+
homepage: http://www.mikefarnham.info
|
38
|
+
licenses: []
|
39
|
+
post_install_message:
|
40
|
+
rdoc_options: []
|
41
|
+
require_paths:
|
42
|
+
- lib
|
43
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
45
|
+
requirements:
|
46
|
+
- - ! '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
requirements: []
|
56
|
+
rubyforge_project:
|
57
|
+
rubygems_version: 1.8.6
|
58
|
+
signing_key:
|
59
|
+
specification_version: 3
|
60
|
+
summary: css only buttons extension for compass
|
61
|
+
test_files: []
|