motorized-bootstrap 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,148 @@
1
+ /*
2
+ * Tables.less
3
+ * Tables for, you guessed it, tabular data
4
+ * ---------------------------------------- */
5
+
6
+
7
+ // BASELINE STYLES
8
+ // ---------------
9
+
10
+ table {
11
+ width: 100%;
12
+ margin-bottom: $baseline;
13
+ padding: 0;
14
+ border-collapse: separate;
15
+ font-size: 13px;
16
+ th, td {
17
+ padding: 10px 10px 9px;
18
+ line-height: $baseline * .75;
19
+ text-align: left;
20
+ vertical-align: middle;
21
+ border-bottom: 1px solid #ddd;
22
+ }
23
+ th {
24
+ padding-top: 9px;
25
+ font-weight: bold;
26
+ border-bottom-width: 2px;
27
+ }
28
+ }
29
+
30
+
31
+ // ZEBRA-STRIPING
32
+ // --------------
33
+
34
+ // Default zebra-stripe styles (alternating gray and transparent backgrounds)
35
+ .zebra-striped {
36
+ tbody {
37
+ tr:nth-child(odd) td {
38
+ background-color: #f9f9f9;
39
+ }
40
+ tr:hover td {
41
+ background-color: #f5f5f5;
42
+ }
43
+ }
44
+
45
+ // Tablesorting styles w/ jQuery plugin
46
+ .header {
47
+ cursor: pointer;
48
+ &:after {
49
+ content: "";
50
+ float: right;
51
+ margin-top: 7px;
52
+ border-width: 0 4px 4px;
53
+ border-style: solid;
54
+ border-color: #000 transparent;
55
+ visibility: hidden;
56
+ }
57
+ }
58
+ // Style the sorted column headers (THs)
59
+ .headerSortUp,
60
+ .headerSortDown {
61
+ background-color: rgba(141,192,219,.25);
62
+ text-shadow: 0 1px 1px rgba(255,255,255,.75);
63
+ @include border-radius(3px 3px 0 0);
64
+ }
65
+ // Style the ascending (reverse alphabetical) column header
66
+ .header:hover {
67
+ &:after {
68
+ visibility:visible;
69
+ }
70
+ }
71
+ // Style the descending (alphabetical) column header
72
+ .headerSortDown,
73
+ .headerSortDown:hover {
74
+ &:after {
75
+ visibility:visible;
76
+ @include opacity(60);
77
+ }
78
+ }
79
+ // Style the ascending (reverse alphabetical) column header
80
+ .headerSortUp {
81
+ &:after {
82
+ border-bottom: none;
83
+ border-left: 4px solid transparent;
84
+ border-right: 4px solid transparent;
85
+ border-top: 4px solid #000;
86
+ visibility:visible;
87
+ @include box-shadow(none); //can't add boxshadow to downward facing arrow :(
88
+ @include opacity(60);
89
+ }
90
+ }
91
+ }
92
+
93
+ table {
94
+ // Blue Table Headings
95
+ .blue {
96
+ color: $blue;
97
+ border-bottom-color: $blue;
98
+ }
99
+ .headerSortUp.blue,
100
+ .headerSortDown.blue {
101
+ background-color: lighten($blue, 40%);
102
+ }
103
+ // Green Table Headings
104
+ .green {
105
+ color: $green;
106
+ border-bottom-color: $green;
107
+ }
108
+ .headerSortUp.green,
109
+ .headerSortDown.green {
110
+ background-color: lighten($green, 40%);
111
+ }
112
+ // Red Table Headings
113
+ .red {
114
+ color: $red;
115
+ border-bottom-color: $red;
116
+ }
117
+ .headerSortUp.red,
118
+ .headerSortDown.red {
119
+ background-color: lighten($red, 50%);
120
+ }
121
+ // Yellow Table Headings
122
+ .yellow {
123
+ color: $yellow;
124
+ border-bottom-color: $yellow;
125
+ }
126
+ .headerSortUp.yellow,
127
+ .headerSortDown.yellow {
128
+ background-color: lighten($yellow, 40%);
129
+ }
130
+ // Orange Table Headings
131
+ .orange {
132
+ color: $orange;
133
+ border-bottom-color: $orange;
134
+ }
135
+ .headerSortUp.orange,
136
+ .headerSortDown.orange {
137
+ background-color: lighten($orange, 40%);
138
+ }
139
+ // Purple Table Headings
140
+ .purple {
141
+ color: $purple;
142
+ border-bottom-color: $purple;
143
+ }
144
+ .headerSortUp.purple,
145
+ .headerSortDown.purple {
146
+ background-color: lighten($purple, 40%);
147
+ }
148
+ }
@@ -0,0 +1,188 @@
1
+ /* Typography.less
2
+ * Headings, body text, lists, code, and more for a versatile and durable typography system
3
+ * ---------------------------------------------------------------------------------------- */
4
+
5
+
6
+ // BODY TEXT
7
+ // ---------
8
+
9
+ p {
10
+ @include font-shorthand(normal,$basefont,$baseline);
11
+ margin-bottom: $baseline / 2;
12
+ small {
13
+ font-size: $basefont - 2;
14
+ color: $grayLight;
15
+ }
16
+ }
17
+
18
+
19
+ // HEADINGS
20
+ // --------
21
+
22
+ h1, h2, h3, h4, h5, h6 {
23
+ font-weight: bold;
24
+ color: $grayDark;
25
+ small {
26
+ color: $grayLight;
27
+ }
28
+ }
29
+ h1 {
30
+ margin-bottom: $baseline;
31
+ font-size: 30px;
32
+ line-height: $baseline * 2;
33
+ small {
34
+ font-size: 18px;
35
+ }
36
+ }
37
+ h2 {
38
+ font-size: 24px;
39
+ line-height: $baseline * 2;
40
+ small {
41
+ font-size: 14px;
42
+ }
43
+ }
44
+ h3, h4, h5, h6 {
45
+ line-height: $baseline * 2;
46
+ }
47
+ h3 {
48
+ font-size: 18px;
49
+ small {
50
+ font-size: 14px;
51
+ }
52
+ }
53
+ h4 {
54
+ font-size: 16px;
55
+ small {
56
+ font-size: 12px;
57
+ }
58
+ }
59
+ h5 {
60
+ font-size: 14px;
61
+ }
62
+ h6 {
63
+ font-size: 13px;
64
+ color: $grayLight;
65
+ text-transform: uppercase;
66
+ }
67
+
68
+
69
+ // COLORS
70
+ // ------
71
+
72
+ // Unordered and Ordered lists
73
+ ul, ol {
74
+ margin: 0 0 $baseline 25px;
75
+ }
76
+ ul ul,
77
+ ul ol,
78
+ ol ol,
79
+ ol ul {
80
+ margin-bottom: 0;
81
+ }
82
+ ul {
83
+ list-style: disc;
84
+ }
85
+ ol {
86
+ list-style: decimal;
87
+ }
88
+ li {
89
+ line-height: $baseline;
90
+ color: $gray;
91
+ }
92
+ ul.unstyled {
93
+ list-style: none;
94
+ margin-left: 0;
95
+ }
96
+
97
+ // Description Lists
98
+ dl {
99
+ margin-bottom: $baseline;
100
+ dt, dd {
101
+ line-height: $baseline;
102
+ }
103
+ dt {
104
+ font-weight: bold;
105
+ }
106
+ dd {
107
+ margin-left: $baseline / 2;
108
+ }
109
+ }
110
+
111
+ // MISC
112
+ // ----
113
+
114
+ // Horizontal rules
115
+ hr {
116
+ margin: 0 0 19px;
117
+ border: 0;
118
+ border-bottom: 1px solid #eee;
119
+ }
120
+
121
+ // Emphasis
122
+ strong {
123
+ font-style: inherit;
124
+ font-weight: bold;
125
+ line-height: inherit;
126
+ }
127
+ em {
128
+ font-style: italic;
129
+ font-weight: inherit;
130
+ line-height: inherit;
131
+ }
132
+ .muted {
133
+ color: $grayLight;
134
+ }
135
+
136
+ // Blockquotes
137
+ blockquote {
138
+ margin-bottom: $baseline;
139
+ border-left: 5px solid #eee;
140
+ padding-left: 15px;
141
+ p {
142
+ @include font-shorthand(300,14px,$baseline);
143
+ margin-bottom: 0;
144
+ }
145
+ small {
146
+ display: block;
147
+ @include font-shorthand(300,12px,$baseline);
148
+ color: $grayLight;
149
+ &:before {
150
+ content: '\2014 \00A0';
151
+ }
152
+ }
153
+ }
154
+
155
+ // Addresses
156
+ address {
157
+ display: block;
158
+ line-height: $baseline;
159
+ margin-bottom: $baseline;
160
+ }
161
+
162
+ // Inline and block code styles
163
+ code, pre {
164
+ padding: 0 3px 2px;
165
+ font-family: Monaco, Andale Mono, Courier New, monospace;
166
+ font-size: 12px;
167
+ @include border-radius(3px);
168
+ }
169
+ code {
170
+ background-color: lighten($orange, 40%);
171
+ color: rgba(0,0,0,.75);
172
+ padding: 1px 3px;
173
+ }
174
+ pre {
175
+ background-color: #f5f5f5;
176
+ display: block;
177
+ padding: $baseline - 1;
178
+ margin: 0 0 $baseline;
179
+ line-height: $baseline;
180
+ font-size: 12px;
181
+ border: 1px solid #ccc;
182
+ border: 1px solid rgba(0,0,0,.15);
183
+ @include border-radius(3px);
184
+ white-space: pre;
185
+ white-space: pre-wrap;
186
+ word-wrap: break-word;
187
+
188
+ }
@@ -0,0 +1,19 @@
1
+ require "motorized-bootstrap/version"
2
+
3
+ module Motorized
4
+ module Bootstrap
5
+ puts "********* without"
6
+ if defined?(Rails)
7
+ puts "*********"
8
+ class Engine < ::Rails::Engine
9
+ puts "********* engine"
10
+ require 'motorized-bootstrap/engine'
11
+ end
12
+
13
+ module Rails
14
+ class Railtie < ::Rails::Railtie
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,6 @@
1
+ module Motorized
2
+ module Bootstrap
3
+ class Engine < Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module Motorized
2
+ module Bootstrap
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/motorized-bootstrap/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Christopher Meiklejohn", "Teddy Zetterlund"]
6
+ gem.email = ["christopher.meiklejohn@gmail.com", "teddy.zetterlund@gmail.com"]
7
+ gem.description = %q{Twitter's bootstrap, as scss, in a rails engine.}
8
+ gem.summary = gem.description
9
+ gem.homepage = "http://github.com/cmeiklejohn/motorized-bootstrap"
10
+
11
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
+ gem.files = `git ls-files`.split("\n")
13
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
+ gem.name = "motorized-bootstrap"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = Motorized::Bootstrap::VERSION
17
+
18
+ gem.add_dependency('sass', '>= 3.1')
19
+ gem.add_dependency('rake', '>= 0.8.7')
20
+ end
metadata ADDED
@@ -0,0 +1,92 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: motorized-bootstrap
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Christopher Meiklejohn
9
+ - Teddy Zetterlund
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2011-10-09 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: sass
17
+ requirement: &7328120 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '3.1'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *7328120
26
+ - !ruby/object:Gem::Dependency
27
+ name: rake
28
+ requirement: &7324160 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: 0.8.7
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *7324160
37
+ description: Twitter's bootstrap, as scss, in a rails engine.
38
+ email:
39
+ - christopher.meiklejohn@gmail.com
40
+ - teddy.zetterlund@gmail.com
41
+ executables: []
42
+ extensions: []
43
+ extra_rdoc_files: []
44
+ files:
45
+ - .gitignore
46
+ - Gemfile
47
+ - README.rdoc
48
+ - Rakefile
49
+ - app/assets/stylesheets/adaptive.scss
50
+ - app/assets/stylesheets/bootstrap.css.scss
51
+ - app/assets/stylesheets/forms.scss
52
+ - app/assets/stylesheets/patterns.scss
53
+ - app/assets/stylesheets/preboot.scss
54
+ - app/assets/stylesheets/reset.scss
55
+ - app/assets/stylesheets/scaffolding.scss
56
+ - app/assets/stylesheets/tables.scss
57
+ - app/assets/stylesheets/type.scss
58
+ - lib/motorized-bootstrap.rb
59
+ - lib/motorized-bootstrap/engine.rb
60
+ - lib/motorized-bootstrap/version.rb
61
+ - motorized-bootstrap.gemspec
62
+ homepage: http://github.com/cmeiklejohn/motorized-bootstrap
63
+ licenses: []
64
+ post_install_message:
65
+ rdoc_options: []
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ! '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ segments:
75
+ - 0
76
+ hash: 1130481172191488488
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
+ none: false
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ segments:
84
+ - 0
85
+ hash: 1130481172191488488
86
+ requirements: []
87
+ rubyforge_project:
88
+ rubygems_version: 1.8.6
89
+ signing_key:
90
+ specification_version: 3
91
+ summary: Twitter's bootstrap, as scss, in a rails engine.
92
+ test_files: []