sass-twitter-bootstrap-rails 0.1

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 (28) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +4 -0
  3. data/README.md +54 -0
  4. data/Rakefile +2 -0
  5. data/lib/sass-twitter-bootstrap-rails.rb +1 -0
  6. data/lib/sass-twitter-bootstrap/rails.rb +6 -0
  7. data/lib/sass-twitter-bootstrap/rails/engine.rb +6 -0
  8. data/lib/sass-twitter-bootstrap/rails/version.rb +7 -0
  9. data/sass-twitter-bootstrap-rails.gemspec +22 -0
  10. data/vendor/assets/javascripts/twitter/bootstrap-alerts.js +113 -0
  11. data/vendor/assets/javascripts/twitter/bootstrap-buttons.js +62 -0
  12. data/vendor/assets/javascripts/twitter/bootstrap-dropdown.js +55 -0
  13. data/vendor/assets/javascripts/twitter/bootstrap-modal.js +260 -0
  14. data/vendor/assets/javascripts/twitter/bootstrap-popover.js +86 -0
  15. data/vendor/assets/javascripts/twitter/bootstrap-scrollspy.js +107 -0
  16. data/vendor/assets/javascripts/twitter/bootstrap-tabs.js +80 -0
  17. data/vendor/assets/javascripts/twitter/bootstrap-twipsy.js +310 -0
  18. data/vendor/assets/javascripts/twitter/bootstrap.js +1 -0
  19. data/vendor/assets/stylesheets/twitter/bootstrap.scss +29 -0
  20. data/vendor/assets/stylesheets/twitter/forms.scss +478 -0
  21. data/vendor/assets/stylesheets/twitter/mixins.scss +220 -0
  22. data/vendor/assets/stylesheets/twitter/patterns.scss +1060 -0
  23. data/vendor/assets/stylesheets/twitter/reset.scss +141 -0
  24. data/vendor/assets/stylesheets/twitter/scaffolding.scss +108 -0
  25. data/vendor/assets/stylesheets/twitter/tables.scss +224 -0
  26. data/vendor/assets/stylesheets/twitter/type.scss +187 -0
  27. data/vendor/assets/stylesheets/twitter/variables.scss +60 -0
  28. metadata +84 -0
