co2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ # Created by Florian Schade, Thomas Boerger on 2011-08-25.
2
+ # Copyright (c) 2011. All rights reserved.
3
+
4
+ source "http://rubygems.org"
5
+
6
+ gem 'sass', '~> 3.1.7'
7
+
8
+ group :development do
9
+ gem 'bundler', '~> 1.0.18'
10
+ gem 'yard', '~> 0.7.2'
11
+ gem 'jeweler', '~> 1.6.4'
12
+ gem 'rdiscount', '~> 1.6.8'
13
+ end
@@ -0,0 +1,22 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ git (1.2.5)
5
+ jeweler (1.6.4)
6
+ bundler (~> 1.0)
7
+ git (>= 1.2.5)
8
+ rake
9
+ rake (0.9.2)
10
+ rdiscount (1.6.8)
11
+ sass (3.1.7)
12
+ yard (0.7.2)
13
+
14
+ PLATFORMS
15
+ ruby
16
+
17
+ DEPENDENCIES
18
+ bundler (~> 1.0.18)
19
+ jeweler (~> 1.6.4)
20
+ rdiscount (~> 1.6.8)
21
+ sass (~> 3.1.7)
22
+ yard (~> 0.7.2)
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Florian Schade, Thomas Boerger
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.
@@ -0,0 +1,28 @@
1
+ co2 CSS
2
+ =======
3
+
4
+ It's a simple rapid prototyping CSS framework, including SCSS styles,
5
+ and cli generator for CSS files
6
+
7
+
8
+ Install
9
+ -------
10
+ gem 'co2', '~> 0.1.0'
11
+
12
+
13
+ Usage
14
+ -----
15
+
16
+ Coming soon
17
+
18
+
19
+ Todo
20
+ ----
21
+
22
+ Coming soon
23
+
24
+
25
+ Credits
26
+ -------
27
+
28
+ Copyright (c) 2011 Florian Schade, Thomas Boerger. All rights reserved.
@@ -0,0 +1,37 @@
1
+ # Created by Florian Schade, Thomas Boerger on 2011-08-25.
2
+ # Copyright (c) 2011. All rights reserved.
3
+
4
+ $LOAD_PATH.unshift('lib')
5
+
6
+ require 'rubygems'
7
+ require 'bundler'
8
+
9
+ begin
10
+ Bundler.setup(:default, :development)
11
+ rescue Bundler::BundlerError => e
12
+ $stderr.puts e.message
13
+ $stderr.puts 'Run `bundle install` to install missing gems'
14
+ exit e.status_code
15
+ end
16
+
17
+ require 'rake'
18
+ require 'jeweler'
19
+ require 'yard'
20
+
21
+ require 'co2'
22
+
23
+ Jeweler::Tasks.new do |gem|
24
+ gem.name = 'co2'
25
+ gem.version = Co2::Version::STRING
26
+ gem.homepage = 'https://github.com/purpled/co2'
27
+ gem.license = 'MIT'
28
+ gem.summary = %Q{CSS prototyping framework}
29
+ gem.description = %Q{It's a simple rapid prototyping CSS framework, including SCSS styles, and cli generator for CSS files}
30
+ gem.email = ['f.schade@purpled.de', 't.boerger@purpled.de']
31
+ gem.authors = ['Florian Schade', 'Thomas Boerger']
32
+ end
33
+
34
+ Jeweler::RubygemsDotOrgTasks.new
35
+ YARD::Rake::YardocTask.new
36
+
37
+ task :default => :test
@@ -0,0 +1,17 @@
1
+ /*_____________________________________________________________________________
2
+ *_____________________________________________/\/\/\/\/\______________________
3
+ *_______________________/\/\/\/\____/\/\/\____________/\/\____________________
4
+ *_____________________/\/\________/\/\__/\/\____/\/\/\/\______________________
5
+ *_____________________/\/\________/\/\__/\/\__/\/\____________________________
6
+ *_______________________/\/\/\/\____/\/\/\____/\/\/\/\/\/\____________________
7
+ *_____________________________________________________________________________
8
+ *_______________inspired by blueprint, 960.gs, formalize, formee______________
9
+ *_____________________________________________________________________________
10
+ *
11
+ * @copyright Copyright 2011 Florian Schade, Thomas Boerger
12
+ * @author Florian Schade <f.schade@purpled.de>
13
+ * @author Thomas Boerger <t.boerger@purpled.de>
14
+ * @license http://www.opensource.org/licenses/mit-license.php
15
+ */
16
+
17
+ @import "co2.css";
@@ -0,0 +1,39 @@
1
+ /*_____________________________________________________________________________
2
+ *_____________________________________________/\/\/\/\/\______________________
3
+ *_______________________/\/\/\/\____/\/\/\____________/\/\____________________
4
+ *_____________________/\/\________/\/\__/\/\____/\/\/\/\______________________
5
+ *_____________________/\/\________/\/\__/\/\__/\/\____________________________
6
+ *_______________________/\/\/\/\____/\/\/\____/\/\/\/\/\/\____________________
7
+ *_____________________________________________________________________________
8
+ *_______________inspired by blueprint, 960.gs, formalize, formee______________
9
+ *_____________________________________________________________________________
10
+ *
11
+ * @copyright Copyright 2011 Florian Schade, Thomas Boerger
12
+ * @author Florian Schade <f.schade@purpled.de>
13
+ * @author Thomas Boerger <t.boerger@purpled.de>
14
+ * @license http://www.opensource.org/licenses/mit-license.php
15
+ */
16
+
17
+ $base_size: 13px;
18
+ $base_line: 18px;
19
+ $base_color: #000;
20
+ $base_font: "Helvetica Neue", Helvetica, Arial, sans-serif;
21
+
22
+ $space_dimension: 10px;
23
+
24
+ $grid_columns: 16;
25
+ $grid_column_width: 60px;
26
+
27
+ $site_width: ($grid_columns * $grid_column_width);
28
+
29
+ @import "co2/mixin";
30
+ @import "co2/reset";
31
+ @import "co2/helper";
32
+ @import "co2/container";
33
+ @import "co2/grid";
34
+ @import "co2/table";
35
+ @import "co2/element";
36
+ @import "co2/form";
37
+ @import "co2/typo";
38
+ @import "co2/navigation";
39
+ @import "co2/message";
@@ -0,0 +1,32 @@
1
+ #wrap {
2
+ width: $site_width;
3
+ @include clearfix;
4
+ }
5
+
6
+ #wrap-flex {
7
+ width: 100%;
8
+ @include clearfix;
9
+ }
10
+
11
+ .wrap {
12
+ @include clearfix;
13
+ }
14
+
15
+ .wrap-flex {
16
+ @include clearfix;
17
+ }
18
+
19
+ #head {
20
+ width: 100%;
21
+ @include clearfix;
22
+ }
23
+
24
+ #main {
25
+ width: 100%;
26
+ @include clearfix;
27
+ }
28
+
29
+ #foot {
30
+ width: 100%;
31
+ @include clearfix;
32
+ }
@@ -0,0 +1,14 @@
1
+ .button {
2
+ @include button;
3
+ }
4
+
5
+ hr {
6
+ background: none repeat scroll 0 0 #DDDDDD;
7
+ border: medium none;
8
+ clear: both;
9
+ color: #DDDDDD;
10
+ float: none;
11
+ height: 1px;
12
+ margin: 0 0 17px;
13
+ width: 100%;
14
+ }
@@ -0,0 +1,98 @@
1
+ form {
2
+ fieldset {
3
+ margin-bottom: 15px;
4
+ border: 1px solid #000;
5
+
6
+ legend {
7
+ font-size: 20px;
8
+ }
9
+ }
10
+
11
+ ul {
12
+ padding: 0;
13
+ margin: 0;
14
+ list-style: none;
15
+ @include clearfix;
16
+ li {
17
+ float: none;
18
+ margin-bottom: 10px;
19
+
20
+ ul {
21
+ margin-bottom: -10px;
22
+ }
23
+
24
+ }
25
+
26
+ }
27
+
28
+ label,
29
+ input,
30
+ select,
31
+ textarea {
32
+ font: {
33
+ family: $base_font;
34
+ size: 13px;
35
+ weight: normal;
36
+ }
37
+ line-height: normal;
38
+ margin: 0;
39
+ }
40
+
41
+ label {
42
+ display: block;
43
+ padding-bottom: 5px;
44
+ }
45
+
46
+ input,
47
+ textarea {
48
+ width: 100%;
49
+ -moz-box-sizing: border-box;
50
+ -webkit-box-sizing: border-box;
51
+ box-sizing: border-box;
52
+ margin: 0;
53
+ padding: 2px 5px;
54
+ height: 26px;
55
+ color: #000;
56
+ border: 1px solid #000;
57
+ @include corners;
58
+ }
59
+
60
+ input.small,
61
+ textarea.small {
62
+ width: 25%;
63
+ }
64
+
65
+ input.medium,
66
+ textarea.medium {
67
+ width: 50%;
68
+ }
69
+
70
+ input.large,
71
+ textarea.large {
72
+ width: 75%;
73
+ }
74
+
75
+ textarea {
76
+ height: auto;
77
+ }
78
+
79
+ radios,
80
+ checkboxes {
81
+ li,
82
+ div {
83
+ margin-bottom: 0;
84
+ }
85
+
86
+ label {
87
+ padding-bottom: 0;
88
+ }
89
+
90
+ input {
91
+ width: auto;
92
+ height: auto;
93
+ margin: 3px 7px 0 0;
94
+ padding: 0;
95
+ }
96
+
97
+ }
98
+ }
@@ -0,0 +1,63 @@
1
+ @for $i from 1 through $grid_columns {
2
+ .column-#{$i} {
3
+ float: left;
4
+ display: inline;
5
+ width: $grid_column_width * $i;
6
+ @include clearfix;
7
+ }
8
+
9
+ .prefix-#{$i} {
10
+ float: left;
11
+ display: inline;
12
+ margin-left: $grid_column_width * $i;
13
+ @include clearfix;
14
+ }
15
+
16
+ .suffix-#{$i} {
17
+ float: left;
18
+ display: inline;
19
+ margin-right: $grid_column_width * $i;
20
+ @include clearfix;
21
+ }
22
+
23
+ #wrap-flex .column-#{$i},
24
+ .wrap-flex .column-#{$i},
25
+ form .column-#{$i} {
26
+ width: 100% / $grid_columns * $i;
27
+ }
28
+
29
+ #wrap-flex .prefix-#{$i},
30
+ .wrap-flex .prefix-#{$i},
31
+ form .prefix-#{$i} {
32
+ margin-left: 100% / $grid_columns * $i;
33
+ }
34
+
35
+ #wrap-flex .suffix-#{$i},
36
+ .wrap-flex .suffix-#{$i},
37
+ form .suffix-#{$i} {
38
+ margin-right: 100% / $grid_columns * $i;
39
+ }
40
+ }
41
+
42
+ @each $grid in 25, 33, 50, 66, 75 {
43
+ .column-#{$grid}-flex {
44
+ float: left;
45
+ display: inline;
46
+ width: 0% + $grid;
47
+ @include clearfix;
48
+ }
49
+
50
+ .prefix-#{$grid}-flex {
51
+ float: left;
52
+ display: inline;
53
+ margin-left: 0% + $grid;
54
+ @include clearfix;
55
+ }
56
+
57
+ .suffix-#{$grid}-flex {
58
+ float: left;
59
+ display: inline;
60
+ margin-right: 0% + $grid;
61
+ @include clearfix;
62
+ }
63
+ }
@@ -0,0 +1,88 @@
1
+ .float-r {
2
+ float: right;
3
+ }
4
+
5
+ .float-l {
6
+ float: left;
7
+ }
8
+
9
+ .float-n {
10
+ float: none;
11
+ }
12
+
13
+ .text-r {
14
+ text-align: right;
15
+ }
16
+
17
+ .text-l {
18
+ text-align: left;
19
+ }
20
+
21
+ .text-j {
22
+ text-align: justify;
23
+ }
24
+
25
+ .clearfix,
26
+ .clear {
27
+ @include clearfix;
28
+ }
29
+
30
+ .clear-r {
31
+ clear: right;
32
+ }
33
+
34
+ .clear-l {
35
+ clear: left;
36
+ }
37
+
38
+ .scroll {
39
+ overflow: auto;
40
+ }
41
+
42
+ .scroll-x {
43
+ overflow-x: auto;
44
+ }
45
+
46
+ .scroll-y {
47
+ overflow-y: auto;
48
+ }
49
+
50
+ .ispace {
51
+ padding: $space_dimension;
52
+ }
53
+
54
+ .ispace-t {
55
+ padding-top: $space_dimension;
56
+ }
57
+
58
+ .ispace-r {
59
+ padding-right: $space_dimension;
60
+ }
61
+
62
+ .ispace-b {
63
+ padding-bottom: $space_dimension;
64
+ }
65
+
66
+ .ispace-l {
67
+ padding-left: $space_dimension;
68
+ }
69
+
70
+ .ospace {
71
+ margin: $space_dimension;
72
+ }
73
+
74
+ .ospace-t {
75
+ margin-top: $space_dimension;
76
+ }
77
+
78
+ .ospace-r {
79
+ margin-right: $space_dimension;
80
+ }
81
+
82
+ .ospace-b {
83
+ margin-bottom: $space_dimension;
84
+ }
85
+
86
+ .ospace-l {
87
+ margin-left: $space_dimension;
88
+ }