gridpaper 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. data/README.rdoc +1 -0
  2. data/bin/gridpaper +1 -0
  3. data/examples/index.html +227 -13
  4. data/examples/pencil.html +341 -0
  5. data/examples/stylesheets/sass/_settings.sass +8 -0
  6. data/examples/stylesheets/sass/gridpaper/_effects.sass +1 -1
  7. data/examples/stylesheets/sass/gridpaper/_forms.sass +0 -25
  8. data/examples/stylesheets/sass/gridpaper/_grid.sass +46 -0
  9. data/examples/stylesheets/sass/gridpaper/_reset.sass +39 -19
  10. data/examples/stylesheets/sass/gridpaper/_tables.sass +0 -0
  11. data/examples/stylesheets/sass/gridpaper/pencil/_all.sass +1 -0
  12. data/examples/stylesheets/sass/gridpaper/pencil/_colors.sass +9 -0
  13. data/examples/stylesheets/sass/gridpaper/pencil/_elements.sass +13 -0
  14. data/examples/stylesheets/sass/gridpaper/pencil/_forms.sass +22 -0
  15. data/examples/stylesheets/sass/gridpaper/pencil/_layout.sass +30 -0
  16. data/examples/stylesheets/sass/gridpaper/pencil/_tables.sass +5 -0
  17. data/examples/stylesheets/sass/gridpaper/pencil/_typography.sass +17 -0
  18. data/examples/stylesheets/sass/index.html.sass +119 -0
  19. data/examples/stylesheets/sass/pencil.html.sass +157 -0
  20. data/lib/gridpaper/version.rb +1 -1
  21. data/templates/sass/_settings.sass +8 -0
  22. data/templates/sass/gridpaper/_effects.sass +1 -1
  23. data/templates/sass/gridpaper/_forms.sass +0 -25
  24. data/templates/sass/gridpaper/_grid.sass +46 -0
  25. data/templates/sass/gridpaper/_reset.sass +39 -19
  26. data/templates/sass/gridpaper/_tables.sass +0 -0
  27. data/templates/sass/gridpaper/pencil/_all.sass +1 -0
  28. data/templates/sass/gridpaper/pencil/_colors.sass +9 -0
  29. data/templates/sass/gridpaper/pencil/_elements.sass +13 -0
  30. data/templates/sass/gridpaper/pencil/_forms.sass +22 -0
  31. data/templates/sass/gridpaper/pencil/_layout.sass +30 -0
  32. data/templates/sass/gridpaper/pencil/_tables.sass +5 -0
  33. data/templates/sass/gridpaper/pencil/_typography.sass +17 -0
  34. data/templates/scss/_settings.scss +8 -0
  35. data/templates/scss/gridpaper/_effects.scss +1 -1
  36. data/templates/scss/gridpaper/_forms.scss +1 -19
  37. data/templates/scss/gridpaper/_grid.scss +47 -0
  38. data/templates/scss/gridpaper/_reset.scss +29 -25
  39. data/templates/scss/gridpaper/_tables.scss +1 -0
  40. data/templates/scss/gridpaper/pencil/_all.scss +11 -0
  41. data/templates/scss/gridpaper/pencil/_colors.scss +9 -0
  42. data/templates/scss/gridpaper/pencil/_elements.scss +13 -0
  43. data/templates/scss/gridpaper/pencil/_forms.scss +17 -0
  44. data/templates/scss/gridpaper/pencil/_layout.scss +28 -0
  45. data/templates/scss/gridpaper/pencil/_tables.scss +5 -0
  46. data/templates/scss/gridpaper/pencil/_typography.scss +16 -0
  47. metadata +36 -12
  48. data/examples/stylesheets/sass/styles.sass +0 -2
  49. data/templates/sass/gridpaper/examples/_columns.sass +0 -46
  50. data/templates/scss/gridpaper/examples/_columns.scss +0 -45
@@ -1,3 +1,3 @@
1
1
  module Gridpaper
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -5,3 +5,11 @@ $grid-gutter-width: 16px
5
5
 
6
6
  // Set your base font size
7
7
  $base-font-size: 16px
8
+
9
+ // Color Variables
10
+ $white: #fff
11
+ $silver: #f1f1f1
12
+ $light-grey: #ccc
13
+ $medium-grey: #777
14
+ $dark-grey: #333
15
+ $black: #000
@@ -20,7 +20,7 @@
20
20
  @if $ie
21
21
  behavior: url(/javascripts/PIE.htc)
22
22
 
23
- @mixin box-gradient($from, $to)
23
+ @mixin linear-gradient($from, $to)
24
24
  background-color: mix($from, $to)
25
25
  background-image: -webkit-gradient(linear, left top, left bottom, from($from), to($to))
26
26
  background-image: -webkit-linear-gradient(top, $from, $to)
