todc-bootstrap-sass 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +15 -0
  2. data/LICENSE +22 -0
  3. data/README.md +60 -0
  4. data/lib/assets/images/checkmark.png +0 -0
  5. data/lib/assets/images/glyphicons-halflings-white.png +0 -0
  6. data/lib/assets/images/glyphicons-halflings.png +0 -0
  7. data/lib/assets/stylesheets/todc-bootstrap-responsive.scss +1 -0
  8. data/lib/assets/stylesheets/todc-bootstrap.scss +1 -0
  9. data/lib/assets/stylesheets/todc-bootstrap/_alerts.scss +45 -0
  10. data/lib/assets/stylesheets/todc-bootstrap/_breadcrumbs.scss +10 -0
  11. data/lib/assets/stylesheets/todc-bootstrap/_button-groups.scss +153 -0
  12. data/lib/assets/stylesheets/todc-bootstrap/_buttons.scss +239 -0
  13. data/lib/assets/stylesheets/todc-bootstrap/_dropdowns.scss +117 -0
  14. data/lib/assets/stylesheets/todc-bootstrap/_forms.scss +248 -0
  15. data/lib/assets/stylesheets/todc-bootstrap/_google-mixins.scss +71 -0
  16. data/lib/assets/stylesheets/todc-bootstrap/_labels-badges.scss +31 -0
  17. data/lib/assets/stylesheets/todc-bootstrap/_modals.scss +20 -0
  18. data/lib/assets/stylesheets/todc-bootstrap/_navbar.scss +718 -0
  19. data/lib/assets/stylesheets/todc-bootstrap/_navs.scss +147 -0
  20. data/lib/assets/stylesheets/todc-bootstrap/_pager.scss +53 -0
  21. data/lib/assets/stylesheets/todc-bootstrap/_pagination.scss +58 -0
  22. data/lib/assets/stylesheets/todc-bootstrap/_popovers.scss +12 -0
  23. data/lib/assets/stylesheets/todc-bootstrap/_progress-bars.scss +65 -0
  24. data/lib/assets/stylesheets/todc-bootstrap/_responsive-navbar.scss +147 -0
  25. data/lib/assets/stylesheets/todc-bootstrap/_scaffolding.scss +37 -0
  26. data/lib/assets/stylesheets/todc-bootstrap/_scrollbars.scss +48 -0
  27. data/lib/assets/stylesheets/todc-bootstrap/_sprites.scss +24 -0
  28. data/lib/assets/stylesheets/todc-bootstrap/_tables.scss +51 -0
  29. data/lib/assets/stylesheets/todc-bootstrap/_thumbnails.scss +24 -0
  30. data/lib/assets/stylesheets/todc-bootstrap/_todc-mixins.scss +71 -0
  31. data/lib/assets/stylesheets/todc-bootstrap/_tooltip.scss +13 -0
  32. data/lib/assets/stylesheets/todc-bootstrap/_variables.scss +386 -0
  33. data/lib/assets/stylesheets/todc-bootstrap/_wells.scss +20 -0
  34. data/lib/assets/stylesheets/todc-bootstrap/bootstrap.scss +39 -0
  35. data/lib/assets/stylesheets/todc-bootstrap/responsive.scss +5 -0
  36. data/lib/todc-bootstrap-sass.rb +49 -0
  37. data/lib/todc-bootstrap-sass/compass_functions.rb +14 -0
  38. data/lib/todc-bootstrap-sass/engine.rb +8 -0
  39. data/lib/todc-bootstrap-sass/rails_functions.rb +14 -0
  40. data/lib/todc-bootstrap-sass/version.rb +7 -0
  41. metadata +124 -0
