bootswatch 4.0.0.beta2.1 → 4.0.0.beta3

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 (49) hide show
  1. checksums.yaml +5 -5
  2. data/Rakefile +3 -3
  3. data/{app/assets → assets}/stylesheets/bootswatch/cerulean/_bootswatch.scss +11 -0
  4. data/{app/assets → assets}/stylesheets/bootswatch/cerulean/_variables.scss +0 -0
  5. data/{app/assets → assets}/stylesheets/bootswatch/cosmo/_bootswatch.scss +0 -4
  6. data/{app/assets → assets}/stylesheets/bootswatch/cosmo/_variables.scss +8 -6
  7. data/{app/assets → assets}/stylesheets/bootswatch/cyborg/_bootswatch.scss +8 -32
  8. data/{app/assets → assets}/stylesheets/bootswatch/cyborg/_variables.scss +4 -4
  9. data/{app/assets → assets}/stylesheets/bootswatch/darkly/_bootswatch.scss +18 -23
  10. data/{app/assets → assets}/stylesheets/bootswatch/darkly/_variables.scss +11 -1
  11. data/{app/assets → assets}/stylesheets/bootswatch/flatly/_bootswatch.scss +19 -41
  12. data/{app/assets → assets}/stylesheets/bootswatch/flatly/_variables.scss +0 -0
  13. data/{app/assets → assets}/stylesheets/bootswatch/journal/_bootswatch.scss +0 -0
  14. data/{app/assets → assets}/stylesheets/bootswatch/journal/_variables.scss +0 -0
  15. data/{app/assets → assets}/stylesheets/bootswatch/litera/_bootswatch.scss +16 -34
  16. data/{app/assets → assets}/stylesheets/bootswatch/litera/_variables.scss +0 -0
  17. data/{app/assets → assets}/stylesheets/bootswatch/lumen/_bootswatch.scss +7 -2
  18. data/{app/assets → assets}/stylesheets/bootswatch/lumen/_variables.scss +4 -0
  19. data/{app/assets → assets}/stylesheets/bootswatch/lux/_bootswatch.scss +46 -6
  20. data/{app/assets → assets}/stylesheets/bootswatch/lux/_variables.scss +0 -0
  21. data/{app/assets → assets}/stylesheets/bootswatch/materia/_bootswatch.scss +33 -23
  22. data/{app/assets → assets}/stylesheets/bootswatch/materia/_variables.scss +14 -1
  23. data/{app/assets → assets}/stylesheets/bootswatch/minty/_bootswatch.scss +1 -6
  24. data/{app/assets → assets}/stylesheets/bootswatch/minty/_variables.scss +0 -0
  25. data/{app/assets → assets}/stylesheets/bootswatch/pulse/_bootswatch.scss +0 -6
  26. data/{app/assets → assets}/stylesheets/bootswatch/pulse/_variables.scss +4 -6
  27. data/{app/assets → assets}/stylesheets/bootswatch/sandstone/_bootswatch.scss +1 -1
  28. data/{app/assets → assets}/stylesheets/bootswatch/sandstone/_variables.scss +5 -3
  29. data/{app/assets → assets}/stylesheets/bootswatch/simplex/_bootswatch.scss +0 -0
  30. data/{app/assets → assets}/stylesheets/bootswatch/simplex/_variables.scss +0 -2
  31. data/{app/assets → assets}/stylesheets/bootswatch/sketchy/_bootswatch.scss +15 -7
  32. data/{app/assets → assets}/stylesheets/bootswatch/sketchy/_variables.scss +2 -3
  33. data/{app/assets → assets}/stylesheets/bootswatch/slate/_bootswatch.scss +4 -22
  34. data/{app/assets → assets}/stylesheets/bootswatch/slate/_variables.scss +0 -0
  35. data/{app/assets → assets}/stylesheets/bootswatch/solar/_bootswatch.scss +4 -22
  36. data/{app/assets → assets}/stylesheets/bootswatch/solar/_variables.scss +6 -4
  37. data/{app/assets → assets}/stylesheets/bootswatch/spacelab/_bootswatch.scss +7 -0
  38. data/{app/assets → assets}/stylesheets/bootswatch/spacelab/_variables.scss +0 -0
  39. data/{app/assets → assets}/stylesheets/bootswatch/superhero/_bootswatch.scss +4 -26
  40. data/{app/assets → assets}/stylesheets/bootswatch/superhero/_variables.scss +2 -1
  41. data/{app/assets → assets}/stylesheets/bootswatch/united/_bootswatch.scss +5 -5
  42. data/{app/assets → assets}/stylesheets/bootswatch/united/_variables.scss +0 -0
  43. data/{app/assets → assets}/stylesheets/bootswatch/yeti/_bootswatch.scss +0 -0
  44. data/{app/assets → assets}/stylesheets/bootswatch/yeti/_variables.scss +0 -0
  45. data/bootswatch.gemspec +3 -0
  46. data/lib/bootswatch.rb +67 -1
  47. data/lib/bootswatch/engine.rb +13 -0
  48. data/lib/bootswatch/version.rb +1 -1
  49. metadata +74 -45
