bootswatch-rails 0.2.0 → 0.3.0

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 (31) hide show
  1. data/.gitmodules +3 -0
  2. data/HISTORY.md +7 -0
  3. data/README.md +16 -7
  4. data/Rakefile +32 -0
  5. data/converter +112 -0
  6. data/lib/bootswatch-rails/version.rb +1 -1
  7. data/vendor/assets/stylesheets/bootswatch/amelia/_bootswatch.scss +375 -229
  8. data/vendor/assets/stylesheets/bootswatch/amelia/_variables.scss +166 -60
  9. data/vendor/assets/stylesheets/bootswatch/cerulean/_bootswatch.scss +122 -37
  10. data/vendor/assets/stylesheets/bootswatch/cerulean/_variables.scss +148 -43
  11. data/vendor/assets/stylesheets/bootswatch/cosmo/_bootswatch.scss +62 -61
  12. data/vendor/assets/stylesheets/bootswatch/cosmo/_variables.scss +22 -23
  13. data/vendor/assets/stylesheets/bootswatch/cyborg/_bootswatch.scss +352 -236
  14. data/vendor/assets/stylesheets/bootswatch/cyborg/_variables.scss +147 -42
  15. data/vendor/assets/stylesheets/bootswatch/journal/_bootswatch.scss +277 -72
  16. data/vendor/assets/stylesheets/bootswatch/journal/_variables.scss +159 -54
  17. data/vendor/assets/stylesheets/bootswatch/readable/_bootswatch.scss +21 -381
  18. data/vendor/assets/stylesheets/bootswatch/readable/_variables.scss +161 -56
  19. data/vendor/assets/stylesheets/bootswatch/simplex/_bootswatch.scss +46 -29
  20. data/vendor/assets/stylesheets/bootswatch/simplex/_variables.scss +42 -20
  21. data/vendor/assets/stylesheets/bootswatch/slate/_bootswatch.scss +420 -267
  22. data/vendor/assets/stylesheets/bootswatch/slate/_variables.scss +150 -45
  23. data/vendor/assets/stylesheets/bootswatch/spacelab/_bootswatch.scss +55 -102
  24. data/vendor/assets/stylesheets/bootswatch/spacelab/_variables.scss +94 -70
  25. data/vendor/assets/stylesheets/bootswatch/spruce/_bootswatch.scss +476 -301
  26. data/vendor/assets/stylesheets/bootswatch/spruce/_variables.scss +171 -66
  27. data/vendor/assets/stylesheets/bootswatch/superhero/_bootswatch.scss +293 -255
  28. data/vendor/assets/stylesheets/bootswatch/superhero/_variables.scss +132 -30
  29. data/vendor/assets/stylesheets/bootswatch/united/_bootswatch.scss +85 -44
  30. data/vendor/assets/stylesheets/bootswatch/united/_variables.scss +143 -38
  31. metadata +5 -2
data/.gitmodules ADDED
@@ -0,0 +1,3 @@
1
+ [submodule "bootswatch"]
2
+ path = bootswatch
3
+ url = git@github.com:thomaspark/bootswatch.git
data/HISTORY.md ADDED
@@ -0,0 +1,7 @@
1
+ ## 0.3.0 (2013-01-13)
2
+
3
+ * Add a converter script for most of the repetitive less/sass conversion work
4
+ * Add bootswatch project as a submodule
5
+ * Add a rake task that auto-converts less files from submodule into scss
6
+ * Convert all latest bootswatches to scss
7
+ * Stop using percentage -> percentile conversion, it seems to only break things
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # bootswatch-rails
2
2
 
