bootstrap-sass-backport 3.2.0.2 → 3.3.1.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 +4 -4
- data/.gitignore +1 -1
- data/.travis.yml +8 -2
- data/CHANGELOG.md +14 -0
- data/README.md +35 -22
- data/Rakefile +3 -4
- data/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +1 -1
- data/assets/javascripts/bootstrap.js +1232 -1019
- data/assets/javascripts/bootstrap/affix.js +43 -23
- data/assets/javascripts/bootstrap/alert.js +6 -4
- data/assets/javascripts/bootstrap/button.js +16 -10
- data/assets/javascripts/bootstrap/carousel.js +27 -10
- data/assets/javascripts/bootstrap/collapse.js +69 -28
- data/assets/javascripts/bootstrap/dropdown.js +20 -10
- data/assets/javascripts/bootstrap/modal.js +67 -23
- data/assets/javascripts/bootstrap/popover.js +13 -7
- data/assets/javascripts/bootstrap/scrollspy.js +12 -7
- data/assets/javascripts/bootstrap/tab.js +41 -16
- data/assets/javascripts/bootstrap/tooltip.js +60 -39
- data/assets/javascripts/bootstrap/transition.js +1 -1
- data/assets/stylesheets/bootstrap/_badges.scss +7 -1
- data/assets/stylesheets/bootstrap/_button-groups.scss +18 -15
- data/assets/stylesheets/bootstrap/_buttons.scss +8 -5
- data/assets/stylesheets/bootstrap/_carousel.scss +25 -1
- data/assets/stylesheets/bootstrap/_code.scss +1 -0
- data/assets/stylesheets/bootstrap/_component-animations.scss +5 -2
- data/assets/stylesheets/bootstrap/_dropdowns.scss +4 -6
- data/assets/stylesheets/bootstrap/_forms.scss +55 -43
- data/assets/stylesheets/bootstrap/_glyphicons.scss +2 -5
- data/assets/stylesheets/bootstrap/_grid.scss +4 -4
- data/assets/stylesheets/bootstrap/_jumbotron.scss +6 -5
- data/assets/stylesheets/bootstrap/_list-group.scss +1 -8
- data/assets/stylesheets/bootstrap/_media.scss +27 -36
- data/assets/stylesheets/bootstrap/_modals.scss +4 -6
- data/assets/stylesheets/bootstrap/_navbar.scss +36 -33
- data/assets/stylesheets/bootstrap/_navs.scss +5 -3
- data/assets/stylesheets/bootstrap/_normalize.scss +5 -3
- data/assets/stylesheets/bootstrap/_pager.scss +2 -3
- data/assets/stylesheets/bootstrap/_pagination.scss +1 -1
- data/assets/stylesheets/bootstrap/_panels.scss +22 -4
- data/assets/stylesheets/bootstrap/_popovers.scss +6 -4
- data/assets/stylesheets/bootstrap/_print.scss +102 -96
- data/assets/stylesheets/bootstrap/_progress-bars.scss +2 -20
- data/assets/stylesheets/bootstrap/_responsive-embed.scss +2 -1
- data/assets/stylesheets/bootstrap/_responsive-utilities.scss +4 -1
- data/assets/stylesheets/bootstrap/_scaffolding.scss +3 -3
- data/assets/stylesheets/bootstrap/_tables.scss +11 -10
- data/assets/stylesheets/bootstrap/_theme.scss +27 -13
- data/assets/stylesheets/bootstrap/_thumbnails.scss +2 -2
- data/assets/stylesheets/bootstrap/_tooltip.scss +12 -4
- data/assets/stylesheets/bootstrap/_type.scss +10 -16
- data/assets/stylesheets/bootstrap/_utilities.scss +3 -4
- data/assets/stylesheets/bootstrap/_variables.scss +31 -21
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +2 -0
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +5 -1
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_hide-text.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_image.scss +0 -1
- data/assets/stylesheets/bootstrap/mixins/_labels.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +6 -3
- data/bower.json +1 -1
- data/composer.json +1 -1
- data/lib/bootstrap-sass-backport.rb +2 -1
- data/lib/bootstrap-sass/engine.rb +1 -1
- data/lib/bootstrap-sass/version.rb +2 -2
- data/package.json +4 -4
- data/tasks/converter/js_conversion.rb +2 -3
- data/tasks/converter/less_conversion.rb +64 -30
- data/tasks/converter/network.rb +12 -6
- data/templates/project/_bootstrap-variables.sass +866 -0
- data/templates/project/manifest.rb +5 -11
- data/test/node_sass_compile_test.sh +8 -0
- metadata +6 -27
- data/templates/project/_bootstrap-variables.sass.erb +0 -4
- data/test/dummy_rails/bin/bundle +0 -3
- data/test/dummy_rails/bin/rails +0 -4
- data/test/dummy_rails/bin/rake +0 -4
- data/test/dummy_rails/db/test.sqlite3 +0 -0
- data/test/dummy_rails/lib/assets/.keep +0 -0
- data/test/dummy_rails/public/404.html +0 -58
- data/test/dummy_rails/public/422.html +0 -58
- data/test/dummy_rails/public/500.html +0 -57
- data/test/dummy_rails/public/favicon.ico +0 -0
- data/test/node_sass_test.rb +0 -16
- data/test/support/integration_test.rb +0 -22
@@ -8,14 +8,14 @@
|
|
8
8
|
margin-left: auto;
|
9
9
|
padding-left: ($gutter / 2);
|
10
10
|
padding-right: ($gutter / 2);
|
11
|
-
@include clearfix
|
11
|
+
@include clearfix;
|
12
12
|
}
|
13
13
|
|
14
14
|
// Creates a wrapper for a series of columns
|
15
15
|
@mixin make-row($gutter: $grid-gutter-width) {
|
16
16
|
margin-left: ($gutter / -2);
|
17
17
|
margin-right: ($gutter / -2);
|
18
|
-
@include clearfix
|
18
|
+
@include clearfix;
|
19
19
|
}
|
20
20
|
|
21
21
|
// Generate the extra small columns
|
@@ -8,7 +8,6 @@
|
|
8
8
|
// Keep images from scaling beyond the width of their parents.
|
9
9
|
@mixin img-responsive($display: block) {
|
10
10
|
display: $display;
|
11
|
-
width: 100% \9; // Force IE10 and below to size SVG images correctly
|
12
11
|
max-width: 100%; // Part 1: Set a maximum relative to the parent
|
13
12
|
height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
|
14
13
|
}
|
@@ -99,9 +99,12 @@
|
|
99
99
|
|
100
100
|
// Placeholder text
|
101
101
|
@mixin placeholder($color: $input-color-placeholder) {
|
102
|
-
|
103
|
-
|
104
|
-
|
102
|
+
// Firefox
|
103
|
+
&::-moz-placeholder {
|
104
|
+
color: $color;
|
105
|
+
opacity: 1; // See https://github.com/twbs/bootstrap/pull/11526
|
106
|
+
}
|
107
|
+
&:-ms-input-placeholder { color: $color; } // Internet Explorer 10+
|
105
108
|
&::-webkit-input-placeholder { color: $color; } // Safari and Chrome
|
106
109
|
}
|
107
110
|
|
data/bower.json
CHANGED
data/composer.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
+
require 'bootstrap-sass/version'
|
1
2
|
module Bootstrap
|
2
3
|
class << self
|
3
4
|
# Inspired by Kaminari
|
4
5
|
def load!
|
5
6
|
register_compass_extension if compass?
|
6
7
|
register_rails_engine if rails?
|
7
|
-
|
8
8
|
configure_sass
|
9
9
|
end
|
10
10
|
|
@@ -56,6 +56,7 @@ module Bootstrap
|
|
56
56
|
def register_compass_extension
|
57
57
|
::Compass::Frameworks.register(
|
58
58
|
'bootstrap',
|
59
|
+
:version => Bootstrap::VERSION,
|
59
60
|
:path => gem_path,
|
60
61
|
:stylesheets_directory => stylesheets_path,
|
61
62
|
:templates_directory => File.join(gem_path, 'templates')
|
@@ -3,7 +3,7 @@ module Bootstrap
|
|
3
3
|
class Engine < ::Rails::Engine
|
4
4
|
initializer 'bootstrap-sass.assets.precompile' do |app|
|
5
5
|
%w(stylesheets javascripts fonts images).each do |sub|
|
6
|
-
app.config.assets.paths << root.join('assets', sub)
|
6
|
+
app.config.assets.paths << root.join('assets', sub).to_s
|
7
7
|
end
|
8
8
|
app.config.assets.precompile << %r(bootstrap/glyphicons-halflings-regular\.(?:eot|svg|ttf|woff)$)
|
9
9
|
end
|
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "bootstrap-sass",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.3.1",
|
4
4
|
"description": "bootstrap-sass is a Sass-powered version of Bootstrap, ready to drop right into your Sass powered applications.",
|
5
5
|
"main": "index.js",
|
6
6
|
"repository": {
|
@@ -23,8 +23,8 @@
|
|
23
23
|
"url": "https://github.com/twbs/bootstrap-sass/issues"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
|
-
"node-sass": "
|
27
|
-
"mincer": "
|
28
|
-
"ejs": "
|
26
|
+
"node-sass": "~1.0",
|
27
|
+
"mincer": "~1.1",
|
28
|
+
"ejs": "~1.0"
|
29
29
|
}
|
30
30
|
}
|
@@ -12,14 +12,13 @@ class Converter
|
|
12
12
|
|
13
13
|
log_status 'Updating javascript manifest'
|
14
14
|
manifest = ''
|
15
|
-
cat = ''
|
16
15
|
bootstrap_js_files.each do |name|
|
17
|
-
cat << contents[name] + "\n"
|
18
16
|
name = name.gsub(/\.js$/, '')
|
19
17
|
manifest << "//= require ./bootstrap/#{name}\n"
|
20
18
|
end
|
19
|
+
dist_js = read_files('dist/js', ['bootstrap.js'])['bootstrap.js']
|
21
20
|
{'assets/javascripts/bootstrap-sprockets.js' => manifest,
|
22
|
-
'assets/javascripts/bootstrap.js' =>
|
21
|
+
'assets/javascripts/bootstrap.js' => dist_js}.each do |path, content|
|
23
22
|
save_file path, content
|
24
23
|
log_processed path
|
25
24
|
end
|
@@ -22,7 +22,7 @@ class Converter
|
|
22
22
|
# match any brace that opens or closes a properties body
|
23
23
|
BRACE_RE = /#{RULE_OPEN_BRACE_RE}|#{RULE_CLOSE_BRACE_RE}/m
|
24
24
|
BRACE_RE_REVERSE = /#{RULE_OPEN_BRACE_RE_REVERSE}|#{RULE_CLOSE_BRACE_RE_REVERSE}/m
|
25
|
-
# valid
|
25
|
+
# valid characters in mixin definitions
|
26
26
|
SCSS_MIXIN_DEF_ARGS_RE = /[\w\-,\s$:#%()]*/
|
27
27
|
LESS_MIXIN_DEF_ARGS_RE = /[\w\-,;.\s@:#%()]*/
|
28
28
|
|
@@ -31,27 +31,34 @@ class Converter
|
|
31
31
|
|
32
32
|
# These mixins will get vararg definitions in SCSS (not supported by LESS):
|
33
33
|
VARARG_MIXINS = %w(
|
34
|
-
|
35
|
-
|
34
|
+
scale transition transition-duration transition-property transition-transform box-shadow
|
35
|
+
)
|
36
|
+
|
37
|
+
# A list of classes that will be extracted into mixins
|
38
|
+
# Only the top-level selectors of form .CLASS { ... } are extracted. CLASS must not be used in any other rule definition.
|
39
|
+
# This is a work-around for libsass @extend issues
|
40
|
+
CLASSES_TO_MIXINS = %w(
|
41
|
+
list-unstyled form-inline
|
42
|
+
)
|
36
43
|
|
37
44
|
# Convert a snippet of bootstrap LESS to Scss
|
38
45
|
def convert_less(less)
|
39
|
-
load_shared
|
40
46
|
less = convert_to_scss(less)
|
41
47
|
less = yield(less) if block_given?
|
42
48
|
less
|
43
49
|
end
|
44
50
|
|
45
|
-
def
|
51
|
+
def shared_mixins
|
46
52
|
@shared_mixins ||= begin
|
47
53
|
log_status ' Reading shared mixins from mixins.less'
|
48
|
-
read_mixins
|
54
|
+
CLASSES_TO_MIXINS + read_mixins(read_files('less', bootstrap_less_files.grep(/mixins\//)).values.join("\n"),
|
55
|
+
nested: NESTED_MIXINS)
|
49
56
|
end
|
50
57
|
end
|
51
58
|
|
52
59
|
def process_stylesheet_assets
|
53
60
|
log_status 'Processing stylesheets...'
|
54
|
-
files
|
61
|
+
files = read_files('less', bootstrap_less_files)
|
55
62
|
save_to = @save_to[:scss]
|
56
63
|
|
57
64
|
log_status ' Converting LESS files to Scss:'
|
@@ -94,7 +101,7 @@ class Converter
|
|
94
101
|
// NB: in Sass 3.3 there is a native function: function-exists(twbs-font-path)
|
95
102
|
$bootstrap-sass-asset-helper: #{sass_fn_exists('twbs-font-path')} !default;
|
96
103
|
SCSS
|
97
|
-
file = replace_all file, %r{(\$icon-font-path): \s*"(.*)" (!default);},
|
104
|
+
file = replace_all file, %r{(\$icon-font-path): \s*"(.*)" (!default);}, "\n" + unindent(<<-SCSS, 14)
|
98
105
|
// [converter] Asset helpers such as Sprockets and Node.js Mincer do not resolve relative paths
|
99
106
|
\\1: if($bootstrap-sass-asset-helper, "bootstrap/", "\\2bootstrap/") \\3;
|
100
107
|
SCSS
|
@@ -114,7 +121,6 @@ class Converter
|
|
114
121
|
when 'thumbnails.less', 'labels.less', 'badges.less'
|
115
122
|
file = extract_nested_rule file, 'a&'
|
116
123
|
when 'glyphicons.less'
|
117
|
-
file = bootstrap_font_files.map { |p| %Q(//= depend_on "bootstrap/#{File.basename(p)}") } * "\n" + "\n" + file
|
118
124
|
file = replace_rules(file, '@font-face') { |rule|
|
119
125
|
rule = replace_all rule, /(\$icon-font(?:-\w+)+)/, '#{\1}'
|
120
126
|
replace_asset_url rule, :font
|
@@ -136,6 +142,11 @@ class Converter
|
|
136
142
|
main_to = File.expand_path("#{save_to}/../_bootstrap.scss")
|
137
143
|
save_file main_to, File.read(main_from).gsub(/ "/, ' "bootstrap/')
|
138
144
|
File.delete(main_from)
|
145
|
+
|
146
|
+
# generate variables template
|
147
|
+
save_file 'templates/project/_bootstrap-variables.sass',
|
148
|
+
"// Override Bootstrap variables here (defaults from bootstrap-sass v#{Bootstrap::VERSION}):\n\n" +
|
149
|
+
File.read("#{save_to}/_variables.scss").gsub(/^(?=\$)/, '// ').gsub(/ !default;/, '')
|
139
150
|
end
|
140
151
|
|
141
152
|
def bootstrap_less_files
|
@@ -147,10 +158,11 @@ class Converter
|
|
147
158
|
# apply general less to scss conversion
|
148
159
|
def convert_to_scss(file)
|
149
160
|
# get local mixin names before converting the definitions
|
150
|
-
mixins =
|
161
|
+
mixins = shared_mixins + read_mixins(file)
|
151
162
|
file = replace_vars(file)
|
152
163
|
file = replace_mixin_definitions(file)
|
153
164
|
file = replace_mixins(file, mixins)
|
165
|
+
file = extract_mixins_from_selectors(file, CLASSES_TO_MIXINS.inject({}) { |h, cl| h.update(".#{cl}" => cl) })
|
154
166
|
file = replace_spin(file)
|
155
167
|
file = replace_fadein(file)
|
156
168
|
file = replace_image_urls(file)
|
@@ -371,9 +383,11 @@ SASS
|
|
371
383
|
sel = parent_sel + sel[1..-1]
|
372
384
|
end
|
373
385
|
# unwrap, and replace @include
|
374
|
-
unindent unwrap_rule_block(rule).gsub(/(@include [\w-]+)\(([\$\w\-,\s]*)\)
|
375
|
-
args = $2
|
376
|
-
|
386
|
+
unindent unwrap_rule_block(rule).gsub(/(@include [\w-]+)\(?([\$\w\-,\s]*)\)?/) {
|
387
|
+
name, args = $1, $2
|
388
|
+
sel.gsub(/\s+/, ' ').split(/,\s*/ ).map { |sel_part|
|
389
|
+
"#{cmt}#{name}('#{sel_part}'#{', ' if args && !args.empty?}#{args})"
|
390
|
+
}.join(";\n")
|
377
391
|
}
|
378
392
|
end
|
379
393
|
end
|
@@ -388,6 +402,25 @@ SASS
|
|
388
402
|
end
|
389
403
|
end
|
390
404
|
|
405
|
+
# .btn { ... } -> @mixin btn { ... }; .btn { @include btn }
|
406
|
+
def extract_mixins_from_selectors(file, selectors_to_mixins)
|
407
|
+
selectors_to_mixins.each do |selector, mixin|
|
408
|
+
file = replace_rules file, Regexp.escape(selector), prefix: false do |selector_css|
|
409
|
+
log_transform "#{selector} { ... } -> @mixin #{mixin} { ... }; #{selector} { @include #{mixin} } ", from: 'extract_mixins_from_selectors'
|
410
|
+
<<-SCSS
|
411
|
+
// [converter] extracted from `#{selector}` for libsass compatibility
|
412
|
+
@mixin #{mixin} {#{unwrap_rule_block(selector_css)}
|
413
|
+
}
|
414
|
+
// [converter] extracted as `@mixin #{mixin}` for libsass compatibility
|
415
|
+
#{selector} {
|
416
|
+
@include #{mixin};
|
417
|
+
}
|
418
|
+
SCSS
|
419
|
+
end
|
420
|
+
end
|
421
|
+
file
|
422
|
+
end
|
423
|
+
|
391
424
|
# @include and @extend from LESS:
|
392
425
|
# .mixin() -> @include mixin()
|
393
426
|
# #scope > .mixin() -> @include scope-mixin()
|
@@ -396,14 +429,11 @@ SASS
|
|
396
429
|
mixin_pattern = /(\s+)(([#|\.][\w-]+\s*>\s*)*)\.([\w-]+\(.*\))(?!\s\{)/
|
397
430
|
|
398
431
|
less = less.gsub(mixin_pattern) do |match|
|
399
|
-
matches
|
400
|
-
scope
|
401
|
-
if scope != ''
|
402
|
-
scope = scope.scan(/[\w-]+/).join('-') + '-'
|
403
|
-
end
|
432
|
+
matches = match.scan(mixin_pattern).flatten
|
433
|
+
scope = matches[1] && matches[1] != '' ? matches[1].scan(/[\w-]+/).join('-') + '-' : ''
|
404
434
|
mixin_name = match.scan(/\.([\w-]+)\(.*\)\s?\{?/).first
|
405
435
|
if mixin_name && mixin_names.include?("#{scope}#{mixin_name.first}")
|
406
|
-
"#{matches.first}@include #{scope}#{matches.last
|
436
|
+
"#{matches.first}@include #{scope}#{matches.last.gsub(/;\s*\$/, ', $').sub(/;\)$/, ')').sub(/\(\)$/, '')}"
|
407
437
|
else
|
408
438
|
"#{matches.first}@extend .#{scope}#{matches.last.gsub(/\(\)/, '')}"
|
409
439
|
end
|
@@ -414,7 +444,7 @@ SASS
|
|
414
444
|
selector =~ /\.([\w-]+)/
|
415
445
|
mixin = $1
|
416
446
|
if mixin && mixin_names.include?(mixin)
|
417
|
-
"@include #{mixin}
|
447
|
+
"@include #{mixin}"
|
418
448
|
else
|
419
449
|
"@extend #{selector}"
|
420
450
|
end
|
@@ -548,16 +578,20 @@ SASS
|
|
548
578
|
# option :comments -- include immediately preceding comments in rule_block
|
549
579
|
#
|
550
580
|
# replace_rules(".a{ \n .b{} }", '.b') { |rule, pos| ">#{rule}<" } #=> ".a{ \n >.b{}< }"
|
551
|
-
def replace_rules(less,
|
552
|
-
options
|
553
|
-
less
|
554
|
-
s
|
555
|
-
rule_re
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
581
|
+
def replace_rules(less, selector = SELECTOR_RE, options = {}, &block)
|
582
|
+
options = {prefix: true, comments: true}.merge(options || {})
|
583
|
+
less = less.dup
|
584
|
+
s = CharStringScanner.new(less)
|
585
|
+
rule_re = if options[:prefix]
|
586
|
+
/(?:#{selector}[#{SELECTOR_CHAR})=(\s]*?#{RULE_OPEN_BRACE_RE})/
|
587
|
+
else
|
588
|
+
/#{selector}[\s]*#{RULE_OPEN_BRACE_RE}/
|
589
|
+
end
|
590
|
+
rule_start_re = if options[:comments]
|
591
|
+
/(?:#{COMMENT_RE}*)^#{rule_re}/
|
592
|
+
else
|
593
|
+
/^#{rule_re}/
|
594
|
+
end
|
561
595
|
|
562
596
|
positions = []
|
563
597
|
while (rule_start = s.scan_next(rule_start_re))
|
data/tasks/converter/network.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'shellwords'
|
1
2
|
class Converter
|
2
3
|
module Network
|
3
4
|
protected
|
@@ -58,12 +59,17 @@ class Converter
|
|
58
59
|
|
59
60
|
# get sha of the branch (= the latest commit)
|
60
61
|
def get_branch_sha
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
62
|
+
@branch_sha ||= begin
|
63
|
+
if @branch + "\n" == %x[git rev-parse #@branch]
|
64
|
+
@branch
|
65
|
+
else
|
66
|
+
cmd = "git ls-remote #{Shellwords.escape "https://github.com/#@repo"} #@branch"
|
67
|
+
log cmd
|
68
|
+
result = %x[#{cmd}]
|
69
|
+
raise 'Could not get branch sha!' unless $?.success? && !result.empty?
|
70
|
+
result.split(/\s+/).first
|
71
|
+
end
|
72
|
+
end
|
67
73
|
end
|
68
74
|
|
69
75
|
# Get the sha of a dir
|
@@ -0,0 +1,866 @@
|
|
1
|
+
// Override Bootstrap variables here (defaults from bootstrap-sass v3.3.1.0):
|
2
|
+
|
3
|
+
// When true, asset path helpers are used, otherwise the regular CSS `url()` is used.
|
4
|
+
// When there no function is defined, `fn('')` is parsed as string that equals the right hand side
|
5
|
+
// NB: in Sass 3.3 there is a native function: function-exists(twbs-font-path)
|
6
|
+
// $bootstrap-sass-asset-helper: (twbs-font-path("") != unquote('twbs-font-path("")'))
|
7
|
+
|
8
|
+
//
|
9
|
+
// Variables
|
10
|
+
// --------------------------------------------------
|
11
|
+
|
12
|
+
|
13
|
+
//== Colors
|
14
|
+
//
|
15
|
+
//## Gray and brand colors for use across Bootstrap.
|
16
|
+
|
17
|
+
// $gray-base: #000
|
18
|
+
// $gray-darker: lighten($gray-base, 13.5%) // #222
|
19
|
+
// $gray-dark: lighten($gray-base, 20%) // #333
|
20
|
+
// $gray: lighten($gray-base, 33.5%) // #555
|
21
|
+
// $gray-light: lighten($gray-base, 46.7%) // #777
|
22
|
+
// $gray-lighter: lighten($gray-base, 93.5%) // #eee
|
23
|
+
|
24
|
+
// $brand-primary: darken(#428bca, 6.5%)
|
25
|
+
// $brand-success: #5cb85c
|
26
|
+
// $brand-info: #5bc0de
|
27
|
+
// $brand-warning: #f0ad4e
|
28
|
+
// $brand-danger: #d9534f
|
29
|
+
|
30
|
+
|
31
|
+
//== Scaffolding
|
32
|
+
//
|
33
|
+
//## Settings for some of the most global styles.
|
34
|
+
|
35
|
+
//** Background color for `<body>`.
|
36
|
+
// $body-bg: #fff
|
37
|
+
//** Global text color on `<body>`.
|
38
|
+
// $text-color: $gray-dark
|
39
|
+
|
40
|
+
//** Global textual link color.
|
41
|
+
// $link-color: $brand-primary
|
42
|
+
//** Link hover color set via `darken()` function.
|
43
|
+
// $link-hover-color: darken($link-color, 15%)
|
44
|
+
//** Link hover decoration.
|
45
|
+
// $link-hover-decoration: underline
|
46
|
+
|
47
|
+
|
48
|
+
//== Typography
|
49
|
+
//
|
50
|
+
//## Font, line-height, and color for body text, headings, and more.
|
51
|
+
|
52
|
+
// $font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif
|
53
|
+
// $font-family-serif: Georgia, "Times New Roman", Times, serif
|
54
|
+
//** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
|
55
|
+
// $font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace
|
56
|
+
// $font-family-base: $font-family-sans-serif
|
57
|
+
|
58
|
+
// $font-size-base: 14px
|
59
|
+
// $font-size-large: ceil(($font-size-base * 1.25)) // ~18px
|
60
|
+
// $font-size-small: ceil(($font-size-base * 0.85)) // ~12px
|
61
|
+
|
62
|
+
// $font-size-h1: floor(($font-size-base * 2.6)) // ~36px
|
63
|
+
// $font-size-h2: floor(($font-size-base * 2.15)) // ~30px
|
64
|
+
// $font-size-h3: ceil(($font-size-base * 1.7)) // ~24px
|
65
|
+
// $font-size-h4: ceil(($font-size-base * 1.25)) // ~18px
|
66
|
+
// $font-size-h5: $font-size-base
|
67
|
+
// $font-size-h6: ceil(($font-size-base * 0.85)) // ~12px
|
68
|
+
|
69
|
+
//** Unit-less `line-height` for use in components like buttons.
|
70
|
+
// $line-height-base: 1.428571429 // 20/14
|
71
|
+
//** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
|
72
|
+
// $line-height-computed: floor(($font-size-base * $line-height-base)) // ~20px
|
73
|
+
|
74
|
+
//** By default, this inherits from the `<body>`.
|
75
|
+
// $headings-font-family: inherit
|
76
|
+
// $headings-font-weight: 500
|
77
|
+
// $headings-line-height: 1.1
|
78
|
+
// $headings-color: inherit
|
79
|
+
|
80
|
+
|
81
|
+
//== Iconography
|
82
|
+
//
|
83
|
+
//## Specify custom location and filename of the included Glyphicons icon font. Useful for those including Bootstrap via Bower.
|
84
|
+
|
85
|
+
//** Load fonts from this directory.
|
86
|
+
|
87
|
+
// [converter] Asset helpers such as Sprockets and Node.js Mincer do not resolve relative paths
|
88
|
+
// $icon-font-path: if($bootstrap-sass-asset-helper, "bootstrap/", "../fonts/bootstrap/")
|
89
|
+
|
90
|
+
//** File name for all font files.
|
91
|
+
// $icon-font-name: "glyphicons-halflings-regular"
|
92
|
+
//** Element ID within SVG icon file.
|
93
|
+
// $icon-font-svg-id: "glyphicons_halflingsregular"
|
94
|
+
|
95
|
+
|
96
|
+
//== Components
|
97
|
+
//
|
98
|
+
//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
|
99
|
+
|
100
|
+
// $padding-base-vertical: 6px
|
101
|
+
// $padding-base-horizontal: 12px
|
102
|
+
|
103
|
+
// $padding-large-vertical: 10px
|
104
|
+
// $padding-large-horizontal: 16px
|
105
|
+
|
106
|
+
// $padding-small-vertical: 5px
|
107
|
+
// $padding-small-horizontal: 10px
|
108
|
+
|
109
|
+
// $padding-xs-vertical: 1px
|
110
|
+
// $padding-xs-horizontal: 5px
|
111
|
+
|
112
|
+
// $line-height-large: 1.33
|
113
|
+
// $line-height-small: 1.5
|
114
|
+
|
115
|
+
// $border-radius-base: 4px
|
116
|
+
// $border-radius-large: 6px
|
117
|
+
// $border-radius-small: 3px
|
118
|
+
|
119
|
+
//** Global color for active items (e.g., navs or dropdowns).
|
120
|
+
// $component-active-color: #fff
|
121
|
+
//** Global background color for active items (e.g., navs or dropdowns).
|
122
|
+
// $component-active-bg: $brand-primary
|
123
|
+
|
124
|
+
//** Width of the `border` for generating carets that indicator dropdowns.
|
125
|
+
// $caret-width-base: 4px
|
126
|
+
//** Carets increase slightly in size for larger components.
|
127
|
+
// $caret-width-large: 5px
|
128
|
+
|
129
|
+
|
130
|
+
//== Tables
|
131
|
+
//
|
132
|
+
//## Customizes the `.table` component with basic values, each used across all table variations.
|
133
|
+
|
134
|
+
//** Padding for `<th>`s and `<td>`s.
|
135
|
+
// $table-cell-padding: 8px
|
136
|
+
//** Padding for cells in `.table-condensed`.
|
137
|
+
// $table-condensed-cell-padding: 5px
|
138
|
+
|
139
|
+
//** Default background color used for all tables.
|
140
|
+
// $table-bg: transparent
|
141
|
+
//** Background color used for `.table-striped`.
|
142
|
+
// $table-bg-accent: #f9f9f9
|
143
|
+
//** Background color used for `.table-hover`.
|
144
|
+
// $table-bg-hover: #f5f5f5
|
145
|
+
// $table-bg-active: $table-bg-hover
|
146
|
+
|
147
|
+
//** Border color for table and cell borders.
|
148
|
+
// $table-border-color: #ddd
|
149
|
+
|
150
|
+
|
151
|
+
//== Buttons
|
152
|
+
//
|
153
|
+
//## For each of Bootstrap's buttons, define text, background and border color.
|
154
|
+
|
155
|
+
// $btn-font-weight: normal
|
156
|
+
|
157
|
+
// $btn-default-color: #333
|
158
|
+
// $btn-default-bg: #fff
|
159
|
+
// $btn-default-border: #ccc
|
160
|
+
|
161
|
+
// $btn-primary-color: #fff
|
162
|
+
// $btn-primary-bg: $brand-primary
|
163
|
+
// $btn-primary-border: darken($btn-primary-bg, 5%)
|
164
|
+
|
165
|
+
// $btn-success-color: #fff
|
166
|
+
// $btn-success-bg: $brand-success
|
167
|
+
// $btn-success-border: darken($btn-success-bg, 5%)
|
168
|
+
|
169
|
+
// $btn-info-color: #fff
|
170
|
+
// $btn-info-bg: $brand-info
|
171
|
+
// $btn-info-border: darken($btn-info-bg, 5%)
|
172
|
+
|
173
|
+
// $btn-warning-color: #fff
|
174
|
+
// $btn-warning-bg: $brand-warning
|
175
|
+
// $btn-warning-border: darken($btn-warning-bg, 5%)
|
176
|
+
|
177
|
+
// $btn-danger-color: #fff
|
178
|
+
// $btn-danger-bg: $brand-danger
|
179
|
+
// $btn-danger-border: darken($btn-danger-bg, 5%)
|
180
|
+
|
181
|
+
// $btn-link-disabled-color: $gray-light
|
182
|
+
|
183
|
+
|
184
|
+
//== Forms
|
185
|
+
//
|
186
|
+
//##
|
187
|
+
|
188
|
+
//** `<input>` background color
|
189
|
+
// $input-bg: #fff
|
190
|
+
//** `<input disabled>` background color
|
191
|
+
// $input-bg-disabled: $gray-lighter
|
192
|
+
|
193
|
+
//** Text color for `<input>`s
|
194
|
+
// $input-color: $gray
|
195
|
+
//** `<input>` border color
|
196
|
+
// $input-border: #ccc
|
197
|
+
|
198
|
+
// TODO: Rename `$input-border-radius` to `$input-border-radius-base` in v4
|
199
|
+
//** Default `.form-control` border radius
|
200
|
+
// $input-border-radius: $border-radius-base
|
201
|
+
//** Large `.form-control` border radius
|
202
|
+
// $input-border-radius-large: $border-radius-large
|
203
|
+
//** Small `.form-control` border radius
|
204
|
+
// $input-border-radius-small: $border-radius-small
|
205
|
+
|
206
|
+
//** Border color for inputs on focus
|
207
|
+
// $input-border-focus: #66afe9
|
208
|
+
|
209
|
+
//** Placeholder text color
|
210
|
+
// $input-color-placeholder: #999
|
211
|
+
|
212
|
+
//** Default `.form-control` height
|
213
|
+
// $input-height-base: ($line-height-computed + ($padding-base-vertical * 2) + 2)
|
214
|
+
//** Large `.form-control` height
|
215
|
+
// $input-height-large: (ceil($font-size-large * $line-height-large) + ($padding-large-vertical * 2) + 2)
|
216
|
+
//** Small `.form-control` height
|
217
|
+
// $input-height-small: (floor($font-size-small * $line-height-small) + ($padding-small-vertical * 2) + 2)
|
218
|
+
|
219
|
+
// $legend-color: $gray-dark
|
220
|
+
// $legend-border-color: #e5e5e5
|
221
|
+
|
222
|
+
//** Background color for textual input addons
|
223
|
+
// $input-group-addon-bg: $gray-lighter
|
224
|
+
//** Border color for textual input addons
|
225
|
+
// $input-group-addon-border-color: $input-border
|
226
|
+
|
227
|
+
//** Disabled cursor for form controls and buttons.
|
228
|
+
// $cursor-disabled: not-allowed
|
229
|
+
|
230
|
+
|
231
|
+
//== Dropdowns
|
232
|
+
//
|
233
|
+
//## Dropdown menu container and contents.
|
234
|
+
|
235
|
+
//** Background for the dropdown menu.
|
236
|
+
// $dropdown-bg: #fff
|
237
|
+
//** Dropdown menu `border-color`.
|
238
|
+
// $dropdown-border: rgba(0,0,0,.15)
|
239
|
+
//** Dropdown menu `border-color` **for IE8**.
|
240
|
+
// $dropdown-fallback-border: #ccc
|
241
|
+
//** Divider color for between dropdown items.
|
242
|
+
// $dropdown-divider-bg: #e5e5e5
|
243
|
+
|
244
|
+
//** Dropdown link text color.
|
245
|
+
// $dropdown-link-color: $gray-dark
|
246
|
+
//** Hover color for dropdown links.
|
247
|
+
// $dropdown-link-hover-color: darken($gray-dark, 5%)
|
248
|
+
//** Hover background for dropdown links.
|
249
|
+
// $dropdown-link-hover-bg: #f5f5f5
|
250
|
+
|
251
|
+
//** Active dropdown menu item text color.
|
252
|
+
// $dropdown-link-active-color: $component-active-color
|
253
|
+
//** Active dropdown menu item background color.
|
254
|
+
// $dropdown-link-active-bg: $component-active-bg
|
255
|
+
|
256
|
+
//** Disabled dropdown menu item background color.
|
257
|
+
// $dropdown-link-disabled-color: $gray-light
|
258
|
+
|
259
|
+
//** Text color for headers within dropdown menus.
|
260
|
+
// $dropdown-header-color: $gray-light
|
261
|
+
|
262
|
+
//** Deprecated `$dropdown-caret-color` as of v3.1.0
|
263
|
+
// $dropdown-caret-color: #000
|
264
|
+
|
265
|
+
|
266
|
+
//-- Z-index master list
|
267
|
+
//
|
268
|
+
// Warning: Avoid customizing these values. They're used for a bird's eye view
|
269
|
+
// of components dependent on the z-axis and are designed to all work together.
|
270
|
+
//
|
271
|
+
// Note: These variables are not generated into the Customizer.
|
272
|
+
|
273
|
+
// $zindex-navbar: 1000
|
274
|
+
// $zindex-dropdown: 1000
|
275
|
+
// $zindex-popover: 1060
|
276
|
+
// $zindex-tooltip: 1070
|
277
|
+
// $zindex-navbar-fixed: 1030
|
278
|
+
// $zindex-modal: 1040
|
279
|
+
|
280
|
+
|
281
|
+
//== Media queries breakpoints
|
282
|
+
//
|
283
|
+
//## Define the breakpoints at which your layout will change, adapting to different screen sizes.
|
284
|
+
|
285
|
+
// Extra small screen / phone
|
286
|
+
//** Deprecated `$screen-xs` as of v3.0.1
|
287
|
+
// $screen-xs: 480px
|
288
|
+
//** Deprecated `$screen-xs-min` as of v3.2.0
|
289
|
+
// $screen-xs-min: $screen-xs
|
290
|
+
//** Deprecated `$screen-phone` as of v3.0.1
|
291
|
+
// $screen-phone: $screen-xs-min
|
292
|
+
|
293
|
+
// Small screen / tablet
|
294
|
+
//** Deprecated `$screen-sm` as of v3.0.1
|
295
|
+
// $screen-sm: 768px
|
296
|
+
// $screen-sm-min: $screen-sm
|
297
|
+
//** Deprecated `$screen-tablet` as of v3.0.1
|
298
|
+
// $screen-tablet: $screen-sm-min
|
299
|
+
|
300
|
+
// Medium screen / desktop
|
301
|
+
//** Deprecated `$screen-md` as of v3.0.1
|
302
|
+
// $screen-md: 992px
|
303
|
+
// $screen-md-min: $screen-md
|
304
|
+
//** Deprecated `$screen-desktop` as of v3.0.1
|
305
|
+
// $screen-desktop: $screen-md-min
|
306
|
+
|
307
|
+
// Large screen / wide desktop
|
308
|
+
//** Deprecated `$screen-lg` as of v3.0.1
|
309
|
+
// $screen-lg: 1200px
|
310
|
+
// $screen-lg-min: $screen-lg
|
311
|
+
//** Deprecated `$screen-lg-desktop` as of v3.0.1
|
312
|
+
// $screen-lg-desktop: $screen-lg-min
|
313
|
+
|
314
|
+
// So media queries don't overlap when required, provide a maximum
|
315
|
+
// $screen-xs-max: ($screen-sm-min - 1)
|
316
|
+
// $screen-sm-max: ($screen-md-min - 1)
|
317
|
+
// $screen-md-max: ($screen-lg-min - 1)
|
318
|
+
|
319
|
+
|
320
|
+
//== Grid system
|
321
|
+
//
|
322
|
+
//## Define your custom responsive grid.
|
323
|
+
|
324
|
+
//** Number of columns in the grid.
|
325
|
+
// $grid-columns: 12
|
326
|
+
//** Padding between columns. Gets divided in half for the left and right.
|
327
|
+
// $grid-gutter-width: 30px
|
328
|
+
// Navbar collapse
|
329
|
+
//** Point at which the navbar becomes uncollapsed.
|
330
|
+
// $grid-float-breakpoint: $screen-sm-min
|
331
|
+
//** Point at which the navbar begins collapsing.
|
332
|
+
// $grid-float-breakpoint-max: ($grid-float-breakpoint - 1)
|
333
|
+
|
334
|
+
|
335
|
+
//== Container sizes
|
336
|
+
//
|
337
|
+
//## Define the maximum width of `.container` for different screen sizes.
|
338
|
+
|
339
|
+
// Small screen / tablet
|
340
|
+
// $container-tablet: (720px + $grid-gutter-width)
|
341
|
+
//** For `$screen-sm-min` and up.
|
342
|
+
// $container-sm: $container-tablet
|
343
|
+
|
344
|
+
// Medium screen / desktop
|
345
|
+
// $container-desktop: (940px + $grid-gutter-width)
|
346
|
+
//** For `$screen-md-min` and up.
|
347
|
+
// $container-md: $container-desktop
|
348
|
+
|
349
|
+
// Large screen / wide desktop
|
350
|
+
// $container-large-desktop: (1140px + $grid-gutter-width)
|
351
|
+
//** For `$screen-lg-min` and up.
|
352
|
+
// $container-lg: $container-large-desktop
|
353
|
+
|
354
|
+
|
355
|
+
//== Navbar
|
356
|
+
//
|
357
|
+
//##
|
358
|
+
|
359
|
+
// Basics of a navbar
|
360
|
+
// $navbar-height: 50px
|
361
|
+
// $navbar-margin-bottom: $line-height-computed
|
362
|
+
// $navbar-border-radius: $border-radius-base
|
363
|
+
// $navbar-padding-horizontal: floor(($grid-gutter-width / 2))
|
364
|
+
// $navbar-padding-vertical: (($navbar-height - $line-height-computed) / 2)
|
365
|
+
// $navbar-collapse-max-height: 340px
|
366
|
+
|
367
|
+
// $navbar-default-color: #777
|
368
|
+
// $navbar-default-bg: #f8f8f8
|
369
|
+
// $navbar-default-border: darken($navbar-default-bg, 6.5%)
|
370
|
+
|
371
|
+
// Navbar links
|
372
|
+
// $navbar-default-link-color: #777
|
373
|
+
// $navbar-default-link-hover-color: #333
|
374
|
+
// $navbar-default-link-hover-bg: transparent
|
375
|
+
// $navbar-default-link-active-color: #555
|
376
|
+
// $navbar-default-link-active-bg: darken($navbar-default-bg, 6.5%)
|
377
|
+
// $navbar-default-link-disabled-color: #ccc
|
378
|
+
// $navbar-default-link-disabled-bg: transparent
|
379
|
+
|
380
|
+
// Navbar brand label
|
381
|
+
// $navbar-default-brand-color: $navbar-default-link-color
|
382
|
+
// $navbar-default-brand-hover-color: darken($navbar-default-brand-color, 10%)
|
383
|
+
// $navbar-default-brand-hover-bg: transparent
|
384
|
+
|
385
|
+
// Navbar toggle
|
386
|
+
// $navbar-default-toggle-hover-bg: #ddd
|
387
|
+
// $navbar-default-toggle-icon-bar-bg: #888
|
388
|
+
// $navbar-default-toggle-border-color: #ddd
|
389
|
+
|
390
|
+
|
391
|
+
// Inverted navbar
|
392
|
+
// Reset inverted navbar basics
|
393
|
+
// $navbar-inverse-color: lighten($gray-light, 15%)
|
394
|
+
// $navbar-inverse-bg: #222
|
395
|
+
// $navbar-inverse-border: darken($navbar-inverse-bg, 10%)
|
396
|
+
|
397
|
+
// Inverted navbar links
|
398
|
+
// $navbar-inverse-link-color: lighten($gray-light, 15%)
|
399
|
+
// $navbar-inverse-link-hover-color: #fff
|
400
|
+
// $navbar-inverse-link-hover-bg: transparent
|
401
|
+
// $navbar-inverse-link-active-color: $navbar-inverse-link-hover-color
|
402
|
+
// $navbar-inverse-link-active-bg: darken($navbar-inverse-bg, 10%)
|
403
|
+
// $navbar-inverse-link-disabled-color: #444
|
404
|
+
// $navbar-inverse-link-disabled-bg: transparent
|
405
|
+
|
406
|
+
// Inverted navbar brand label
|
407
|
+
// $navbar-inverse-brand-color: $navbar-inverse-link-color
|
408
|
+
// $navbar-inverse-brand-hover-color: #fff
|
409
|
+
// $navbar-inverse-brand-hover-bg: transparent
|
410
|
+
|
411
|
+
// Inverted navbar toggle
|
412
|
+
// $navbar-inverse-toggle-hover-bg: #333
|
413
|
+
// $navbar-inverse-toggle-icon-bar-bg: #fff
|
414
|
+
// $navbar-inverse-toggle-border-color: #333
|
415
|
+
|
416
|
+
|
417
|
+
//== Navs
|
418
|
+
//
|
419
|
+
//##
|
420
|
+
|
421
|
+
//=== Shared nav styles
|
422
|
+
// $nav-link-padding: 10px 15px
|
423
|
+
// $nav-link-hover-bg: $gray-lighter
|
424
|
+
|
425
|
+
// $nav-disabled-link-color: $gray-light
|
426
|
+
// $nav-disabled-link-hover-color: $gray-light
|
427
|
+
|
428
|
+
//== Tabs
|
429
|
+
// $nav-tabs-border-color: #ddd
|
430
|
+
|
431
|
+
// $nav-tabs-link-hover-border-color: $gray-lighter
|
432
|
+
|
433
|
+
// $nav-tabs-active-link-hover-bg: $body-bg
|
434
|
+
// $nav-tabs-active-link-hover-color: $gray
|
435
|
+
// $nav-tabs-active-link-hover-border-color: #ddd
|
436
|
+
|
437
|
+
// $nav-tabs-justified-link-border-color: #ddd
|
438
|
+
// $nav-tabs-justified-active-link-border-color: $body-bg
|
439
|
+
|
440
|
+
//== Pills
|
441
|
+
// $nav-pills-border-radius: $border-radius-base
|
442
|
+
// $nav-pills-active-link-hover-bg: $component-active-bg
|
443
|
+
// $nav-pills-active-link-hover-color: $component-active-color
|
444
|
+
|
445
|
+
|
446
|
+
//== Pagination
|
447
|
+
//
|
448
|
+
//##
|
449
|
+
|
450
|
+
// $pagination-color: $link-color
|
451
|
+
// $pagination-bg: #fff
|
452
|
+
// $pagination-border: #ddd
|
453
|
+
|
454
|
+
// $pagination-hover-color: $link-hover-color
|
455
|
+
// $pagination-hover-bg: $gray-lighter
|
456
|
+
// $pagination-hover-border: #ddd
|
457
|
+
|
458
|
+
// $pagination-active-color: #fff
|
459
|
+
// $pagination-active-bg: $brand-primary
|
460
|
+
// $pagination-active-border: $brand-primary
|
461
|
+
|
462
|
+
// $pagination-disabled-color: $gray-light
|
463
|
+
// $pagination-disabled-bg: #fff
|
464
|
+
// $pagination-disabled-border: #ddd
|
465
|
+
|
466
|
+
|
467
|
+
//== Pager
|
468
|
+
//
|
469
|
+
//##
|
470
|
+
|
471
|
+
// $pager-bg: $pagination-bg
|
472
|
+
// $pager-border: $pagination-border
|
473
|
+
// $pager-border-radius: 15px
|
474
|
+
|
475
|
+
// $pager-hover-bg: $pagination-hover-bg
|
476
|
+
|
477
|
+
// $pager-active-bg: $pagination-active-bg
|
478
|
+
// $pager-active-color: $pagination-active-color
|
479
|
+
|
480
|
+
// $pager-disabled-color: $pagination-disabled-color
|
481
|
+
|
482
|
+
|
483
|
+
//== Jumbotron
|
484
|
+
//
|
485
|
+
//##
|
486
|
+
|
487
|
+
// $jumbotron-padding: 30px
|
488
|
+
// $jumbotron-color: inherit
|
489
|
+
// $jumbotron-bg: $gray-lighter
|
490
|
+
// $jumbotron-heading-color: inherit
|
491
|
+
// $jumbotron-font-size: ceil(($font-size-base * 1.5))
|
492
|
+
|
493
|
+
|
494
|
+
//== Form states and alerts
|
495
|
+
//
|
496
|
+
//## Define colors for form feedback states and, by default, alerts.
|
497
|
+
|
498
|
+
// $state-success-text: #3c763d
|
499
|
+
// $state-success-bg: #dff0d8
|
500
|
+
// $state-success-border: darken(adjust-hue($state-success-bg, -10), 5%)
|
501
|
+
|
502
|
+
// $state-info-text: #31708f
|
503
|
+
// $state-info-bg: #d9edf7
|
504
|
+
// $state-info-border: darken(adjust-hue($state-info-bg, -10), 7%)
|
505
|
+
|
506
|
+
// $state-warning-text: #8a6d3b
|
507
|
+
// $state-warning-bg: #fcf8e3
|
508
|
+
// $state-warning-border: darken(adjust-hue($state-warning-bg, -10), 5%)
|
509
|
+
|
510
|
+
// $state-danger-text: #a94442
|
511
|
+
// $state-danger-bg: #f2dede
|
512
|
+
// $state-danger-border: darken(adjust-hue($state-danger-bg, -10), 5%)
|
513
|
+
|
514
|
+
|
515
|
+
//== Tooltips
|
516
|
+
//
|
517
|
+
//##
|
518
|
+
|
519
|
+
//** Tooltip max width
|
520
|
+
// $tooltip-max-width: 200px
|
521
|
+
//** Tooltip text color
|
522
|
+
// $tooltip-color: #fff
|
523
|
+
//** Tooltip background color
|
524
|
+
// $tooltip-bg: #000
|
525
|
+
// $tooltip-opacity: .9
|
526
|
+
|
527
|
+
//** Tooltip arrow width
|
528
|
+
// $tooltip-arrow-width: 5px
|
529
|
+
//** Tooltip arrow color
|
530
|
+
// $tooltip-arrow-color: $tooltip-bg
|
531
|
+
|
532
|
+
|
533
|
+
//== Popovers
|
534
|
+
//
|
535
|
+
//##
|
536
|
+
|
537
|
+
//** Popover body background color
|
538
|
+
// $popover-bg: #fff
|
539
|
+
//** Popover maximum width
|
540
|
+
// $popover-max-width: 276px
|
541
|
+
//** Popover border color
|
542
|
+
// $popover-border-color: rgba(0,0,0,.2)
|
543
|
+
//** Popover fallback border color
|
544
|
+
// $popover-fallback-border-color: #ccc
|
545
|
+
|
546
|
+
//** Popover title background color
|
547
|
+
// $popover-title-bg: darken($popover-bg, 3%)
|
548
|
+
|
549
|
+
//** Popover arrow width
|
550
|
+
// $popover-arrow-width: 10px
|
551
|
+
//** Popover arrow color
|
552
|
+
// $popover-arrow-color: $popover-bg
|
553
|
+
|
554
|
+
//** Popover outer arrow width
|
555
|
+
// $popover-arrow-outer-width: ($popover-arrow-width + 1)
|
556
|
+
//** Popover outer arrow color
|
557
|
+
// $popover-arrow-outer-color: fade_in($popover-border-color, 0.05)
|
558
|
+
//** Popover outer arrow fallback color
|
559
|
+
// $popover-arrow-outer-fallback-color: darken($popover-fallback-border-color, 20%)
|
560
|
+
|
561
|
+
|
562
|
+
//== Labels
|
563
|
+
//
|
564
|
+
//##
|
565
|
+
|
566
|
+
//** Default label background color
|
567
|
+
// $label-default-bg: $gray-light
|
568
|
+
//** Primary label background color
|
569
|
+
// $label-primary-bg: $brand-primary
|
570
|
+
//** Success label background color
|
571
|
+
// $label-success-bg: $brand-success
|
572
|
+
//** Info label background color
|
573
|
+
// $label-info-bg: $brand-info
|
574
|
+
//** Warning label background color
|
575
|
+
// $label-warning-bg: $brand-warning
|
576
|
+
//** Danger label background color
|
577
|
+
// $label-danger-bg: $brand-danger
|
578
|
+
|
579
|
+
//** Default label text color
|
580
|
+
// $label-color: #fff
|
581
|
+
//** Default text color of a linked label
|
582
|
+
// $label-link-hover-color: #fff
|
583
|
+
|
584
|
+
|
585
|
+
//== Modals
|
586
|
+
//
|
587
|
+
//##
|
588
|
+
|
589
|
+
//** Padding applied to the modal body
|
590
|
+
// $modal-inner-padding: 15px
|
591
|
+
|
592
|
+
//** Padding applied to the modal title
|
593
|
+
// $modal-title-padding: 15px
|
594
|
+
//** Modal title line-height
|
595
|
+
// $modal-title-line-height: $line-height-base
|
596
|
+
|
597
|
+
//** Background color of modal content area
|
598
|
+
// $modal-content-bg: #fff
|
599
|
+
//** Modal content border color
|
600
|
+
// $modal-content-border-color: rgba(0,0,0,.2)
|
601
|
+
//** Modal content border color **for IE8**
|
602
|
+
// $modal-content-fallback-border-color: #999
|
603
|
+
|
604
|
+
//** Modal backdrop background color
|
605
|
+
// $modal-backdrop-bg: #000
|
606
|
+
//** Modal backdrop opacity
|
607
|
+
// $modal-backdrop-opacity: .5
|
608
|
+
//** Modal header border color
|
609
|
+
// $modal-header-border-color: #e5e5e5
|
610
|
+
//** Modal footer border color
|
611
|
+
// $modal-footer-border-color: $modal-header-border-color
|
612
|
+
|
613
|
+
// $modal-lg: 900px
|
614
|
+
// $modal-md: 600px
|
615
|
+
// $modal-sm: 300px
|
616
|
+
|
617
|
+
|
618
|
+
//== Alerts
|
619
|
+
//
|
620
|
+
//## Define alert colors, border radius, and padding.
|
621
|
+
|
622
|
+
// $alert-padding: 15px
|
623
|
+
// $alert-border-radius: $border-radius-base
|
624
|
+
// $alert-link-font-weight: bold
|
625
|
+
|
626
|
+
// $alert-success-bg: $state-success-bg
|
627
|
+
// $alert-success-text: $state-success-text
|
628
|
+
// $alert-success-border: $state-success-border
|
629
|
+
|
630
|
+
// $alert-info-bg: $state-info-bg
|
631
|
+
// $alert-info-text: $state-info-text
|
632
|
+
// $alert-info-border: $state-info-border
|
633
|
+
|
634
|
+
// $alert-warning-bg: $state-warning-bg
|
635
|
+
// $alert-warning-text: $state-warning-text
|
636
|
+
// $alert-warning-border: $state-warning-border
|
637
|
+
|
638
|
+
// $alert-danger-bg: $state-danger-bg
|
639
|
+
// $alert-danger-text: $state-danger-text
|
640
|
+
// $alert-danger-border: $state-danger-border
|
641
|
+
|
642
|
+
|
643
|
+
//== Progress bars
|
644
|
+
//
|
645
|
+
//##
|
646
|
+
|
647
|
+
//** Background color of the whole progress component
|
648
|
+
// $progress-bg: #f5f5f5
|
649
|
+
//** Progress bar text color
|
650
|
+
// $progress-bar-color: #fff
|
651
|
+
//** Variable for setting rounded corners on progress bar.
|
652
|
+
// $progress-border-radius: $border-radius-base
|
653
|
+
|
654
|
+
//** Default progress bar color
|
655
|
+
// $progress-bar-bg: $brand-primary
|
656
|
+
//** Success progress bar color
|
657
|
+
// $progress-bar-success-bg: $brand-success
|
658
|
+
//** Warning progress bar color
|
659
|
+
// $progress-bar-warning-bg: $brand-warning
|
660
|
+
//** Danger progress bar color
|
661
|
+
// $progress-bar-danger-bg: $brand-danger
|
662
|
+
//** Info progress bar color
|
663
|
+
// $progress-bar-info-bg: $brand-info
|
664
|
+
|
665
|
+
|
666
|
+
//== List group
|
667
|
+
//
|
668
|
+
//##
|
669
|
+
|
670
|
+
//** Background color on `.list-group-item`
|
671
|
+
// $list-group-bg: #fff
|
672
|
+
//** `.list-group-item` border color
|
673
|
+
// $list-group-border: #ddd
|
674
|
+
//** List group border radius
|
675
|
+
// $list-group-border-radius: $border-radius-base
|
676
|
+
|
677
|
+
//** Background color of single list items on hover
|
678
|
+
// $list-group-hover-bg: #f5f5f5
|
679
|
+
//** Text color of active list items
|
680
|
+
// $list-group-active-color: $component-active-color
|
681
|
+
//** Background color of active list items
|
682
|
+
// $list-group-active-bg: $component-active-bg
|
683
|
+
//** Border color of active list elements
|
684
|
+
// $list-group-active-border: $list-group-active-bg
|
685
|
+
//** Text color for content within active list items
|
686
|
+
// $list-group-active-text-color: lighten($list-group-active-bg, 40%)
|
687
|
+
|
688
|
+
//** Text color of disabled list items
|
689
|
+
// $list-group-disabled-color: $gray-light
|
690
|
+
//** Background color of disabled list items
|
691
|
+
// $list-group-disabled-bg: $gray-lighter
|
692
|
+
//** Text color for content within disabled list items
|
693
|
+
// $list-group-disabled-text-color: $list-group-disabled-color
|
694
|
+
|
695
|
+
// $list-group-link-color: #555
|
696
|
+
// $list-group-link-hover-color: $list-group-link-color
|
697
|
+
// $list-group-link-heading-color: #333
|
698
|
+
|
699
|
+
|
700
|
+
//== Panels
|
701
|
+
//
|
702
|
+
//##
|
703
|
+
|
704
|
+
// $panel-bg: #fff
|
705
|
+
// $panel-body-padding: 15px
|
706
|
+
// $panel-heading-padding: 10px 15px
|
707
|
+
// $panel-footer-padding: $panel-heading-padding
|
708
|
+
// $panel-border-radius: $border-radius-base
|
709
|
+
|
710
|
+
//** Border color for elements within panels
|
711
|
+
// $panel-inner-border: #ddd
|
712
|
+
// $panel-footer-bg: #f5f5f5
|
713
|
+
|
714
|
+
// $panel-default-text: $gray-dark
|
715
|
+
// $panel-default-border: #ddd
|
716
|
+
// $panel-default-heading-bg: #f5f5f5
|
717
|
+
|
718
|
+
// $panel-primary-text: #fff
|
719
|
+
// $panel-primary-border: $brand-primary
|
720
|
+
// $panel-primary-heading-bg: $brand-primary
|
721
|
+
|
722
|
+
// $panel-success-text: $state-success-text
|
723
|
+
// $panel-success-border: $state-success-border
|
724
|
+
// $panel-success-heading-bg: $state-success-bg
|
725
|
+
|
726
|
+
// $panel-info-text: $state-info-text
|
727
|
+
// $panel-info-border: $state-info-border
|
728
|
+
// $panel-info-heading-bg: $state-info-bg
|
729
|
+
|
730
|
+
// $panel-warning-text: $state-warning-text
|
731
|
+
// $panel-warning-border: $state-warning-border
|
732
|
+
// $panel-warning-heading-bg: $state-warning-bg
|
733
|
+
|
734
|
+
// $panel-danger-text: $state-danger-text
|
735
|
+
// $panel-danger-border: $state-danger-border
|
736
|
+
// $panel-danger-heading-bg: $state-danger-bg
|
737
|
+
|
738
|
+
|
739
|
+
//== Thumbnails
|
740
|
+
//
|
741
|
+
//##
|
742
|
+
|
743
|
+
//** Padding around the thumbnail image
|
744
|
+
// $thumbnail-padding: 4px
|
745
|
+
//** Thumbnail background color
|
746
|
+
// $thumbnail-bg: $body-bg
|
747
|
+
//** Thumbnail border color
|
748
|
+
// $thumbnail-border: #ddd
|
749
|
+
//** Thumbnail border radius
|
750
|
+
// $thumbnail-border-radius: $border-radius-base
|
751
|
+
|
752
|
+
//** Custom text color for thumbnail captions
|
753
|
+
// $thumbnail-caption-color: $text-color
|
754
|
+
//** Padding around the thumbnail caption
|
755
|
+
// $thumbnail-caption-padding: 9px
|
756
|
+
|
757
|
+
|
758
|
+
//== Wells
|
759
|
+
//
|
760
|
+
//##
|
761
|
+
|
762
|
+
// $well-bg: #f5f5f5
|
763
|
+
// $well-border: darken($well-bg, 7%)
|
764
|
+
|
765
|
+
|
766
|
+
//== Badges
|
767
|
+
//
|
768
|
+
//##
|
769
|
+
|
770
|
+
// $badge-color: #fff
|
771
|
+
//** Linked badge text color on hover
|
772
|
+
// $badge-link-hover-color: #fff
|
773
|
+
// $badge-bg: $gray-light
|
774
|
+
|
775
|
+
//** Badge text color in active nav link
|
776
|
+
// $badge-active-color: $link-color
|
777
|
+
//** Badge background color in active nav link
|
778
|
+
// $badge-active-bg: #fff
|
779
|
+
|
780
|
+
// $badge-font-weight: bold
|
781
|
+
// $badge-line-height: 1
|
782
|
+
// $badge-border-radius: 10px
|
783
|
+
|
784
|
+
|
785
|
+
//== Breadcrumbs
|
786
|
+
//
|
787
|
+
//##
|
788
|
+
|
789
|
+
// $breadcrumb-padding-vertical: 8px
|
790
|
+
// $breadcrumb-padding-horizontal: 15px
|
791
|
+
//** Breadcrumb background color
|
792
|
+
// $breadcrumb-bg: #f5f5f5
|
793
|
+
//** Breadcrumb text color
|
794
|
+
// $breadcrumb-color: #ccc
|
795
|
+
//** Text color of current page in the breadcrumb
|
796
|
+
// $breadcrumb-active-color: $gray-light
|
797
|
+
//** Textual separator for between breadcrumb elements
|
798
|
+
// $breadcrumb-separator: "/"
|
799
|
+
|
800
|
+
|
801
|
+
//== Carousel
|
802
|
+
//
|
803
|
+
//##
|
804
|
+
|
805
|
+
// $carousel-text-shadow: 0 1px 2px rgba(0,0,0,.6)
|
806
|
+
|
807
|
+
// $carousel-control-color: #fff
|
808
|
+
// $carousel-control-width: 15%
|
809
|
+
// $carousel-control-opacity: .5
|
810
|
+
// $carousel-control-font-size: 20px
|
811
|
+
|
812
|
+
// $carousel-indicator-active-bg: #fff
|
813
|
+
// $carousel-indicator-border-color: #fff
|
814
|
+
|
815
|
+
// $carousel-caption-color: #fff
|
816
|
+
|
817
|
+
|
818
|
+
//== Close
|
819
|
+
//
|
820
|
+
//##
|
821
|
+
|
822
|
+
// $close-font-weight: bold
|
823
|
+
// $close-color: #000
|
824
|
+
// $close-text-shadow: 0 1px 0 #fff
|
825
|
+
|
826
|
+
|
827
|
+
//== Code
|
828
|
+
//
|
829
|
+
//##
|
830
|
+
|
831
|
+
// $code-color: #c7254e
|
832
|
+
// $code-bg: #f9f2f4
|
833
|
+
|
834
|
+
// $kbd-color: #fff
|
835
|
+
// $kbd-bg: #333
|
836
|
+
|
837
|
+
// $pre-bg: #f5f5f5
|
838
|
+
// $pre-color: $gray-dark
|
839
|
+
// $pre-border-color: #ccc
|
840
|
+
// $pre-scrollable-max-height: 340px
|
841
|
+
|
842
|
+
|
843
|
+
//== Type
|
844
|
+
//
|
845
|
+
//##
|
846
|
+
|
847
|
+
//** Horizontal offset for forms and lists.
|
848
|
+
// $component-offset-horizontal: 180px
|
849
|
+
//** Text muted color
|
850
|
+
// $text-muted: $gray-light
|
851
|
+
//** Abbreviations and acronyms border color
|
852
|
+
// $abbr-border-color: $gray-light
|
853
|
+
//** Headings small color
|
854
|
+
// $headings-small-color: $gray-light
|
855
|
+
//** Blockquote small color
|
856
|
+
// $blockquote-small-color: $gray-light
|
857
|
+
//** Blockquote font size
|
858
|
+
// $blockquote-font-size: ($font-size-base * 1.25)
|
859
|
+
//** Blockquote border color
|
860
|
+
// $blockquote-border-color: $gray-lighter
|
861
|
+
//** Page header border color
|
862
|
+
// $page-header-border-color: $gray-lighter
|
863
|
+
//** Width of horizontal description list titles
|
864
|
+
// $dl-horizontal-offset: $component-offset-horizontal
|
865
|
+
//** Horizontal line color.
|
866
|
+
// $hr-border: $gray-lighter
|