r5 0.2.6.2 → 0.3.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c096df6d0c1631612e41ffe0fb069809015876c2
4
- data.tar.gz: 561acda9ecbb544841953f935fe87b62b3f4d866
3
+ metadata.gz: 403fc5eccfca585f763889f7a44d056df32eeef1
4
+ data.tar.gz: 16bc2d93a43b3fdfc6026020c03773f250ab3b2d
5
5
  SHA512:
6
- metadata.gz: a35fc48a1426c39be0384f43a004c4110bee104f6f692d28f495553b6f743e57dfac7e3a88f1fd5f46f74c5d074bac444ac3845dcfea27ae984fddc35e0009df
7
- data.tar.gz: 1f385d8ceb9a82c9a3aadfc554b689806fc4e28d5cb1ba72b8834eb8f0f8dc6a1d48d7ab4acc1f4b640b2e8ee3f5299077f598b848fcd66add23702d1ae35a5e
6
+ metadata.gz: 40944f70b4cac75a68cb574eb6e6c5baeacdcb8e86a33a847bd1970f572c90bf9e551652f81f2aa7f108cb70247c95e107a29387baabb02a8fe3f6319512d6ee
7
+ data.tar.gz: '02390d5b0a2c9514ba582dfcb15c079d35e779c9821bc2ec56fa45d26ff944020c646f57019b98c1f93a6e4a974c0bf356fed78ad2ef65bc981efea293c76e0c'
@@ -9,8 +9,8 @@ copy 'config/locales/cs.yml'
9
9
  copy 'app/assets/stylesheets/theme.css'
10
10
  copy 'app/assets/stylesheets/custom.css.scss'
11
11
  copy 'app/assets/stylesheets/timepress.css.scss'
12
-
13
- my_directory 'app/assets/fonts'
12
+ copy 'app/assets/stylesheets/bootstrap-variables.scss'
13
+ copy 'app/assets/stylesheets/bootstrap-generators.scss'
14
14
 
15
15
  remove 'app/views/layouts/application.html.erb'
16
16
  copy 'app/views/layouts/application.html.erb'
@@ -1,4 +1,4 @@
1
1
  apply 'installations/default.rb'
2
2
  # for testing project starter
3
- run "rails g scaffold Article name:string body:text"
3
+ run "rails g scaffold Article name:string body:text published_at:date"
4
4
  rake "db:migrate"
@@ -1,15 +1,60 @@
1
- add_gem 'bootstrap-generators'
2
- add_gem 'bootstrap-select-rails'
3
- add_gem 'scrollbar-rails'
4
1
  run 'bundle install'
5
2
  # TODO removing is probably not good idea when adding bootstrap to existing project
6
3
  remove 'app/views/layouts/application.html.erb'
7
- system "rails generate bootstrap:install"
8
- sub "#{@project_path}/app/views/layouts/application.html.erb", "<%= favicon_link_tag 'favicon.png' %>", ""
9
- sub "#{@project_path}/app/views/layouts/application.html.erb", /<title>.*?<\/title>/, "<title>#{@project_label}</title>"
10
- sub "#{@project_path}/app/views/layouts/application.html.erb", /Project name/, @project_label
11
- system "yarn add jquery"
12
-
13
- sub "#{@project_path}/app/assets/javascripts/application.js",
14
- /require turbolinks/,
15
- "require turbolinks \n //= require jquery \n //= require jquery-ui"
4
+
5
+ system "yarn add jquery bootstrap eonasdan-bootstrap-datetimepicker moment"
6
+
7
+ insert_into_file "#{@project_path}/app/assets/stylesheets/application.css",
8
+ before: "\n *= require_tree ." do <<-TXT
9
+
10
+ *= require bootstrap/dist/css/bootstrap
11
+ *= require eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker
12
+ TXT
13
+ end
14
+
15
+ insert_into_file "#{@project_path}/app/assets/javascripts/application.js",
16
+ before: "\n//= require_tree ." do <<-TXT
17
+
18
+ //= require bootstrap/dist/js/bootstrap
19
+ //= require moment/min/moment-with-locales
20
+ //= require eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min
21
+ TXT
22
+ end
23
+
24
+ insert_into_file "#{@project_path}/app/javascript/packs/application.js",
25
+ after: "console.log('Hello World from Webpacker')" do <<-JS
26
+
27
+ import jQuery from 'jquery'
28
+ window.jQuery = jQuery
29
+
30
+ let ready;
31
+ ready = function() {
32
+ $(".datepicker").datetimepicker({locale: 'cs', format: 'D. M. YYYY'});
33
+ };
34
+ // Fire javascript after turbolinks event
35
+ $(document).on('turbolinks:load', ready);
36
+ JS
37
+ end
38
+
39
+ insert_into_file "#{@project_path}/config/webpack/shared.js",
40
+ after: "new ManifestPlugin({ fileName: paths.manifest, publicPath, writeToFileEmit: true })
41
+ ]," do <<-JS
42
+
43
+ resolve: {
44
+ alias: {
45
+ jquery: "jquery/src/jquery"
46
+ }
47
+ },
48
+ JS
49
+ end
50
+
51
+ insert_into_file "#{@project_path}/config/webpack/shared.js",
52
+ after: "new ExtractTextPlugin(env.NODE_ENV === 'production' ? '[name]-[hash].css' : '[name].css')," do <<-JS
53
+
54
+ new webpack.ProvidePlugin({
55
+ $: 'jquery',
56
+ jQuery: 'jquery',
57
+ jquery: 'jquery'
58
+ }),
59
+ JS
60
+ end
@@ -32,9 +32,6 @@ group :test do
32
32
  gem 'capybara'