@@ -1,27 +1,2 @@
1
- form
2
-
3
- .field
4
- margin-bottom: 1em
5
-
6
- legend
7
- display: block
8
- margin-bottom: 1em
9
-
10
- label
11
- display: block
12
-
13
- input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea
14
- padding: 0.25em 0.5em
15
- font:
16
- size: 1em
17
- family: sans-serif
18
- border: 1px solid #7E7E7E
19
-
20
- input[type="submit"]
21
- padding: 0.5em 1em
22
- border: 1px solid #7E7E7E
23
- @include border-radius(5px)
24
- cursor: pointer
25
-
26
1
 
27
2
 
@@ -7,6 +7,7 @@
7
7
  $grid-columns: 24 !default
8
8
  $grid-column-width: 24px !default
9
9
  $grid-gutter-width: 16px !default
10
+ $base-font-size: 16px !default
10
11
 
11
12
  @mixin container
12
13
  width: ($grid-columns * $grid-column-width) + (($grid-columns - 1) * $grid-gutter-width)
@@ -27,6 +28,11 @@ $grid-gutter-width: 16px !default
27
28
  width: ($grid-column-width * $n) + ($grid-gutter-width * ($n - 1)) + $adj
28
29
  margin-right: $grid-gutter-width
29
30
 
31
+ @mixin table-span($n: $grid-columns, $adj: 0)
32
+ display: table
33
+ width: ($grid-column-width * $n) + ($grid-gutter-width * ($n - 1)) + $adj
34
+ margin-right: $grid-gutter-width
35
+
30
36
  @mixin padding($left: inherit, $right: inherit)
31
37
  @if $left != inherit
32
38
  padding-left: ($grid-column-width * $left) + ($grid-gutter-width * $left)
@@ -57,3 +63,43 @@ $grid-gutter-width: 16px !default
57
63
  border:
