compass-lucid-grid 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  #The Lucid Grid
2
2
 
3
- Currently in early development. Comments/suggestions welcome!
3
+ Currently in early development. The API is still evolving, but feel free to give it a try. Comments/suggestions welcome!
4
4
 
5
5
  ###Lucid is for developers who:
6
6
 
@@ -13,18 +13,29 @@ Currently in early development. Comments/suggestions welcome!
13
13
  ###Developer's Notes:
14
14
 
15
15
  * Lucid uses @extend internally to prevent the CSS duplication that can happen with too many @includes.
16
- * Documenation is coming soon.
16
+ * Lucid allow you to adjust the width of grid element via a mixin parameter.
17
+ * Full documenation coming soon.
18
+ * MIT License
17
19
 
18
- ###Instructions:
20
+ ###Try it out:
19
21
 
20
- `(sudo) gem install compass-lucid-grid`
22
+ ```
23
+ (sudo) gem install compass-lucid-grid
24
+ compass help -r lucid lucid
25
+ ```
21
26
 
22
27
  THEN
23
28
 
24
- `cd your_existing_project`
25
- `echo "require 'lucid'" >> config.rb`
26
- `compass install -r lucid lucid`
29
+ ```
30
+ cd your_existing_project
31
+ echo "require 'lucid'" >> config.rb
32
+ compass install -r lucid lucid`
33
+ ```
27
34
 
28
35
  OR
29
36
 
30
- `compass create -r lucid --using lucid your_new_project`
37
+ ```
38
+ compass create -r lucid --using lucid your_new_project
39
+ ```
40
+
41
+ (Note: Creating a project with Lucid does not generate the default Compass stylesheets, only the `_grid.scss` partial.)
@@ -39,6 +39,12 @@
39
39
  @include _grid-element-style($columns, $offset, 0, $width-adjustment);
40
40
  }
41
41
 
42
+ // Element (without width, with gutters)
43
+ // Useful for aligning headers, orphans, etc.
44
+ @mixin col-widthless {
45
+ @extend #{$grid-hook-column};
46
+ }
47
+
42
48
  //
43
49
  // Experimental Media Query Adjustments
44
50
  //
@@ -43,6 +43,7 @@
43
43
  // @include col(3, 2); // shifted 2 columns to right
44
44
  // @include col(3, 2, 20px); // subtract 20px from `width` to adjust for borders/padding
45
45
  // @include col-gutterless(5, 2); // "gutterless" element, identical usage to `col()`
46
+ // @include col-widthless; // adds float and gutters only (useful for aligning headers, etc.)
46
47
  //
47
48
  // @include grid-classes; // generate .g* classes to use in markup
48
49
  // @include grid-classes(true); // generate .g* and .gl* (gutterless) classes
@@ -3,6 +3,9 @@ description "A Compass/SASS grid for people who love semantics."
3
3
  discover :all
4
4
 
5
5
  help %Q{
6
+
7
+ ***
8
+
6
9
  THE LUCID GRID | HELP
7
10
 
8
11
  SETUP
@@ -20,6 +23,7 @@ BASIC USAGE
20
23
  @include col(3, 2); // shifted 2 columns to right
21
24
  @include col(3, 2, 20px); // subtract 20px from `width` to adjust for borders/padding
22
25
  @include col-gutterless(5, 2); // "gutterless" element, identical usage to `col()`
26
+ @include col-widthless; // adds float and gutters only (useful for aligning headers, etc.)
23
27
 
24
28
  @include grid-classes; // generate .g* classes to use in markup
25
29
  @include grid-classes(true); // generate .g* and .gl* (gutterless) classes
@@ -34,6 +38,9 @@ To view the source, visit [https://github.com/ezYZ/lucid]
34
38
  }
35
39
 
36
40
  welcome_message %Q{
41
+
42
+ ***
43
+
37
44
  THE LUCID GRID
38
45
  plugin by Yifei Zhang
39
46
 
@@ -46,4 +53,5 @@ Contribute on GitHub:
46
53
  https://github.com/ezYZ/lucid
47
54
 
48
55
  ***
56
+
49
57
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-lucid-grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-05-23 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: compass
16
- requirement: &79972540 !ruby/object:Gem::Requirement
16
+ requirement: &86520450 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0.11'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *79972540
24
+ version_requirements: *86520450
25
25
  description: A Compass/SASS grid that outputs lean, semantic stylesheets. Avoids CSS
26
26
  repetition on SASS compilation and reduces the need for wrapper <div>s.
27
27
  email: yz@yifei.co