33
33
  end
34
34
 
35
- gem 'font-awesome-rails'
36
- gem 'jquery-ui-rails'
37
-
38
35
  # make content_tag temporarily available
39
36
  gem 'record_tag_helper', '~> 1.0'
40
37
  EOF
@@ -1,26 +1,3 @@
1
1
  FileUtils.rm_rf("#{@project_path}/lib/templates")
2
2
  my_directory 'lib/templates'
3
- insert_into_file "#{@project_path}/app/assets/javascripts/application.js",
4
- after: "//= require jquery_ujs\n" do <<-TXT
5
- //= require jquery-ui/datepicker
6
- TXT
7
- end
8
-
9
3
  copy 'config/initializers/time_formats.rb'
10
-
11
- insert_into_file "#{@project_path}/app/assets/stylesheets/application.css",
12
- before: "\n *= require_tree ." do <<-TXT
13
- *= require jquery-ui/datepicker
14
- TXT
15
- end
16
-
17
- create_file "#{@project_path}/app/assets/javascripts/custom.js.erb" do
18
- <<-JS
19
- var ready;
20
- ready = function() {
21
- $(".datepicker").datepicker({ dateFormat: 'dd. mm. yy'});
22
- };
23
- // Fire javascript after turbolinks event
24
- $(document).on('turbolinks:load', ready);
25
- JS
26
- end
@@ -18,6 +18,11 @@ class Starter < Thor
18
18
  abort
19
19
  end
20
20
 
21
+ if `yarn --version` =~ /command not found/
22
+ say "You need to install yarn on your system to manage javascript assets", :red
23
+ abort
24
+ end
25
+
21
26
  unless Config.check_settings.empty?
22
27
  say Config.check_settings, :green
23
28
  say 'Check structure of your config file - it seems you are missing required options mentioned above', :red
@@ -48,7 +53,8 @@ class Starter < Thor
48
53
  method_options type: :string
49
54
  def new project_name
50
55
  @project_name = project_name
51
- run "rails new #{@project_name} -T --skip-bundle"
56
+ run "rails new #{@project_name} -T --skip-bundle --webpack"
57
+ run 'rake webpacker:install'
52
58
 
53
59
  @project_path = "#{@dir}/#{@project_name}"
54
60
  @project_label = @project_name.capitalize.gsub('_', ' ')
@@ -61,6 +67,10 @@ class Starter < Thor
61
67
  else
62
68
  apply "installations/#{options[:type]}.rb"
63
69
  end
70
+
71
+ run 'gem install foreman'
72
+ copy 'Procfile'
73
+ say 'Start your application with foreman start', :green
64
74
  end
65
75
 
66
76
  desc 'add_timepress_specifics', 'add datepicker and other timepress specific things'