@@ -0,0 +1,187 @@
1
+ /* Typography.scss
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 shorthand-font(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: 20px 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
+ }
126
+ em {
127
+ font-style: italic;
128
+ font-weight: inherit;
129
+ line-height: inherit;
130
+ }
131
+ .muted {
132
+ color: $grayLight;
133
+ }
134
+
135
+ // Blockquotes
136
+ blockquote {
137
+ margin-bottom: $baseline;
138
+ border-left: 5px solid #eee;
139
+ padding-left: 15px;
140
+ p {
141
+ @include shorthand-font(300,14px,$baseline);
142
+ margin-bottom: 0;
143
+ }
144
+ small {
145
+ display: block;
146
+ @include shorthand-font(300,12px,$baseline);
147
+ color: $grayLight;
148
+ &:before {
149
+ content: '\2014 \00A0';
150
+ }
151
+ }
152
+ }
153
+
154
+ // Addresses
155
+ address {
156
+ display: block;
157
+ line-height: $baseline;
158
+ margin-bottom: $baseline;
159
+ }
160
+
161
+ // Inline and block code styles
162
+ code, pre {
163
+ padding: 0 3px 2px;
164
+ font-family: Monaco, Andale Mono, Courier New, monospace;
165
+ font-size: 12px;
166
+ @include border-radius(3px);
167
+ }
168
+ code {
169
+ background-color: lighten($orange, 40%);
170
+ color: rgba(0,0,0,.75);
171
+ padding: 1px 3px;
172
+ }
173
+ pre {
174
+ background-color: #f5f5f5;
175
+ display: block;
176
+ padding: ($baseline - 1) / 2;
177
+ margin: 0 0 $baseline;
178
+ line-height: $baseline;
179
+ font-size: 12px;
180
+ border: 1px solid #ccc;
181
+ border: 1px solid rgba(0,0,0,.15);
182
+ @include border-radius(3px);
183
+ white-space: pre;
184
+ white-space: pre-wrap;
185
+ word-wrap: break-word;
186
+
187
+ }
@@ -0,0 +1,60 @@
1
+ /* variables.scss
2
+ * Variables and mixins to pre-ignite any new web development project
3
+ * ------------------------------------------------------------------ */
4
+
5
+
6
+ // Links
7
+ $linkColor: #0069d6;
8
+ $linkColorHover: darken($linkColor, 15);
9
+
10
+ // Grays
11
+ $black: #000;
12
+ $grayDark: lighten($black, 25%);
13
+ $gray: lighten($black, 50%);
14
+ $grayLight: lighten($black, 75%);
15
+ $grayLighter: lighten($black, 90%);
16
+ $white: #fff;
17
+
18
+ // Accent Colors
19
+ $blue: #049CDB;
20
+ $blueDark: #0064CD;
21
+ $green: #46a546;
22
+ $red: #9d261d;
23
+ $yellow: #ffc40d;
24
+ $orange: #f89406;
25
+ $pink: #c3325f;
26
+ $purple: #7a43b6;
27
+
28
+ // Baseline grid
29
+ $basefont: 13px;
30
+ $baseline: 18px;
31
+
32
+ // Griditude
33
+ // Modify the grid styles in mixins.scss
34
+ $gridColumns: 16;
35
+ $gridColumnWidth: 40px;
36
+ $gridGutterWidth: 20px;
37
+ $extraSpace: ($gridGutterWidth * 2); // For our grid calculations
38
+ $siteWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
39
+
40
+ // Color Scheme
41
+ // Use this to roll your own color schemes if you like (unused by Bootstrap by default)
42
+ $baseColor: $blue; // Set a base color
43
+ $complement: complement($baseColor); // Determine a complementary color
44
+ $split1: adjust-hue($baseColor, 158); // Split complements
45
+ $split2: adjust-hue($baseColor, -158);
46
+ $triad1: adjust-hue($baseColor, 135); // Triads colors
47
+ $triad2: adjust-hue($baseColor, -135);
48
+ $tetra1: adjust-hue($baseColor, 90); // Tetra colors
49
+ $tetra2: adjust-hue($baseColor, -90);
50
+ $analog1: adjust-hue($baseColor, 22); // Analogs colors
51
+ $analog2: adjust-hue($baseColor, -22);
52
+
53
+
54
+
55
+ // More variables coming soon:
56
+ // - @basefont to @baseFontSize
57
+ // - @baseline to @baseLineHeight
58
+ // - @baseFontFamily
59
+ // - @primaryButtonColor
60
+ // - anything else? File an issue on GitHub
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sass-twitter-bootstrap-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.1'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - ccocchi
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-01-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: railties
16
+ requirement: &70181202892500 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.2'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70181202892500
25
+ description: This gem provides Twitter Bootstrap converted to Sass directly for you
26
+ Rails 3 application.
27
+ email:
28
+ - cocchi.c@gmail.com
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - .gitignore
34
+ - Gemfile
35
+ - README.md
36
+ - Rakefile
37
+ - lib/sass-twitter-bootstrap-rails.rb
38
+ - lib/sass-twitter-bootstrap/rails.rb
39
+ - lib/sass-twitter-bootstrap/rails/engine.rb
40
+ - lib/sass-twitter-bootstrap/rails/version.rb
41
+ - sass-twitter-bootstrap-rails.gemspec
42
+ - vendor/assets/javascripts/twitter/bootstrap-alerts.js
43
+ - vendor/assets/javascripts/twitter/bootstrap-buttons.js
44
+ - vendor/assets/javascripts/twitter/bootstrap-dropdown.js
45
+ - vendor/assets/javascripts/twitter/bootstrap-modal.js
46
+ - vendor/assets/javascripts/twitter/bootstrap-popover.js
47
+ - vendor/assets/javascripts/twitter/bootstrap-scrollspy.js
48
+ - vendor/assets/javascripts/twitter/bootstrap-tabs.js
49
+ - vendor/assets/javascripts/twitter/bootstrap-twipsy.js
50
+ - vendor/assets/javascripts/twitter/bootstrap.js
51
+ - vendor/assets/stylesheets/twitter/bootstrap.scss
52
+ - vendor/assets/stylesheets/twitter/forms.scss
53
+ - vendor/assets/stylesheets/twitter/mixins.scss
54
+ - vendor/assets/stylesheets/twitter/patterns.scss
55
+ - vendor/assets/stylesheets/twitter/reset.scss
56
+ - vendor/assets/stylesheets/twitter/scaffolding.scss
57
+ - vendor/assets/stylesheets/twitter/tables.scss
58
+ - vendor/assets/stylesheets/twitter/type.scss
59
+ - vendor/assets/stylesheets/twitter/variables.scss
60
+ homepage: http://github.com/ccocchi/sass-twitter-bootstrap-rails
61
+ licenses: []
62
+ post_install_message:
63
+ rdoc_options: []
64
+ require_paths:
65
+ - lib
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: 1.3.6
78
+ requirements: []
79
+ rubyforge_project:
80
+ rubygems_version: 1.8.11
81
+ signing_key:
82
+ specification_version: 3
83
+ summary: Use Twitter CSS toolkit Bootstrap with Rails and Sass
84
+ test_files: []