bootswatch-sprockets 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +16 -0
  3. data/.gitmodules +3 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +54 -0
  7. data/Rakefile +2 -0
  8. data/assets/stylesheets/bootswatch/cerulean/_bootswatch.scss +125 -0
  9. data/assets/stylesheets/bootswatch/cerulean/_variables.scss +856 -0
  10. data/assets/stylesheets/bootswatch/cosmo/_bootswatch.scss +237 -0
  11. data/assets/stylesheets/bootswatch/cosmo/_variables.scss +856 -0
  12. data/assets/stylesheets/bootswatch/custom/_bootswatch.scss +22 -0
  13. data/assets/stylesheets/bootswatch/custom/_variables.scss +856 -0
  14. data/assets/stylesheets/bootswatch/cyborg/_bootswatch.scss +210 -0
  15. data/assets/stylesheets/bootswatch/cyborg/_variables.scss +856 -0
  16. data/assets/stylesheets/bootswatch/darkly/_bootswatch.scss +328 -0
  17. data/assets/stylesheets/bootswatch/darkly/_variables.scss +856 -0
  18. data/assets/stylesheets/bootswatch/flatly/_bootswatch.scss +311 -0
  19. data/assets/stylesheets/bootswatch/flatly/_variables.scss +856 -0
  20. data/assets/stylesheets/bootswatch/global/build.scss +3 -0
  21. data/assets/stylesheets/bootswatch/journal/_bootswatch.scss +120 -0
  22. data/assets/stylesheets/bootswatch/journal/_variables.scss +856 -0
  23. data/assets/stylesheets/bootswatch/lumen/_bootswatch.scss +481 -0
  24. data/assets/stylesheets/bootswatch/lumen/_variables.scss +856 -0
  25. data/assets/stylesheets/bootswatch/paper/_bootswatch.scss +408 -0
  26. data/assets/stylesheets/bootswatch/paper/_variables.scss +856 -0
  27. data/assets/stylesheets/bootswatch/readable/_bootswatch.scss +187 -0
  28. data/assets/stylesheets/bootswatch/readable/_variables.scss +856 -0
  29. data/assets/stylesheets/bootswatch/sandstone/_bootswatch.scss +195 -0
  30. data/assets/stylesheets/bootswatch/sandstone/_variables.scss +856 -0
  31. data/assets/stylesheets/bootswatch/simplex/_bootswatch.scss +142 -0
  32. data/assets/stylesheets/bootswatch/simplex/_variables.scss +856 -0
  33. data/assets/stylesheets/bootswatch/slate/_bootswatch.scss +417 -0
  34. data/assets/stylesheets/bootswatch/slate/_variables.scss +856 -0
  35. data/assets/stylesheets/bootswatch/spacelab/_bootswatch.scss +137 -0
  36. data/assets/stylesheets/bootswatch/spacelab/_variables.scss +856 -0
  37. data/assets/stylesheets/bootswatch/superhero/_bootswatch.scss +332 -0
  38. data/assets/stylesheets/bootswatch/superhero/_variables.scss +856 -0
  39. data/assets/stylesheets/bootswatch/united/_bootswatch.scss +42 -0
  40. data/assets/stylesheets/bootswatch/united/_variables.scss +856 -0
  41. data/assets/stylesheets/bootswatch/yeti/_bootswatch.scss +437 -0
  42. data/assets/stylesheets/bootswatch/yeti/_variables.scss +856 -0
  43. data/bootswatch_sprockets.gemspec +32 -0
  44. data/lib/bootswatch_sprockets/version.rb +3 -0
  45. data/lib/bootswatch_sprockets.rb +5 -0
  46. metadata +144 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 903cdfbf8de9e37bcb2068bd347183fc8978c302
