compass-capucine 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,15 +1,7 @@
1
1
  source "http://rubygems.org"
2
2
  gem 'compass'
3
- # Add dependencies required to use your gem here.
4
- # Example:
5
- # gem "activesupport", ">= 2.3.5"
6
3
 
7
- # Add dependencies to develop your gem here.
8
- # Include everything needed to run rake, tests, features, etc.
9
4
  group :development do
10
- # gem "shoulda", ">= 0"
11
- # gem "rdoc", "~> 3.12"
12
5
  gem "bundler", "~> 1.0.0"
13
6
  gem "jeweler", "~> 1.8.3"
14
- # gem "rcov", ">= 0"
15
7
  end
data/README.md CHANGED
@@ -1,17 +1,17 @@
1
1
  # Compass plugin from Capucine
2
2
 
3
- You can take a look at [Capucine](http://github.com/damln/Capucine).
3
+ You can take a look at [Capucine](http://github.com/damln/Capucine).
4
4
 
5
5
  <a target="_blank" href="https://twitter.com/share" class="twitter-share-button" data-via="damln">Tweet This</a>
6
6
 
7
7
 
8
- ## Usage
8
+ ## Usage Standalone
9
9
 
10
10
  **Install the gem**
11
11
 
12
12
  gem install compass-capucine
13
13
 
14
- **Add it to your Gemfile**
14
+ ** or Add it to your Gemfile**
15
15
 
16
16
  gem 'compass-capucine'
17
17
 
@@ -26,7 +26,7 @@ You can take a look at [Capucine](http://github.com/damln/Capucine).
26
26
  **Import it into your SCSS file**
27
27
 
28
28
  @import "compass-capucine";
29
-
29
+
30
30
  This will import that :
31
31
 
32
32
  @import "compass-capucine/box";
@@ -37,7 +37,7 @@ This will import that :
37
37
  @import "compass-capucine/normalize";
38
38
  @import "compass-capucine/normalize-plus";
39
39
  @import "compass-capucine/print";
40
-
40
+
41
41
  @import "compass-capucine/helpers";
42
42
  @import "compass-capucine/box";
43
43
 
@@ -56,35 +56,31 @@ This will import that :
56
56
  bundle install
57
57
 
58
58
  **Add it to your Application.rb**
59
-
59
+
60
60
  # Enable the asset pipeline
61
61
  config.assets.enabled = true
62
62
 
63
63
  **Import it into your SCSS file**
64
64
 
65
65
  @import "compass-capucine";
66
-
67
-
66
+
67
+
68
68
  # Mixins availables
69
69
 
70
- ### Helpers
70
+ ### Helpers
71
71
 
72
72
  - `unselectable`
73
- - `hidden`
74
73
  - `visually-hidden`
75
74
  - `clearfix`
76
- - `scale-img`
77
75
  - `selection ( $background_color , $font_color )`
78
76
  - `pressed-effect ( $top_margin, $left_margin, $right_margin )`
79
77
  - `vertical-gradient ( $top_color, $bottom_color )`
80
- - `fake-helvetica ( $failback_font )`
81
78
  - `smart-text-shadow ( $color, $pixels )`
82
79
 
83
80
  ### Box
84
81
 
85
82
  - `box ( $width, $height, $display )`
86
83
  - `circle ( $diam )`
87
- - `square ( $size, $display )`
88
84
  - `centerX`
89
85
  - `centerXY ( $width, $heigh, $position )`
90
86
  - `max-width ( $max )`
data/Rakefile CHANGED
@@ -25,29 +25,8 @@ Jeweler::Tasks.new do |gem|
25
25
  end
26
26
  Jeweler::RubygemsDotOrgTasks.new
27
27
 
28
- # require 'rake/testtask'
29
- # Rake::TestTask.new(:test) do |test|
30
- # test.libs << 'lib' << 'test'
31
- # test.pattern = 'test/**/test_*.rb'
32
- # test.verbose = true
33
- # end
34
28
 
35
- # require 'rcov/rcovtask'
36
- # Rcov::RcovTask.new do |test|
37
- # test.libs << 'test'
38
- # test.pattern = 'test/**/test_*.rb'
39
- # test.verbose = true
40
- # test.rcov_opts << '--exclude "gems/*"'
41
- # end
42
29
 
43
- task :default => :test
30
+ task :default => :install
44
31
 
45
- # require 'rdoc/task'
46
- # Rake::RDocTask.new do |rdoc|
47
- # version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
32
 
49
- # rdoc.rdoc_dir = 'rdoc'
50
- # rdoc.title = "compass-capucine #{version}"
51
- # rdoc.rdoc_files.include('README*')
52
- # rdoc.rdoc_files.include('lib/**/*.rb')
53
- # end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "compass-capucine"
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Damian Le Nouaille"]
12
- s.date = "2012-05-28"
12
+ s.date = "2012-08-05"
13
13
  s.description = "Compass Plugin with helpers"
14
14
  s.email = "dam@dln.name"
15
15
  s.extra_rdoc_files = [
@@ -25,19 +25,32 @@ Gem::Specification.new do |s|
25
25
  "VERSION",
26
26
  "capucine-logo-mini.png",
27
27
  "compass-capucine.gemspec",
28
+ "examples/.compass_config.rb",
29
+ "examples/capucine.yaml",
30
+ "examples/css_generated/all.css",
31
+ "examples/css_generated/box.css",
32
+ "examples/css_generated/ie6.css",
33
+ "examples/css_generated/ie7.css",
34
+ "examples/css_generated/reset.css",
35
+ "examples/index.html",
36
+ "examples/sass/_box.scss",
37
+ "examples/sass/_helpers.scss",
38
+ "examples/sass/all.scss",
39
+ "examples/sass/ie6.scss",
40
+ "examples/sass/ie7.scss",
41
+ "examples/sass/reset.scss",
28
42
  "lib/compass-capucine.rb",
29
43
  "stylesheets/_compass-capucine.scss",
30
- "stylesheets/compass-capucine/_box.sass",
31
- "stylesheets/compass-capucine/_helpers.sass",
44
+ "stylesheets/compass-capucine/_box.scss",
45
+ "stylesheets/compass-capucine/_helpers.scss",
32
46
  "stylesheets/compass-capucine/_normalize-plus.scss",
33
47
  "stylesheets/compass-capucine/_normalize.scss",
34
- "stylesheets/compass-capucine/_print.scss",
35
- "stylesheets/compass-capucine/_reset.sass"
48
+ "stylesheets/compass-capucine/_print.scss"
36
49
  ]
37
50
  s.homepage = "http://github.com/damln/compass-capucine"
38
51
  s.licenses = ["MIT"]
39
52
  s.require_paths = ["lib"]
40
- s.rubygems_version = "1.8.21"
53
+ s.rubygems_version = "1.8.24"
41
54
  s.summary = "Compass Plugin with helpers"
42
55
 
43
56
  if s.respond_to? :specification_version then
@@ -0,0 +1,24 @@
1
+ # !!!! NEVER EDIT THIS FILE !!!!
2
+ # ALWAYS EDIT : capucine.yaml
3
+
4
+
5
+
6
+ require "compass-capucine"
7
+
8
+
9
+
10
+ project_type = :stand_alone
11
+
12
+
13
+ sass_dir = "sass"
14
+
15
+ css_dir = "css_generated"
16
+
17
+ images_dir = "public/images"
18
+
19
+ output_style = :expanded
20
+
21
+ line_comments = false
22
+
23
+ sass_options = {:cache => false}
24
+
@@ -0,0 +1,13 @@
1
+ use_compass: true
2
+
3
+ compass:
4
+ sass_dir: sass
5
+ css_dir: css_generated
6
+ output_style: expanded # compact | expanded | compressed
7
+
8
+ compass_plugins:
9
+ - compass-capucine
10
+
11
+
12
+
13
+ # DOCUMENTATION : http:// capucine.dln.name
@@ -0,0 +1,136 @@
1
+ .square {
2
+ width: 100px;
3
+ height: 100px;
4
+ background: #F0C526;
5
+ }
6
+
7
+ .box {
8
+ width: 200px;
9
+ height: 100px;
10
+ background: #F78331;
11
+ }
12
+
13
+ .circle {
14
+ width: 100px;
15
+ height: 100px;
16
+ -webkit-border-radius: 50px;
17
+ -moz-border-radius: 50px;
18
+ -ms-border-radius: 50px;
19
+ -o-border-radius: 50px;
20
+ border-radius: 50px;
21
+ background: #F73158;
22
+ }
23
+
24
+ .centerXY {
25
+ display: block;
26
+ position: absolute;
27
+ width: 300px;
28
+ height: 100px;
29
+ top: 50%;
30
+ left: 50%;
31
+ margin-top: -50px;
32
+ margin-left: -150px;
33
+ position: fixed;
34
+ background: #9E1B90;
35
+ }
36
+
37
+ .max-width {
38
+ max-width: 200px;
39
+ height: 100px;
40
+ background: #C231F7;
41
+ }
42
+
43
+ .min-max-width {
44
+ min-width: 500px;
45
+ max-width: 800px;
46
+ height: 100px;
47
+ background: #5C31F7;
48
+ margin: 0 auto;
49
+ }
50
+
51
+ .max-width-no-ie6 {
52
+ max-width: 230px;
53
+ }
54
+
55
+ .min-max-width-no-ie6 {
56
+ min-width: 100px;
57
+ max-width: 230px;
58
+ }
59
+
60
+ .unselectable {
61
+ -webkit-user-select: none;
62
+ -moz-user-select: none;
63
+ -ms-user-select: none;
64
+ -o-user-select: none;
65
+ user-select: none;
66
+ -moz-user-select: -moz-none;
67
+ }
68
+
69
+ .visually-hidden {
70
+ border: 0;
71
+ padding: 0;
72
+ clip: rect(0 0 0 0);
73
+ height: 1px;
74
+ width: 1px;
75
+ margin: -1px;
76
+ overflow: hidden;
77
+ position: absolute;
78
+ }
79
+ .visually-hidden.focusable:active, .visually-hidden.focusable:focus {
80
+ clip: auto;
81
+ height: auto;
82
+ padding: 0;
83
+ margin: 0;
84
+ overflow: visible;
85
+ position: static;
86
+ width: auto;
87
+ }
88
+
89
+ .clearfix {
90
+ clear: both;
91
+ display: block;
92
+ *zoom: 1;
93
+ }
94
+ .clearfix:before, .clearfix:after {
95
+ content: "\0020";
96
+ display: table;
97
+ }
98
+ .clearfix:after {
99
+ clear: both;
100
+ }
101
+
102
+ ::-moz-selection {
103
+ background: #87e5ff;
104
+ color: #fefefe;
105
+ }
106
+
107
+ ::selection {
108
+ background: #87e5ff;
109
+ color: #fefefe;
110
+ }
111
+
112
+ .pressed-effect:active {
113
+ position: relative;
114
+ top: 1px;
115
+ }
116
+
117
+ .vertical-gradient {
118
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #111111), color-stop(100%, #777777));
119
+ background-image: -webkit-linear-gradient(#111111, #777777);
120
+ background-image: -moz-linear-gradient(#111111, #777777);
121
+ background-image: -o-linear-gradient(#111111, #777777);
122
+ background-image: -ms-linear-gradient(#111111, #777777);
123
+ background-image: linear-gradient(#111111, #777777);
124
+ filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF111111', endColorstr='#FF777777');
125
+ width: 200px;
126
+ height: 200px;
127
+ }
128
+
129
+ .smart-text-shadow {
130
+ width: 200px;
131
+ height: 200px;
132
+ text-shadow: #777777 0 1px 0;
133
+ color: #444;
134
+ text-align: center;
135
+ padding: 20px;
136
+ }
@@ -0,0 +1,61 @@
1
+ .square {
2
+ width: 100px;
3
+ height: 100px;
4
+ background: #F0C526;
5
+ }
6
+
7
+ .box {
8
+ width: 200px;
9
+ height: 100px;
10
+ background: #F78331;
11
+ }
12
+
13
+ .circle {
14
+ width: 100px;
15
+ height: 100px;
16
+ -webkit-border-radius: 50px;
17
+ -moz-border-radius: 50px;
18
+ -ms-border-radius: 50px;
19
+ -o-border-radius: 50px;
20
+ border-radius: 50px;
21
+ background: #F73158;
22
+ }
23
+
24
+ .centerXY {
25
+ display: block;
26
+ position: absolute;
27
+ width: 300px;
28
+ height: 100px;
29
+ top: 50%;
30
+ left: 50%;
31
+ margin-top: -50px;
32
+ margin-left: -150px;
33
+ background: #9E1B90;
34
+ }
35
+
36
+ .max-width {
37
+ max-width: 200px;
38
+ width: expression(document.body.clientWidth > parseInt("200px") ? "200px" : "auto");
39
+ height: 100px;
40
+ background: #C231F7;
41
+ }
42
+
43
+ .min-max-width {
44
+ min-width: 500px;
45
+ width: auto !important;
46
+ width: 500px;
47
+ max-width: 800px;
48
+ width: expression(document.body.clientWidth > parseInt("800px") ? "800px" : "auto");
49
+ height: 100px;
50
+ background: #5C31F7;
51
+ margin: 0 auto;
52
+ }
53
+
54
+ .max-width-no-ie6 {
55
+ max-width: 230px;
56
+ }
57
+
58
+ .min-max-width-no-ie6 {
59
+ min-width: 100px;
60
+ max-width: 230px;
61
+ }
@@ -0,0 +1,140 @@
1
+ .square {
2
+ width: 100px;
3
+ height: 100px;
4
+ background: #F0C526;
5
+ }
6
+
7
+ .box {
8
+ width: 200px;
9
+ height: 100px;
10
+ background: #F78331;
11
+ }
12
+
13
+ .circle {
14
+ width: 100px;
15
+ height: 100px;
16
+ -webkit-border-radius: 50px;
17
+ -moz-border-radius: 50px;
18
+ -ms-border-radius: 50px;
19
+ -o-border-radius: 50px;
20
+ border-radius: 50px;
21
+ background: #F73158;
22
+ }
23
+
24
+ .centerXY {
25
+ display: block;
26
+ position: absolute;
27
+ width: 300px;
28
+ height: 100px;
29
+ top: 50%;
30
+ left: 50%;
31
+ margin-top: -50px;
32
+ margin-left: -150px;
33
+ position: fixed;
34
+ background: #9E1B90;
35
+ }
36
+
37
+ .max-width {
38
+ max-width: 200px;
39
+ width: expression(document.body.clientWidth > parseInt("200px") ? "200px" : "auto");
40
+ height: 100px;
41
+ background: #C231F7;
42
+ }
43
+
44
+ .min-max-width {
45
+ min-width: 500px;
46
+ width: auto !important;
47
+ width: 500px;
48
+ max-width: 800px;
49
+ width: expression(document.body.clientWidth > parseInt("800px") ? "800px" : "auto");
50
+ height: 100px;
51
+ background: #5C31F7;
52
+ margin: 0 auto;
53
+ }
54
+
55
+ .max-width-no-ie6 {
56
+ max-width: 230px;
57
+ }
58
+
59
+ .min-max-width-no-ie6 {
60
+ min-width: 100px;
61
+ max-width: 230px;
62
+ }
63
+
64
+ .unselectable {
65
+ -webkit-user-select: none;
66
+ -moz-user-select: none;
67
+ -ms-user-select: none;
68
+ -o-user-select: none;
69
+ user-select: none;
70
+ -moz-user-select: -moz-none;
71
+ }
72
+
73
+ .visually-hidden {
74
+ border: 0;
75
+ padding: 0;
76
+ clip: rect(0 0 0 0);
77
+ height: 1px;
78
+ width: 1px;
79
+ margin: -1px;
80
+ overflow: hidden;
81
+ position: absolute;
82
+ }
83
+ .visually-hidden.focusable:active, .visually-hidden.focusable:focus {
84
+ clip: auto;
85
+ height: auto;
86
+ padding: 0;
87
+ margin: 0;
88
+ overflow: visible;
89
+ position: static;
90
+ width: auto;
91
+ }
92
+
93
+ .clearfix {
94
+ clear: both;
95
+ display: block;
96
+ *zoom: 1;
97
+ }
98
+ .clearfix:before, .clearfix:after {
99
+ content: "\0020";
100
+ display: table;
101
+ }
102
+ .clearfix:after {
103
+ clear: both;
104
+ }
105
+
106
+ ::-moz-selection {
107
+ background: #87e5ff;
108
+ color: #fefefe;
109
+ }
110
+
111
+ ::selection {
112
+ background: #87e5ff;
113
+ color: #fefefe;
114
+ }
115
+
116
+ .pressed-effect:active {
117
+ position: relative;
118
+ top: 1px;
119
+ }
120
+
121
+ .vertical-gradient {
122
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #111111), color-stop(100%, #777777));
123
+ background-image: -webkit-linear-gradient(#111111, #777777);
124
+ background-image: -moz-linear-gradient(#111111, #777777);
125
+ background-image: -o-linear-gradient(#111111, #777777);
126
+ background-image: -ms-linear-gradient(#111111, #777777);
127
+ background-image: linear-gradient(#111111, #777777);
128
+ filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF111111', endColorstr='#FF777777');
129
+ width: 200px;
130
+ height: 200px;
131
+ }
132
+
133
+ .smart-text-shadow {
134
+ width: 200px;
135
+ height: 200px;
136
+ text-shadow: #777777 0 1px 0;
137
+ color: #444;
138
+ text-align: center;
139
+ padding: 20px;
140
+ }