@@ -0,0 +1,20 @@
1
+ //
2
+ // Wells
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Base class
7
+ .well {
8
+ background-color: $wellBackground;
9
+ border: 1px solid darken($wellBackground, 4.9%);
10
+ @include border-radius(0);
11
+ @include box-shadow(none);
12
+ }
13
+
14
+ // Sizes
15
+ .well-large {
16
+ @include border-radius(0);
17
+ }
18
+ .well-small {
19
+ @include border-radius(0);
20
+ }
@@ -0,0 +1,39 @@
1
+
2
+ // Core variables and mixins
3
+ @import "todc-bootstrap/variables"; // Modify this for custom colors, font-sizes, etc
4
+ @import "todc-bootstrap/todc-mixins";
5
+
6
+ // Grid system and page structure
7
+ @import "todc-bootstrap/scaffolding";
8
+
9
+ // Base CSS
10
+ @import "todc-bootstrap/forms";
11
+ @import "todc-bootstrap/tables";
12
+
13
+ // Components: common
14
+ @import "todc-bootstrap/sprites";
15
+ @import "todc-bootstrap/dropdowns";
16
+ @import "todc-bootstrap/wells";
17
+ @import "todc-bootstrap/scrollbars";
18
+
19
+ // Components: Buttons & Alerts
20
+ @import "todc-bootstrap/buttons";
21
+ @import "todc-bootstrap/button-groups";
22
+ @import "todc-bootstrap/alerts"; // Note: alerts share common CSS with buttons and thus have styles in buttons
23
+
24
+ // Components: Nav
25
+ @import "todc-bootstrap/navs";
26
+ @import "todc-bootstrap/navbar";
27
+ @import "todc-bootstrap/breadcrumbs";
28
+ @import "todc-bootstrap/pagination";
29
+ @import "todc-bootstrap/pager";
30
+
31
+ // Components: Popovers
32
+ @import "todc-bootstrap/modals";
33
+ @import "todc-bootstrap/tooltip";
34
+ @import "todc-bootstrap/popovers";
35
+
36
+ // Components: Misc
37
+ @import "todc-bootstrap/thumbnails";
38
+ @import "todc-bootstrap/labels-badges";
39
+ @import "todc-bootstrap/progress-bars";
@@ -0,0 +1,5 @@
1
+ // Core variables and mixins
2
+ @import "todc-bootstrap/variables"; // Modify this for custom colors, font-sizes, etc
3
+ @import "todc-bootstrap/todc-mixins";
4
+
5
+ @import "todc-bootstrap/responsive-navbar";
@@ -0,0 +1,49 @@
1
+ require "todc-bootstrap-sass/version"
2
+
3
+ module Todc
4
+ module Bootstrap
5
+ module Sass
6
+
7
+ class FrameworkNotFound < StandardError; end
8
+
9
+ def self.load!
10
+ if compass? && asset_pipeline?
11
+ register_compass_extension
12
+ register_rails_engine
13
+ elsif compass?
14
+ # Only require compass extension if a standalone project
15
+ require 'todc-bootstrap-sass/compass_functions'
16
+ register_compass_extension
17
+ elsif asset_pipeline?
18
+ require 'sass-rails' # See: https://github.com/thomas-mcdonald/bootstrap-sass/pull/4
19
+ register_rails_engine
20
+ require 'todc-bootstrap-sass/rails_functions'
21
+ else
22
+ raise Bootstrap::FrameworkNotFound, "bootstrap-sass requires either Rails > 3.1 or Compass, neither of which are loaded"
23
+ end
24
+ end
25
+
26
+ private
27
+ def self.asset_pipeline?
28
+ defined?(::Rails) && ::Rails.version.to_s >= '3.1.0'
29
+ end
30
+
31
+ def self.compass?
32
+ defined?(::Compass)
33
+ end
34
+
35
+ def self.register_compass_extension
36
+ base = File.join(File.dirname(__FILE__), '..')
37
+ styles = File.join(base, 'lib', 'assets', 'stylesheets')
38
+ ::Compass::Frameworks.register('todc-bootstrap', :stylesheets_directory => styles)
39
+ end
40
+
41
+ def self.register_rails_engine
42
+ require 'todc-bootstrap-sass/engine'
43
+ end
44
+
45
+ end
46
+ end
47
+ end
48
+
49
+ Bootstrap::Google::Sass.load!
@@ -0,0 +1,14 @@
1
+ # This contains functions for use with a project *only* using Compass.
2
+
3
+ module Sass::Script::Functions
4
+ # Define image_path for Compass to allow use of sprites without url() wrapper.
5
+ def image_path(asset)
6
+ if defined?(::Compass)
7
+ image_url(asset, Sass::Script::Bool.new(true))
8
+ else
9
+ # Revert to the old compass-agnostic path determination
10
+ asset_sans_quotes = asset.value.gsub('"', '')
11
+ Sass::Script::String.new("/images/#{asset_sans_quotes}", :string)
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,8 @@
1
+ module Todc
2
+ module Bootstrap
3
+ module Sass
4
+ class Engine < ::Rails::Engine
5
+ end
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,14 @@
1
+ require 'sass'
2
+
3
+ module Sass::Script::Functions
4
+ # LARS: Snatched from compass - 2011-11-29 - used for gradients in IE6-9
5
+ # returns an IE hex string for a color with an alpha channel
6
+ # suitable for passing to IE filters.
7
+ def ie_hex_str(color)
8
+ assert_type color, :Color
9
+ alpha = (color.alpha * 255).round
10
+ alphastr = alpha.to_s(16).rjust(2, '0')
11
+ Sass::Script::String.new("##{alphastr}#{color.send(:hex_str)[1..-1]}".upcase)
12
+ end
13
+ declare :ie_hex_str, [:color]
14
+ end
@@ -0,0 +1,7 @@
1
+ module Todc
2
+ module Bootstrap
3
+ module Sass
4
+ VERSION = "0.0.5"
5
+ end
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,124 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: todc-bootstrap-sass
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
+ platform: ruby
6
+ authors:
7
+ - ichord
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-02-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: compass
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: sass-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '3.2'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '3.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sass
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '3.2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '3.2'
55
+ description: google-bootstrap in sass for rails
56
+ email:
57
+ - chord.luo@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - lib/todc-bootstrap-sass/engine.rb
63
+ - lib/todc-bootstrap-sass/version.rb
64
+ - lib/todc-bootstrap-sass/rails_functions.rb
65
+ - lib/todc-bootstrap-sass/compass_functions.rb
66
+ - lib/assets/images/checkmark.png
67
+ - lib/assets/images/glyphicons-halflings-white.png
68
+ - lib/assets/images/glyphicons-halflings.png
69
+ - lib/assets/stylesheets/todc-bootstrap-responsive.scss
70
+ - lib/assets/stylesheets/todc-bootstrap/_variables.scss
71
+ - lib/assets/stylesheets/todc-bootstrap/_tooltip.scss
72
+ - lib/assets/stylesheets/todc-bootstrap/_scrollbars.scss
73
+ - lib/assets/stylesheets/todc-bootstrap/_responsive-navbar.scss
74
+ - lib/assets/stylesheets/todc-bootstrap/_dropdowns.scss
75
+ - lib/assets/stylesheets/todc-bootstrap/_thumbnails.scss
76
+ - lib/assets/stylesheets/todc-bootstrap/_navs.scss
77
+ - lib/assets/stylesheets/todc-bootstrap/_wells.scss
78
+ - lib/assets/stylesheets/todc-bootstrap/responsive.scss
79
+ - lib/assets/stylesheets/todc-bootstrap/_modals.scss
80
+ - lib/assets/stylesheets/todc-bootstrap/_buttons.scss
81
+ - lib/assets/stylesheets/todc-bootstrap/_navbar.scss
82
+ - lib/assets/stylesheets/todc-bootstrap/bootstrap.scss
83
+ - lib/assets/stylesheets/todc-bootstrap/_button-groups.scss
84
+ - lib/assets/stylesheets/todc-bootstrap/_todc-mixins.scss
85
+ - lib/assets/stylesheets/todc-bootstrap/_popovers.scss
86
+ - lib/assets/stylesheets/todc-bootstrap/_pager.scss
87
+ - lib/assets/stylesheets/todc-bootstrap/_pagination.scss
88
+ - lib/assets/stylesheets/todc-bootstrap/_tables.scss
89
+ - lib/assets/stylesheets/todc-bootstrap/_scaffolding.scss
90
+ - lib/assets/stylesheets/todc-bootstrap/_breadcrumbs.scss
91
+ - lib/assets/stylesheets/todc-bootstrap/_google-mixins.scss
92
+ - lib/assets/stylesheets/todc-bootstrap/_labels-badges.scss
93
+ - lib/assets/stylesheets/todc-bootstrap/_sprites.scss
94
+ - lib/assets/stylesheets/todc-bootstrap/_forms.scss
95
+ - lib/assets/stylesheets/todc-bootstrap/_progress-bars.scss
96
+ - lib/assets/stylesheets/todc-bootstrap/_alerts.scss
97
+ - lib/assets/stylesheets/todc-bootstrap.scss
98
+ - lib/todc-bootstrap-sass.rb
99
+ - README.md
100
+ - LICENSE
101
+ homepage: https://github.com/ichord/todc-bootstrap-sass
102
+ licenses: []
103
+ metadata: {}
104
+ post_install_message:
105
+ rdoc_options: []
106
+ require_paths:
107
+ - lib
108
+ required_ruby_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ! '>='
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ required_rubygems_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ requirements: []
119
+ rubyforge_project:
120
+ rubygems_version: 2.1.9
121
+ signing_key:
122
+ specification_version: 4
123
+ summary: google style for bootstrap
124
+ test_files: []