4
+ data.tar.gz: d5748fb87fa4c16c16e9265c23e99bcc9e510d28
5
+ SHA512:
6
+ metadata.gz: e5f606a00efefa47ce200f2febd80a7199f52744fe801748337aa79cf4c1ccdc5d714b73d2c7913899f74d4f0b914096c9417a7ac40cab9b5f429737365f3705
7
+ data.tar.gz: f7df550e65e2917ae052d47d5919d1fe31051599de910ec3a1a59369e7e17e9ba1343dc04300ec0d36cc5b459192315dd8d846287c3a8a5915166e1bc4815987
data/.gitignore ADDED
@@ -0,0 +1,16 @@
1
+ *.a
2
+ *.bundle
3
+ *.gem
4
+ *.o
5
+ *.so
6
+ /.bundle/
7
+ /.yardoc
8
+ /Gemfile.lock
9
+ /_yardoc/
10
+ /build
11
+ /coverage/
12
+ /doc/
13
+ /pkg/
14
+ /spec/reports/
15
+ /tmp/
16
+ mkmf.log
data/.gitmodules ADDED
@@ -0,0 +1,3 @@
1
+ [submodule "bootswatch"]
2
+ path = assets/stylesheets/bootswatch
3
+ url = https://github.com/thomaspark/bootswatch.git
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in bootswatch_sprockets.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Thomas Schank
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,54 @@
1
+ # Bootswatch Sprockets
2
+
3
+ The gem provides the [Bootswatch][] themes to the sprockets assets packaging.
4
+ It is meant to be used in conjunction with [Bootstrap for Sass][]. This gem
5
+ does not depend on the rails framework. It can be used with any other framework
6
+ that uses sprockets, e.g. [Middleman][].
7
+
8
+
9
+ [Middleman]: https://github.com/middleman/middleman
10
+ [Bootswatch]: https://github.com/thomaspark/bootswatch
11
+ [Bootstrap for Sass]: https://github.com/twbs/bootstrap-sass
12
+
13
+
14
+ ## Installation
15
+
16
+ Add this line to your application's Gemfile:
17
+
18
+ ```ruby
19
+ gem 'bootswatch-sprockets', "~> 0.1"
20
+ ```
21
+
22
+ And then execute:
23
+
24
+ $ bundle
25
+
26
+ Or install it yourself as:
27
+
28
+ $ gem install bootswatch_sprockets
29
+
30
+
31
+ ## Usage
32
+
33
+ This is an example how to use the [Slate](http://bootswatch.com/slate/)
34
+ template:
35
+
36
+ ```sass
37
+ @import bootswatch/slate/variables
38
+
39
+ @import bootstrap-sprockets
40
+ @import bootstrap
41
+
42
+ @import bootswatch/slate/bootswatch
43
+ ```
44
+
45
+ ## Internals
46
+
47
+ This gem does nothing more than packaging all the [Bootswatch][] scss
48
+ files into `/assets/stylsheets/...`.
49
+
50
+ ## Building
51
+
52
+ [Bootswatch][] is included as a git submodule!
53
+
54
+
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,125 @@
1
+ // Cerulean 3.3.1
2
+ // Bootswatch
3
+ // -----------------------------------------------------
4
+
5
+ @mixin btn-shadow($color){
6
+ @include gradient-vertical-three-colors(lighten($color, 8%), $color, 60%, darken($color, 4%));
7
+ filter: none;
8
+ border-bottom: 1px solid darken($color, 10%);
9
+ }
10
+
11
+ // Navbar =====================================================================
12
+
13
+ .navbar {
14
+ @include btn-shadow($navbar-default-bg);
15
+ filter: none;
16
+ @include box-shadow(0 1px 10px rgba(0, 0, 0, 0.1));
17
+
18
+ &-default {
19
+
20
+ .badge {
21
+ background-color: #fff;
22
+ color: $navbar-default-bg;
23
+ }
24
+ }
25
+
26
+ &-inverse {
27
+ @include gradient-vertical-three-colors(lighten($navbar-inverse-bg, 8%), lighten($navbar-inverse-bg, 4%), 60%, darken($navbar-inverse-bg, 2%));
28
+ filter: none;
29
+ border-bottom: 1px solid darken($navbar-inverse-bg, 10%);
30
+
31
+ .badge {
32
+ background-color: #fff;
33
+ color: $navbar-inverse-bg;
34
+ }
35
+ }
36
+
37
+ .navbar-nav > li > a,
38
+ &-brand {
39
+ text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
40
+ }
41
+ }
42
+
43
+ @media (max-width: $grid-float-breakpoint-max) {
44
+
45
+ .navbar {
46
+
47
+ .dropdown-header {
48
+ color: #fff;
49
+ }
50
+ }
51
+ }
52
+
53
+ // Buttons ====================================================================
54
+
55
+ .btn {
56
+
57
+ text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
58
+
59
+ .caret {
60
+ border-top-color: #fff;
61
+ }
62
+ }
63
+
64
+ .btn-default {
65
+
66
+ @include btn-shadow($btn-default-bg);
67
+
68
+ &:hover {
69
+ color: $btn-default-color;
70
+ }
71
+
72
+ .caret {
73
+ border-top-color: $text-color;
74
+ }
75
+ }
76
+
77
+ .btn-default {
78
+ @include btn-shadow($btn-default-bg);
79
+ }
80
+
81
+ .btn-primary {
82
+ @include btn-shadow($btn-primary-bg);
83
+ }
84
+
85
+ .btn-success {
86
+ @include btn-shadow($btn-success-bg);
87
+ }
88
+
89
+ .btn-info {
90
+ @include btn-shadow($btn-info-bg);
91
+ }
92
+
93
+ .btn-warning {
94
+ @include btn-shadow($btn-warning-bg);
95
+ }
96
+
97
+ .btn-danger {
98
+ @include btn-shadow($btn-danger-bg);
99
+ }
100
+
101
+ // Typography =================================================================
102
+
103
+ // Tables =====================================================================
104
+
105
+ // Forms ======================================================================
106
+
107
+ // Navs =======================================================================
108
+
109
+ // Indicators =================================================================
110
+
111
+ // Progress bars ==============================================================
112
+
113
+ // Containers =================================================================
114
+
115
+ .panel-primary,
116
+ .panel-success,
117
+ .panel-warning,
118
+ .panel-danger,
119
+ .panel-info {
120
+
121
+ .panel-heading,
122
+ .panel-title {
123
+ color: #fff;
124
+ }
125
+ }