3
- This gem is meant to be used with [bootstrap-sass](https://github.com/thomas-mcdonald/bootstrap-sass). It gives you complete scss versions of [bootswatches](http://bootswatch.com) for use in your Rails 3 asset pipeline, just like bootstrap-sass gives you scss version of bootstrap itself.
3
+ This gem is meant to be used with
4
+ [bootstrap-sass](https://github.com/thomas-mcdonald/bootstrap-sass). It gives
5
+ you complete scss versions of [bootswatches](http://bootswatch.com) for use in
6
+ your Rails 3 asset pipeline, just like bootstrap-sass gives you scss version of
7
+ bootstrap itself.
4
8
 
5
9
  ## Installation
6
10
 
@@ -14,9 +18,15 @@ And then execute:
14
18
 
15
19
  ## Usage
16
20
 
17
- When using bootstrap-sass, it's recommended to avoid sprockets in your stylesheets. In order to do that you simply rename your `application.css` file to `application.css.scss`, remove all sprockets comments, and instead use sass `@import` commands. These commands are smart enough to fully support asset pipeline load paths, thanks to `sass-rails` gem.
21
+ When using bootstrap-sass, it's recommended to avoid sprockets in your
22
+ stylesheets. In order to do that you simply rename your `application.css` file
23
+ to `application.css.scss`, remove all sprockets comments, and instead use sass
24
+ `@import` commands. These commands are smart enough to fully support asset
25
+ pipeline load paths, thanks to `sass-rails` gem.
18
26
 
19
- Here's approximately how your `application.css.scss` file should look like, considering that you're using [bootstrap-sass](https://github.com/thomas-mcdonald/bootstrap-sass).
27
+ Here's approximately how your `application.css.scss` file should look like,
28
+ considering that you're using
29
+ [bootstrap-sass](https://github.com/thomas-mcdonald/bootstrap-sass).
20
30
 
21
31
  // Example using 'Cerulean' bootswatch
22
32
  //
@@ -40,7 +50,7 @@ Here's approximately how your `application.css.scss` file should look like, cons
40
50
 
41
51
  ## Bootswatches
42
52
 
43
- I'm converting/updating them as time permits. Here's what's included at this point.
53
+ Included bootswatches
44
54
 
45
55
  * [Amelia](http://bootswatch.com/amelia/)
46
56
  * [Cerulean](http://bootswatch.com/cerulean/)
@@ -67,6 +77,5 @@ I'm converting/updating them as time permits. Here's what's included at this poi
67
77
 
68
78
  Big thanks to these guys.
69
79
 
70
- [Thomas Park](http://github.com/thomaspark) for [bootswatch](http://bootswatch.com/)
71
-
72
- [Thomas McDonald](http://github.com/thomas-mcdonald) for [bootstrap-sass](https://github.com/thomas-mcdonald/bootstrap-sass)
80
+ * [Thomas Park](http://github.com/thomaspark) for [bootswatch](http://bootswatch.com/)
81
+ * [Thomas McDonald](http://github.com/thomas-mcdonald) for [bootstrap-sass](https://github.com/thomas-mcdonald/bootstrap-sass)
data/Rakefile CHANGED
@@ -1,2 +1,34 @@
1
1
  #!/usr/bin/env rake
2
2
  require "bundler/gem_tasks"
3
+
4
+ THEMES = %w(
5
+ amelia
6
+ cerulean
7
+ cosmo
8
+ cyborg
9
+ journal
10
+ readable
11
+ simplex
12
+ slate
13
+ spacelab
14
+ spruce
15
+ superhero
16
+ united
17
+ ).freeze
18
+
19
+
20
+ LESS_FILES = FileList["bootswatch/{#{THEMES.join(',')}}/*.less"]
21
+ SCSS_FILES = LESS_FILES.pathmap(
22
+ 'vendor/assets/stylesheets/bootswatch/%-1d/_%n.scss'
23
+ )
24
+
25
+ SCSS_FILES.zip(LESS_FILES).each do |target, source|
26
+ directory File.dirname(target)
27
+
28
+ file target => [File.dirname(target), source] do
29
+ sh "./converter #{source} #{target}"
30
+ end
31
+ end
32
+
33
+ desc 'Imprecisely convert LESS files to SCSS files'
34
+ task convert: SCSS_FILES
data/converter ADDED
@@ -0,0 +1,112 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ src_file_path, dst_file_path = *ARGV
4
+ lines = File.readlines(src_file_path)
5
+
6
+ indent_size_calc = lambda do |line|
7
+ size = 0
8
+
9
+ line.each_char do |char|
10
+ char =~ /\s/ ? size += 1 : break
11
+ end
12
+
13
+ size
14
+ end
15
+
16
+ swap_variable_prefix = lambda do |line, _|
17
+ line.gsub(/\@[[:alnum:]]+/) do |var|
18
+ if %w(@media @import).include?(var)
19
+ var
20
+ else
21
+ var.sub('@', '$')
22
+ end
23
+ end
24
+ end
25
+
26
+ turn_percentages_into_percentiles = lambda do |line, _|
27
+ line.gsub(/([\d\.]+)%/) do
28
+ ($1.to_f / 100.0).to_s.sub(/^0/, '')
29
+ end
30
+ end
31
+
32
+ convert_mixin_declarations = lambda do |line, _|
33
+ line.sub(/^\.([^\(\s]+)\(/) do
34
+ "@mixin #{$1}("
35
+ end
36
+ end
37
+
38
+ convert_namespace_include_syntax = lambda do |line, _|
39
+ line.sub(/#(\S+)\s+>\s+\.([[:alnum:]]+)/) do
40
+ "@include #{$1}-#{$2}"
41
+ end
42
+ end
43
+
44
+ convert_include_syntax = lambda do |line, _|
45
+ line.sub(/^(\s+)\.([^\(\s]+)\(/) do
46
+ "#{$1}@include #{$2}("
47
+ end
48
+ end
49
+
50
+ swap_spin_adjust_hue = lambda do |line, _|
51
+ line.gsub(/(\W)spin\(/) do
52
+ "#{$1}adjust-hue("
53
+ end
54
+ end
55
+
56
+ resolve_ampersand_dash = lambda do |line, index|
57
+ line.sub(/^(\s*)&-(\S+)/) do
58
+ indent, suffix, prefix = $1, $2, ''
59
+
60
+ while index > 0
61
+ index -= 1
62
+ parent = lines[index]
63
+ next if parent.strip == ''
64
+
65
+ parent_indent_size = indent_size_calc.call(parent)
66
+ if parent_indent_size < indent.size
67
+ prefix = parent[/^\s*(\S+)/, 1].to_s.strip
68
+ break
69
+ end
70
+ end
71
+
72
+ if prefix == ''
73
+ raise "Could not find parent for &- substitution on line #{index}\n" +
74
+ line
75
+ else
76
+ "#{indent}#{prefix}-#{suffix}"
77
+ end
78
+ end
79
+ end
80
+
81
+ clear_out_escapes = lambda do |line, index|
82
+ line.gsub(/~"([^"]+)"/) { $1 }
83
+ end
84
+
85
+ line_processors = [
86
+ swap_variable_prefix,
87
+ # turn_percentages_into_percentiles,
88
+ convert_mixin_declarations,
89
+ convert_namespace_include_syntax,
90
+ convert_include_syntax,
91
+ swap_spin_adjust_hue,
92
+ resolve_ampersand_dash,
93
+ clear_out_escapes
94
+ ]
95
+
96
+ comment_line = /^\s*\/\//
97
+
98
+ processed_lines = lines.map.with_index do |line, index|
99
+ if line =~ comment_line
100
+ line
101
+ else
102
+ line_processors.each do |processor|
103
+ line = processor.call(line, index)
104
+ end
105
+
106
+ line
107
+ end
108
+ end
109
+
110
+ File.open(dst_file_path, 'w') do |file|
111
+ file.write(processed_lines.join)
112
+ end
@@ -1,5 +1,5 @@
1
1
  module Bootswatch
2
2
  module Rails
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -1,16 +1,12 @@
1
- // Swatch: Amelia
2
- // Version: 2.0.2
1
+ // Amelia 2.2.2
2
+ // Bootswatch
3
3
  // -----------------------------------------------------
4
4
 
5
+
5
6
  // TYPOGRAPHY
6
7
  // -----------------------------------------------------
7
8
 
8
- @import url("https://fonts.googleapis.com/css?family=Lobster");
9
- @import url("https://fonts.googleapis.com/css?family=Cabin:400,700");
10
-
11
- .navbar .brand, legend {
12
- font-family: $headingsFontFamily;
13
- }
9
+ @import url('//fonts.googleapis.com/css?family=Lobster|Cabin:400,700');
14
10
 
15
11
  h6 {
16
12
  color: $textColor;
@@ -21,6 +17,24 @@ h1 small, h2 small, h3 small, h4 small, h5 small, h6 small {
21
17
  color: $textColor;
22
18
  }
23
19
 
20
+ code, pre {
21
+ background-color: rgba(255, 255, 255, 0.3);
22
+ padding: 2px;
23
+ }
24
+
25
+ blockquote {
26
+
27
+ border-left-color: lighten(#147E88, 12%);
28
+
29
+ &.pull-right {
30
+ border-right-color: lighten(#147E88, 12%);
31
+ }
32
+
33
+ small {
34
+ color: rgba(255, 255, 255, 0.6);
35
+ }
36
+ }
37
+
24
38
  .muted {
25
39
  color: rgba(255, 255, 255, 0.5);
26
40
  }
@@ -29,7 +43,7 @@ h1 small, h2 small, h3 small, h4 small, h5 small, h6 small {
29
43
  // -----------------------------------------------------
30
44
 
31
45
  body {
32
- @include gradient-radial(lighten(#0F8790, .07), #0F8790);
46
+ @include gradient-radial(lighten(#0F8790, 7%), #0F8790);
33
47
  }
34
48
 
35
49
  hr {
@@ -37,27 +51,22 @@ hr {
37
51
  }
38
52
 
39
53
  .page-header {
54
+ margin: 30px 0 15px;
40
55
  border-bottom: 0px solid transparent;
41
56
  }
42
57
 
43
- footer.footer {
44
- border-top: 1px solid rgba(255, 255, 255, 0.3);
45
-
46
- p {
47
- color: $textColor;
48
- }
49
- }
50
-
51
58
  // NAVBAR
52
59
  // -----------------------------------------------------
53
60
 
54
61
  .navbar {
62
+
55
63
  .navbar-inner {
56
64
  @include border-radius(0);
57
65
  }
58
66
 
59
67
  .brand {
60
- padding-top: 12px;
68
+ padding: 15px 20px 14px;
69
+ font-family: $headingsFontFamily;
61
70
  font-size: 24px;
62
71
  font-weight: normal;
63
72
  }
@@ -68,34 +77,96 @@ footer.footer {
68
77
  text-shadow: none;
69
78
  }
70
79
 
80
+ .nav > .active > a,
81
+ .nav > .active > a:hover,
82
+ .navbar .nav > .active > a:focus {
83
+ @include box-shadow(none);
84
+ }
85
+
71
86
  .navbar-search {
72
87
  margin-top: 10px;
73
88
  }
74
89
 
75
90
  .navbar-search .search-query {
76
- border: 2px solid lighten($navbarBackground, .1);
77
91
  @include border-radius(0);
78
- @include box-shadow(none);
92
+ padding-top: 5px;
93
+ padding-bottom: 5px;
94
+ }
95
+
96
+ .navbar-text {
97
+ margin: 17px 15px 14px;
98
+ line-height: 20px;
99
+ }
100
+
101
+ .btn,
102
+ .btn-group {
103
+ padding: 4px;
104
+ }
105
+
106
+ .navbar-inverse {
107
+
108
+ .dropdown-menu li > a:hover,
109
+ .dropdown-menu li > a:focus,
110
+ .dropdown-submenu:hover > a {
111
+ background-image: none;
112
+ background-color: $yellow;
113
+ }
114
+ }
115
+ }
116
+
117
+ @media (max-width: $navbarCollapseWidth) {
118
+
119
+ .navbar .nav-collapse {
120
+
121
+ .nav li > a {
122
+
123
+ color: $textColor;
124
+ @include border-radius(0);
125
+
126
+ &:hover {
127
+ background-color: lighten($navbarBackground, 10%);
128
+ }
129
+ }
130
+
131
+ .dropdown-menu li > a:hover,
132
+ .dropdown-menu li > a:focus,
133
+ .dropdown-submenu:hover > a {
134
+ background-image: none;
135
+ }
79
136
 
80
- &:focus, &.focus {
81
- background-color: $grayLighter;
82
- border-color: $grayLighter;
83
- text-shadow: none;
84
- padding: 4px 9px;
137
+ .navbar-form,
138
+ .navbar-search {
85
139
  @include box-shadow(none);
140
+ border: none;
141
+ }
142
+
143
+ .navbar-search .search-query {
144
+ border: 2px solid $textColor;
145
+ }
146
+
147
+ .nav-header {
148
+ color: rgba(255, 255, 255, 0.5);
86
149
  }
150
+ }
151
+
152
+ .navbar-inverse .nav-collapse {
87
153
 
154
+ .nav li > a:hover,
155
+ .dropdown-menu a:hover {
156
+ background-color: lighten($navbarInverseBackground, 10%) !important;
157
+ }
88
158
  }
89
159
  }
90
160
 
91
161
  div.subnav {
162
+
92
163
  background-color: rgba(42, 99, 105, 0.9);
93
164
  background-image: none;
94
165
  border: 0px solid transparent;
95
166
  @include border-radius(0);
96
167
  @include box-shadow(none);
97
168
 
98
- .nav > li.dropdown.open > a {
169
+ .nav > li.open > a {
99
170
  border-color: transparent;
100
171
  background-color: rgba(255, 255, 255, 0.4);
101
172
  }
@@ -119,7 +190,8 @@ div.subnav {
119
190
 
120
191
  .nav > .active > a:hover,
121
192
  .nav > li > a:hover,
122
- .nav > li.active > a:hover, {
193
+ .nav > .active > a,
194
+ .nav > .active > a:hover, {
123
195
  border-right-color: transparent;
124
196
  background-color: rgba(255, 255, 255, 0.4);
125
197
  color: $textColor;
@@ -129,30 +201,164 @@ div.subnav {
129
201
  border-left-color: rgba(255, 255, 255, 0.4);
130
202
  border-left-width: 1px;
131
203
  }
204
+
205
+ div.subnav-fixed {
206
+ top: 50px;
207
+ }
132
208
  }
133
209
 
134
- div.subnav-fixed {
135
- top: 50px;
210
+ // NAV
211
+ // -----------------------------------------------------
212
+
213
+ .nav-tabs li.open > .dropdown-toggle,
214
+ .nav-pills li.open > .dropdown-toggle {
215
+ background-color: #8AD5DC;
216
+ color: $linkColor;
217
+ border-color: transparent;
136
218
  }
137
219
 
138
- .navbar .nav-collapse.in {
220
+ .nav-tabs, .nav-pills {
221
+ border-color: transparent;
222
+
223
+ li > a {
224
+ border-color: transparent;
225
+ @include border-radius(0);
226
+ @include box-shadow(0);
227
+ }
139
228
 
140
- .nav li > a {
229
+ li.active > a,
230
+ li.active > a:hover {
141
231
  color: $textColor;
232
+ }
233
+
234
+ li.active > a,
235
+ li > a:hover,
236
+ li.active > a:hover {
237
+ background-color: #8AD5DC;
238
+ border-color: transparent;
239
+ text-shadow: none;
240
+ }
241
+ }
242
+
243
+ .nav-tabs, .nav-tabs > li > a {
244
+ border-bottom: 1px solid rgba(255, 255, 255, 0.5);
245
+ }
246
+
247
+ .nav-tabs > li > a {
248
+ background-color: #3CB9C6;
249
+ }
250
+
251
+ .nav-tabs.nav-stacked {
252
+
253
+ li > a:first-child,
254
+ li > a:last-child {
142
255
  @include border-radius(0);
143
256
  }
144
257
 
145
- li > a:hover {
146
- background-color: lighten($navbarBackground, .1);
258
+ li > a,
259
+ li > a:hover,
260
+ li.active > a,
261
+ li.active > a:hover {
262
+ border-color: transparent;
147
263
  }
264
+ }
148
265
 
149
- .navbar-form, .navbar-search {
150
- @include box-shadow(none);
151
- border-color: lighten($navbarBackground, .1);
266
+ .nav-list {
267
+
268
+ .nav-header {
269
+ text-shadow: none;
270
+ color: $textColor;
152
271
  }
153
272
 
154
- .navbar-search .search-query {
155
- border: 2px solid $textColor;
273
+ li > a {
274
+ text-shadow: none;
275
+ }
276
+
277
+ li.active > a,
278
+ li > a:hover,
279
+ li.active > a:hover {
280
+ background-color: #8AD5DC;
281
+ text-shadow: none;
282
+ }
283
+
284
+ .divider {
285
+ background-color: rgba(255, 255, 255, 0.3);
286
+ border-bottom: none;
287
+ }
288
+ }
289
+
290
+ .breadcrumb, .pager > li > a {
291
+ border-color: transparent;
292
+ @include border-radius(0);
293
+ @include box-shadow(none);
294
+ text-shadow: none;
295
+ }
296
+
297
+ .breadcrumb {
298
+ background-color: #3CB9C6;
299
+ background-image: none;
300
+
301
+ li {
302
+ text-shadow: none;
303
+ }
304
+
305
+ .active {
306
+ color: $white;
307
+ }
308
+
309
+ .divider {
310
+ color: $linkColor;
311
+ }
312
+ }
313
+
314
+ .pagination {
315
+
316
+ ul {
317
+ background-color: $paginationBackground;
318
+ background-image: none;
319
+ @include border-radius(0);
320
+ }
321
+
322
+ ul > li > a:hover {
323
+ background-color: rgba(255, 255, 255, 0.4);
324
+ color: $linkColor;
325
+ }
326
+
327
+ ul > li:first-child > a,
328
+ ul > li:last-child > a {
329
+ @include border-radius(0);
330
+ }
331
+
332
+ ul > .disabled > a,
333
+ ul > .disabled > a:hover,
334
+ ul > .disabled > span,
335
+ ul > .disabled > span:hover {
336
+ color: $textColor;
337
+ }
338
+
339
+ ul > .active > a,
340
+ ul > .active > a:hover,
341
+ ul > .active > span,
342
+ ul > .active > span:hover {
343
+ background-color: rgba(255, 255, 255, 0.4);
344
+ color: $textColor;
345
+ }
346
+ }
347
+
348
+ .pager {
349
+
350
+ li > a {
351
+ background-color: #3CB9C6;
352
+
353
+ &:hover {
354
+ background-color: #8AD5DC;
355
+ }
356
+ }
357
+
358
+ .disabled a,
359
+ .disabled a:hover {
360
+ background-color: #3CB9C6;
361
+ color: $white;
156
362
  }
157
363
  }
158
364
 
@@ -165,19 +371,19 @@ div.subnav-fixed {
165
371
  border-color: transparent;
166
372
 
167
373
  &:hover, &:active, &.active, &.disabled, &[disabled] {
168
- background-color: darken($color, .05);
374
+ background-color: darken($color, 5%);
169
375
  text-shadow: none;
170
376
  }
171
377
 
172
378
  &:active, &.active {
173
- background-color: darken($color, .15);
379
+ background-color: darken($color, 15%);
174
380
  @include box-shadow(none);
175
381
  }
176
382
 
177
383
  // IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
178
384
  &:active,
179
385
  &.active {
180
- background-color: darken($color, .15) e("\9");
386
+ background-color: darken($color, 15%) e("\9");
181
387
  }
182
388
  }
183
389
 
@@ -191,23 +397,13 @@ div.subnav-fixed {
191
397
  }
192
398
 
193
399
  .btn-group .btn:first-child {
194
- margin-left: 0;
195
- -webkit-border-top-left-radius: 0;
196
- -moz-border-radius-topleft: 0;
197
- border-top-left-radius: 0;
198
- -webkit-border-bottom-left-radius: 0;
199
- -moz-border-radius-bottomleft: 0;
200
- border-bottom-left-radius: 0;
400
+ margin-left: 0;
401
+ @include border-radius(0);
201
402
  }
202
403
 
203
404
  .btn-group .btn:last-child,
204
405
  .btn-group .dropdown-toggle {
205
- -webkit-border-top-right-radius: 0;
206
- -moz-border-radius-topright: 0;
207
- border-top-right-radius: 0;
208
- -webkit-border-bottom-right-radius: 0;
209
- -moz-border-radius-bottomright: 0;
210
- border-bottom-right-radius: 0;
406
+ @include border-radius(0);
211
407
  }
212
408
 
213
409
  .btn-group .dropdown-toggle,
@@ -240,8 +436,8 @@ div.subnav-fixed {
240
436
  @include buttonBackgroundCustom($btnInverseBackground);
241
437
  }
242
438
 
243
- .btn-small {
244
- padding: 13px 16px 12px;
439
+ .btn-link {
440
+ @include buttonBackgroundCustom($btnPrimaryBackground);
245
441
  }
246
442
 
247
443
  [class^="icon-"], [class*=" icon-"] {
@@ -253,7 +449,7 @@ div.subnav-fixed {
253
449
  margin-top: 1px;
254
450
  }
255
451
 
256
- .add-on [class^="icon-"] {
452
+ .add-on [class^="icon-"] {
257
453
  margin-left: 5px;
258
454
  }
259
455
 
@@ -269,9 +465,28 @@ div.subnav-fixed {
269
465
  @include border-radius(0);
270
466
  }
271
467
 
468
+ .table tbody {
469
+
470
+ tr.success td {
471
+ background-color: $green;
472
+ }
473
+
474
+ tr.error td {
475
+ background-color: $red;
476
+ }
477
+
478
+ tr.info td {
479
+ background-color: $blue;
480
+ }
481
+ }
482
+
272
483
  // FORMS
273
484
  // -----------------------------------------------------
274
485
 
486
+ legend {
487
+ font-family: $headingsFontFamily;
488
+ }
489
+
275
490
  legend, label, .help-block, .input-file {
276
491
  color: $textColor;
277
492
  border: 0px solid transparent;
@@ -298,33 +513,32 @@ input, textarea, .search-query, .uneditable-input,
298
513
  .input-append input, .input-append .uneditable-input,
299
514
  .input-prepend input, .input-prepend .uneditable-input {
300
515
  border-color: transparent;
301
- @include border-radius(0);
302
516
  @include box-shadow(none);
303
517
  }
304
518
 
305
519
  .form-actions {
306
- background-color: transparent;
307
520
  border-top: 0px solid transparent;
308
521
  }
309
522
 
310
523
  .control-group.warning > label,
311
524
  .control-group.warning .help-inline {
312
- color: lighten($orange, .3);
525
+ color: lighten($orange, 30%);
313
526
  }
314
527
 
315
528
  .control-group.error > label,
316
529
  .control-group.error .help-inline {
317
- color: lighten($linkColor, .1);
530
+ color: lighten($linkColor, 10%);
318
531
  }
319
532
 
320
533
  .control-group.success > label,
321
534
  .control-group.success .help-inline {
322
- color: lighten($green, .2);
535
+ color: lighten($green, 20%);
323
536
  }
324
537
 
325
- .input-prepend .add-on, .input-append .add-on {
326
- height: 25px;
327
- padding-top: 9px;
538
+ .input-prepend .add-on,
539
+ .input-append .add-on {
540
+ height: 20px;
541
+ padding-top: 4px;
328
542
  background-color: $grayLighter;
329
543
  border-color: transparent;
330
544
  @include border-radius(0);
@@ -332,167 +546,30 @@ input, textarea, .search-query, .uneditable-input,
332
546
  text-shadow: none;
333
547
  }
334
548
 
335
- // NAVIGATION
336
- // -----------------------------------------------------
337
-
338
- .breadcrumb, .pager > li > a {
339
- border-color: transparent;
340
- @include border-radius(0);
341
- @include box-shadow(none);
342
- text-shadow: none;
343
- }
344
-
345
- .breadcrumb {
346
- background-color: #3CB9C6;
347
- background-image: none;
348
-
349
- li {
350
- text-shadow: none;
351
- }
352
-
353
- .divider {
354
- color: $linkColor;
355
- }
356
- }
357
-
358
- .pager > li > a {
359
- background-color: #3CB9C6;
360
-
361
- &:hover {
362
- background-color: #8AD5DC;
363
- }
364
- }
365
-
366
- .pagination {
367
-
368
- ul {
369
- background-color: #3CB9C6;
370
- background-image: none;
371
- }
372
-
373
- li a {
374
- border: 0px solid transparent;
375
- }
376
-
377
- .disabled a, .disabled a:hover {
378
- color: $textColor;
379
- }
380
-
381
- li a:hover {
382
- background-color: rgba(255, 255, 255, 0.4);
383
- color: $linkColor;
384
- }
385
-
386
- .active a, .active a:hover {
387
- background-color: rgba(255, 255, 255, 0.4);
388
- color: $textColor;
389
- }
390
-
391
- ul,
392
- li:first-child a,
393
- li:last-child a {
394
- @include border-radius(0);
395
- }
396
-
397
- }
398
-
399
- .nav-tabs .dropdown.open > .dropdown-toggle,
400
- .nav-pills .dropdown.open > .dropdown-toggle {
401
- background-color: #8AD5DC;
402
- color: $linkColor;
403
- border-color: transparent;
404
- }
405
-
406
- .nav-tabs, .nav-pills {
407
- border-color: transparent;
408
-
409
- li > a {
410
- border-color: transparent;
411
- @include border-radius(0);
412
- @include box-shadow(0);
413
- }
414
-
415
- li.active > a,
416
- li:active > a,
417
- li.active > a:hover,
418
- li:active > a:hover {
419
- color: $textColor;
420
- }
421
-
422
- li.active > a,
423
- li:active > a,
424
- li > a:hover,
425
- li.active > a:hover,
426
- li:active > a:hover {
427
- background-color: #8AD5DC;
428
- border-color: transparent;
429
- text-shadow: none;
430
- }
431
- }
432
-
433
- .nav-tabs, .nav-tabs > li > a {
434
- border-bottom: 1px solid rgba(255, 255, 255, 0.5);
549
+ .input-append .btn,
550
+ .input-prepend .btn {
551
+ padding: 4px 10px;
435
552
  }
436
553
 
437
- .nav-tabs > li > a {
438
- background-color: #3CB9C6;
439
- }
440
-
441
- .nav-tabs.nav-stacked {
442
-
443
- li > a:first-child,
444
- li > a:last-child {
445
- @include border-radius(0);
446
- }
554
+ // ALERTS, LABELS, BADGES
555
+ // -----------------------------------------------------
447
556
 
448
- li > a,
449
- li > a:hover,
450
- li.active > a,
451
- li:active > a,
452
- li.active > a:hover,
453
- li:active > a:hover {
454
- border-color: transparent;
455
- }
456
- }
557
+ .alert {
457
558
 
458
- .nav-list {
459
- .nav-header {
460
- text-shadow: none;
559
+ h1, h2, h3, h4, h5, h6 {
461
560
  color: $textColor;
462
561
  }
463
-
464
- li > a {
465
- text-shadow: none;
466
- }
467
-
468
- li.active > a,
469
- li:active > a,
470
- li > a:hover,
471
- li.active > a:hover,
472
- li:active > a:hover {
473
- background-color: #8AD5DC;
474
- text-shadow: none;
475
- }
476
562
  }
477
563
 
478
- // MISCELLANEOUS
479
- // -----------------------------------------------------
480
-
481
- .alert, .label, .progress, .well, pre, code {
564
+ .alert, .label {
482
565
  border-color: transparent;
483
566
  @include border-radius(0);
484
567
  @include box-shadow(none);
485
568
  text-shadow: none;
486
569
  }
487
570
 
488
- code, pre {
489
- background-color: rgba(255, 255, 255, 0.3);
490
- padding: 2px;
491
- }
492
-
493
- .well {
494
- background-color: #3CB9C6;
495
- background-image: none;
571
+ .alert-heading {
572
+ color: $textColor;
496
573
  }
497
574
 
498
575
  .label, .label:hover {
@@ -507,7 +584,7 @@ code, pre {
507
584
  }
508
585
 
509
586
  .label-important, .label-important:hover, .alert-error {
510
- background-color: darken($yellow, .03);
587
+ background-color: darken($yellow, 3%);
511
588
  color: $textColor;
512
589
  }
513
590
 
@@ -521,18 +598,52 @@ code, pre {
521
598
  color: $textColor;
522
599
  }
523
600
 
524
- .alert-heading {
525
- color: $textColor;
601
+ // MISCELLANEOUS
602
+ // -----------------------------------------------------
603
+
604
+ .progress, .well, pre, code {
605
+ border-color: transparent;
606
+ @include border-radius(0);
607
+ @include box-shadow(none);
608
+ text-shadow: none;
609
+ }
610
+
611
+ .well {
612
+ background-image: none;
613
+ }
614
+
615
+ .hero-unit {
616
+ @include border-radius(0);
617
+ }
618
+
619
+ .thumbnail {
620
+ border: 0 solid transparent;
621
+ @include border-radius(0);
622
+ @include box-shadow(none);
526
623
  }
527
624
 
528
625
  .progress {
626
+
529
627
  background-image: none;
530
628
  background-color: #27666D;
531
629
 
532
630
  .bar {
631
+
533
632
  @include box-shadow(none);
534
633
  background-image: none;
535
- background-color: $orange;
634
+ background-color: $yellow;
635
+
636
+ .bar-success {
637
+ background-color: $green;
638
+ }
639
+
640
+ .bar-warning {
641
+ background-color: $orange;
642
+ }
643
+
644
+ .bar-error {
645
+ background-color: $red;
646
+ }
536
647
  }
537
648
  }
538
649
 
@@ -540,41 +651,76 @@ code, pre {
540
651
  background-image: none;
541
652
  background-color: #AD1D28;
542
653
  }
654
+
543
655
  .progress-danger.progress-striped .bar {
544
- @include gradient-striped(#AD1D28);
656
+ @include gradient-striped(#AD1D28);
545
657
  }
546
658
 
547
659
  .progress-success .bar {
548
660
  background-image: none;
549
661
  background-color: $green;
550
662
  }
663
+
551
664
  .progress-success.progress-striped .bar {
552
- @include gradient-striped($green);
665
+ @include gradient-striped($green);
553
666
  }
554
667
 
555
668
  .progress-info .bar {
556
669
  background-image: none;
557
670
  background-color: $blue;
558
671
  }
672
+
559
673
  .progress-info.progress-striped .bar {
560
- @include gradient-striped($blue);
674
+ @include gradient-striped($blue);
561
675
  }
562
676
 
563
- .thumbnail {
564
- border: 0px solid transparent;
677
+ .modal {
678
+
565
679
  @include border-radius(0);
566
- @include box-shadow(none);
567
- }
568
680
 
569
- blockquote {
681
+ .modal-header {
682
+ background-color: $navbarBackground;
683
+ color: $white;
684
+ }
570
685
 
571
- border-left-color: lighten(#147E88, .12);
686
+ .modal-body {
687
+
688
+ color: $grayDark;
572
689
 
573
- &.pull-right {
574
- border-right-color: lighten(#147E88, .12);
690
+ h1, h2, h3, h4, h5, h6,
691
+ legend {
692
+ color: $red;
693
+ }
694
+
695
+ label,
696
+ .input-file {
697
+ color: $grayDark;
698
+ }
699
+
700
+ .help-block,
701
+ .help-inline {
702
+ color: $grayLight;
703
+ }
704
+
705
+ textarea,
706
+ input,
707
+ .uneditable-input {
708
+ border: 1px solid $grayLight;
709
+ }
575
710
  }
711
+ }
576
712
 
577
- small {
578
- color: rgba(255, 255, 255, 0.6);
713
+ .popover {
714
+
715
+ padding: 0;
716
+ @include border-radius(0);
717
+ color: $grayDark;
718
+
719
+ .popover-title {
720
+ @include border-radius(0);
721
+ color: $white;
579
722
  }
580
723
  }
724
+
725
+ // MEDIA QUERIES
726
+ // -----------------------------------------------------