@@ -0,0 +1,3 @@
1
+ # Procfile
2
+ web: bundle exec rails s
3
+ webpacker: ./bin/webpack-dev-server
@@ -0,0 +1,21 @@
1
+ @import "bootstrap-variables.scss";
2
+
3
+ body {
4
+ padding-top: $navbar-height + 10px;
5
+ }
6
+
7
+ .page-header {
8
+ a.btn {
9
+ float: right;
10
+ }
11
+
12
+ a.btn + a.btn {
13
+ margin-right: 8px;
14
+ }
15
+ }
16
+
17
+ input[type="radio"], input[type="checkbox"] {
18
+ width: initial;
19
+ height: initial;
20
+ margin-top: 7px;
21
+ }
@@ -0,0 +1,849 @@
1
+ $bootstrap-sass-asset-helper: false !default;
2
+ //
3
+ // Variables
4
+ // --------------------------------------------------
5
+
6
+
7
+ //== Colors
8
+ //
9
+ //## Gray and brand colors for use across Bootstrap.
10
+
11
+ $gray-base: #000 !default;
12
+ $gray-darker: lighten($gray-base, 13.5%) !default; // #222
13
+ $gray-dark: lighten($gray-base, 20%) !default; // #333
14
+ $gray: lighten($gray-base, 33.5%) !default; // #555
15
+ $gray-light: lighten($gray-base, 46.7%) !default; // #777
16
+ $gray-lighter: lighten($gray-base, 93.5%) !default; // #eee
17
+
18
+ $brand-primary: darken(#428bca, 6.5%) !default; // #337ab7
19
+ $brand-success: #5cb85c !default;
20
+ $brand-info: #5bc0de !default;
21
+ $brand-warning: #f0ad4e !default;
22
+ $brand-danger: #d9534f !default;
23
+
24
+
25
+ //== Scaffolding
26
+ //
27
+ //## Settings for some of the most global styles.
28
+
29
+ //** Background color for `<body>`.
30
+ $body-bg: #fff !default;
31
+ //** Global text color on `<body>`.
32
+ $text-color: $gray-dark !default;
33
+
34
+ //** Global textual link color.
35
+ $link-color: $brand-primary !default;
36
+ //** Link hover color set via `darken()` function.
37
+ $link-hover-color: darken($link-color, 15%) !default;
38
+ //** Link hover decoration.
39
+ $link-hover-decoration: underline !default;
40
+
41
+
42
+ //== Typography
43
+ //
44
+ //## Font, line-height, and color for body text, headings, and more.
45
+
46
+ $font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
47
+ $font-family-serif: Georgia, "Times New Roman", Times, serif !default;
48
+ //** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
49
+ $font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace !default;
50
+ $font-family-base: $font-family-sans-serif !default;
51
+
52
+ $font-size-base: 14px !default;
53
+ $font-size-large: ceil(($font-size-base * 1.25)) !default; // ~18px
54
+ $font-size-small: ceil(($font-size-base * 0.85)) !default; // ~12px
55
+
56
+ $font-size-h1: floor(($font-size-base * 2.6)) !default; // ~36px
57
+ $font-size-h2: floor(($font-size-base * 2.15)) !default; // ~30px
58
+ $font-size-h3: ceil(($font-size-base * 1.7)) !default; // ~24px
59
+ $font-size-h4: ceil(($font-size-base * 1.25)) !default; // ~18px
60
+ $font-size-h5: $font-size-base !default;
61
+ $font-size-h6: ceil(($font-size-base * 0.85)) !default; // ~12px
62
+
63
+ //** Unit-less `line-height` for use in components like buttons.
64
+ $line-height-base: 1.428571429 !default; // 20/14
65
+ //** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
66
+ $line-height-computed: floor(($font-size-base * $line-height-base)) !default; // ~20px
67
+
68
+ //** By default, this inherits from the `<body>`.
69
+ $headings-font-family: inherit !default;
70
+ $headings-font-weight: 500 !default;
71
+ $headings-line-height: 1.1 !default;
72
+ $headings-color: inherit !default;
73
+
74
+ //== Components
75
+ //
76
+ //## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
77
+
78
+ $padding-base-vertical: 6px !default;
79
+ $padding-base-horizontal: 12px !default;
80
+
81
+ $padding-large-vertical: 10px !default;
82
+ $padding-large-horizontal: 16px !default;
83
+
84
+ $padding-small-vertical: 5px !default;
85
+ $padding-small-horizontal: 10px !default;
86
+
87
+ $padding-xs-vertical: 1px !default;
88
+ $padding-xs-horizontal: 5px !default;
89
+
90
+ $line-height-large: 1.3333333 !default; // extra decimals for Win 8.1 Chrome
91
+ $line-height-small: 1.5 !default;
92
+
93
+ $border-radius-base: 4px !default;
94
+ $border-radius-large: 6px !default;
95
+ $border-radius-small: 3px !default;
96
+
97
+ //** Global color for active items (e.g., navs or dropdowns).
98
+ $component-active-color: #fff !default;
99
+ //** Global background color for active items (e.g., navs or dropdowns).
100
+ $component-active-bg: $brand-primary !default;
101
+
102
+ //** Width of the `border` for generating carets that indicator dropdowns.
103
+ $caret-width-base: 4px !default;
104
+ //** Carets increase slightly in size for larger components.
105
+ $caret-width-large: 5px !default;
106
+
107
+
108
+ //== Tables
109
+ //
110
+ //## Customizes the `.table` component with basic values, each used across all table variations.
111
+
112
+ //** Padding for `<th>`s and `<td>`s.
113
+ $table-cell-padding: 8px !default;
114
+ //** Padding for cells in `.table-condensed`.
115
+ $table-condensed-cell-padding: 5px !default;
116
+
117
+ //** Default background color used for all tables.
118
+ $table-bg: transparent !default;
119
+ //** Background color used for `.table-striped`.
120
+ $table-bg-accent: #f9f9f9 !default;
121
+ //** Background color used for `.table-hover`.
122
+ $table-bg-hover: #f5f5f5 !default;
123
+ $table-bg-active: $table-bg-hover !default;
124
+
125
+ //** Border color for table and cell borders.
126
+ $table-border-color: #ddd !default;
127
+
128
+
129
+ //== Buttons
130
+ //
131
+ //## For each of Bootstrap's buttons, define text, background and border color.
132
+
133
+ $btn-font-weight: normal !default;
134
+
135
+ $btn-default-color: #333 !default;
136
+ $btn-default-bg: #fff !default;
137
+ $btn-default-border: #ccc !default;
138
+
139
+ $btn-primary-color: #fff !default;
140
+ $btn-primary-bg: $brand-primary !default;
141
+ $btn-primary-border: darken($btn-primary-bg, 5%) !default;
142
+
143
+ $btn-success-color: #fff !default;
144
+ $btn-success-bg: $brand-success !default;
145
+ $btn-success-border: darken($btn-success-bg, 5%) !default;
146
+
147
+ $btn-info-color: #fff !default;
148
+ $btn-info-bg: $brand-info !default;
149
+ $btn-info-border: darken($btn-info-bg, 5%) !default;
150
+
151
+ $btn-warning-color: #fff !default;
152
+ $btn-warning-bg: $brand-warning !default;
153
+ $btn-warning-border: darken($btn-warning-bg, 5%) !default;
154
+
155
+ $btn-danger-color: #fff !default;
156
+ $btn-danger-bg: $brand-danger !default;
157
+ $btn-danger-border: darken($btn-danger-bg, 5%) !default;
158
+
159
+ $btn-link-disabled-color: $gray-light !default;
160
+
161
+
162
+ //== Forms
163
+ //
164
+ //##
165
+
166
+ //** `<input>` background color
167
+ $input-bg: #fff !default;
168
+ //** `<input disabled>` background color
169
+ $input-bg-disabled: $gray-lighter !default;
170
+
171
+ //** Text color for `<input>`s
172
+ $input-color: $gray !default;
173
+ //** `<input>` border color
174
+ $input-border: #ccc !default;
175
+
176
+ // TODO: Rename `$input-border-radius` to `$input-border-radius-base` in v4
177
+ //** Default `.form-control` border radius
178
+ // This has no effect on `<select>`s in some browsers, due to the limited stylability of `<select>`s in CSS.
179
+ $input-border-radius: $border-radius-base !default;
180
+ //** Large `.form-control` border radius
181
+ $input-border-radius-large: $border-radius-large !default;
182
+ //** Small `.form-control` border radius
183
+ $input-border-radius-small: $border-radius-small !default;
184
+
185
+ //** Border color for inputs on focus
186
+ $input-border-focus: #66afe9 !default;
187
+
188
+ //** Placeholder text color
189
+ $input-color-placeholder: #999 !default;
190
+
191
+ //** Default `.form-control` height
192
+ $input-height-base: ($line-height-computed + ($padding-base-vertical * 2) + 2) !default;
193
+ //** Large `.form-control` height
194
+ $input-height-large: (ceil($font-size-large * $line-height-large) + ($padding-large-vertical * 2) + 2) !default;
195
+ //** Small `.form-control` height
196
+ $input-height-small: (floor($font-size-small * $line-height-small) + ($padding-small-vertical * 2) + 2) !default;
197
+
198
+ //** `.form-group` margin
199
+ $form-group-margin-bottom: 15px !default;
200
+
201
+ $legend-color: $gray-dark !default;
202
+ $legend-border-color: #e5e5e5 !default;
203
+
204
+ //** Background color for textual input addons
205
+ $input-group-addon-bg: $gray-lighter !default;
206
+ //** Border color for textual input addons
207
+ $input-group-addon-border-color: $input-border !default;
208
+
209
+ //** Disabled cursor for form controls and buttons.
210
+ $cursor-disabled: not-allowed !default;
211
+
212
+
213
+ //== Dropdowns
214
+ //
215
+ //## Dropdown menu container and contents.
216
+
217
+ //** Background for the dropdown menu.
218
+ $dropdown-bg: #fff !default;
219
+ //** Dropdown menu `border-color`.
220
+ $dropdown-border: rgba(0,0,0,.15) !default;
221
+ //** Dropdown menu `border-color` **for IE8**.
222
+ $dropdown-fallback-border: #ccc !default;
223
+ //** Divider color for between dropdown items.
224
+ $dropdown-divider-bg: #e5e5e5 !default;
225
+
226
+ //** Dropdown link text color.
227
+ $dropdown-link-color: $gray-dark !default;
228
+ //** Hover color for dropdown links.
229
+ $dropdown-link-hover-color: darken($gray-dark, 5%) !default;
230
+ //** Hover background for dropdown links.
231
+ $dropdown-link-hover-bg: #f5f5f5 !default;
232
+
233
+ //** Active dropdown menu item text color.
234
+ $dropdown-link-active-color: $component-active-color !default;
235
+ //** Active dropdown menu item background color.
236
+ $dropdown-link-active-bg: $component-active-bg !default;
237
+
238
+ //** Disabled dropdown menu item background color.
239
+ $dropdown-link-disabled-color: $gray-light !default;
240
+
241
+ //** Text color for headers within dropdown menus.
242
+ $dropdown-header-color: $gray-light !default;
243
+
244
+ //** Deprecated `$dropdown-caret-color` as of v3.1.0
245
+ $dropdown-caret-color: #000 !default;
246
+
247
+
248
+ //-- Z-index master list
249
+ //
250
+ // Warning: Avoid customizing these values. They're used for a bird's eye view
251
+ // of components dependent on the z-axis and are designed to all work together.
252
+ //
253
+ // Note: These variables are not generated into the Customizer.
254
+
255
+ $zindex-navbar: 1000 !default;
256
+ $zindex-dropdown: 1000 !default;
257
+ $zindex-popover: 1060 !default;
258
+ $zindex-tooltip: 1070 !default;
259
+ $zindex-navbar-fixed: 1030 !default;
260
+ $zindex-modal-background: 1040 !default;
261
+ $zindex-modal: 1050 !default;
262
+
263
+
264
+ //== Media queries breakpoints
265
+ //
266
+ //## Define the breakpoints at which your layout will change, adapting to different screen sizes.
267
+
268
+ // Extra small screen / phone
269
+ //** Deprecated `$screen-xs` as of v3.0.1
270
+ $screen-xs: 480px !default;
271
+ //** Deprecated `$screen-xs-min` as of v3.2.0
272
+ $screen-xs-min: $screen-xs !default;
273
+ //** Deprecated `$screen-phone` as of v3.0.1
274
+ $screen-phone: $screen-xs-min !default;
275
+
276
+ // Small screen / tablet
277
+ //** Deprecated `$screen-sm` as of v3.0.1
278
+ $screen-sm: 768px !default;
279
+ $screen-sm-min: $screen-sm !default;
280
+ //** Deprecated `$screen-tablet` as of v3.0.1
281
+ $screen-tablet: $screen-sm-min !default;
282
+
283
+ // Medium screen / desktop
284
+ //** Deprecated `$screen-md` as of v3.0.1
285
+ $screen-md: 992px !default;
286
+ $screen-md-min: $screen-md !default;
287
+ //** Deprecated `$screen-desktop` as of v3.0.1
288
+ $screen-desktop: $screen-md-min !default;
289
+
290
+ // Large screen / wide desktop
291
+ //** Deprecated `$screen-lg` as of v3.0.1
292
+ $screen-lg: 1200px !default;
293
+ $screen-lg-min: $screen-lg !default;
294
+ //** Deprecated `$screen-lg-desktop` as of v3.0.1
295
+ $screen-lg-desktop: $screen-lg-min !default;
296
+
297
+ // So media queries don't overlap when required, provide a maximum
298
+ $screen-xs-max: ($screen-sm-min - 1) !default;
299
+ $screen-sm-max: ($screen-md-min - 1) !default;
300
+ $screen-md-max: ($screen-lg-min - 1) !default;
301
+
302
+
303
+ //== Grid system
304
+ //
305
+ //## Define your custom responsive grid.
306
+
307
+ //** Number of columns in the grid.
308
+ $grid-columns: 12 !default;
309
+ //** Padding between columns. Gets divided in half for the left and right.
310
+ $grid-gutter-width: 30px !default;
311
+ // Navbar collapse
312
+ //** Point at which the navbar becomes uncollapsed.
313
+ $grid-float-breakpoint: $screen-sm-min !default;
314
+ //** Point at which the navbar begins collapsing.
315
+ $grid-float-breakpoint-max: ($grid-float-breakpoint - 1) !default;
316
+
317
+
318
+ //== Container sizes
319
+ //
320
+ //## Define the maximum width of `.container` for different screen sizes.
321
+
322
+ // Small screen / tablet
323
+ $container-tablet: (720px + $grid-gutter-width) !default;
324
+ //** For `$screen-sm-min` and up.
325
+ $container-sm: $container-tablet !default;
326
+
327
+ // Medium screen / desktop
328
+ $container-desktop: (940px + $grid-gutter-width) !default;
329
+ //** For `$screen-md-min` and up.
330
+ $container-md: $container-desktop !default;
331
+
332
+ // Large screen / wide desktop
333
+ $container-large-desktop: (1140px + $grid-gutter-width) !default;
334
+ //** For `$screen-lg-min` and up.
335
+ $container-lg: $container-large-desktop !default;
336
+
337
+
338
+ //== Navbar
339
+ //
340
+ //##
341
+
342
+ // Basics of a navbar
343
+ $navbar-height: 50px !default;
344
+ $navbar-margin-bottom: $line-height-computed !default;
345
+ $navbar-border-radius: $border-radius-base !default;
346
+ $navbar-padding-horizontal: floor(($grid-gutter-width / 2)) !default;
347
+ $navbar-padding-vertical: (($navbar-height - $line-height-computed) / 2) !default;
348
+ $navbar-collapse-max-height: 340px !default;
349
+
350
+ $navbar-default-color: #777 !default;
351
+ $navbar-default-bg: #f8f8f8 !default;
352
+ $navbar-default-border: darken($navbar-default-bg, 6.5%) !default;
353
+
354
+ // Navbar links
355
+ $navbar-default-link-color: #777 !default;
356
+ $navbar-default-link-hover-color: #333 !default;
357
+ $navbar-default-link-hover-bg: transparent !default;
358
+ $navbar-default-link-active-color: #555 !default;
359
+ $navbar-default-link-active-bg: darken($navbar-default-bg, 6.5%) !default;
360
+ $navbar-default-link-disabled-color: #ccc !default;
361
+ $navbar-default-link-disabled-bg: transparent !default;
362
+
363
+ // Navbar brand label
364
+ $navbar-default-brand-color: $navbar-default-link-color !default;
365
+ $navbar-default-brand-hover-color: darken($navbar-default-brand-color, 10%) !default;
366
+ $navbar-default-brand-hover-bg: transparent !default;
367
+
368
+ // Navbar toggle
369
+ $navbar-default-toggle-hover-bg: #ddd !default;
370
+ $navbar-default-toggle-icon-bar-bg: #888 !default;
371
+ $navbar-default-toggle-border-color: #ddd !default;
372
+
373
+
374
+ // Inverted navbar
375
+ // Reset inverted navbar basics
376
+ $navbar-inverse-color: lighten($gray-light, 15%) !default;
377
+ $navbar-inverse-bg: #222 !default;
378
+ $navbar-inverse-border: darken($navbar-inverse-bg, 10%) !default;
379
+
380
+ // Inverted navbar links
381
+ $navbar-inverse-link-color: lighten($gray-light, 15%) !default;
382
+ $navbar-inverse-link-hover-color: #fff !default;
383
+ $navbar-inverse-link-hover-bg: transparent !default;
384
+ $navbar-inverse-link-active-color: $navbar-inverse-link-hover-color !default;
385
+ $navbar-inverse-link-active-bg: darken($navbar-inverse-bg, 10%) !default;
386
+ $navbar-inverse-link-disabled-color: #444 !default;
387
+ $navbar-inverse-link-disabled-bg: transparent !default;
388
+
389
+ // Inverted navbar brand label
390
+ $navbar-inverse-brand-color: $navbar-inverse-link-color !default;
391
+ $navbar-inverse-brand-hover-color: #fff !default;
392
+ $navbar-inverse-brand-hover-bg: transparent !default;
393
+
394
+ // Inverted navbar toggle
395
+ $navbar-inverse-toggle-hover-bg: #333 !default;
396
+ $navbar-inverse-toggle-icon-bar-bg: #fff !default;
397
+ $navbar-inverse-toggle-border-color: #333 !default;
398
+
399
+
400
+ //== Navs
401
+ //
402
+ //##
403
+
404
+ //=== Shared nav styles
405
+ $nav-link-padding: 10px 15px !default;
406
+ $nav-link-hover-bg: $gray-lighter !default;
407
+
408
+ $nav-disabled-link-color: $gray-light !default;
409
+ $nav-disabled-link-hover-color: $gray-light !default;
410
+
411
+ //== Tabs
412
+ $nav-tabs-border-color: #ddd !default;
413
+
414
+ $nav-tabs-link-hover-border-color: $gray-lighter !default;
415
+
416
+ $nav-tabs-active-link-hover-bg: $body-bg !default;
417
+ $nav-tabs-active-link-hover-color: $gray !default;
418
+ $nav-tabs-active-link-hover-border-color: #ddd !default;
419
+
420
+ $nav-tabs-justified-link-border-color: #ddd !default;
421
+ $nav-tabs-justified-active-link-border-color: $body-bg !default;
422
+
423
+ //== Pills
424
+ $nav-pills-border-radius: $border-radius-base !default;
425
+ $nav-pills-active-link-hover-bg: $component-active-bg !default;
426
+ $nav-pills-active-link-hover-color: $component-active-color !default;
427
+
428
+
429
+ //== Pagination
430
+ //
431
+ //##
432
+
433
+ $pagination-color: $link-color !default;
434
+ $pagination-bg: #fff !default;
435
+ $pagination-border: #ddd !default;
436
+
437
+ $pagination-hover-color: $link-hover-color !default;
438
+ $pagination-hover-bg: $gray-lighter !default;
439
+ $pagination-hover-border: #ddd !default;
440
+
441
+ $pagination-active-color: #fff !default;
442
+ $pagination-active-bg: $brand-primary !default;
443
+ $pagination-active-border: $brand-primary !default;
444
+
445
+ $pagination-disabled-color: $gray-light !default;
446
+ $pagination-disabled-bg: #fff !default;
447
+ $pagination-disabled-border: #ddd !default;
448
+
449
+
450
+ //== Pager
451
+ //
452
+ //##
453
+
454
+ $pager-bg: $pagination-bg !default;
455
+ $pager-border: $pagination-border !default;
456
+ $pager-border-radius: 15px !default;
457
+
458
+ $pager-hover-bg: $pagination-hover-bg !default;
459
+
460
+ $pager-active-bg: $pagination-active-bg !default;
461
+ $pager-active-color: $pagination-active-color !default;
462
+
463
+ $pager-disabled-color: $pagination-disabled-color !default;
464
+
465
+
466
+ //== Jumbotron
467
+ //
468
+ //##
469
+
470
+ $jumbotron-padding: 30px !default;
471
+ $jumbotron-color: inherit !default;
472
+ $jumbotron-bg: $gray-lighter !default;
473
+ $jumbotron-heading-color: inherit !default;
474
+ $jumbotron-font-size: ceil(($font-size-base * 1.5)) !default;
475
+
476
+
477
+ //== Form states and alerts
478
+ //
479
+ //## Define colors for form feedback states and, by default, alerts.
480
+
481
+ $state-success-text: #3c763d !default;
482
+ $state-success-bg: #dff0d8 !default;
483
+ $state-success-border: darken(adjust-hue($state-success-bg, -10), 5%) !default;
484
+
485
+ $state-info-text: #31708f !default;
486
+ $state-info-bg: #d9edf7 !default;
487
+ $state-info-border: darken(adjust-hue($state-info-bg, -10), 7%) !default;
488
+
489
+ $state-warning-text: #8a6d3b !default;
490
+ $state-warning-bg: #fcf8e3 !default;
491
+ $state-warning-border: darken(adjust-hue($state-warning-bg, -10), 5%) !default;
492
+
493
+ $state-danger-text: #a94442 !default;
494
+ $state-danger-bg: #f2dede !default;
495
+ $state-danger-border: darken(adjust-hue($state-danger-bg, -10), 5%) !default;
496
+
497
+
498
+ //== Tooltips
499
+ //
500
+ //##
501
+
502
+ //** Tooltip max width
503
+ $tooltip-max-width: 200px !default;
504
+ //** Tooltip text color
505
+ $tooltip-color: #fff !default;
506
+ //** Tooltip background color
507
+ $tooltip-bg: #000 !default;
508
+ $tooltip-opacity: .9 !default;
509
+
510
+ //** Tooltip arrow width
511
+ $tooltip-arrow-width: 5px !default;
512
+ //** Tooltip arrow color
513
+ $tooltip-arrow-color: $tooltip-bg !default;
514
+
515
+
516
+ //== Popovers
517
+ //
518
+ //##
519
+
520
+ //** Popover body background color
521
+ $popover-bg: #fff !default;
522
+ //** Popover maximum width
523
+ $popover-max-width: 276px !default;
524
+ //** Popover border color
525
+ $popover-border-color: rgba(0,0,0,.2) !default;
526
+ //** Popover fallback border color
527
+ $popover-fallback-border-color: #ccc !default;
528
+
529
+ //** Popover title background color
530
+ $popover-title-bg: darken($popover-bg, 3%) !default;
531
+
532
+ //** Popover arrow width
533
+ $popover-arrow-width: 10px !default;
534
+ //** Popover arrow color
535
+ $popover-arrow-color: $popover-bg !default;
536
+
537
+ //** Popover outer arrow width
538
+ $popover-arrow-outer-width: ($popover-arrow-width + 1) !default;
539
+ //** Popover outer arrow color
540
+ $popover-arrow-outer-color: fade_in($popover-border-color, 0.05) !default;
541
+ //** Popover outer arrow fallback color
542
+ $popover-arrow-outer-fallback-color: darken($popover-fallback-border-color, 20%) !default;
543
+
544
+
545
+ //== Labels
546
+ //
547
+ //##
548
+
549
+ //** Default label background color
550
+ $label-default-bg: $gray-light !default;
551
+ //** Primary label background color
552
+ $label-primary-bg: $brand-primary !default;
553
+ //** Success label background color
554
+ $label-success-bg: $brand-success !default;
555
+ //** Info label background color
556
+ $label-info-bg: $brand-info !default;
557
+ //** Warning label background color
558
+ $label-warning-bg: $brand-warning !default;
559
+ //** Danger label background color
560
+ $label-danger-bg: $brand-danger !default;
561
+
562
+ //** Default label text color
563
+ $label-color: #fff !default;
564
+ //** Default text color of a linked label
565
+ $label-link-hover-color: #fff !default;
566
+
567
+
568
+ //== Modals
569
+ //
570
+ //##
571
+
572
+ //** Padding applied to the modal body
573
+ $modal-inner-padding: 15px !default;
574
+
575
+ //** Padding applied to the modal title
576
+ $modal-title-padding: 15px !default;
577
+ //** Modal title line-height
578
+ $modal-title-line-height: $line-height-base !default;
579
+
580
+ //** Background color of modal content area
581
+ $modal-content-bg: #fff !default;
582
+ //** Modal content border color
583
+ $modal-content-border-color: rgba(0,0,0,.2) !default;
584
+ //** Modal content border color **for IE8**
585
+ $modal-content-fallback-border-color: #999 !default;
586
+
587
+ //** Modal backdrop background color
588
+ $modal-backdrop-bg: #000 !default;
589
+ //** Modal backdrop opacity
590
+ $modal-backdrop-opacity: .5 !default;
591
+ //** Modal header border color
592
+ $modal-header-border-color: #e5e5e5 !default;
593
+ //** Modal footer border color
594
+ $modal-footer-border-color: $modal-header-border-color !default;
595
+
596
+ $modal-lg: 900px !default;
597
+ $modal-md: 600px !default;
598
+ $modal-sm: 300px !default;
599
+
600
+
601
+ //== Alerts
602
+ //
603
+ //## Define alert colors, border radius, and padding.
604
+
605
+ $alert-padding: 15px !default;
606
+ $alert-border-radius: $border-radius-base !default;
607
+ $alert-link-font-weight: bold !default;
608
+
609
+ $alert-success-bg: $state-success-bg !default;
610
+ $alert-success-text: $state-success-text !default;
611
+ $alert-success-border: $state-success-border !default;
612
+
613
+ $alert-info-bg: $state-info-bg !default;
614
+ $alert-info-text: $state-info-text !default;
615
+ $alert-info-border: $state-info-border !default;
616
+
617
+ $alert-warning-bg: $state-warning-bg !default;
618
+ $alert-warning-text: $state-warning-text !default;
619
+ $alert-warning-border: $state-warning-border !default;
620
+
621
+ $alert-danger-bg: $state-danger-bg !default;
622
+ $alert-danger-text: $state-danger-text !default;
623
+ $alert-danger-border: $state-danger-border !default;
624
+
625
+
626
+ //== Progress bars
627
+ //
628
+ //##
629
+
630
+ //** Background color of the whole progress component
631
+ $progress-bg: #f5f5f5 !default;
632
+ //** Progress bar text color
633
+ $progress-bar-color: #fff !default;
634
+ //** Variable for setting rounded corners on progress bar.
635
+ $progress-border-radius: $border-radius-base !default;
636
+
637
+ //** Default progress bar color
638
+ $progress-bar-bg: $brand-primary !default;
639
+ //** Success progress bar color
640
+ $progress-bar-success-bg: $brand-success !default;
641
+ //** Warning progress bar color
642
+ $progress-bar-warning-bg: $brand-warning !default;
643
+ //** Danger progress bar color
644
+ $progress-bar-danger-bg: $brand-danger !default;
645
+ //** Info progress bar color
646
+ $progress-bar-info-bg: $brand-info !default;
647
+
648
+
649
+ //== List group
650
+ //
651
+ //##
652
+
653
+ //** Background color on `.list-group-item`
654
+ $list-group-bg: #fff !default;
655
+ //** `.list-group-item` border color
656
+ $list-group-border: #ddd !default;
657
+ //** List group border radius
658
+ $list-group-border-radius: $border-radius-base !default;
659
+
660
+ //** Background color of single list items on hover
661
+ $list-group-hover-bg: #f5f5f5 !default;
662
+ //** Text color of active list items
663
+ $list-group-active-color: $component-active-color !default;
664
+ //** Background color of active list items
665
+ $list-group-active-bg: $component-active-bg !default;
666
+ //** Border color of active list elements
667
+ $list-group-active-border: $list-group-active-bg !default;
668
+ //** Text color for content within active list items
669
+ $list-group-active-text-color: lighten($list-group-active-bg, 40%) !default;
670
+
671
+ //** Text color of disabled list items
672
+ $list-group-disabled-color: $gray-light !default;
673
+ //** Background color of disabled list items
674
+ $list-group-disabled-bg: $gray-lighter !default;
675
+ //** Text color for content within disabled list items
676
+ $list-group-disabled-text-color: $list-group-disabled-color !default;
677
+
678
+ $list-group-link-color: #555 !default;
679
+ $list-group-link-hover-color: $list-group-link-color !default;
680
+ $list-group-link-heading-color: #333 !default;
681
+
682
+
683
+ //== Panels
684
+ //
685
+ //##
686
+
687
+ $panel-bg: #fff !default;
688
+ $panel-body-padding: 15px !default;
689
+ $panel-heading-padding: 10px 15px !default;
690
+ $panel-footer-padding: $panel-heading-padding !default;
691
+ $panel-border-radius: $border-radius-base !default;
692
+
693
+ //** Border color for elements within panels
694
+ $panel-inner-border: #ddd !default;
695
+ $panel-footer-bg: #f5f5f5 !default;
696
+
697
+ $panel-default-text: $gray-dark !default;
698
+ $panel-default-border: #ddd !default;
699
+ $panel-default-heading-bg: #f5f5f5 !default;
700
+
701
+ $panel-primary-text: #fff !default;
702
+ $panel-primary-border: $brand-primary !default;
703
+ $panel-primary-heading-bg: $brand-primary !default;
704
+
705
+ $panel-success-text: $state-success-text !default;
706
+ $panel-success-border: $state-success-border !default;
707
+ $panel-success-heading-bg: $state-success-bg !default;
708
+
709
+ $panel-info-text: $state-info-text !default;
710
+ $panel-info-border: $state-info-border !default;
711
+ $panel-info-heading-bg: $state-info-bg !default;
712
+
713
+ $panel-warning-text: $state-warning-text !default;
714
+ $panel-warning-border: $state-warning-border !default;
715
+ $panel-warning-heading-bg: $state-warning-bg !default;
716
+
717
+ $panel-danger-text: $state-danger-text !default;
718
+ $panel-danger-border: $state-danger-border !default;
719
+ $panel-danger-heading-bg: $state-danger-bg !default;
720
+
721
+
722
+ //== Thumbnails
723
+ //
724
+ //##
725
+
726
+ //** Padding around the thumbnail image
727
+ $thumbnail-padding: 4px !default;
728
+ //** Thumbnail background color
729
+ $thumbnail-bg: $body-bg !default;
730
+ //** Thumbnail border color
731
+ $thumbnail-border: #ddd !default;
732
+ //** Thumbnail border radius
733
+ $thumbnail-border-radius: $border-radius-base !default;
734
+
735
+ //** Custom text color for thumbnail captions
736
+ $thumbnail-caption-color: $text-color !default;
737
+ //** Padding around the thumbnail caption
738
+ $thumbnail-caption-padding: 9px !default;
739
+
740
+
741
+ //== Wells
742
+ //
743
+ //##
744
+
745
+ $well-bg: #f5f5f5 !default;
746
+ $well-border: darken($well-bg, 7%) !default;
747
+
748
+
749
+ //== Badges
750
+ //
751
+ //##
752
+
753
+ $badge-color: #fff !default;
754
+ //** Linked badge text color on hover
755
+ $badge-link-hover-color: #fff !default;
756
+ $badge-bg: $gray-light !default;
757
+
758
+ //** Badge text color in active nav link
759
+ $badge-active-color: $link-color !default;
760
+ //** Badge background color in active nav link
761
+ $badge-active-bg: #fff !default;
762
+
763
+ $badge-font-weight: bold !default;
764
+ $badge-line-height: 1 !default;
765
+ $badge-border-radius: 10px !default;
766
+
767
+
768
+ //== Breadcrumbs
769
+ //
770
+ //##
771
+
772
+ $breadcrumb-padding-vertical: 8px !default;
773
+ $breadcrumb-padding-horizontal: 15px !default;
774
+ //** Breadcrumb background color
775
+ $breadcrumb-bg: #f5f5f5 !default;
776
+ //** Breadcrumb text color
777
+ $breadcrumb-color: #ccc !default;
778
+ //** Text color of current page in the breadcrumb
779
+ $breadcrumb-active-color: $gray-light !default;
780
+ //** Textual separator for between breadcrumb elements
781
+ $breadcrumb-separator: "/" !default;
782
+
783
+
784
+ //== Carousel
785
+ //
786
+ //##
787
+
788
+ $carousel-text-shadow: 0 1px 2px rgba(0,0,0,.6) !default;
789
+
790
+ $carousel-control-color: #fff !default;
791
+ $carousel-control-width: 15% !default;
792
+ $carousel-control-opacity: .5 !default;
793
+ $carousel-control-font-size: 20px !default;
794
+
795
+ $carousel-indicator-active-bg: #fff !default;
796
+ $carousel-indicator-border-color: #fff !default;
797
+
798
+ $carousel-caption-color: #fff !default;
799
+
800
+
801
+ //== Close
802
+ //
803
+ //##
804
+
805
+ $close-font-weight: bold !default;
806
+ $close-color: #000 !default;
807
+ $close-text-shadow: 0 1px 0 #fff !default;
808
+
809
+
810
+ //== Code
811
+ //
812
+ //##
813
+
814
+ $code-color: #c7254e !default;
815
+ $code-bg: #f9f2f4 !default;
816
+
817
+ $kbd-color: #fff !default;
818
+ $kbd-bg: #333 !default;
819
+
820
+ $pre-bg: #f5f5f5 !default;
821
+ $pre-color: $gray-dark !default;
822
+ $pre-border-color: #ccc !default;
823
+ $pre-scrollable-max-height: 340px !default;
824
+
825
+
826
+ //== Type
827
+ //
828
+ //##
829
+
830
+ //** Horizontal offset for forms and lists.
831
+ $component-offset-horizontal: 180px !default;
832
+ //** Text muted color
833
+ $text-muted: $gray-light !default;
834
+ //** Abbreviations and acronyms border color
835
+ $abbr-border-color: $gray-light !default;
836
+ //** Headings small color
837
+ $headings-small-color: $gray-light !default;
838
+ //** Blockquote small color
839
+ $blockquote-small-color: $gray-light !default;
840
+ //** Blockquote font size
841
+ $blockquote-font-size: ($font-size-base * 1.25) !default;
842
+ //** Blockquote border color
843
+ $blockquote-border-color: $gray-lighter !default;
844
+ //** Page header border color
845
+ $page-header-border-color: $gray-lighter !default;
846
+ //** Width of horizontal description list titles
847
+ $dl-horizontal-offset: $component-offset-horizontal !default;
848
+ //** Horizontal line color.
849
+ $hr-border: $gray-lighter !default;