@@ -385,28 +385,10 @@ legend {
385
385
  text-decoration: underline;
386
386
  }
387
387
 
388
- &-primary {
389
- background-color: $primary;
390
- }
391
-
392
- &-success {
393
- background-color: $success;
394
- }
395
-
396
- &-danger {
397
- background-color: $danger;
398
- }
399
-
400
- &-warning {
401
- background-color: $warning;
402
- }
403
-
404
- &-info {
405
- background-color: $info;
406
- }
407
-
408
- &-dark {
409
- background-color: $dark;
388
+ @each $color, $value in $theme-colors {
389
+ &-#{$color} {
390
+ background-color: $value;
391
+ }
410
392
  }
411
393
  }
412
394
 
@@ -99,28 +99,10 @@ $web-font-path: "https://fonts.googleapis.com/css?family=Source+Sans+Pro" !defau
99
99
  text-decoration: underline;
100
100
  }
101
101
 
102
- &-primary {
103
- background-color: $primary;
104
- }
105
-
106
- &-success {
107
- background-color: $success;
108
- }
109
-
110
- &-danger {
111
- background-color: $danger;
112
- }
113
-
114
- &-warning {
115
- background-color: $warning;
116
- }
117
-
118
- &-info {
119
- background-color: $info;
120
- }
121
-
122
- &-dark {
123
- background-color: $dark;
102
+ @each $color, $value in $theme-colors {
103
+ &-#{$color} {
104
+ background-color: $value;
105
+ }
124
106
  }
125
107
  }
126
108
 
@@ -64,7 +64,9 @@ $table-hover-bg: rgba($white,.075) !default;
64
64
 
65
65
  $table-border-color: $component-active-bg !default;
66
66
 
67
- $table-dark-color: $white !default;
67
+ $table-dark-bg: $gray-500 !default;
68
+ $table-dark-border-color: darken($gray-500, 3%) !default;
69
+ $table-dark-color: $body-bg !default;
68
70
 
69
71
  // Forms
70
72
 
@@ -122,9 +124,9 @@ $jumbotron-bg: $gray-800 !default;
122
124
 
123
125
  // Cards
124
126
 
125
- $card-border-color: $gray-800 !default;
126
- $card-cap-bg: $gray-800 !default;
127
- $card-bg: transparent !default;
127
+ $card-border-color: rgba($gray-900, .95) !default;
128
+ $card-cap-bg: rgba($gray-800, .25) !default;
129
+ $card-bg: rgba($gray-200, .125) !default;
128
130
 
129
131
  // Popovers
130
132
 
@@ -154,3 +154,10 @@ $web-font-path: "https://fonts.googleapis.com/css?family=Open+Sans:400italic,700
154
154
  // Progress bars ===============================================================
155
155
 
156
156
  // Containers ==================================================================
157
+
158
+ .card,
159
+ .list-group-item {
160
+ h1, h2, h3, h4, h5, h6 {
161
+ color: inherit;
162
+ }
163
+ }
@@ -9,10 +9,6 @@ $web-font-path: "https://fonts.googleapis.com/css?family=Lato:300,400,700" !defa
9
9
 
10
10
  // Navbar ======================================================================
11
11
 
12
- .bg-primary {
13
- background-color: $gray-200 !important;
14
- }
15
-
16
12
  .navbar {
17
13
  font-size: $font-size-sm;
18
14
  }
