├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── Gemfile ├── LICENSE ├── README.md ├── Rakefile ├── assets ├── fonts │ └── bootstrap │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.svg │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 ├── images │ └── .keep ├── javascripts │ ├── bootstrap-sprockets.js │ ├── bootstrap.js │ ├── bootstrap.min.js │ └── bootstrap │ │ ├── affix.js │ │ ├── alert.js │ │ ├── button.js │ │ ├── carousel.js │ │ ├── collapse.js │ │ ├── dropdown.js │ │ ├── modal.js │ │ ├── popover.js │ │ ├── scrollspy.js │ │ ├── tab.js │ │ ├── tooltip.js │ │ └── transition.js └── stylesheets │ ├── _bootstrap-compass.scss │ ├── _bootstrap-mincer.scss │ ├── _bootstrap-sprockets.scss │ ├── _bootstrap.scss │ └── bootstrap │ ├── _alerts.scss │ ├── _badges.scss │ ├── _breadcrumbs.scss │ ├── _button-groups.scss │ ├── _buttons.scss │ ├── _carousel.scss │ ├── _close.scss │ ├── _code.scss │ ├── _component-animations.scss │ ├── _dropdowns.scss │ ├── _forms.scss │ ├── _glyphicons.scss │ ├── _grid.scss │ ├── _input-groups.scss │ ├── _jumbotron.scss │ ├── _labels.scss │ ├── _list-group.scss │ ├── _media.scss │ ├── _mixins.scss │ ├── _modals.scss │ ├── _navbar.scss │ ├── _navs.scss │ ├── _normalize.scss │ ├── _pager.scss │ ├── _pagination.scss │ ├── _panels.scss │ ├── _popovers.scss │ ├── _print.scss │ ├── _progress-bars.scss │ ├── _responsive-embed.scss │ ├── _responsive-utilities.scss │ ├── _scaffolding.scss │ ├── _tables.scss │ ├── _theme.scss │ ├── _thumbnails.scss │ ├── _tooltip.scss │ ├── _type.scss │ ├── _utilities.scss │ ├── _variables.scss │ ├── _wells.scss │ └── mixins │ ├── _alerts.scss │ ├── _background-variant.scss │ ├── _border-radius.scss │ ├── _buttons.scss │ ├── _center-block.scss │ ├── _clearfix.scss │ ├── _forms.scss │ ├── _gradients.scss │ ├── _grid-framework.scss │ ├── _grid.scss │ ├── _hide-text.scss │ ├── _image.scss │ ├── _labels.scss │ ├── _list-group.scss │ ├── _nav-divider.scss │ ├── _nav-vertical-align.scss │ ├── _opacity.scss │ ├── _pagination.scss │ ├── _panels.scss │ ├── _progress-bar.scss │ ├── _reset-filter.scss │ ├── _reset-text.scss │ ├── _resize.scss │ ├── _responsive-visibility.scss │ ├── _size.scss │ ├── _tab-focus.scss │ ├── _table-row.scss │ ├── _text-emphasis.scss │ ├── _text-overflow.scss │ └── _vendor-prefixes.scss ├── bootstrap-sass.gemspec ├── bower.json ├── composer.json ├── eyeglass-exports.js ├── lib ├── bootstrap-sass.rb └── bootstrap-sass │ ├── engine.rb │ └── version.rb ├── package-lock.json ├── package.json ├── sache.json ├── tasks ├── bower.rake ├── converter.rb └── converter │ ├── char_string_scanner.rb │ ├── fonts_conversion.rb │ ├── js_conversion.rb │ ├── less_conversion.rb │ ├── logger.rb │ └── network.rb ├── templates └── project │ ├── _bootstrap-variables.sass │ ├── manifest.rb │ └── styles.sass └── test ├── compilation_test.rb ├── dummy_node_mincer ├── apple-touch-icon-144-precomposed.png ├── application.css.ejs.scss └── manifest.js ├── dummy_rails ├── README.rdoc ├── Rakefile ├── app │ ├── assets │ │ ├── images │ │ │ └── .keep │ │ ├── javascripts │ │ │ └── application.js │ │ └── stylesheets │ │ │ └── application.sass │ ├── controllers │ │ ├── application_controller.rb │ │ └── pages_controller.rb │ ├── helpers │ │ └── application_helper.rb │ └── views │ │ ├── layouts │ │ └── application.html.erb │ │ └── pages │ │ └── root.html.slim ├── config.ru ├── config │ ├── application.rb │ ├── boot.rb │ ├── environment.rb │ ├── environments │ │ ├── development.rb │ │ ├── production.rb │ │ └── test.rb │ ├── initializers │ │ ├── backtrace_silencers.rb │ │ ├── filter_parameter_logging.rb │ │ ├── inflections.rb │ │ ├── mime_types.rb │ │ ├── secret_token.rb │ │ ├── session_store.rb │ │ └── wrap_parameters.rb │ ├── locales │ │ ├── en.yml │ │ └── es.yml │ └── routes.rb └── log │ └── .keep ├── dummy_sass_only ├── Gemfile ├── compile.rb └── import_all.scss ├── gemfiles └── default.gemfile ├── node_mincer_test.rb ├── node_sass_compile_test.sh ├── pages_test.rb ├── sass_test.rb ├── sprockets_rails_test.rb ├── support ├── dummy_rails_integration.rb └── reporting.rb ├── test_helper.rb └── test_helper_rails.rb /.gitignore: -------------------------------------------------------------------------------- 1 | *.gem 2 | .sass-cache 3 | bootstrap.css 4 | bootstrap-responsive.css 5 | Gemfile.lock 6 | *.gemfile.lock 7 | .rvmrc 8 | .rbenv-version 9 | 10 | # Ignore bundler config 11 | /.bundle 12 | /vendor/cache 13 | /vendor/bundle 14 | tmp/ 15 | test/screenshots/ 16 | test/dummy_rails/log/*.log 17 | test/dummy_rails/public/assets/ 18 | .DS_Store 19 | node_modules 20 | /.idea 21 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | dist: xenial 2 | language: ruby 3 | cache: bundler 4 | bundler_args: --path ../../vendor/bundle --without debug 5 | rvm: 6 | - 2.5.1 7 | gemfile: 8 | - test/gemfiles/default.gemfile 9 | before_install: 10 | - "nvm install stable" 11 | - "npm install" 12 | notifications: 13 | slack: heybb:3n88HHilXn76ji9vV4gL819Y 14 | env: 15 | global: 16 | - VERBOSE=1 17 | script: 18 | bundle exec rake && bash test/*.sh 19 | sudo: false 20 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to bootstrap-sass 2 | 3 | ## Asset Changes 4 | 5 | Any changes to `bootstrap-sass` assets (scss, javascripts, fonts) should be checked against the `convert` rake task. 6 | For usage instructions, see the [README](/README.md). 7 | 8 | If something is broken in the converter, it's preferable to update the converter along with the asset itself. 9 | 10 | 11 | ## Bugs 12 | 13 | A bug is a _demonstrable problem_ that is caused by the code in the 14 | repository. Good bug reports are extremely helpful - thank you! 15 | 16 | Guidelines for bug reports: 17 | 18 | 1. **Does it belong here?** — is this a problem with bootstrap-sass, or 19 | it an issue with [twbs/bootstrap](https://github.com/twbs/bootstrap)? 20 | We only distribute a direct port and will not modify files if they're not 21 | changed upstream. 22 | 23 | 2. **Use the GitHub issue search** — check if the issue has already been 24 | reported. 25 | 26 | 3. **Isolate the problem** — ideally create a [reduced test 27 | case](http://css-tricks.com/6263-reduced-test-cases/) and a live example. 28 | 29 | A good bug report shouldn't leave others needing to chase you up for more 30 | information. Please try to be as detailed as possible in your report. What is 31 | your environment? What steps will reproduce the issue? What browser(s) and OS 32 | experience the problem? What would you expect to be the outcome? All these 33 | details will help people to fix any potential bugs. 34 | 35 | Example: 36 | 37 | > Short and descriptive example bug report title 38 | > 39 | > A summary of the issue and the browser/OS environment in which it occurs. If 40 | > suitable, include the steps required to reproduce the bug. 41 | > 42 | > 1. This is the first step 43 | > 2. This is the second step 44 | > 3. Further steps, etc. 45 | > 46 | > `` (a link to the reduced test case) 47 | > 48 | > Any other information you want to share that is relevant to the issue being 49 | > reported. This might include the lines of code that you have identified as 50 | > causing the bug, and potential solutions (and your opinions on their 51 | > merits). 52 | 53 | **[File a bug report](https://github.com/twbs/bootstrap-sass/issues/)** 54 | 55 | 56 | ## Pull requests 57 | 58 | **We will not accept pull requests that modify the SCSS beyond fixing bugs caused by *our* code!** 59 | 60 | We use a [converter script][converter-readme] to automatically convert upstream bootstrap, written in LESS, to Sass. 61 | 62 | Issues related to styles or javascript but unrelated to the conversion process should go to [twbs/bootstrap][upstream]. 63 | 64 | Pull requests that fix bugs caused by our code should not modify the SCSS directly, but should patch the converter instead. 65 | 66 | Good pull requests - patches, improvements, new features - are a fantastic 67 | help. They should remain focused in scope and avoid containing unrelated 68 | commits. If your contribution involves a significant amount of work or substantial 69 | changes to any part of the project, please open an issue to discuss it first. 70 | 71 | Make sure to adhere to the coding conventions used throughout a project 72 | (indentation, accurate comments, etc.). Please update any documentation that is 73 | relevant to the change you're making. 74 | 75 | ## Do not… 76 | 77 | Please **do not** use the issue tracker for personal support requests (use 78 | [Stack Overflow](http://stackoverflow.com/)). 79 | 80 | Please **do not** derail or troll issues. Keep the 81 | discussion on topic and respect the opinions of others. 82 | 83 | *props [html5-boilerplate](https://github.com/h5bp/html5-boilerplate/blob/master/CONTRIBUTING.md)* 84 | 85 | [upstream]: https://github.com/twbs/bootstrap 86 | [converter-readme]: https://github.com/twbs/bootstrap-sass/blob/master/README.md#upstream-converter 87 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | gemspec 4 | 5 | group :development do 6 | gem 'byebug', platform: :mri, require: false 7 | end 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2011-2016 Twitter, Inc 4 | Copyright (c) 2011-2016 The Bootstrap Authors 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | require 'bundler/gem_tasks' 2 | 3 | lib_path = File.join(__dir__, 'lib') 4 | $:.unshift(lib_path) unless $:.include?(lib_path) 5 | 6 | load './tasks/bower.rake' 7 | 8 | require 'rake/testtask' 9 | Rake::TestTask.new do |t| 10 | t.libs << 'test' 11 | t.test_files = FileList['test/**/*_test.rb'] 12 | t.verbose = true 13 | end 14 | 15 | desc 'Test all Gemfiles from test/*.gemfile' 16 | task :test_all_gemfiles do 17 | require 'term/ansicolor' 18 | require 'pty' 19 | require 'shellwords' 20 | cmd = 'bundle install --quiet && bundle exec rake --trace' 21 | statuses = Dir.glob('./test/gemfiles/*{[!.lock]}').map do |gemfile| 22 | env = {'BUNDLE_GEMFILE' => gemfile} 23 | cmd_with_env = " (#{env.map { |k, v| "export #{k}=#{Shellwords.escape v}" } * ' '}; #{cmd})" 24 | $stderr.puts Term::ANSIColor.cyan("Testing\n#{cmd_with_env}") 25 | PTY.spawn(env, cmd) do |r, _w, pid| 26 | begin 27 | r.each_line { |l| puts l } 28 | rescue Errno::EIO 29 | # Errno:EIO error means that the process has finished giving output. 30 | ensure 31 | ::Process.wait pid 32 | end 33 | end 34 | [$? && $?.exitstatus == 0, cmd_with_env] 35 | end 36 | failed_cmds = statuses.reject(&:first).map { |(_status, cmd_with_env)| cmd_with_env } 37 | if failed_cmds.empty? 38 | $stderr.puts Term::ANSIColor.green('Tests pass with all gemfiles') 39 | else 40 | $stderr.puts Term::ANSIColor.red("Failing (#{failed_cmds.size} / #{statuses.size})\n#{failed_cmds * "\n"}") 41 | exit 1 42 | end 43 | end 44 | 45 | desc 'Dumps output to a CSS file for testing' 46 | task :debug do 47 | require 'sassc' 48 | require 'bootstrap-sass' 49 | path = Bootstrap.stylesheets_path 50 | %w(_bootstrap).each do |file| 51 | engine = SassC::Engine.new(File.read("#{path}/#{file}.scss"), syntax: :scss, load_paths: ['.', path]) 52 | File.open("tmp/#{file}.css", 'w') { |f| f.write(engine.render) } 53 | end 54 | end 55 | 56 | desc 'Convert bootstrap to bootstrap-sass' 57 | task :convert, :branch do |t, args| 58 | require './tasks/converter' 59 | Converter.new(branch: args[:branch]).process_bootstrap 60 | end 61 | 62 | desc 'LESS to stdin -> Sass to stdout' 63 | task :less_to_scss, :branch do |t, args| 64 | require './tasks/converter' 65 | puts Converter.new(branch: args[:branch]).convert_less(STDIN.read) 66 | end 67 | 68 | desc 'Compile bootstrap-sass to tmp/ (or first arg)' 69 | task :compile, :css_path do |t, args| 70 | require 'sassc' 71 | require 'bootstrap-sass' 72 | require 'term/ansicolor' 73 | 74 | path = 'assets/stylesheets' 75 | css_path = args.with_defaults(css_path: 'tmp')[:css_path] 76 | puts Term::ANSIColor.bold "Compiling SCSS in #{path}" 77 | Dir.mkdir(css_path) unless File.directory?(css_path) 78 | %w(_bootstrap bootstrap/_theme).each do |file| 79 | save_path = "#{css_path}/#{file.sub(/(^|\/)?_+/, '\1').sub('/', '-')}.css" 80 | puts Term::ANSIColor.cyan(" #{save_path}") + '...' 81 | engine = SassC::Engine.new(File.read("#{path}/#{file}.scss"), syntax: :scss, load_paths: ['.', path]) 82 | css = engine.render 83 | File.open(save_path, 'w') { |f| f.write css } 84 | end 85 | end 86 | 87 | desc 'Start a dummy (test) Rails app server' 88 | task :dummy_rails do 89 | require 'rack' 90 | require 'term/ansicolor' 91 | port = ENV['PORT'] || 9292 92 | puts %Q(Starting on #{Term::ANSIColor.cyan "http://localhost:#{port}"}) 93 | Rack::Server.start( 94 | config: 'test/dummy_rails/config.ru', 95 | Port: port) 96 | end 97 | 98 | task default: :test 99 | -------------------------------------------------------------------------------- /assets/fonts/bootstrap/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twbs/bootstrap-sass/a996521067f794441860da292d2ace97f80d3ecc/assets/fonts/bootstrap/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /assets/fonts/bootstrap/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twbs/bootstrap-sass/a996521067f794441860da292d2ace97f80d3ecc/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /assets/fonts/bootstrap/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twbs/bootstrap-sass/a996521067f794441860da292d2ace97f80d3ecc/assets/fonts/bootstrap/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /assets/fonts/bootstrap/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twbs/bootstrap-sass/a996521067f794441860da292d2ace97f80d3ecc/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /assets/images/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twbs/bootstrap-sass/a996521067f794441860da292d2ace97f80d3ecc/assets/images/.keep -------------------------------------------------------------------------------- /assets/javascripts/bootstrap-sprockets.js: -------------------------------------------------------------------------------- 1 | //= require ./bootstrap/transition 2 | //= require ./bootstrap/alert 3 | //= require ./bootstrap/button 4 | //= require ./bootstrap/carousel 5 | //= require ./bootstrap/collapse 6 | //= require ./bootstrap/dropdown 7 | //= require ./bootstrap/modal 8 | //= require ./bootstrap/tab 9 | //= require ./bootstrap/affix 10 | //= require ./bootstrap/scrollspy 11 | //= require ./bootstrap/tooltip 12 | //= require ./bootstrap/popover 13 | -------------------------------------------------------------------------------- /assets/javascripts/bootstrap/affix.js: -------------------------------------------------------------------------------- 1 | /* ======================================================================== 2 | * Bootstrap: affix.js v3.4.1 3 | * https://getbootstrap.com/docs/3.4/javascript/#affix 4 | * ======================================================================== 5 | * Copyright 2011-2019 Twitter, Inc. 6 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 7 | * ======================================================================== */ 8 | 9 | 10 | +function ($) { 11 | 'use strict'; 12 | 13 | // AFFIX CLASS DEFINITION 14 | // ====================== 15 | 16 | var Affix = function (element, options) { 17 | this.options = $.extend({}, Affix.DEFAULTS, options) 18 | 19 | var target = this.options.target === Affix.DEFAULTS.target ? $(this.options.target) : $(document).find(this.options.target) 20 | 21 | this.$target = target 22 | .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this)) 23 | .on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this)) 24 | 25 | this.$element = $(element) 26 | this.affixed = null 27 | this.unpin = null 28 | this.pinnedOffset = null 29 | 30 | this.checkPosition() 31 | } 32 | 33 | Affix.VERSION = '3.4.1' 34 | 35 | Affix.RESET = 'affix affix-top affix-bottom' 36 | 37 | Affix.DEFAULTS = { 38 | offset: 0, 39 | target: window 40 | } 41 | 42 | Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) { 43 | var scrollTop = this.$target.scrollTop() 44 | var position = this.$element.offset() 45 | var targetHeight = this.$target.height() 46 | 47 | if (offsetTop != null && this.affixed == 'top') return scrollTop < offsetTop ? 'top' : false 48 | 49 | if (this.affixed == 'bottom') { 50 | if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom' 51 | return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom' 52 | } 53 | 54 | var initializing = this.affixed == null 55 | var colliderTop = initializing ? scrollTop : position.top 56 | var colliderHeight = initializing ? targetHeight : height 57 | 58 | if (offsetTop != null && scrollTop <= offsetTop) return 'top' 59 | if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom' 60 | 61 | return false 62 | } 63 | 64 | Affix.prototype.getPinnedOffset = function () { 65 | if (this.pinnedOffset) return this.pinnedOffset 66 | this.$element.removeClass(Affix.RESET).addClass('affix') 67 | var scrollTop = this.$target.scrollTop() 68 | var position = this.$element.offset() 69 | return (this.pinnedOffset = position.top - scrollTop) 70 | } 71 | 72 | Affix.prototype.checkPositionWithEventLoop = function () { 73 | setTimeout($.proxy(this.checkPosition, this), 1) 74 | } 75 | 76 | Affix.prototype.checkPosition = function () { 77 | if (!this.$element.is(':visible')) return 78 | 79 | var height = this.$element.height() 80 | var offset = this.options.offset 81 | var offsetTop = offset.top 82 | var offsetBottom = offset.bottom 83 | var scrollHeight = Math.max($(document).height(), $(document.body).height()) 84 | 85 | if (typeof offset != 'object') offsetBottom = offsetTop = offset 86 | if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element) 87 | if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element) 88 | 89 | var affix = this.getState(scrollHeight, height, offsetTop, offsetBottom) 90 | 91 | if (this.affixed != affix) { 92 | if (this.unpin != null) this.$element.css('top', '') 93 | 94 | var affixType = 'affix' + (affix ? '-' + affix : '') 95 | var e = $.Event(affixType + '.bs.affix') 96 | 97 | this.$element.trigger(e) 98 | 99 | if (e.isDefaultPrevented()) return 100 | 101 | this.affixed = affix 102 | this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null 103 | 104 | this.$element 105 | .removeClass(Affix.RESET) 106 | .addClass(affixType) 107 | .trigger(affixType.replace('affix', 'affixed') + '.bs.affix') 108 | } 109 | 110 | if (affix == 'bottom') { 111 | this.$element.offset({ 112 | top: scrollHeight - height - offsetBottom 113 | }) 114 | } 115 | } 116 | 117 | 118 | // AFFIX PLUGIN DEFINITION 119 | // ======================= 120 | 121 | function Plugin(option) { 122 | return this.each(function () { 123 | var $this = $(this) 124 | var data = $this.data('bs.affix') 125 | var options = typeof option == 'object' && option 126 | 127 | if (!data) $this.data('bs.affix', (data = new Affix(this, options))) 128 | if (typeof option == 'string') data[option]() 129 | }) 130 | } 131 | 132 | var old = $.fn.affix 133 | 134 | $.fn.affix = Plugin 135 | $.fn.affix.Constructor = Affix 136 | 137 | 138 | // AFFIX NO CONFLICT 139 | // ================= 140 | 141 | $.fn.affix.noConflict = function () { 142 | $.fn.affix = old 143 | return this 144 | } 145 | 146 | 147 | // AFFIX DATA-API 148 | // ============== 149 | 150 | $(window).on('load', function () { 151 | $('[data-spy="affix"]').each(function () { 152 | var $spy = $(this) 153 | var data = $spy.data() 154 | 155 | data.offset = data.offset || {} 156 | 157 | if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom 158 | if (data.offsetTop != null) data.offset.top = data.offsetTop 159 | 160 | Plugin.call($spy, data) 161 | }) 162 | }) 163 | 164 | }(jQuery); 165 | -------------------------------------------------------------------------------- /assets/javascripts/bootstrap/alert.js: -------------------------------------------------------------------------------- 1 | /* ======================================================================== 2 | * Bootstrap: alert.js v3.4.1 3 | * https://getbootstrap.com/docs/3.4/javascript/#alerts 4 | * ======================================================================== 5 | * Copyright 2011-2019 Twitter, Inc. 6 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 7 | * ======================================================================== */ 8 | 9 | 10 | +function ($) { 11 | 'use strict'; 12 | 13 | // ALERT CLASS DEFINITION 14 | // ====================== 15 | 16 | var dismiss = '[data-dismiss="alert"]' 17 | var Alert = function (el) { 18 | $(el).on('click', dismiss, this.close) 19 | } 20 | 21 | Alert.VERSION = '3.4.1' 22 | 23 | Alert.TRANSITION_DURATION = 150 24 | 25 | Alert.prototype.close = function (e) { 26 | var $this = $(this) 27 | var selector = $this.attr('data-target') 28 | 29 | if (!selector) { 30 | selector = $this.attr('href') 31 | selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 32 | } 33 | 34 | selector = selector === '#' ? [] : selector 35 | var $parent = $(document).find(selector) 36 | 37 | if (e) e.preventDefault() 38 | 39 | if (!$parent.length) { 40 | $parent = $this.closest('.alert') 41 | } 42 | 43 | $parent.trigger(e = $.Event('close.bs.alert')) 44 | 45 | if (e.isDefaultPrevented()) return 46 | 47 | $parent.removeClass('in') 48 | 49 | function removeElement() { 50 | // detach from parent, fire event then clean up data 51 | $parent.detach().trigger('closed.bs.alert').remove() 52 | } 53 | 54 | $.support.transition && $parent.hasClass('fade') ? 55 | $parent 56 | .one('bsTransitionEnd', removeElement) 57 | .emulateTransitionEnd(Alert.TRANSITION_DURATION) : 58 | removeElement() 59 | } 60 | 61 | 62 | // ALERT PLUGIN DEFINITION 63 | // ======================= 64 | 65 | function Plugin(option) { 66 | return this.each(function () { 67 | var $this = $(this) 68 | var data = $this.data('bs.alert') 69 | 70 | if (!data) $this.data('bs.alert', (data = new Alert(this))) 71 | if (typeof option == 'string') data[option].call($this) 72 | }) 73 | } 74 | 75 | var old = $.fn.alert 76 | 77 | $.fn.alert = Plugin 78 | $.fn.alert.Constructor = Alert 79 | 80 | 81 | // ALERT NO CONFLICT 82 | // ================= 83 | 84 | $.fn.alert.noConflict = function () { 85 | $.fn.alert = old 86 | return this 87 | } 88 | 89 | 90 | // ALERT DATA-API 91 | // ============== 92 | 93 | $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close) 94 | 95 | }(jQuery); 96 | -------------------------------------------------------------------------------- /assets/javascripts/bootstrap/button.js: -------------------------------------------------------------------------------- 1 | /* ======================================================================== 2 | * Bootstrap: button.js v3.4.1 3 | * https://getbootstrap.com/docs/3.4/javascript/#buttons 4 | * ======================================================================== 5 | * Copyright 2011-2019 Twitter, Inc. 6 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 7 | * ======================================================================== */ 8 | 9 | 10 | +function ($) { 11 | 'use strict'; 12 | 13 | // BUTTON PUBLIC CLASS DEFINITION 14 | // ============================== 15 | 16 | var Button = function (element, options) { 17 | this.$element = $(element) 18 | this.options = $.extend({}, Button.DEFAULTS, options) 19 | this.isLoading = false 20 | } 21 | 22 | Button.VERSION = '3.4.1' 23 | 24 | Button.DEFAULTS = { 25 | loadingText: 'loading...' 26 | } 27 | 28 | Button.prototype.setState = function (state) { 29 | var d = 'disabled' 30 | var $el = this.$element 31 | var val = $el.is('input') ? 'val' : 'html' 32 | var data = $el.data() 33 | 34 | state += 'Text' 35 | 36 | if (data.resetText == null) $el.data('resetText', $el[val]()) 37 | 38 | // push to event loop to allow forms to submit 39 | setTimeout($.proxy(function () { 40 | $el[val](data[state] == null ? this.options[state] : data[state]) 41 | 42 | if (state == 'loadingText') { 43 | this.isLoading = true 44 | $el.addClass(d).attr(d, d).prop(d, true) 45 | } else if (this.isLoading) { 46 | this.isLoading = false 47 | $el.removeClass(d).removeAttr(d).prop(d, false) 48 | } 49 | }, this), 0) 50 | } 51 | 52 | Button.prototype.toggle = function () { 53 | var changed = true 54 | var $parent = this.$element.closest('[data-toggle="buttons"]') 55 | 56 | if ($parent.length) { 57 | var $input = this.$element.find('input') 58 | if ($input.prop('type') == 'radio') { 59 | if ($input.prop('checked')) changed = false 60 | $parent.find('.active').removeClass('active') 61 | this.$element.addClass('active') 62 | } else if ($input.prop('type') == 'checkbox') { 63 | if (($input.prop('checked')) !== this.$element.hasClass('active')) changed = false 64 | this.$element.toggleClass('active') 65 | } 66 | $input.prop('checked', this.$element.hasClass('active')) 67 | if (changed) $input.trigger('change') 68 | } else { 69 | this.$element.attr('aria-pressed', !this.$element.hasClass('active')) 70 | this.$element.toggleClass('active') 71 | } 72 | } 73 | 74 | 75 | // BUTTON PLUGIN DEFINITION 76 | // ======================== 77 | 78 | function Plugin(option) { 79 | return this.each(function () { 80 | var $this = $(this) 81 | var data = $this.data('bs.button') 82 | var options = typeof option == 'object' && option 83 | 84 | if (!data) $this.data('bs.button', (data = new Button(this, options))) 85 | 86 | if (option == 'toggle') data.toggle() 87 | else if (option) data.setState(option) 88 | }) 89 | } 90 | 91 | var old = $.fn.button 92 | 93 | $.fn.button = Plugin 94 | $.fn.button.Constructor = Button 95 | 96 | 97 | // BUTTON NO CONFLICT 98 | // ================== 99 | 100 | $.fn.button.noConflict = function () { 101 | $.fn.button = old 102 | return this 103 | } 104 | 105 | 106 | // BUTTON DATA-API 107 | // =============== 108 | 109 | $(document) 110 | .on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) { 111 | var $btn = $(e.target).closest('.btn') 112 | Plugin.call($btn, 'toggle') 113 | if (!($(e.target).is('input[type="radio"], input[type="checkbox"]'))) { 114 | // Prevent double click on radios, and the double selections (so cancellation) on checkboxes 115 | e.preventDefault() 116 | // The target component still receive the focus 117 | if ($btn.is('input,button')) $btn.trigger('focus') 118 | else $btn.find('input:visible,button:visible').first().trigger('focus') 119 | } 120 | }) 121 | .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) { 122 | $(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type)) 123 | }) 124 | 125 | }(jQuery); 126 | -------------------------------------------------------------------------------- /assets/javascripts/bootstrap/dropdown.js: -------------------------------------------------------------------------------- 1 | /* ======================================================================== 2 | * Bootstrap: dropdown.js v3.4.1 3 | * https://getbootstrap.com/docs/3.4/javascript/#dropdowns 4 | * ======================================================================== 5 | * Copyright 2011-2019 Twitter, Inc. 6 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 7 | * ======================================================================== */ 8 | 9 | 10 | +function ($) { 11 | 'use strict'; 12 | 13 | // DROPDOWN CLASS DEFINITION 14 | // ========================= 15 | 16 | var backdrop = '.dropdown-backdrop' 17 | var toggle = '[data-toggle="dropdown"]' 18 | var Dropdown = function (element) { 19 | $(element).on('click.bs.dropdown', this.toggle) 20 | } 21 | 22 | Dropdown.VERSION = '3.4.1' 23 | 24 | function getParent($this) { 25 | var selector = $this.attr('data-target') 26 | 27 | if (!selector) { 28 | selector = $this.attr('href') 29 | selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 30 | } 31 | 32 | var $parent = selector !== '#' ? $(document).find(selector) : null 33 | 34 | return $parent && $parent.length ? $parent : $this.parent() 35 | } 36 | 37 | function clearMenus(e) { 38 | if (e && e.which === 3) return 39 | $(backdrop).remove() 40 | $(toggle).each(function () { 41 | var $this = $(this) 42 | var $parent = getParent($this) 43 | var relatedTarget = { relatedTarget: this } 44 | 45 | if (!$parent.hasClass('open')) return 46 | 47 | if (e && e.type == 'click' && /input|textarea/i.test(e.target.tagName) && $.contains($parent[0], e.target)) return 48 | 49 | $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget)) 50 | 51 | if (e.isDefaultPrevented()) return 52 | 53 | $this.attr('aria-expanded', 'false') 54 | $parent.removeClass('open').trigger($.Event('hidden.bs.dropdown', relatedTarget)) 55 | }) 56 | } 57 | 58 | Dropdown.prototype.toggle = function (e) { 59 | var $this = $(this) 60 | 61 | if ($this.is('.disabled, :disabled')) return 62 | 63 | var $parent = getParent($this) 64 | var isActive = $parent.hasClass('open') 65 | 66 | clearMenus() 67 | 68 | if (!isActive) { 69 | if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) { 70 | // if mobile we use a backdrop because click events don't delegate 71 | $(document.createElement('div')) 72 | .addClass('dropdown-backdrop') 73 | .insertAfter($(this)) 74 | .on('click', clearMenus) 75 | } 76 | 77 | var relatedTarget = { relatedTarget: this } 78 | $parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget)) 79 | 80 | if (e.isDefaultPrevented()) return 81 | 82 | $this 83 | .trigger('focus') 84 | .attr('aria-expanded', 'true') 85 | 86 | $parent 87 | .toggleClass('open') 88 | .trigger($.Event('shown.bs.dropdown', relatedTarget)) 89 | } 90 | 91 | return false 92 | } 93 | 94 | Dropdown.prototype.keydown = function (e) { 95 | if (!/(38|40|27|32)/.test(e.which) || /input|textarea/i.test(e.target.tagName)) return 96 | 97 | var $this = $(this) 98 | 99 | e.preventDefault() 100 | e.stopPropagation() 101 | 102 | if ($this.is('.disabled, :disabled')) return 103 | 104 | var $parent = getParent($this) 105 | var isActive = $parent.hasClass('open') 106 | 107 | if (!isActive && e.which != 27 || isActive && e.which == 27) { 108 | if (e.which == 27) $parent.find(toggle).trigger('focus') 109 | return $this.trigger('click') 110 | } 111 | 112 | var desc = ' li:not(.disabled):visible a' 113 | var $items = $parent.find('.dropdown-menu' + desc) 114 | 115 | if (!$items.length) return 116 | 117 | var index = $items.index(e.target) 118 | 119 | if (e.which == 38 && index > 0) index-- // up 120 | if (e.which == 40 && index < $items.length - 1) index++ // down 121 | if (!~index) index = 0 122 | 123 | $items.eq(index).trigger('focus') 124 | } 125 | 126 | 127 | // DROPDOWN PLUGIN DEFINITION 128 | // ========================== 129 | 130 | function Plugin(option) { 131 | return this.each(function () { 132 | var $this = $(this) 133 | var data = $this.data('bs.dropdown') 134 | 135 | if (!data) $this.data('bs.dropdown', (data = new Dropdown(this))) 136 | if (typeof option == 'string') data[option].call($this) 137 | }) 138 | } 139 | 140 | var old = $.fn.dropdown 141 | 142 | $.fn.dropdown = Plugin 143 | $.fn.dropdown.Constructor = Dropdown 144 | 145 | 146 | // DROPDOWN NO CONFLICT 147 | // ==================== 148 | 149 | $.fn.dropdown.noConflict = function () { 150 | $.fn.dropdown = old 151 | return this 152 | } 153 | 154 | 155 | // APPLY TO STANDARD DROPDOWN ELEMENTS 156 | // =================================== 157 | 158 | $(document) 159 | .on('click.bs.dropdown.data-api', clearMenus) 160 | .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() }) 161 | .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle) 162 | .on('keydown.bs.dropdown.data-api', toggle, Dropdown.prototype.keydown) 163 | .on('keydown.bs.dropdown.data-api', '.dropdown-menu', Dropdown.prototype.keydown) 164 | 165 | }(jQuery); 166 | -------------------------------------------------------------------------------- /assets/javascripts/bootstrap/popover.js: -------------------------------------------------------------------------------- 1 | /* ======================================================================== 2 | * Bootstrap: popover.js v3.4.1 3 | * https://getbootstrap.com/docs/3.4/javascript/#popovers 4 | * ======================================================================== 5 | * Copyright 2011-2019 Twitter, Inc. 6 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 7 | * ======================================================================== */ 8 | 9 | 10 | +function ($) { 11 | 'use strict'; 12 | 13 | // POPOVER PUBLIC CLASS DEFINITION 14 | // =============================== 15 | 16 | var Popover = function (element, options) { 17 | this.init('popover', element, options) 18 | } 19 | 20 | if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js') 21 | 22 | Popover.VERSION = '3.4.1' 23 | 24 | Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, { 25 | placement: 'right', 26 | trigger: 'click', 27 | content: '', 28 | template: '' 29 | }) 30 | 31 | 32 | // NOTE: POPOVER EXTENDS tooltip.js 33 | // ================================ 34 | 35 | Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype) 36 | 37 | Popover.prototype.constructor = Popover 38 | 39 | Popover.prototype.getDefaults = function () { 40 | return Popover.DEFAULTS 41 | } 42 | 43 | Popover.prototype.setContent = function () { 44 | var $tip = this.tip() 45 | var title = this.getTitle() 46 | var content = this.getContent() 47 | 48 | if (this.options.html) { 49 | var typeContent = typeof content 50 | 51 | if (this.options.sanitize) { 52 | title = this.sanitizeHtml(title) 53 | 54 | if (typeContent === 'string') { 55 | content = this.sanitizeHtml(content) 56 | } 57 | } 58 | 59 | $tip.find('.popover-title').html(title) 60 | $tip.find('.popover-content').children().detach().end()[ 61 | typeContent === 'string' ? 'html' : 'append' 62 | ](content) 63 | } else { 64 | $tip.find('.popover-title').text(title) 65 | $tip.find('.popover-content').children().detach().end().text(content) 66 | } 67 | 68 | $tip.removeClass('fade top bottom left right in') 69 | 70 | // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do 71 | // this manually by checking the contents. 72 | if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide() 73 | } 74 | 75 | Popover.prototype.hasContent = function () { 76 | return this.getTitle() || this.getContent() 77 | } 78 | 79 | Popover.prototype.getContent = function () { 80 | var $e = this.$element 81 | var o = this.options 82 | 83 | return $e.attr('data-content') 84 | || (typeof o.content == 'function' ? 85 | o.content.call($e[0]) : 86 | o.content) 87 | } 88 | 89 | Popover.prototype.arrow = function () { 90 | return (this.$arrow = this.$arrow || this.tip().find('.arrow')) 91 | } 92 | 93 | 94 | // POPOVER PLUGIN DEFINITION 95 | // ========================= 96 | 97 | function Plugin(option) { 98 | return this.each(function () { 99 | var $this = $(this) 100 | var data = $this.data('bs.popover') 101 | var options = typeof option == 'object' && option 102 | 103 | if (!data && /destroy|hide/.test(option)) return 104 | if (!data) $this.data('bs.popover', (data = new Popover(this, options))) 105 | if (typeof option == 'string') data[option]() 106 | }) 107 | } 108 | 109 | var old = $.fn.popover 110 | 111 | $.fn.popover = Plugin 112 | $.fn.popover.Constructor = Popover 113 | 114 | 115 | // POPOVER NO CONFLICT 116 | // =================== 117 | 118 | $.fn.popover.noConflict = function () { 119 | $.fn.popover = old 120 | return this 121 | } 122 | 123 | }(jQuery); 124 | -------------------------------------------------------------------------------- /assets/javascripts/bootstrap/scrollspy.js: -------------------------------------------------------------------------------- 1 | /* ======================================================================== 2 | * Bootstrap: scrollspy.js v3.4.1 3 | * https://getbootstrap.com/docs/3.4/javascript/#scrollspy 4 | * ======================================================================== 5 | * Copyright 2011-2019 Twitter, Inc. 6 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 7 | * ======================================================================== */ 8 | 9 | 10 | +function ($) { 11 | 'use strict'; 12 | 13 | // SCROLLSPY CLASS DEFINITION 14 | // ========================== 15 | 16 | function ScrollSpy(element, options) { 17 | this.$body = $(document.body) 18 | this.$scrollElement = $(element).is(document.body) ? $(window) : $(element) 19 | this.options = $.extend({}, ScrollSpy.DEFAULTS, options) 20 | this.selector = (this.options.target || '') + ' .nav li > a' 21 | this.offsets = [] 22 | this.targets = [] 23 | this.activeTarget = null 24 | this.scrollHeight = 0 25 | 26 | this.$scrollElement.on('scroll.bs.scrollspy', $.proxy(this.process, this)) 27 | this.refresh() 28 | this.process() 29 | } 30 | 31 | ScrollSpy.VERSION = '3.4.1' 32 | 33 | ScrollSpy.DEFAULTS = { 34 | offset: 10 35 | } 36 | 37 | ScrollSpy.prototype.getScrollHeight = function () { 38 | return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight) 39 | } 40 | 41 | ScrollSpy.prototype.refresh = function () { 42 | var that = this 43 | var offsetMethod = 'offset' 44 | var offsetBase = 0 45 | 46 | this.offsets = [] 47 | this.targets = [] 48 | this.scrollHeight = this.getScrollHeight() 49 | 50 | if (!$.isWindow(this.$scrollElement[0])) { 51 | offsetMethod = 'position' 52 | offsetBase = this.$scrollElement.scrollTop() 53 | } 54 | 55 | this.$body 56 | .find(this.selector) 57 | .map(function () { 58 | var $el = $(this) 59 | var href = $el.data('target') || $el.attr('href') 60 | var $href = /^#./.test(href) && $(href) 61 | 62 | return ($href 63 | && $href.length 64 | && $href.is(':visible') 65 | && [[$href[offsetMethod]().top + offsetBase, href]]) || null 66 | }) 67 | .sort(function (a, b) { return a[0] - b[0] }) 68 | .each(function () { 69 | that.offsets.push(this[0]) 70 | that.targets.push(this[1]) 71 | }) 72 | } 73 | 74 | ScrollSpy.prototype.process = function () { 75 | var scrollTop = this.$scrollElement.scrollTop() + this.options.offset 76 | var scrollHeight = this.getScrollHeight() 77 | var maxScroll = this.options.offset + scrollHeight - this.$scrollElement.height() 78 | var offsets = this.offsets 79 | var targets = this.targets 80 | var activeTarget = this.activeTarget 81 | var i 82 | 83 | if (this.scrollHeight != scrollHeight) { 84 | this.refresh() 85 | } 86 | 87 | if (scrollTop >= maxScroll) { 88 | return activeTarget != (i = targets[targets.length - 1]) && this.activate(i) 89 | } 90 | 91 | if (activeTarget && scrollTop < offsets[0]) { 92 | this.activeTarget = null 93 | return this.clear() 94 | } 95 | 96 | for (i = offsets.length; i--;) { 97 | activeTarget != targets[i] 98 | && scrollTop >= offsets[i] 99 | && (offsets[i + 1] === undefined || scrollTop < offsets[i + 1]) 100 | && this.activate(targets[i]) 101 | } 102 | } 103 | 104 | ScrollSpy.prototype.activate = function (target) { 105 | this.activeTarget = target 106 | 107 | this.clear() 108 | 109 | var selector = this.selector + 110 | '[data-target="' + target + '"],' + 111 | this.selector + '[href="' + target + '"]' 112 | 113 | var active = $(selector) 114 | .parents('li') 115 | .addClass('active') 116 | 117 | if (active.parent('.dropdown-menu').length) { 118 | active = active 119 | .closest('li.dropdown') 120 | .addClass('active') 121 | } 122 | 123 | active.trigger('activate.bs.scrollspy') 124 | } 125 | 126 | ScrollSpy.prototype.clear = function () { 127 | $(this.selector) 128 | .parentsUntil(this.options.target, '.active') 129 | .removeClass('active') 130 | } 131 | 132 | 133 | // SCROLLSPY PLUGIN DEFINITION 134 | // =========================== 135 | 136 | function Plugin(option) { 137 | return this.each(function () { 138 | var $this = $(this) 139 | var data = $this.data('bs.scrollspy') 140 | var options = typeof option == 'object' && option 141 | 142 | if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options))) 143 | if (typeof option == 'string') data[option]() 144 | }) 145 | } 146 | 147 | var old = $.fn.scrollspy 148 | 149 | $.fn.scrollspy = Plugin 150 | $.fn.scrollspy.Constructor = ScrollSpy 151 | 152 | 153 | // SCROLLSPY NO CONFLICT 154 | // ===================== 155 | 156 | $.fn.scrollspy.noConflict = function () { 157 | $.fn.scrollspy = old 158 | return this 159 | } 160 | 161 | 162 | // SCROLLSPY DATA-API 163 | // ================== 164 | 165 | $(window).on('load.bs.scrollspy.data-api', function () { 166 | $('[data-spy="scroll"]').each(function () { 167 | var $spy = $(this) 168 | Plugin.call($spy, $spy.data()) 169 | }) 170 | }) 171 | 172 | }(jQuery); 173 | -------------------------------------------------------------------------------- /assets/javascripts/bootstrap/tab.js: -------------------------------------------------------------------------------- 1 | /* ======================================================================== 2 | * Bootstrap: tab.js v3.4.1 3 | * https://getbootstrap.com/docs/3.4/javascript/#tabs 4 | * ======================================================================== 5 | * Copyright 2011-2019 Twitter, Inc. 6 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 7 | * ======================================================================== */ 8 | 9 | 10 | +function ($) { 11 | 'use strict'; 12 | 13 | // TAB CLASS DEFINITION 14 | // ==================== 15 | 16 | var Tab = function (element) { 17 | // jscs:disable requireDollarBeforejQueryAssignment 18 | this.element = $(element) 19 | // jscs:enable requireDollarBeforejQueryAssignment 20 | } 21 | 22 | Tab.VERSION = '3.4.1' 23 | 24 | Tab.TRANSITION_DURATION = 150 25 | 26 | Tab.prototype.show = function () { 27 | var $this = this.element 28 | var $ul = $this.closest('ul:not(.dropdown-menu)') 29 | var selector = $this.data('target') 30 | 31 | if (!selector) { 32 | selector = $this.attr('href') 33 | selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 34 | } 35 | 36 | if ($this.parent('li').hasClass('active')) return 37 | 38 | var $previous = $ul.find('.active:last a') 39 | var hideEvent = $.Event('hide.bs.tab', { 40 | relatedTarget: $this[0] 41 | }) 42 | var showEvent = $.Event('show.bs.tab', { 43 | relatedTarget: $previous[0] 44 | }) 45 | 46 | $previous.trigger(hideEvent) 47 | $this.trigger(showEvent) 48 | 49 | if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) return 50 | 51 | var $target = $(document).find(selector) 52 | 53 | this.activate($this.closest('li'), $ul) 54 | this.activate($target, $target.parent(), function () { 55 | $previous.trigger({ 56 | type: 'hidden.bs.tab', 57 | relatedTarget: $this[0] 58 | }) 59 | $this.trigger({ 60 | type: 'shown.bs.tab', 61 | relatedTarget: $previous[0] 62 | }) 63 | }) 64 | } 65 | 66 | Tab.prototype.activate = function (element, container, callback) { 67 | var $active = container.find('> .active') 68 | var transition = callback 69 | && $.support.transition 70 | && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length) 71 | 72 | function next() { 73 | $active 74 | .removeClass('active') 75 | .find('> .dropdown-menu > .active') 76 | .removeClass('active') 77 | .end() 78 | .find('[data-toggle="tab"]') 79 | .attr('aria-expanded', false) 80 | 81 | element 82 | .addClass('active') 83 | .find('[data-toggle="tab"]') 84 | .attr('aria-expanded', true) 85 | 86 | if (transition) { 87 | element[0].offsetWidth // reflow for transition 88 | element.addClass('in') 89 | } else { 90 | element.removeClass('fade') 91 | } 92 | 93 | if (element.parent('.dropdown-menu').length) { 94 | element 95 | .closest('li.dropdown') 96 | .addClass('active') 97 | .end() 98 | .find('[data-toggle="tab"]') 99 | .attr('aria-expanded', true) 100 | } 101 | 102 | callback && callback() 103 | } 104 | 105 | $active.length && transition ? 106 | $active 107 | .one('bsTransitionEnd', next) 108 | .emulateTransitionEnd(Tab.TRANSITION_DURATION) : 109 | next() 110 | 111 | $active.removeClass('in') 112 | } 113 | 114 | 115 | // TAB PLUGIN DEFINITION 116 | // ===================== 117 | 118 | function Plugin(option) { 119 | return this.each(function () { 120 | var $this = $(this) 121 | var data = $this.data('bs.tab') 122 | 123 | if (!data) $this.data('bs.tab', (data = new Tab(this))) 124 | if (typeof option == 'string') data[option]() 125 | }) 126 | } 127 | 128 | var old = $.fn.tab 129 | 130 | $.fn.tab = Plugin 131 | $.fn.tab.Constructor = Tab 132 | 133 | 134 | // TAB NO CONFLICT 135 | // =============== 136 | 137 | $.fn.tab.noConflict = function () { 138 | $.fn.tab = old 139 | return this 140 | } 141 | 142 | 143 | // TAB DATA-API 144 | // ============ 145 | 146 | var clickHandler = function (e) { 147 | e.preventDefault() 148 | Plugin.call($(this), 'show') 149 | } 150 | 151 | $(document) 152 | .on('click.bs.tab.data-api', '[data-toggle="tab"]', clickHandler) 153 | .on('click.bs.tab.data-api', '[data-toggle="pill"]', clickHandler) 154 | 155 | }(jQuery); 156 | -------------------------------------------------------------------------------- /assets/javascripts/bootstrap/transition.js: -------------------------------------------------------------------------------- 1 | /* ======================================================================== 2 | * Bootstrap: transition.js v3.4.1 3 | * https://getbootstrap.com/docs/3.4/javascript/#transitions 4 | * ======================================================================== 5 | * Copyright 2011-2019 Twitter, Inc. 6 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 7 | * ======================================================================== */ 8 | 9 | 10 | +function ($) { 11 | 'use strict'; 12 | 13 | // CSS TRANSITION SUPPORT (Shoutout: https://modernizr.com/) 14 | // ============================================================ 15 | 16 | function transitionEnd() { 17 | var el = document.createElement('bootstrap') 18 | 19 | var transEndEventNames = { 20 | WebkitTransition : 'webkitTransitionEnd', 21 | MozTransition : 'transitionend', 22 | OTransition : 'oTransitionEnd otransitionend', 23 | transition : 'transitionend' 24 | } 25 | 26 | for (var name in transEndEventNames) { 27 | if (el.style[name] !== undefined) { 28 | return { end: transEndEventNames[name] } 29 | } 30 | } 31 | 32 | return false // explicit for ie8 ( ._.) 33 | } 34 | 35 | // https://blog.alexmaccaw.com/css-transitions 36 | $.fn.emulateTransitionEnd = function (duration) { 37 | var called = false 38 | var $el = this 39 | $(this).one('bsTransitionEnd', function () { called = true }) 40 | var callback = function () { if (!called) $($el).trigger($.support.transition.end) } 41 | setTimeout(callback, duration) 42 | return this 43 | } 44 | 45 | $(function () { 46 | $.support.transition = transitionEnd() 47 | 48 | if (!$.support.transition) return 49 | 50 | $.event.special.bsTransitionEnd = { 51 | bindType: $.support.transition.end, 52 | delegateType: $.support.transition.end, 53 | handle: function (e) { 54 | if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments) 55 | } 56 | } 57 | }) 58 | 59 | }(jQuery); 60 | -------------------------------------------------------------------------------- /assets/stylesheets/_bootstrap-compass.scss: -------------------------------------------------------------------------------- 1 | @function twbs-font-path($path) { 2 | @return font-url($path, true); 3 | } 4 | 5 | @function twbs-image-path($path) { 6 | @return image-url($path, true); 7 | } 8 | 9 | $bootstrap-sass-asset-helper: true; 10 | -------------------------------------------------------------------------------- /assets/stylesheets/_bootstrap-mincer.scss: -------------------------------------------------------------------------------- 1 | // Mincer asset helper functions 2 | // 3 | // This must be imported into a .css.ejs.scss file. 4 | // Then, <% %>-interpolations will be parsed as strings by Sass, and evaluated by EJS after Sass compilation. 5 | 6 | 7 | @function twbs-font-path($path) { 8 | // do something like following 9 | // from "path/to/font.ext#suffix" to "<%- asset_path(path/to/font.ext)) + #suffix %>" 10 | // from "path/to/font.ext?#suffix" to "<%- asset_path(path/to/font.ext)) + ?#suffix %>" 11 | // or from "path/to/font.ext" just "<%- asset_path(path/to/font.ext)) %>" 12 | @return "<%- asset_path("#{$path}".replace(/[#?].*$/, '')) + "#{$path}".replace(/(^[^#?]*)([#?]?.*$)/, '$2') %>"; 13 | } 14 | 15 | @function twbs-image-path($file) { 16 | @return "<%- asset_path("#{$file}") %>"; 17 | } 18 | 19 | $bootstrap-sass-asset-helper: true; 20 | -------------------------------------------------------------------------------- /assets/stylesheets/_bootstrap-sprockets.scss: -------------------------------------------------------------------------------- 1 | @function twbs-font-path($path) { 2 | @return font-path($path); 3 | } 4 | 5 | @function twbs-image-path($path) { 6 | @return image-path($path); 7 | } 8 | 9 | $bootstrap-sass-asset-helper: true; 10 | -------------------------------------------------------------------------------- /assets/stylesheets/_bootstrap.scss: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.4.1 (https://getbootstrap.com/) 3 | * Copyright 2011-2019 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | 7 | // Core variables and mixins 8 | @import "bootstrap/variables"; 9 | @import "bootstrap/mixins"; 10 | 11 | // Reset and dependencies 12 | @import "bootstrap/normalize"; 13 | @import "bootstrap/print"; 14 | @import "bootstrap/glyphicons"; 15 | 16 | // Core CSS 17 | @import "bootstrap/scaffolding"; 18 | @import "bootstrap/type"; 19 | @import "bootstrap/code"; 20 | @import "bootstrap/grid"; 21 | @import "bootstrap/tables"; 22 | @import "bootstrap/forms"; 23 | @import "bootstrap/buttons"; 24 | 25 | // Components 26 | @import "bootstrap/component-animations"; 27 | @import "bootstrap/dropdowns"; 28 | @import "bootstrap/button-groups"; 29 | @import "bootstrap/input-groups"; 30 | @import "bootstrap/navs"; 31 | @import "bootstrap/navbar"; 32 | @import "bootstrap/breadcrumbs"; 33 | @import "bootstrap/pagination"; 34 | @import "bootstrap/pager"; 35 | @import "bootstrap/labels"; 36 | @import "bootstrap/badges"; 37 | @import "bootstrap/jumbotron"; 38 | @import "bootstrap/thumbnails"; 39 | @import "bootstrap/alerts"; 40 | @import "bootstrap/progress-bars"; 41 | @import "bootstrap/media"; 42 | @import "bootstrap/list-group"; 43 | @import "bootstrap/panels"; 44 | @import "bootstrap/responsive-embed"; 45 | @import "bootstrap/wells"; 46 | @import "bootstrap/close"; 47 | 48 | // Components w/ JavaScript 49 | @import "bootstrap/modals"; 50 | @import "bootstrap/tooltip"; 51 | @import "bootstrap/popovers"; 52 | @import "bootstrap/carousel"; 53 | 54 | // Utility classes 55 | @import "bootstrap/utilities"; 56 | @import "bootstrap/responsive-utilities"; 57 | -------------------------------------------------------------------------------- /assets/stylesheets/bootstrap/_alerts.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Alerts 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base styles 7 | // ------------------------- 8 | 9 | .alert { 10 | padding: $alert-padding; 11 | margin-bottom: $line-height-computed; 12 | border: 1px solid transparent; 13 | border-radius: $alert-border-radius; 14 | 15 | // Headings for larger alerts 16 | h4 { 17 | margin-top: 0; 18 | color: inherit; // Specified for the h4 to prevent conflicts of changing $headings-color 19 | } 20 | 21 | // Provide class for links that match alerts 22 | .alert-link { 23 | font-weight: $alert-link-font-weight; 24 | } 25 | 26 | // Improve alignment and spacing of inner content 27 | > p, 28 | > ul { 29 | margin-bottom: 0; 30 | } 31 | 32 | > p + p { 33 | margin-top: 5px; 34 | } 35 | } 36 | 37 | // Dismissible alerts 38 | // 39 | // Expand the right padding and account for the close button's positioning. 40 | 41 | // The misspelled .alert-dismissable was deprecated in 3.2.0. 42 | .alert-dismissable, 43 | .alert-dismissible { 44 | padding-right: ($alert-padding + 20); 45 | 46 | // Adjust close link position 47 | .close { 48 | position: relative; 49 | top: -2px; 50 | right: -21px; 51 | color: inherit; 52 | } 53 | } 54 | 55 | // Alternate styles 56 | // 57 | // Generate contextual modifier classes for colorizing the alert. 58 | 59 | .alert-success { 60 | @include alert-variant($alert-success-bg, $alert-success-border, $alert-success-text); 61 | } 62 | 63 | .alert-info { 64 | @include alert-variant($alert-info-bg, $alert-info-border, $alert-info-text); 65 | } 66 | 67 | .alert-warning { 68 | @include alert-variant($alert-warning-bg, $alert-warning-border, $alert-warning-text); 69 | } 70 | 71 | .alert-danger { 72 | @include alert-variant($alert-danger-bg, $alert-danger-border, $alert-danger-text); 73 | } 74 | -------------------------------------------------------------------------------- /assets/stylesheets/bootstrap/_badges.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Badges 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .badge { 8 | display: inline-block; 9 | min-width: 10px; 10 | padding: 3px 7px; 11 | font-size: $font-size-small; 12 | font-weight: $badge-font-weight; 13 | line-height: $badge-line-height; 14 | color: $badge-color; 15 | text-align: center; 16 | white-space: nowrap; 17 | vertical-align: middle; 18 | background-color: $badge-bg; 19 | border-radius: $badge-border-radius; 20 | 21 | // Empty badges collapse automatically (not available in IE8) 22 | &:empty { 23 | display: none; 24 | } 25 | 26 | // Quick fix for badges in buttons 27 | .btn & { 28 | position: relative; 29 | top: -1px; 30 | } 31 | 32 | .btn-xs &, 33 | .btn-group-xs > .btn & { 34 | top: 0; 35 | padding: 1px 5px; 36 | } 37 | 38 | // [converter] extracted a& to a.badge 39 | 40 | // Account for badges in navs 41 | .list-group-item.active > &, 42 | .nav-pills > .active > a > & { 43 | color: $badge-active-color; 44 | background-color: $badge-active-bg; 45 | } 46 | 47 | .list-group-item > & { 48 | float: right; 49 | } 50 | 51 | .list-group-item > & + & { 52 | margin-right: 5px; 53 | } 54 | 55 | .nav-pills > li > a > & { 56 | margin-left: 3px; 57 | } 58 | } 59 | 60 | // Hover state, but only for links 61 | a.badge { 62 | &:hover, 63 | &:focus { 64 | color: $badge-link-hover-color; 65 | text-decoration: none; 66 | cursor: pointer; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /assets/stylesheets/bootstrap/_breadcrumbs.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Breadcrumbs 3 | // -------------------------------------------------- 4 | 5 | 6 | .breadcrumb { 7 | padding: $breadcrumb-padding-vertical $breadcrumb-padding-horizontal; 8 | margin-bottom: $line-height-computed; 9 | list-style: none; 10 | background-color: $breadcrumb-bg; 11 | border-radius: $border-radius-base; 12 | 13 | > li { 14 | display: inline-block; 15 | 16 | + li:before { 17 | padding: 0 5px; 18 | color: $breadcrumb-color; 19 | // [converter] Workaround for https://github.com/sass/libsass/issues/1115 20 | $nbsp: "\00a0"; 21 | content: "#{$breadcrumb-separator}#{$nbsp}"; // Unicode space added since inline-block means non-collapsing white-space 22 | } 23 | } 24 | 25 | > .active { 26 | color: $breadcrumb-active-color; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /assets/stylesheets/bootstrap/_button-groups.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Button groups 3 | // -------------------------------------------------- 4 | 5 | // Make the div behave like a button 6 | .btn-group, 7 | .btn-group-vertical { 8 | position: relative; 9 | display: inline-block; 10 | vertical-align: middle; // match .btn alignment given font-size hack above 11 | > .btn { 12 | position: relative; 13 | float: left; 14 | // Bring the "active" button to the front 15 | &:hover, 16 | &:focus, 17 | &:active, 18 | &.active { 19 | z-index: 2; 20 | } 21 | } 22 | } 23 | 24 | // Prevent double borders when buttons are next to each other 25 | .btn-group { 26 | .btn + .btn, 27 | .btn + .btn-group, 28 | .btn-group + .btn, 29 | .btn-group + .btn-group { 30 | margin-left: -1px; 31 | } 32 | } 33 | 34 | // Optional: Group multiple button groups together for a toolbar 35 | .btn-toolbar { 36 | margin-left: -5px; // Offset the first child's margin 37 | @include clearfix; 38 | 39 | .btn, 40 | .btn-group, 41 | .input-group { 42 | float: left; 43 | } 44 | > .btn, 45 | > .btn-group, 46 | > .input-group { 47 | margin-left: 5px; 48 | } 49 | } 50 | 51 | .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { 52 | border-radius: 0; 53 | } 54 | 55 | // Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match 56 | .btn-group > .btn:first-child { 57 | margin-left: 0; 58 | &:not(:last-child):not(.dropdown-toggle) { 59 | @include border-right-radius(0); 60 | } 61 | } 62 | // Need .dropdown-toggle since :last-child doesn't apply, given that a .dropdown-menu is used immediately after it 63 | .btn-group > .btn:last-child:not(:first-child), 64 | .btn-group > .dropdown-toggle:not(:first-child) { 65 | @include border-left-radius(0); 66 | } 67 | 68 | // Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group) 69 | .btn-group > .btn-group { 70 | float: left; 71 | } 72 | .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { 73 | border-radius: 0; 74 | } 75 | .btn-group > .btn-group:first-child:not(:last-child) { 76 | > .btn:last-child, 77 | > .dropdown-toggle { 78 | @include border-right-radius(0); 79 | } 80 | } 81 | .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child { 82 | @include border-left-radius(0); 83 | } 84 | 85 | // On active and open, don't show outline 86 | .btn-group .dropdown-toggle:active, 87 | .btn-group.open .dropdown-toggle { 88 | outline: 0; 89 | } 90 | 91 | 92 | // Sizing 93 | // 94 | // Remix the default button sizing classes into new ones for easier manipulation. 95 | 96 | .btn-group-xs > .btn { @extend .btn-xs; } 97 | .btn-group-sm > .btn { @extend .btn-sm; } 98 | .btn-group-lg > .btn { @extend .btn-lg; } 99 | 100 | 101 | // Split button dropdowns 102 | // ---------------------- 103 | 104 | // Give the line between buttons some depth 105 | .btn-group > .btn + .dropdown-toggle { 106 | padding-right: 8px; 107 | padding-left: 8px; 108 | } 109 | .btn-group > .btn-lg + .dropdown-toggle { 110 | padding-right: 12px; 111 | padding-left: 12px; 112 | } 113 | 114 | // The clickable button for toggling the menu 115 | // Remove the gradient and set the same inset shadow as the :active state 116 | .btn-group.open .dropdown-toggle { 117 | @include box-shadow(inset 0 3px 5px rgba(0, 0, 0, .125)); 118 | 119 | // Show no shadow for `.btn-link` since it has no other button styles. 120 | &.btn-link { 121 | @include box-shadow(none); 122 | } 123 | } 124 | 125 | 126 | // Reposition the caret 127 | .btn .caret { 128 | margin-left: 0; 129 | } 130 | // Carets in other button sizes 131 | .btn-lg .caret { 132 | border-width: $caret-width-large $caret-width-large 0; 133 | border-bottom-width: 0; 134 | } 135 | // Upside down carets for .dropup 136 | .dropup .btn-lg .caret { 137 | border-width: 0 $caret-width-large $caret-width-large; 138 | } 139 | 140 | 141 | // Vertical button groups 142 | // ---------------------- 143 | 144 | .btn-group-vertical { 145 | > .btn, 146 | > .btn-group, 147 | > .btn-group > .btn { 148 | display: block; 149 | float: none; 150 | width: 100%; 151 | max-width: 100%; 152 | } 153 | 154 | // Clear floats so dropdown menus can be properly placed 155 | > .btn-group { 156 | @include clearfix; 157 | > .btn { 158 | float: none; 159 | } 160 | } 161 | 162 | > .btn + .btn, 163 | > .btn + .btn-group, 164 | > .btn-group + .btn, 165 | > .btn-group + .btn-group { 166 | margin-top: -1px; 167 | margin-left: 0; 168 | } 169 | } 170 | 171 | .btn-group-vertical > .btn { 172 | &:not(:first-child):not(:last-child) { 173 | border-radius: 0; 174 | } 175 | &:first-child:not(:last-child) { 176 | @include border-top-radius($btn-border-radius-base); 177 | @include border-bottom-radius(0); 178 | } 179 | &:last-child:not(:first-child) { 180 | @include border-top-radius(0); 181 | @include border-bottom-radius($btn-border-radius-base); 182 | } 183 | } 184 | .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { 185 | border-radius: 0; 186 | } 187 | .btn-group-vertical > .btn-group:first-child:not(:last-child) { 188 | > .btn:last-child, 189 | > .dropdown-toggle { 190 | @include border-bottom-radius(0); 191 | } 192 | } 193 | .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { 194 | @include border-top-radius(0); 195 | } 196 | 197 | 198 | // Justified button groups 199 | // ---------------------- 200 | 201 | .btn-group-justified { 202 | display: table; 203 | width: 100%; 204 | table-layout: fixed; 205 | border-collapse: separate; 206 | > .btn, 207 | > .btn-group { 208 | display: table-cell; 209 | float: none; 210 | width: 1%; 211 | } 212 | > .btn-group .btn { 213 | width: 100%; 214 | } 215 | 216 | > .btn-group .dropdown-menu { 217 | left: auto; 218 | } 219 | } 220 | 221 | 222 | // Checkbox and radio options 223 | // 224 | // In order to support the browser's form validation feedback, powered by the 225 | // `required` attribute, we have to "hide" the inputs via `clip`. We cannot use 226 | // `display: none;` or `visibility: hidden;` as that also hides the popover. 227 | // Simply visually hiding the inputs via `opacity` would leave them clickable in 228 | // certain cases which is prevented by using `clip` and `pointer-events`. 229 | // This way, we ensure a DOM element is visible to position the popover from. 230 | // 231 | // See https://github.com/twbs/bootstrap/pull/12794 and 232 | // https://github.com/twbs/bootstrap/pull/14559 for more information. 233 | 234 | [data-toggle="buttons"] { 235 | > .btn, 236 | > .btn-group > .btn { 237 | input[type="radio"], 238 | input[type="checkbox"] { 239 | position: absolute; 240 | clip: rect(0, 0, 0, 0); 241 | pointer-events: none; 242 | } 243 | } 244 | } 245 | -------------------------------------------------------------------------------- /assets/stylesheets/bootstrap/_buttons.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Buttons 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base styles 7 | // -------------------------------------------------- 8 | 9 | .btn { 10 | display: inline-block; 11 | margin-bottom: 0; // For input.btn 12 | font-weight: $btn-font-weight; 13 | text-align: center; 14 | white-space: nowrap; 15 | vertical-align: middle; 16 | touch-action: manipulation; 17 | cursor: pointer; 18 | background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214 19 | border: 1px solid transparent; 20 | @include button-size($padding-base-vertical, $padding-base-horizontal, $font-size-base, $line-height-base, $btn-border-radius-base); 21 | @include user-select(none); 22 | 23 | &, 24 | &:active, 25 | &.active { 26 | &:focus, 27 | &.focus { 28 | @include tab-focus; 29 | } 30 | } 31 | 32 | &:hover, 33 | &:focus, 34 | &.focus { 35 | color: $btn-default-color; 36 | text-decoration: none; 37 | } 38 | 39 | &:active, 40 | &.active { 41 | background-image: none; 42 | outline: 0; 43 | @include box-shadow(inset 0 3px 5px rgba(0, 0, 0, .125)); 44 | } 45 | 46 | &.disabled, 47 | &[disabled], 48 | fieldset[disabled] & { 49 | cursor: $cursor-disabled; 50 | @include opacity(.65); 51 | @include box-shadow(none); 52 | } 53 | 54 | // [converter] extracted a& to a.btn 55 | } 56 | 57 | a.btn { 58 | &.disabled, 59 | fieldset[disabled] & { 60 | pointer-events: none; // Future-proof disabling of clicks on `` elements 61 | } 62 | } 63 | 64 | 65 | // Alternate buttons 66 | // -------------------------------------------------- 67 | 68 | .btn-default { 69 | @include button-variant($btn-default-color, $btn-default-bg, $btn-default-border); 70 | } 71 | .btn-primary { 72 | @include button-variant($btn-primary-color, $btn-primary-bg, $btn-primary-border); 73 | } 74 | // Success appears as green 75 | .btn-success { 76 | @include button-variant($btn-success-color, $btn-success-bg, $btn-success-border); 77 | } 78 | // Info appears as blue-green 79 | .btn-info { 80 | @include button-variant($btn-info-color, $btn-info-bg, $btn-info-border); 81 | } 82 | // Warning appears as orange 83 | .btn-warning { 84 | @include button-variant($btn-warning-color, $btn-warning-bg, $btn-warning-border); 85 | } 86 | // Danger and error appear as red 87 | .btn-danger { 88 | @include button-variant($btn-danger-color, $btn-danger-bg, $btn-danger-border); 89 | } 90 | 91 | 92 | // Link buttons 93 | // ------------------------- 94 | 95 | // Make a button look and behave like a link 96 | .btn-link { 97 | font-weight: 400; 98 | color: $link-color; 99 | border-radius: 0; 100 | 101 | &, 102 | &:active, 103 | &.active, 104 | &[disabled], 105 | fieldset[disabled] & { 106 | background-color: transparent; 107 | @include box-shadow(none); 108 | } 109 | &, 110 | &:hover, 111 | &:focus, 112 | &:active { 113 | border-color: transparent; 114 | } 115 | &:hover, 116 | &:focus { 117 | color: $link-hover-color; 118 | text-decoration: $link-hover-decoration; 119 | background-color: transparent; 120 | } 121 | &[disabled], 122 | fieldset[disabled] & { 123 | &:hover, 124 | &:focus { 125 | color: $btn-link-disabled-color; 126 | text-decoration: none; 127 | } 128 | } 129 | } 130 | 131 | 132 | // Button Sizes 133 | // -------------------------------------------------- 134 | 135 | .btn-lg { 136 | // line-height: ensure even-numbered height of button next to large input 137 | @include button-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $btn-border-radius-large); 138 | } 139 | .btn-sm { 140 | // line-height: ensure proper height of button next to small input 141 | @include button-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $btn-border-radius-small); 142 | } 143 | .btn-xs { 144 | @include button-size($padding-xs-vertical, $padding-xs-horizontal, $font-size-small, $line-height-small, $btn-border-radius-small); 145 | } 146 | 147 | 148 | // Block button 149 | // -------------------------------------------------- 150 | 151 | .btn-block { 152 | display: block; 153 | width: 100%; 154 | } 155 | 156 | // Vertically space out multiple block buttons 157 | .btn-block + .btn-block { 158 | margin-top: 5px; 159 | } 160 | 161 | // Specificity overrides 162 | input[type="submit"], 163 | input[type="reset"], 164 | input[type="button"] { 165 | &.btn-block { 166 | width: 100%; 167 | } 168 | } 169 | -------------------------------------------------------------------------------- /assets/stylesheets/bootstrap/_close.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Close icons 3 | // -------------------------------------------------- 4 | 5 | 6 | .close { 7 | float: right; 8 | font-size: ($font-size-base * 1.5); 9 | font-weight: $close-font-weight; 10 | line-height: 1; 11 | color: $close-color; 12 | text-shadow: $close-text-shadow; 13 | @include opacity(.2); 14 | 15 | &:hover, 16 | &:focus { 17 | color: $close-color; 18 | text-decoration: none; 19 | cursor: pointer; 20 | @include opacity(.5); 21 | } 22 | 23 | // [converter] extracted button& to button.close 24 | } 25 | 26 | // Additional properties for button version 27 | // iOS requires the button element instead of an anchor tag. 28 | // If you want the anchor version, it requires `href="#"`. 29 | // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile 30 | button.close { 31 | padding: 0; 32 | cursor: pointer; 33 | background: transparent; 34 | border: 0; 35 | -webkit-appearance: none; 36 | appearance: none; 37 | } 38 | -------------------------------------------------------------------------------- /assets/stylesheets/bootstrap/_code.scss: -------------------------------------------------------------------------------- 1 | @use "sass:math"; 2 | // 3 | // Code (inline and block) 4 | // -------------------------------------------------- 5 | 6 | 7 | // Inline and block code styles 8 | code, 9 | kbd, 10 | pre, 11 | samp { 12 | font-family: $font-family-monospace; 13 | } 14 | 15 | // Inline code 16 | code { 17 | padding: 2px 4px; 18 | font-size: 90%; 19 | color: $code-color; 20 | background-color: $code-bg; 21 | border-radius: $border-radius-base; 22 | } 23 | 24 | // User input typically entered via keyboard 25 | kbd { 26 | padding: 2px 4px; 27 | font-size: 90%; 28 | color: $kbd-color; 29 | background-color: $kbd-bg; 30 | border-radius: $border-radius-small; 31 | box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); 32 | 33 | kbd { 34 | padding: 0; 35 | font-size: 100%; 36 | font-weight: 700; 37 | box-shadow: none; 38 | } 39 | } 40 | 41 | // Blocks of code 42 | pre { 43 | display: block; 44 | padding: math.div(($line-height-computed - 1), 2); 45 | margin: 0 0 math.div($line-height-computed, 2); 46 | font-size: ($font-size-base - 1); // 14px to 13px 47 | line-height: $line-height-base; 48 | color: $pre-color; 49 | word-break: break-all; 50 | word-wrap: break-word; 51 | background-color: $pre-bg; 52 | border: 1px solid $pre-border-color; 53 | border-radius: $border-radius-base; 54 | 55 | // Account for some code outputs that place code tags in pre tags 56 | code { 57 | padding: 0; 58 | font-size: inherit; 59 | color: inherit; 60 | white-space: pre-wrap; 61 | background-color: transparent; 62 | border-radius: 0; 63 | } 64 | } 65 | 66 | // Enable scrollable blocks of code 67 | .pre-scrollable { 68 | max-height: $pre-scrollable-max-height; 69 | overflow-y: scroll; 70 | } 71 | -------------------------------------------------------------------------------- /assets/stylesheets/bootstrap/_component-animations.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Component animations 3 | // -------------------------------------------------- 4 | 5 | // Heads up! 6 | // 7 | // We don't use the `.opacity()` mixin here since it causes a bug with text 8 | // fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552. 9 | 10 | .fade { 11 | opacity: 0; 12 | @include transition(opacity .15s linear); 13 | 14 | &.in { 15 | opacity: 1; 16 | } 17 | } 18 | 19 | .collapse { 20 | display: none; 21 | 22 | &.in { display: block; } 23 | // [converter] extracted tr&.in to tr.collapse.in 24 | // [converter] extracted tbody&.in to tbody.collapse.in 25 | } 26 | 27 | tr.collapse.in { display: table-row; } 28 | 29 | tbody.collapse.in { display: table-row-group; } 30 | 31 | .collapsing { 32 | position: relative; 33 | height: 0; 34 | overflow: hidden; 35 | @include transition-property(height, visibility); 36 | @include transition-duration(.35s); 37 | @include transition-timing-function(ease); 38 | } 39 | -------------------------------------------------------------------------------- /assets/stylesheets/bootstrap/_dropdowns.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Dropdown menus 3 | // -------------------------------------------------- 4 | 5 | 6 | // Dropdown arrow/caret 7 | .caret { 8 | display: inline-block; 9 | width: 0; 10 | height: 0; 11 | margin-left: 2px; 12 | vertical-align: middle; 13 | border-top: $caret-width-base dashed; 14 | border-top: $caret-width-base solid \9; // IE8 15 | border-right: $caret-width-base solid transparent; 16 | border-left: $caret-width-base solid transparent; 17 | } 18 | 19 | // The dropdown wrapper (div) 20 | .dropup, 21 | .dropdown { 22 | position: relative; 23 | } 24 | 25 | // Prevent the focus on the dropdown toggle when closing dropdowns 26 | .dropdown-toggle:focus { 27 | outline: 0; 28 | } 29 | 30 | // The dropdown menu (ul) 31 | .dropdown-menu { 32 | position: absolute; 33 | top: 100%; 34 | left: 0; 35 | z-index: $zindex-dropdown; 36 | display: none; // none by default, but block on "open" of the menu 37 | float: left; 38 | min-width: 160px; 39 | padding: 5px 0; 40 | margin: 2px 0 0; // override default ul 41 | font-size: $font-size-base; 42 | text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer) 43 | list-style: none; 44 | background-color: $dropdown-bg; 45 | background-clip: padding-box; 46 | border: 1px solid $dropdown-fallback-border; // IE8 fallback 47 | border: 1px solid $dropdown-border; 48 | border-radius: $border-radius-base; 49 | @include box-shadow(0 6px 12px rgba(0, 0, 0, .175)); 50 | 51 | // Aligns the dropdown menu to right 52 | // 53 | // Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]` 54 | &.pull-right { 55 | right: 0; 56 | left: auto; 57 | } 58 | 59 | // Dividers (basically an hr) within the dropdown 60 | .divider { 61 | @include nav-divider($dropdown-divider-bg); 62 | } 63 | 64 | // Links within the dropdown menu 65 | > li > a { 66 | display: block; 67 | padding: 3px 20px; 68 | clear: both; 69 | font-weight: 400; 70 | line-height: $line-height-base; 71 | color: $dropdown-link-color; 72 | white-space: nowrap; // prevent links from randomly breaking onto new lines 73 | 74 | &:hover, 75 | &:focus { 76 | color: $dropdown-link-hover-color; 77 | text-decoration: none; 78 | background-color: $dropdown-link-hover-bg; 79 | } 80 | } 81 | } 82 | 83 | // Active state 84 | .dropdown-menu > .active > a { 85 | &, 86 | &:hover, 87 | &:focus { 88 | color: $dropdown-link-active-color; 89 | text-decoration: none; 90 | background-color: $dropdown-link-active-bg; 91 | outline: 0; 92 | } 93 | } 94 | 95 | // Disabled state 96 | // 97 | // Gray out text and ensure the hover/focus state remains gray 98 | 99 | .dropdown-menu > .disabled > a { 100 | &, 101 | &:hover, 102 | &:focus { 103 | color: $dropdown-link-disabled-color; 104 | } 105 | 106 | // Nuke hover/focus effects 107 | &:hover, 108 | &:focus { 109 | text-decoration: none; 110 | cursor: $cursor-disabled; 111 | background-color: transparent; 112 | background-image: none; // Remove CSS gradient 113 | @include reset-filter; 114 | } 115 | } 116 | 117 | // Open state for the dropdown 118 | .open { 119 | // Show the menu 120 | > .dropdown-menu { 121 | display: block; 122 | } 123 | 124 | // Remove the outline when :focus is triggered 125 | > a { 126 | outline: 0; 127 | } 128 | } 129 | 130 | // Menu positioning 131 | // 132 | // Add extra class to `.dropdown-menu` to flip the alignment of the dropdown 133 | // menu with the parent. 134 | .dropdown-menu-right { 135 | right: 0; 136 | left: auto; // Reset the default from `.dropdown-menu` 137 | } 138 | // With v3, we enabled auto-flipping if you have a dropdown within a right 139 | // aligned nav component. To enable the undoing of that, we provide an override 140 | // to restore the default dropdown menu alignment. 141 | // 142 | // This is only for left-aligning a dropdown menu within a `.navbar-right` or 143 | // `.pull-right` nav component. 144 | .dropdown-menu-left { 145 | right: auto; 146 | left: 0; 147 | } 148 | 149 | // Dropdown section headers 150 | .dropdown-header { 151 | display: block; 152 | padding: 3px 20px; 153 | font-size: $font-size-small; 154 | line-height: $line-height-base; 155 | color: $dropdown-header-color; 156 | white-space: nowrap; // as with > li > a 157 | } 158 | 159 | // Backdrop to catch body clicks on mobile, etc. 160 | .dropdown-backdrop { 161 | position: fixed; 162 | top: 0; 163 | right: 0; 164 | bottom: 0; 165 | left: 0; 166 | z-index: ($zindex-dropdown - 10); 167 | } 168 | 169 | // Right aligned dropdowns 170 | .pull-right > .dropdown-menu { 171 | right: 0; 172 | left: auto; 173 | } 174 | 175 | // Allow for dropdowns to go bottom up (aka, dropup-menu) 176 | // 177 | // Just add .dropup after the standard .dropdown class and you're set, bro. 178 | // TODO: abstract this so that the navbar fixed styles are not placed here? 179 | 180 | .dropup, 181 | .navbar-fixed-bottom .dropdown { 182 | // Reverse the caret 183 | .caret { 184 | content: ""; 185 | border-top: 0; 186 | border-bottom: $caret-width-base dashed; 187 | border-bottom: $caret-width-base solid \9; // IE8 188 | } 189 | // Different positioning for bottom up menu 190 | .dropdown-menu { 191 | top: auto; 192 | bottom: 100%; 193 | margin-bottom: 2px; 194 | } 195 | } 196 | 197 | 198 | // Component alignment 199 | // 200 | // Reiterate per navbar.less and the modified component alignment there. 201 | 202 | @media (min-width: $grid-float-breakpoint) { 203 | .navbar-right { 204 | .dropdown-menu { 205 | right: 0; left: auto; 206 | } 207 | // Necessary for overrides of the default right aligned menu. 208 | // Will remove come v4 in all likelihood. 209 | .dropdown-menu-left { 210 | left: 0; right: auto; 211 | } 212 | } 213 | } 214 | -------------------------------------------------------------------------------- /assets/stylesheets/bootstrap/_grid.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Grid system 3 | // -------------------------------------------------- 4 | 5 | 6 | // Container widths 7 | // 8 | // Set the container width, and override it for fixed navbars in media queries. 9 | 10 | .container { 11 | @include container-fixed; 12 | 13 | @media (min-width: $screen-sm-min) { 14 | width: $container-sm; 15 | } 16 | @media (min-width: $screen-md-min) { 17 | width: $container-md; 18 | } 19 | @media (min-width: $screen-lg-min) { 20 | width: $container-lg; 21 | } 22 | } 23 | 24 | 25 | // Fluid container 26 | // 27 | // Utilizes the mixin meant for fixed width containers, but without any defined 28 | // width for fluid, full width layouts. 29 | 30 | .container-fluid { 31 | @include container-fixed; 32 | } 33 | 34 | 35 | // Row 36 | // 37 | // Rows contain and clear the floats of your columns. 38 | 39 | .row { 40 | @include make-row; 41 | } 42 | 43 | .row-no-gutters { 44 | margin-right: 0; 45 | margin-left: 0; 46 | 47 | [class*="col-"] { 48 | padding-right: 0; 49 | padding-left: 0; 50 | } 51 | } 52 | 53 | 54 | // Columns 55 | // 56 | // Common styles for small and large grid columns 57 | 58 | @include make-grid-columns; 59 | 60 | 61 | // Extra small grid 62 | // 63 | // Columns, offsets, pushes, and pulls for extra small devices like 64 | // smartphones. 65 | 66 | @include make-grid(xs); 67 | 68 | 69 | // Small grid 70 | // 71 | // Columns, offsets, pushes, and pulls for the small device range, from phones 72 | // to tablets. 73 | 74 | @media (min-width: $screen-sm-min) { 75 | @include make-grid(sm); 76 | } 77 | 78 | 79 | // Medium grid 80 | // 81 | // Columns, offsets, pushes, and pulls for the desktop device range. 82 | 83 | @media (min-width: $screen-md-min) { 84 | @include make-grid(md); 85 | } 86 | 87 | 88 | // Large grid 89 | // 90 | // Columns, offsets, pushes, and pulls for the large desktop device range. 91 | 92 | @media (min-width: $screen-lg-min) { 93 | @include make-grid(lg); 94 | } 95 | -------------------------------------------------------------------------------- /assets/stylesheets/bootstrap/_input-groups.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Input groups 3 | // -------------------------------------------------- 4 | 5 | // Base styles 6 | // ------------------------- 7 | .input-group { 8 | position: relative; // For dropdowns 9 | display: table; 10 | border-collapse: separate; // prevent input groups from inheriting border styles from table cells when placed within a table 11 | 12 | // Undo padding and float of grid classes 13 | &[class*="col-"] { 14 | float: none; 15 | padding-right: 0; 16 | padding-left: 0; 17 | } 18 | 19 | .form-control { 20 | // Ensure that the input is always above the *appended* addon button for 21 | // proper border colors. 22 | position: relative; 23 | z-index: 2; 24 | 25 | // IE9 fubars the placeholder attribute in text inputs and the arrows on 26 | // select elements in input groups. To fix it, we float the input. Details: 27 | // https://github.com/twbs/bootstrap/issues/11561#issuecomment-28936855 28 | float: left; 29 | 30 | width: 100%; 31 | margin-bottom: 0; 32 | 33 | &:focus { 34 | z-index: 3; 35 | } 36 | } 37 | } 38 | 39 | // Sizing options 40 | // 41 | // Remix the default form control sizing classes into new ones for easier 42 | // manipulation. 43 | 44 | .input-group-lg > .form-control, 45 | .input-group-lg > .input-group-addon, 46 | .input-group-lg > .input-group-btn > .btn { 47 | @extend .input-lg; 48 | } 49 | .input-group-sm > .form-control, 50 | .input-group-sm > .input-group-addon, 51 | .input-group-sm > .input-group-btn > .btn { 52 | @extend .input-sm; 53 | } 54 | 55 | 56 | // Display as table-cell 57 | // ------------------------- 58 | .input-group-addon, 59 | .input-group-btn, 60 | .input-group .form-control { 61 | display: table-cell; 62 | 63 | &:not(:first-child):not(:last-child) { 64 | border-radius: 0; 65 | } 66 | } 67 | // Addon and addon wrapper for buttons 68 | .input-group-addon, 69 | .input-group-btn { 70 | width: 1%; 71 | white-space: nowrap; 72 | vertical-align: middle; // Match the inputs 73 | } 74 | 75 | // Text input groups 76 | // ------------------------- 77 | .input-group-addon { 78 | padding: $padding-base-vertical $padding-base-horizontal; 79 | font-size: $font-size-base; 80 | font-weight: 400; 81 | line-height: 1; 82 | color: $input-color; 83 | text-align: center; 84 | background-color: $input-group-addon-bg; 85 | border: 1px solid $input-group-addon-border-color; 86 | border-radius: $input-border-radius; 87 | 88 | // Sizing 89 | &.input-sm { 90 | padding: $padding-small-vertical $padding-small-horizontal; 91 | font-size: $font-size-small; 92 | border-radius: $input-border-radius-small; 93 | } 94 | &.input-lg { 95 | padding: $padding-large-vertical $padding-large-horizontal; 96 | font-size: $font-size-large; 97 | border-radius: $input-border-radius-large; 98 | } 99 | 100 | // Nuke default margins from checkboxes and radios to vertically center within. 101 | input[type="radio"], 102 | input[type="checkbox"] { 103 | margin-top: 0; 104 | } 105 | } 106 | 107 | // Reset rounded corners 108 | .input-group .form-control:first-child, 109 | .input-group-addon:first-child, 110 | .input-group-btn:first-child > .btn, 111 | .input-group-btn:first-child > .btn-group > .btn, 112 | .input-group-btn:first-child > .dropdown-toggle, 113 | .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), 114 | .input-group-btn:last-child > .btn-group:not(:last-child) > .btn { 115 | @include border-right-radius(0); 116 | } 117 | .input-group-addon:first-child { 118 | border-right: 0; 119 | } 120 | .input-group .form-control:last-child, 121 | .input-group-addon:last-child, 122 | .input-group-btn:last-child > .btn, 123 | .input-group-btn:last-child > .btn-group > .btn, 124 | .input-group-btn:last-child > .dropdown-toggle, 125 | .input-group-btn:first-child > .btn:not(:first-child), 126 | .input-group-btn:first-child > .btn-group:not(:first-child) > .btn { 127 | @include border-left-radius(0); 128 | } 129 | .input-group-addon:last-child { 130 | border-left: 0; 131 | } 132 | 133 | // Button input groups 134 | // ------------------------- 135 | .input-group-btn { 136 | position: relative; 137 | // Jankily prevent input button groups from wrapping with `white-space` and 138 | // `font-size` in combination with `inline-block` on buttons. 139 | font-size: 0; 140 | white-space: nowrap; 141 | 142 | // Negative margin for spacing, position for bringing hovered/focused/actived 143 | // element above the siblings. 144 | > .btn { 145 | position: relative; 146 | + .btn { 147 | margin-left: -1px; 148 | } 149 | // Bring the "active" button to the front 150 | &:hover, 151 | &:focus, 152 | &:active { 153 | z-index: 2; 154 | } 155 | } 156 | 157 | // Negative margin to only have a 1px border between the two 158 | &:first-child { 159 | > .btn, 160 | > .btn-group { 161 | margin-right: -1px; 162 | } 163 | } 164 | &:last-child { 165 | > .btn, 166 | > .btn-group { 167 | z-index: 2; 168 | margin-left: -1px; 169 | } 170 | } 171 | } 172 | -------------------------------------------------------------------------------- /assets/stylesheets/bootstrap/_jumbotron.scss: -------------------------------------------------------------------------------- 1 | @use "sass:math"; 2 | // 3 | // Jumbotron 4 | // -------------------------------------------------- 5 | 6 | 7 | .jumbotron { 8 | padding-top: $jumbotron-padding; 9 | padding-bottom: $jumbotron-padding; 10 | margin-bottom: $jumbotron-padding; 11 | color: $jumbotron-color; 12 | background-color: $jumbotron-bg; 13 | 14 | h1, 15 | .h1 { 16 | color: $jumbotron-heading-color; 17 | } 18 | 19 | p { 20 | margin-bottom: math.div($jumbotron-padding, 2); 21 | font-size: $jumbotron-font-size; 22 | font-weight: 200; 23 | } 24 | 25 | > hr { 26 | border-top-color: darken($jumbotron-bg, 10%); 27 | } 28 | 29 | .container &, 30 | .container-fluid & { 31 | padding-right: math.div($grid-gutter-width, 2); 32 | padding-left: math.div($grid-gutter-width, 2); 33 | border-radius: $border-radius-large; // Only round corners at higher resolutions if contained in a container 34 | } 35 | 36 | .container { 37 | max-width: 100%; 38 | } 39 | 40 | @media screen and (min-width: $screen-sm-min) { 41 | padding-top: ($jumbotron-padding * 1.6); 42 | padding-bottom: ($jumbotron-padding * 1.6); 43 | 44 | .container &, 45 | .container-fluid & { 46 | padding-right: ($jumbotron-padding * 2); 47 | padding-left: ($jumbotron-padding * 2); 48 | } 49 | 50 | h1, 51 | .h1 { 52 | font-size: $jumbotron-heading-font-size; 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /assets/stylesheets/bootstrap/_labels.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Labels 3 | // -------------------------------------------------- 4 | 5 | .label { 6 | display: inline; 7 | padding: .2em .6em .3em; 8 | font-size: 75%; 9 | font-weight: 700; 10 | line-height: 1; 11 | color: $label-color; 12 | text-align: center; 13 | white-space: nowrap; 14 | vertical-align: baseline; 15 | border-radius: .25em; 16 | 17 | // [converter] extracted a& to a.label 18 | 19 | // Empty labels collapse automatically (not available in IE8) 20 | &:empty { 21 | display: none; 22 | } 23 | 24 | // Quick fix for labels in buttons 25 | .btn & { 26 | position: relative; 27 | top: -1px; 28 | } 29 | } 30 | 31 | // Add hover effects, but only for links 32 | a.label { 33 | &:hover, 34 | &:focus { 35 | color: $label-link-hover-color; 36 | text-decoration: none; 37 | cursor: pointer; 38 | } 39 | } 40 | 41 | // Colors 42 | // Contextual variations (linked labels get darker on :hover) 43 | 44 | .label-default { 45 | @include label-variant($label-default-bg); 46 | } 47 | 48 | .label-primary { 49 | @include label-variant($label-primary-bg); 50 | } 51 | 52 | .label-success { 53 | @include label-variant($label-success-bg); 54 | } 55 | 56 | .label-info { 57 | @include label-variant($label-info-bg); 58 | } 59 | 60 | .label-warning { 61 | @include label-variant($label-warning-bg); 62 | } 63 | 64 | .label-danger { 65 | @include label-variant($label-danger-bg); 66 | } 67 | -------------------------------------------------------------------------------- /assets/stylesheets/bootstrap/_list-group.scss: -------------------------------------------------------------------------------- 1 | // 2 | // List groups 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | // 8 | // Easily usable on