compass-52-plugin 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc ADDED
@@ -0,0 +1,8 @@
1
+ == 0.0.2
2
+
3
+ * Update to 52Framework 2.0.4
4
+
5
+ == 0.0.1
6
+
7
+ * Release with 52Framework 1.0
8
+
data/MIT-LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ Copyright 2011 Fabio Kreusch - http://www.kreusch.com.br
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
data/README.rdoc ADDED
@@ -0,0 +1,39 @@
1
+ == 52 Framework Compass Plugin
2
+
3
+ This plugin adds 52 Framework to Compass (http://compass-style.org/).
4
+
5
+ For more information, visit the official site at http://www.52framework.com
6
+
7
+
8
+ === Installation
9
+
10
+ gem install compass-52-plugin
11
+
12
+
13
+ === Getting Started
14
+
15
+ To create a Compass project using 52 Framework, enter:
16
+
17
+ compass create -r fiftytwo my_project --using 52
18
+
19
+ The above command will generate a +styles.sass+ file with the framework stylesheets included.
20
+
21
+
22
+ === Populating the Grid
23
+
24
+ To set an element as a row, use the +row+ mixin:
25
+
26
+ header
27
+ @include row
28
+
29
+ If the row is an inner row (a row inside another row), use +row+ with parameter setted as +true+:
30
+
31
+ header
32
+ .left-block
33
+ @include row(true)
34
+
35
+ To calculate column widths, use the +column+ mixin specifying the number of columns as the parameter:
36
+
37
+ article
38
+ @include column(5)
39
+
@@ -0,0 +1,77 @@
1
+ /* ** ** forms ** ** */
2
+ form fieldset {-webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius:3px; padding:10px; border:1px solid #eee; }
3
+ form fieldset legend {font-size:1.4em; padding:0 5px;}
4
+ form input[type=text], form input[type=email], form input[type=url], form input[type=password], form input[type=number], textarea {
5
+ -moz-border-radius: 3px;
6
+ -webkit-border-radius: 3px;
7
+ border-radius:3px;
8
+ height:20px;
9
+ margin-bottom:5px;
10
+ border:1px solid #ccc;
11
+ padding:4px 0 1px 5px;
12
+ }
13
+ form .textarea textarea {-moz-border-radius: 3px;
14
+ -webkit-border-radius: 3px;
15
+ border-radius:3px;
16
+ margin-bottom:5px;
17
+ min-height:50px;
18
+ border:1px solid #ccc;
19
+ padding:4px 0 1px 5px; width:100%;}
20
+ form .textarea {height:auto;}
21
+ form label {display:block; height:20px; font-size:1.2em;}
22
+
23
+ /* special form styling */
24
+ form div {height:24px; clear:both; margin-bottom:6px; padding:5px 0px;}
25
+ form div label {float:left; width:auto;}
26
+ form div input {width:52%; float:right;}
27
+ form div input.invalid {border-bottom:1px solid #f00;}
28
+ form fieldset input[type=submit], form fieldset button { display: inline-block;
29
+
30
+ padding: 4px 8px;
31
+ font-family: 'Lucida Grande', Arial, sans-serif;
32
+ font-size: 13px;
33
+
34
+ -webkit-border-radius: 2px;
35
+ -moz-border-radius: 2px;
36
+ border-radius: 2px;
37
+
38
+ border: 1px solid rgba(0, 0, 0, 0.6);
39
+
40
+ background: -webkit-gradient(linear, left top, left bottom, from(#fbfcfb), to(#9d9e9d));
41
+ background: -moz-linear-gradient(#fbfcfb, #9d9e9d);
42
+ background-color: #eee;
43
+
44
+ text-shadow: rgba(255, 255, 255, 0.4) 0px 1px;
45
+
46
+ -webkit-box-shadow: rgba(255, 255, 255, 0.4) 0 1px;
47
+ -moz-box-shadow: rgba(255, 255, 255, 0.4) 0 1px;
48
+ box-shadow: rgba(255, 255, 255, 0.4) 0 1px;
49
+
50
+ -webkit-user-select: none;
51
+ -moz-user-select: none;
52
+ cursor:pointer;
53
+ }
54
+ form fieldset input:hover[type=submit], form fieldset button:hover {
55
+ background: #B5B5B5;
56
+ -webkit-box-shadow: rgba(255, 255, 255, 0.4) 0 1px,
57
+ black 0px 1px 3px inset,
58
+ rgba(0, 0, 0, 0.4) 0px -5px 12px inset;
59
+
60
+ -moz-box-shadow: rgba(255, 255, 255, 0.4) 0 1px,
61
+ black 0px 1px 3px inset,
62
+ rgba(0, 0, 0, 0.4) 0px -5px 12px inset;
63
+
64
+ box-shadow: rgba(255, 255, 255, 0.4) 0 1px,
65
+ black 0px 1px 3px inset,
66
+ rgba(0, 0, 0, 0.4) 0px -5px 12px inset;
67
+
68
+ text-shadow: rgba(255, 255, 255, 0.3) 0px 1px;
69
+ cursor:pointer;
70
+ }
71
+
72
+ /* single column form styling */
73
+
74
+ form .s_column div {height:auto; margin-bottom:3px; padding:0px;}
75
+ form .s_column div label {float:none; width:100%;}
76
+ form .s_column div input {width:98%; float:none;}
77
+
@@ -1,218 +1,90 @@
1
1
  /* 52framework General StyleSheet - contains styles for all the HTML elements this framework supports */
2
2
 
3
3
  body {
4
- font-family: Arial, Helvetica, sans-serif;
5
- font-size: 52% / 1.52em;
4
+ background:#fff;
5
+ color:#000;
6
+ font:12px Arial, Helvetica, sans-serif;
7
+ position:relative;
6
8
  }
7
9
 
8
- /* ** ** Common Addative Classes ** ** */
9
-
10
- .left {
11
- float: left;
12
- }
13
-
14
- .right {
15
- float: right;
16
- }
17
-
18
- .clear {
19
- clear: both;
20
- display: block;
21
- overflow: hidden;
22
- visibility: hidden;
23
- width: 0px;
24
- height: 0px;
25
- }
26
10
 
27
- .hide {
28
- display: none;
29
- }
30
-
31
- .align_right {
32
- text-align: right;
33
- }
34
-
35
- .align_left {
36
- text-align: left;
37
- }
11
+ /* ** ** Common Addative Classes ** ** */
12
+ .left, .float_left { float:left }
13
+ .right, .float_right { float:right }
14
+ .clear { clear:both; display:block; overflow:hidden; visibility:hidden; height:0px;}
15
+ .clear-left, .clear_left { clear:left; } .clear-right, .clear_right { clear:right; }
16
+ .hide { display:none } .block {display:block !important;} .inline {display:inline !important;}
38
17
 
39
- .align_center {
40
- text-align: center;
41
- }
18
+ .align_right { text-align:right; }
19
+ .align_left { text-align:left; }
20
+ .align_center { text-align:center; }
21
+ .align_justify { text-align:justify; }
42
22
 
43
- .align_justify {
44
- text-align: justify;
45
- }
23
+ .bold {font-weight:600;}
24
+ .italic {font-style:italic;}
46
25
 
47
- a {
48
- color: #525252;
49
- &:hover, &:focus {
50
- text-decoration: underline; }
51
- &:active, &:visited {}
52
- }
26
+ a { color:#525252; }
27
+ a:hover, a:focus { text-decoration:underline;}
28
+ a:active, a:visited { }
53
29
 
54
30
  blockquote {
55
- font-family: Georgia,"Times New Roman", Times, serif;
56
- margin: 5px;
57
- padding: 10px;
58
- font-size: 1.52em;
59
- color: #999;
60
- font-style: italic;
61
- line-height: 1.3em;
62
- width: 100%;
63
- quotes: none;
64
- &.left {
65
- border-right: 1px dashed #ccc;
66
- width: 35%;
67
- }
68
- &.right {
69
- border-left: 1px dashed #ccc;
70
- width: 35%;
71
- }
72
- }
31
+ font-family: Georgia,"Times New Roman", Times, serif;
32
+ margin:5px;
33
+ padding:10px;
34
+ font-size:1.52em;
35
+ color:#999;
36
+ font-style:italic;
37
+ line-height:1.3em;
38
+ width:100%;
39
+ quotes:none;
40
+ }
41
+ blockquote.left {border-right:1px dashed #ccc; width:35%;} /* float blockquote left, and set width */
42
+ blockquote.right {border-left:1px dashed #ccc; width:35%;} /* float blockquote right and set a width */
73
43
 
74
44
  /* ** ** Header Styles ** ** */
45
+ h1, h2, h3, h4, h5 {margin:0 0 0.5em; line-height:1.1em;}
46
+ h1 { font-size:2.52em;}
47
+ h2 { font-size:1.952em;}
48
+ h3 { font-size:1.652em;}
49
+ h4 { font-size:1.452em;}
50
+ h5 { font-size:1.252em;}
51
+ h6 { font-size:1.52em;}
75
52
 
76
- h1, h2, h3, h4, h5 {
77
- margin: 0 0 0.5em;
78
- line-height: 1.1em;
79
- }
80
-
81
- h1 {
82
- font-size: 2.52em;
83
- }
84
-
85
- h2 {
86
- font-size: 1.952em;
87
- }
88
-
89
- h3 {
90
- font-size: 1.652em;
53
+ /* ** ** ul li's ** ** */
54
+ ul{
55
+ list-style:outside disc;
91
56
  }
92
-
93
- h4 {
94
- font-size: 1.452em;
57
+ ul,ol{
58
+ margin:0 0 1.5em 1.5em;
59
+ padding:0;
95
60
  }
96
-
97
- h5 {
98
- font-size: 1.252em;
61
+ li ul,li ol{
62
+ padding:0;
63
+ margin:0 0 1.5em 1.5em;
99
64
  }
100
65
 
101
- h6 {
102
- font-size: 1.52em;
103
- }
104
-
105
- /* ** ** ul li's ** ** */
106
-
107
- ul li {
108
- margin-left: 25px;
109
- }
110
66
 
111
67
  /* ** ** custom select color ** ** */
112
-
113
68
  ::selection {
114
- background: #525252; /* Safari */
115
- }
116
-
69
+ background: #525252; /* Safari */
70
+ }
117
71
  ::-moz-selection {
118
- background: #525252; /* Firefox */
119
- color: #fff;
72
+ background: #525252; /* Firefox */
73
+ color:#fff;
120
74
  }
121
-
122
75
  /* ** ** paragraph styling ** ** */
76
+ p {margin:0 0 1.52em;}
77
+ p img.left {float:left;margin:1.52em 1.52em 1.52em 0;padding:0;}
78
+ p img.right {float:right;margin:1.52em 0 1.52em 1.52em;}
79
+
80
+ strong { font-weight:600;}
81
+ em, dfn { font-style:italic;}
82
+ dfn { font-weight:600;}
83
+ sup, sub { line-height:0;}
84
+ abbr, acronym { border-bottom:1px dashed #ccc;}
85
+ address { margin:0 0 1.5em;font-style:italic;}
86
+ del { color:#666;}
87
+ pre, code, tt { font:1em 'andale mono', 'lucida console', monospace;line-height:1.5; display:block;}
88
+ code { background-color:#eee; display:inline; padding:0px 2px 1px 2px; line-height:1.1em;}
89
+ pre { margin:1.5em 0;white-space:pre;}
123
90
 
124
- p {
125
- margin: 0 0 1.52em;
126
- img {
127
- &.left {
128
- float: left;
129
- margin: 1.52em 1.52em 1.52em 0;
130
- padding: 0;
131
- }
132
- &.right {
133
- float: right;
134
- margin: 1.52em 0 1.52em 1.52em;
135
- }
136
- }
137
- }
138
-
139
- /* ** ** forms ** ** */
140
-
141
- form {
142
- fieldset {
143
- -webkit-border-radius: 5px;
144
- -moz-border-radius: 5px;
145
- border-radius: 5px;
146
- padding-top: 5px;
147
- padding-left: 5px;
148
- border: 1px solid #ccc;
149
- legend {
150
- font-size: 1.4em;
151
- padding: 0 5px;
152
- }
153
- }
154
- input {
155
- &[type=text], &[type=email], &[type=url] {
156
- -moz-border-radius: 4px;
157
- -webkit-border-radius: 4px;
158
- border-radius: 4px;
159
- height: 20px;
160
- margin-bottom: 5px;
161
- border: 1px solid #ccc;
162
- padding: 4px 0 1px 5px;
163
- }
164
- }
165
- label {
166
- display: block;
167
- height: 20px;
168
- font-size: 1.2em;
169
- }
170
- }
171
-
172
- strong {
173
- font-weight: 600;
174
- }
175
-
176
- em {
177
- font-style: italic;
178
- }
179
-
180
- dfn {
181
- font-style: italic;
182
- font-weight: 600;
183
- }
184
-
185
- sup, sub {
186
- line-height: 0;
187
- }
188
-
189
- abbr, acronym {
190
- border-bottom: 1px dashed #ccc;
191
- }
192
-
193
- address {
194
- margin: 0 0 1.5em;
195
- font-style: italic;
196
- }
197
-
198
- del {
199
- color: #666;
200
- }
201
-
202
- pre, code, tt {
203
- font: 1em 'andale mono', 'lucida console', monospace;
204
- line-height: 1.5;
205
- display: block;
206
- }
207
-
208
- code {
209
- background-color: #d5d2d8;
210
- display: block;
211
- padding: 0px 2px 4px 26px;
212
- line-height: 1.67em;
213
- }
214
-
215
- pre {
216
- margin: 1.5em 0;
217
- white-space: pre;
218
- }
@@ -1,59 +1,60 @@
1
1
  /* 52 framework grid */
2
2
 
3
3
  $max-columns: 16 !default;
4
- $column-width: 40px !default;
4
+ $column-width: 40px !default;
5
5
  $gutter-width: 10px !default;
6
6
 
7
7
  @mixin width($columns, $side_gutters: false) {
8
- @if $side_gutters == true {
9
- width: ($column-width + ($gutter-width * 2)) * ($columns);
10
- } @else {
11
- width: ($column-width + ($gutter-width * 2)) * ($columns - 1) + $column-width;
12
- }
8
+ @if $side_gutters == true {
9
+ width: ($column-width + ($gutter-width * 2)) * ($columns);
10
+ } @else {
11
+ width: ($column-width + ($gutter-width * 2)) * ($columns - 1) + $column-width;
12
+ }
13
13
  }
14
14
 
15
15
  .col {
16
- margin-left: $gutter-width;
17
- margin-right: $gutter-width;
18
- display: inline;
19
- overflow: hidden;
20
- float: left;
21
- position: relative;
16
+ margin-left: $gutter-width;
17
+ margin-right: $gutter-width;
18
+ display: inline;
19
+ overflow: hidden;
20
+ float: left;
21
+ position: relative;
22
22
  }
23
23
 
24
24
  .row {
25
- overflow: hidden;
26
- margin: 0 auto;
27
- @include width($max-columns, true);
25
+ overflow: hidden;
26
+ margin: 0 auto;
27
+ @include width($max-columns, true);
28
28
  }
29
29
 
30
30
  .inner_row {
31
- margin: 0 -$gutter-width;
32
- display: inline-block;
33
- width: auto;
31
+ margin: 0 -$gutter-width;
32
+ width: auto;
33
+ display: inline-block;
34
34
  }
35
35
 
36
36
  .row .row {
37
- @extend .inner_row;
37
+ @extend .inner_row;
38
38
  }
39
39
 
40
40
  @mixin column($columns) {
41
- @extend .col;
42
- @include width($columns);
43
- }
41
+ @extend .col;
42
+ @include width($columns);
43
+ }
44
44
 
45
45
  @mixin row($inner: false) {
46
- @extend .row;
47
- @if $inner == true {
48
- @extend .inner_row;
49
- }
46
+ @extend .row;
47
+ @if $inner == true {
48
+ @extend .inner_row;
49
+ }
50
50
  }
51
51
 
52
52
  @for $i from 1 through $max-columns {
53
- .col_#{$i} {
54
- @include column($i)
55
- }
56
- .width_#{$i} {
57
- @include width($i)
58
- }
59
- }
53
+ .col_#{$i} {
54
+ @include column($i)
55
+ }
56
+ .width_#{$i} {
57
+ @include width($i)
58
+ }
59
+ }
60
+