@@ -163,28 +159,10 @@ label,
163
159
  text-decoration: underline;
164
160
  }
165
161
 
166
- &-primary {
167
- background-color: $primary;
168
- }
169
-
170
- &-success {
171
- background-color: $success;
172
- }
173
-
174
- &-danger {
175
- background-color: $danger;
176
- }
177
-
178
- &-warning {
179
- background-color: $warning;
180
- }
181
-
182
- &-info {
183
- background-color: $info;
184
- }
185
-
186
- &-dark {
187
- background-color: $dark;
162
+ @each $color, $value in $theme-colors {
163
+ &-#{$color} {
164
+ background-color: $value;
165
+ }
188
166
  }
189
167
  }
190
168
 
@@ -58,8 +58,9 @@ $text-muted: rgba(255,255,255,.4) !default;
58
58
  $table-accent-bg: rgba($white,.05) !default;
59
59
  $table-hover-bg: rgba($white,.075) !default;
60
60
 
61
- $table-dark-bg: $gray-200 !default;
61
+ $table-dark-bg: $light !default;
62
62
  $table-dark-border-color: $gray-200 !default;
63
+ $table-dark-color: $body-bg !default;
63
64
 
64
65
  // Dropdowns
65
66
 
@@ -13,11 +13,11 @@ $web-font-path: "https://fonts.googleapis.com/css?family=Ubuntu:400,700" !defaul
13
13
 
14
14
  .btn {
15
15
 
16
- &-secondary,
17
- &-warning,
18
- &-warning:hover {
19
- color: $white;
20
- }
16
+ &-secondary,
17
+ &-warning,
18
+ &-warning:hover {
19
+ color: $white;
20
+ }
21
21
  }
22
22
 
23
23
  // Typography ==================================================================
@@ -18,6 +18,9 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.add_runtime_dependency 'sass', '>= 3.5.2'
22
+ spec.add_runtime_dependency 'autoprefixer-rails', '>= 6.0.3'
23
+
21
24
  spec.add_development_dependency "bundler", "~> 1.7"
22
25
  spec.add_development_dependency "rake", "~> 10.0"
23
26
  end
@@ -1,6 +1,72 @@
1
1
  require "bootswatch/version"
2
2
 
3
3
  module Bootswatch
4
- class Engine < ::Rails::Engine
4
+ #thanks to bootstrap-rubygem
5
+ class << self
6
+ # Inspired by Kaminari
7
+ def load!
8
+ if rails?
9
+ register_rails_engine
10
+ elsif hanami?
11
+ register_hanami
12
+ elsif sprockets?
13
+ register_sprockets
14
+ end
15
+
16
+ configure_sass
17
+ end
18
+
19
+ # Paths
20
+ def gem_path
21
+ @gem_path ||= File.expand_path '..', File.dirname(__FILE__)
22
+ end
23
+
24
+ def stylesheets_path
25
+ File.join assets_path, 'stylesheets'
26
+ end
27
+
28
+ def javascripts_path
29
+ File.join assets_path, 'javascripts'
30
+ end
31
+
32
+ def assets_path
33
+ @assets_path ||= File.join gem_path, 'assets'
34
+ end
35
+
36
+ # Environment detection helpers
37
+ def sprockets?
38
+ defined?(::Sprockets)
39
+ end
40
+
41
+ def rails?
42
+ defined?(::Rails)
43
+ end
44
+
45
+ def hanami?
46
+ defined?(::Hanami)
47
+ end
48
+
49
+ private
50
+
51
+ def configure_sass
52
+ require 'sass'
53
+
54
+ ::Sass.load_paths << stylesheets_path
55
+ end
56
+
57
+ def register_rails_engine
58
+ require 'bootswatch/engine'
59
+ end
60
+
61
+ def register_sprockets
62
+ Sprockets.append_path(stylesheets_path)
63
+ Sprockets.append_path(javascripts_path)
64
+ end
65
+
66
+ def register_hanami
67
+ Hanami::Assets.sources << assets_path
68
+ end
5
69
  end
6
70
  end