58
64
  top: 1px solid fade-out(#dd7d96, 0.7)
59
65
  right: 1px solid fade-out(#7dcadd, 0.3)
66
+
67
+
68
+ // baseline grid
69
+ body
70
+ font-size: $base-font-size
71
+
72
+ p
73
+ line-height: 1.5
74
+
75
+ h1
76
+ font-size: 5em
77
+ h2
78
+ font-size: 4em
79
+ h3
80
+ font-size: 3em
81
+ h4
82
+ font-size: 2em
83
+ h5
84
+ font-size: 1.5em
85
+ h6
86
+ font-size: 1em
87
+
88
+ form
89
+ .field
90
+ padding-bottom: 0.75em
91
+ margin-bottom: 0.75em
92
+
93
+ legend
94
+ margin-bottom: 1.5em
95
+
96
+
97
+ input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea
98
+ padding: 0.375em 0.5em
99
+
100
+ table
101
+ margin-bottom: 1.5em
102
+ th, td
103
+ height: 1.5em
104
+ line-height: 1.5em
105
+ padding: 0 0.5em
@@ -5,7 +5,7 @@
5
5
  Author: Richard Clark - http: //richclarkdesign.com
6
6
  Twitter: @rich_clark
7
7
 
8
- $base-font-size: 16px !default
8
+
9
9
 
10
10
  html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, a, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video
11
11
  margin: 0
@@ -21,9 +21,6 @@ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, a, blockquote,
21
21
  background: transparent
22
22
  line-height: 1
23
23
 
24
- body
25
- font-size: $base-font-size
26
-
27
24
  article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section
28
25
  display: block
29
26
 
@@ -65,29 +62,16 @@ hr
65
62
  display: block
66
63
  height: 0px
67
64
  border: 0
68
- border-top: 1px solid #cccccc
65
+ border-top: 1px solid
69
66
  margin: 0
70
67
  padding: 0
71
68
 
72
- input, select
69
+ input, select, button
73
70
  vertical-align: middle
74
71
 
75
72
  textarea
76
73
  margin: 0
77
74
 
78
- h1
79
- font-size: 5em
80
- h2
81
- font-size: 4em
82
- h3
83
- font-size: 3em
84
- h4
85
- font-size: 2em
86
- h5
87
- font-size: 1.5em
88
- h6
89
- font-size: 1em
90
-
91
75
  @mixin clearfix
92
76
  display: block
93
77
  &:after
@@ -100,3 +84,39 @@ h6
100
84
 
101
85
  .clear
102
86
  @include clearfix
87
+
88
+
89
+ form
90
+
91
+ .field
92
+ overflow: hidden
93
+
94
+ label
95
+ display: block
96
+ float: left
97
+ text-align: right
98
+ margin-right: 1em
99
+ width: 6em
100
+
101
+
102
+ input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select, input[type="submit"], button
103
+ font:
104
+ size: 0.85em
105
+ family: sans-serif
106
+
107
+ input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea
108
+ padding: 0.25em 0.5em
109
+ border: 1px solid
110
+
111
+ input[type="submit"], button
112
+ padding: 0.75em 1em
113
+ cursor: pointer
114
+ border: 1px solid
115
+
116
+ table
117
+ border: none
118
+
119
+ th, td
120
+ text-align: left
121
+ border: 1px solid
122
+
File without changes
@@ -0,0 +1 @@
1
+ @import colors, elements, typography, forms, tables, layout
@@ -0,0 +1,9 @@
1
+ $black: #000000
2
+ $dark-grey: #333333
3
+ $light-grey: #e1e1e1
4
+ $medium-grey: #666666
5
+ $white: #ffffff
6
+
7
+ body
8
+ background-color: $white
9
+ color: $dark-grey
@@ -0,0 +1,13 @@
1
+ @mixin image($height: 200px)
2
+ display: block
3
+ height: $height
4
+ color: $light-grey
5
+ line-height: $height
6
+ text-align: center
7
+ background-color: $dark-grey
8
+
9
+ @mixin box
10
+ overflow: hidden
11
+ display: block
12
+ padding: 1em
13
+ background-color: $light-grey
@@ -0,0 +1,22 @@
1
+ form
2
+ legend
3
+ margin-bottom: 0.5em
4
+ border-bottom: 1px solid $medium-grey
5
+
6
+ fieldset
7
+ margin-bottom: 0.5em
8
+
9
+ label
10
+ font-size: 16px
11
+ line-height: 1.5em
12
+
13
+ input, textarea
14
+ height: 1.5em
15
+ padding: 3px 8px
16
+ border: 1px solid $medium-grey
17
+
18
+ textarea
19
+ height: 10em
20
+
21
+ input[type="submit"], button
22
+ height: 32px
@@ -0,0 +1,30 @@
1
+ body
2
+ @include container
3
+ margin:
4
+ top: 3em
5
+ bottom: 3em
6
+
7
+ section
8
+ margin-bottom: 3em
9
+
10
+ h1, h2, h3, h4, h5, h6
11
+ text-transform: capitalize
12
+
13
+ header
14
+ margin-bottom: 1.5em
15
+ padding-bottom: 1.5em
16
+ border-bottom: 1px solid $light-grey
17
+
18
+ nav
19
+ ul li
20
+ display: inline
21
+
22
+ a
23
+ display: inline-block
24
+ margin-right: 2em
25
+
26
+ footer
27
+ margin-top: 1.5em
28
+ padding-top: 1.5em
29
+ color: $medium-grey
30
+ border-top: 1px solid $light-grey
@@ -0,0 +1,5 @@
1
+ table
2
+ th
3
+ background: $medium-grey
4
+ color: $white
5
+ border-color: $black
@@ -0,0 +1,17 @@
1
+ h1, h2, h3, h4, h5, h6
2
+ margin-bottom: $base-font-size
3
+ font:
4
+ weight: bold
5
+ line-height: 1
6
+
7
+ p
8
+ margin-bottom: $base-font-size
9
+ line-height: 1.5
10
+
11
+ &:last-child
12
+ margin-bottom: 0
13
+
14
+ hgroup
15
+ margin-bottom: $base-font-size
16
+ h1, h2, h3, h4, h5, h6
17
+ margin-bottom: 0
@@ -5,3 +5,11 @@ $grid-gutter-width: 16px;
5
5
 
6
6
  // Set your base font size
7
7
  $base-font-size: 16px;
8
+
9
+ // Color Variables
10
+ $white: white;
11
+ $silver: #f1f1f1;
12
+ $light-grey: #cccccc;
13
+ $medium-grey: #777777;
14
+ $dark-grey: #333333;
15
+ $black: black;
@@ -20,7 +20,7 @@
20
20
  @if $ie {
21
21
  behavior: url(/javascripts/PIE.htc); } }
22
22
 
23
- @mixin box-gradient($from, $to) {
23
+ @mixin linear-gradient($from, $to) {
24
24
  background-color: mix($from, $to);
25
25
  background-image: -webkit-gradient(linear, left top, left bottom, from($from), to($to));
26
26
  background-image: -webkit-linear-gradient(top, $from, $to);
@@ -1,19 +1 @@
1
- form {
2
- .field {
3
- margin-bottom: 1em; }
4
- legend {
5
- display: block;
6
- margin-bottom: 1em; }
7
- label {
8
- display: block; }
9
- input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
10
- padding: 0.25em 0.5em;
11
- font: {
12
- size: 1em;
13
- family: sans-serif; };
14
- border: 1px solid #7e7e7e; }
15
- input[type="submit"] {
16
- padding: 0.5em 1em;
17
- border: 1px solid #7e7e7e;
18
- @include border-radius(5px);
19
- cursor: pointer; } }
1
+
@@ -6,6 +6,7 @@
6
6
  $grid-columns: 24 !default;
7
7
  $grid-column-width: 24px !default;
8
8
  $grid-gutter-width: 16px !default;
9
+ $base-font-size: 16px !default;
9
10
 
10
11
  @mixin container {
11
12
  width: $grid-columns * $grid-column-width + ($grid-columns - 1) * $grid-gutter-width;
@@ -26,6 +27,11 @@ $grid-gutter-width: 16px !default;
26
27
  width: $grid-column-width * $n + $grid-gutter-width * ($n - 1) + $adj;
27
28
  margin-right: $grid-gutter-width; }
28
29
 
30
+ @mixin table-span($n: $grid-columns, $adj: 0) {
31
+ display: table;
32
+ width: $grid-column-width * $n + $grid-gutter-width * ($n - 1) + $adj;
33
+ margin-right: $grid-gutter-width; }
34
+
29
35
  @mixin padding($left: inherit, $right: inherit) {
30
36
  @if $left != inherit {
31
37
  padding-left: $grid-column-width * $left + $grid-gutter-width * $left; }
@@ -55,3 +61,44 @@ $grid-gutter-width: 16px !default;
55
61
  border: {
56
62
  top: 1px solid fade-out(#dd7d96, 0.7);
57
63
  right: 1px solid fade-out(#7dcadd, 0.3); }; }
64
+
65
+ // baseline grid
66
+ body {
67
+ font-size: $base-font-size; }
68
+
69
+ p {
70
+ line-height: 1.5; }
71
+
72
+ h1 {
73
+ font-size: 5em; }
74
+
75
+ h2 {
76
+ font-size: 4em; }
77
+
78
+ h3 {
79
+ font-size: 3em; }
80
+
81
+ h4 {
82
+ font-size: 2em; }
83
+
84
+ h5 {
85
+ font-size: 1.5em; }
86
+
87
+ h6 {
88
+ font-size: 1em; }
89
+
90
+ form {
91
+ .field {
92
+ padding-bottom: 0.75em;
93
+ margin-bottom: 0.75em; }
94
+ legend {
95
+ margin-bottom: 1.5em; }
96
+ input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
97
+ padding: 0.375em 0.5em; } }
98
+
99
+ table {
100
+ margin-bottom: 1.5em;
101
+ th, td {
102
+ height: 1.5em;
103
+ line-height: 1.5em;
104
+ padding: 0 0.5em; } }
@@ -4,8 +4,6 @@
4
4
  * Author: Richard Clark - http: //richclarkdesign.com
5
5
  * Twitter: @rich_clark */
6
6
 
7
- $base-font-size: 16px !default;
8
-
9
7
  html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, a, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
10
8
  margin: 0;
11
9
  padding: 0;
@@ -20,9 +18,6 @@ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, a, blockquote,
20
18
  background: transparent;
21
19
  line-height: 1; }
22
20
 
23
- body {
24
- font-size: $base-font-size; }
25
-
26
21
  article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
27
22
  display: block; }
28
23
 
@@ -64,34 +59,16 @@ hr {
64
59
  display: block;
65
60
  height: 0px;
66
61
  border: 0;
67
- border-top: 1px solid #cccccc;
62
+ border-top: 1px solid;
68
63
  margin: 0;
69
64
  padding: 0; }
70
65
 
71
- input, select {
66
+ input, select, button {
72
67
  vertical-align: middle; }
73
68
 
74
69
  textarea {
75
70
  margin: 0; }
76
71
 
77
- h1 {
78
- font-size: 5em; }
79
-
80
- h2 {
81
- font-size: 4em; }
82
-
83
- h3 {
84
- font-size: 3em; }
85
-
86
- h4 {
87
- font-size: 2em; }
88
-
89
- h5 {
90
- font-size: 1.5em; }
91
-
92
- h6 {
93
- font-size: 1em; }
94
-
95
72
  @mixin clearfix {
96
73
  display: block;
97
74
  &:after {
@@ -104,3 +81,30 @@ h6 {
104
81
 
105
82
  .clear {
106
83
  @include clearfix; }
84
+
85
+ form {
86
+ .field {
87
+ overflow: hidden; }
88
+ label {
89
+ display: block;
90
+ float: left;
91
+ text-align: right;
92
+ margin-right: 1em;
93
+ width: 6em; }
94
+ input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select, input[type="submit"], button {
95
+ font: {
96
+ size: 0.85em;
97
+ family: sans-serif; }; }
98
+ input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
99
+ padding: 0.25em 0.5em;
100
+ border: 1px solid; }
101
+ input[type="submit"], button {
102
+ padding: 0.75em 1em;
103
+ cursor: pointer;
104
+ border: 1px solid; } }
105
+
106
+ table {
107
+ border: none;
108
+ th, td {
109
+ text-align: left;
110
+ border: 1px solid; } }