71
+
72
+ Bootswatch.load!
@@ -0,0 +1,13 @@
1
+ require 'autoprefixer-rails'
2
+
3
+ module Bootswatch
4
+ module Rails
5
+ class Engine < ::Rails::Engine
6
+ initializer 'bootswatch.assets' do |app|
7
+ %w(stylesheets javascripts).each do |sub|
8
+ app.config.assets.paths << root.join('assets', sub).to_s
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module Bootswatch
2
- VERSION = '4.0.0.beta2.1'
2
+ VERSION = '4.0.0.beta3'
3
3
  end
metadata CHANGED
@@ -1,15 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootswatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.beta2.1
4
+ version: 4.0.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - mkhairi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-08 00:00:00.000000000 Z
11
+ date: 2018-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sass
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 3.5.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 3.5.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: autoprefixer-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 6.0.3
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 6.0.3
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: bundler
15
43
  requirement: !ruby/object:Gem::Requirement
@@ -50,50 +78,51 @@ files:
50
78
  - LICENSE.txt
51
79
  - README.md
52
80
  - Rakefile
53
- - app/assets/stylesheets/bootswatch/cerulean/_bootswatch.scss
54
- - app/assets/stylesheets/bootswatch/cerulean/_variables.scss
55
- - app/assets/stylesheets/bootswatch/cosmo/_bootswatch.scss
56
- - app/assets/stylesheets/bootswatch/cosmo/_variables.scss
57
- - app/assets/stylesheets/bootswatch/cyborg/_bootswatch.scss
58
- - app/assets/stylesheets/bootswatch/cyborg/_variables.scss
59
- - app/assets/stylesheets/bootswatch/darkly/_bootswatch.scss
60
- - app/assets/stylesheets/bootswatch/darkly/_variables.scss
61
- - app/assets/stylesheets/bootswatch/flatly/_bootswatch.scss
62
- - app/assets/stylesheets/bootswatch/flatly/_variables.scss
63
- - app/assets/stylesheets/bootswatch/journal/_bootswatch.scss
64
- - app/assets/stylesheets/bootswatch/journal/_variables.scss
65
- - app/assets/stylesheets/bootswatch/litera/_bootswatch.scss
66
- - app/assets/stylesheets/bootswatch/litera/_variables.scss
67
- - app/assets/stylesheets/bootswatch/lumen/_bootswatch.scss
68
- - app/assets/stylesheets/bootswatch/lumen/_variables.scss
69
- - app/assets/stylesheets/bootswatch/lux/_bootswatch.scss
70
- - app/assets/stylesheets/bootswatch/lux/_variables.scss
71
- - app/assets/stylesheets/bootswatch/materia/_bootswatch.scss
72
- - app/assets/stylesheets/bootswatch/materia/_variables.scss
73
- - app/assets/stylesheets/bootswatch/minty/_bootswatch.scss
74
- - app/assets/stylesheets/bootswatch/minty/_variables.scss
75
- - app/assets/stylesheets/bootswatch/pulse/_bootswatch.scss
76
- - app/assets/stylesheets/bootswatch/pulse/_variables.scss
77
- - app/assets/stylesheets/bootswatch/sandstone/_bootswatch.scss
78
- - app/assets/stylesheets/bootswatch/sandstone/_variables.scss
79
- - app/assets/stylesheets/bootswatch/simplex/_bootswatch.scss
80
- - app/assets/stylesheets/bootswatch/simplex/_variables.scss
81
- - app/assets/stylesheets/bootswatch/sketchy/_bootswatch.scss
82
- - app/assets/stylesheets/bootswatch/sketchy/_variables.scss
83
- - app/assets/stylesheets/bootswatch/slate/_bootswatch.scss
84
- - app/assets/stylesheets/bootswatch/slate/_variables.scss
85
- - app/assets/stylesheets/bootswatch/solar/_bootswatch.scss
86
- - app/assets/stylesheets/bootswatch/solar/_variables.scss
87
- - app/assets/stylesheets/bootswatch/spacelab/_bootswatch.scss
88
- - app/assets/stylesheets/bootswatch/spacelab/_variables.scss
89
- - app/assets/stylesheets/bootswatch/superhero/_bootswatch.scss
90
- - app/assets/stylesheets/bootswatch/superhero/_variables.scss
91
- - app/assets/stylesheets/bootswatch/united/_bootswatch.scss
92
- - app/assets/stylesheets/bootswatch/united/_variables.scss
93
- - app/assets/stylesheets/bootswatch/yeti/_bootswatch.scss
94
- - app/assets/stylesheets/bootswatch/yeti/_variables.scss
81
+ - assets/stylesheets/bootswatch/cerulean/_bootswatch.scss
82
+ - assets/stylesheets/bootswatch/cerulean/_variables.scss
83
+ - assets/stylesheets/bootswatch/cosmo/_bootswatch.scss
84
+ - assets/stylesheets/bootswatch/cosmo/_variables.scss
85
+ - assets/stylesheets/bootswatch/cyborg/_bootswatch.scss
86
+ - assets/stylesheets/bootswatch/cyborg/_variables.scss
87
+ - assets/stylesheets/bootswatch/darkly/_bootswatch.scss
88
+ - assets/stylesheets/bootswatch/darkly/_variables.scss
89
+ - assets/stylesheets/bootswatch/flatly/_bootswatch.scss
90
+ - assets/stylesheets/bootswatch/flatly/_variables.scss
91
+ - assets/stylesheets/bootswatch/journal/_bootswatch.scss
92
+ - assets/stylesheets/bootswatch/journal/_variables.scss
93
+ - assets/stylesheets/bootswatch/litera/_bootswatch.scss
94
+ - assets/stylesheets/bootswatch/litera/_variables.scss
95
+ - assets/stylesheets/bootswatch/lumen/_bootswatch.scss
96
+ - assets/stylesheets/bootswatch/lumen/_variables.scss
97
+ - assets/stylesheets/bootswatch/lux/_bootswatch.scss
98
+ - assets/stylesheets/bootswatch/lux/_variables.scss
99
+ - assets/stylesheets/bootswatch/materia/_bootswatch.scss
100
+ - assets/stylesheets/bootswatch/materia/_variables.scss
101
+ - assets/stylesheets/bootswatch/minty/_bootswatch.scss
102
+ - assets/stylesheets/bootswatch/minty/_variables.scss
103
+ - assets/stylesheets/bootswatch/pulse/_bootswatch.scss
104
+ - assets/stylesheets/bootswatch/pulse/_variables.scss
105
+ - assets/stylesheets/bootswatch/sandstone/_bootswatch.scss
106
+ - assets/stylesheets/bootswatch/sandstone/_variables.scss
107
+ - assets/stylesheets/bootswatch/simplex/_bootswatch.scss
108
+ - assets/stylesheets/bootswatch/simplex/_variables.scss
109
+ - assets/stylesheets/bootswatch/sketchy/_bootswatch.scss
110
+ - assets/stylesheets/bootswatch/sketchy/_variables.scss
111
+ - assets/stylesheets/bootswatch/slate/_bootswatch.scss
112
+ - assets/stylesheets/bootswatch/slate/_variables.scss
113
+ - assets/stylesheets/bootswatch/solar/_bootswatch.scss
114
+ - assets/stylesheets/bootswatch/solar/_variables.scss
115
+ - assets/stylesheets/bootswatch/spacelab/_bootswatch.scss
116
+ - assets/stylesheets/bootswatch/spacelab/_variables.scss
117
+ - assets/stylesheets/bootswatch/superhero/_bootswatch.scss
118
+ - assets/stylesheets/bootswatch/superhero/_variables.scss
119
+ - assets/stylesheets/bootswatch/united/_bootswatch.scss
120
+ - assets/stylesheets/bootswatch/united/_variables.scss
121
+ - assets/stylesheets/bootswatch/yeti/_bootswatch.scss
122
+ - assets/stylesheets/bootswatch/yeti/_variables.scss
95
123
  - bootswatch.gemspec
96
124
  - lib/bootswatch.rb
125
+ - lib/bootswatch/engine.rb
97
126
  - lib/bootswatch/version.rb
98
127
  homepage: https://github.com/mkhairi/bootswatch-sass
99
128
  licenses:
@@ -115,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
144
  version: 1.3.1
116
145
  requirements: []
117
146
  rubyforge_project:
118
- rubygems_version: 2.6.13
147
+ rubygems_version: 2.7.3
119
148
  signing_key:
120
149
  specification_version: 4
121
150
  summary: Bootswatches sass for rails.