on-standards-rails 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/README.md +48 -0
- data/Rakefile +1 -0
- data/lib/on-standards-rails.rb +4 -0
- data/lib/on/standards/rails.rb +10 -0
- data/lib/on/standards/rails/version.rb +7 -0
- data/on-standards-rails.gemspec +28 -0
- data/vendor/assets/javascripts/c2c-standards.js +26 -0
- data/vendor/assets/javascripts/c2c-standards/vendor/chosen.jquery.min.js +2 -0
- data/vendor/assets/javascripts/c2c-standards/vendor/jquery.tooltipster.min.js +1 -0
- data/vendor/assets/javascripts/c2c-standards/vendor/sweet-alert.min.js +1 -0
- data/vendor/assets/stylesheets/c2c-overrides.sass +0 -0
- data/vendor/assets/stylesheets/c2c-standards.sass +7 -0
- data/vendor/assets/stylesheets/c2c-standards/church_to_church.sass +1323 -0
- data/vendor/assets/stylesheets/c2c-standards/vendor/chosen.min.css +3 -0
- data/vendor/assets/stylesheets/c2c-standards/vendor/sweet-alert.scss +429 -0
- data/vendor/assets/stylesheets/c2c-standards/vendor/tooltipster.css +274 -0
- data/vendor/assets/stylesheets/foundation_and_overrides.scss +1450 -0
- metadata +147 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 073cecada7573f4bfe37b3b14c70a208ac3e002e
|
4
|
+
data.tar.gz: 31e31e1a62222663bfa706f9f430fcdf7287f529
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 552f43f090d14e3a8a4c1896cb8e61acf52ace026f53eb5188974ac839dde07eb16cb55bc709147b4bd1a88af971cd4f66835a66ea50934ecccba15d4187704d
|
7
|
+
data.tar.gz: 646a8dd041ad7b379a3452eb333f16c181ea2a8525ba4eed080222a1aab3c98cacbc3301a20c4b19ed2c3a4de1ecf9be462217fa045d298fdf13d13174123a42
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# ON::Standards::Rails
|
2
|
+
|
3
|
+
ON::Standards::Rails is gem to make your life easier when applying the ON style to our applications. You can get started by following the instructions below.
|
4
|
+
|
5
|
+
http://on-standards.herokuapp.com
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
gem 'c2c-standards-rails', git: 'git://github.com/lifechurch/c2c-standards-rails.git'
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
Need to push to rubygems
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
Add to application.js
|
24
|
+
`//= require c2c-standards`
|
25
|
+
|
26
|
+
add to application.sass
|
27
|
+
`@import c2c-standards`
|
28
|
+
|
29
|
+
add typekit to application.html.haml
|
30
|
+
```
|
31
|
+
<script type="text/javascript" src="//use.typekit.net/nba0bde.js"></script>
|
32
|
+
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
|
33
|
+
```
|
34
|
+
|
35
|
+
## Contributing
|
36
|
+
|
37
|
+
1. Fork it
|
38
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
39
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
40
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
41
|
+
5. Create new Pull Request
|
42
|
+
|
43
|
+
|
44
|
+
## Change Log
|
45
|
+
|
46
|
+
### V1.5.1
|
47
|
+
- Update Gray Color Spectrum to 10 point step percentage variables.
|
48
|
+
- Now use `$gray-%` where % is a 5 or multiple of 10 for gray colors.
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'on/standards/rails/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "on-standards-rails"
|
8
|
+
spec.version = ON::Standards::Rails::VERSION
|
9
|
+
spec.authors = ["Scott Hill"]
|
10
|
+
spec.email = ["scott.hill@life.church"]
|
11
|
+
spec.summary = "Style Standards for Life Church Open Network Team"
|
12
|
+
spec.description = "Style Standards for Life Church Open Network Team"
|
13
|
+
spec.homepage = "http://on-standards.herokuapp.com/"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.4"
|
22
|
+
spec.add_dependency('sass-rails')
|
23
|
+
spec.add_dependency('compass-rails', ['~> 1.1.3'])
|
24
|
+
spec.add_dependency('font-awesome-sass', ['~> 4.2.0'])
|
25
|
+
spec.add_dependency('foundation-rails', ['~> 5.4.3'])
|
26
|
+
spec.add_development_dependency "rake"
|
27
|
+
end
|
28
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
//= require foundation
|
2
|
+
//= require c2c-standards/vendor/jquery.tooltipster.min
|
3
|
+
//= require c2c-standards/vendor/chosen.jquery.min
|
4
|
+
//= require c2c-standards/vendor/sweet-alert.min
|
5
|
+
|
6
|
+
$(document).ready(function() {
|
7
|
+
|
8
|
+
// Used to destroy flash messages.
|
9
|
+
$(document).on("click", ".flash-close", function() {
|
10
|
+
$(this).parent('.flash').fadeOut(200, function() {
|
11
|
+
$(this).remove();
|
12
|
+
});
|
13
|
+
});
|
14
|
+
|
15
|
+
// Foundation
|
16
|
+
$(function(){ $(document).foundation(); });
|
17
|
+
|
18
|
+
// Tooltipster.js
|
19
|
+
$('.tooltip').tooltipster();
|
20
|
+
|
21
|
+
// Chosen.js
|
22
|
+
$("select").chosen( {disable_search_threshold: 7,
|
23
|
+
width: "auto"
|
24
|
+
});
|
25
|
+
|
26
|
+
});
|
@@ -0,0 +1,2 @@
|
|
1
|
+
/* Chosen v1.1.0 | (c) 2011-2013 by Harvest | MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md */
|
2
|
+
!function(){var a,AbstractChosen,Chosen,SelectParser,b,c={}.hasOwnProperty,d=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a[e]=b[e]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a};SelectParser=function(){function SelectParser(){this.options_index=0,this.parsed=[]}return SelectParser.prototype.add_node=function(a){return"OPTGROUP"===a.nodeName.toUpperCase()?this.add_group(a):this.add_option(a)},SelectParser.prototype.add_group=function(a){var b,c,d,e,f,g;for(b=this.parsed.length,this.parsed.push({array_index:b,group:!0,label:this.escapeExpression(a.label),children:0,disabled:a.disabled}),f=a.childNodes,g=[],d=0,e=f.length;e>d;d++)c=f[d],g.push(this.add_option(c,b,a.disabled));return g},SelectParser.prototype.add_option=function(a,b,c){return"OPTION"===a.nodeName.toUpperCase()?(""!==a.text?(null!=b&&(this.parsed[b].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:a.value,text:a.text,html:a.innerHTML,selected:a.selected,disabled:c===!0?c:a.disabled,group_array_index:b,classes:a.className,style:a.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1):void 0},SelectParser.prototype.escapeExpression=function(a){var b,c;return null==a||a===!1?"":/[\&\<\>\"\'\`]/.test(a)?(b={"<":"<",">":">",'"':""","'":"'","`":"`"},c=/&(?!\w+;)|[\<\>\"\'\`]/g,a.replace(c,function(a){return b[a]||"&"})):a},SelectParser}(),SelectParser.select_to_array=function(a){var b,c,d,e,f;for(c=new SelectParser,f=a.childNodes,d=0,e=f.length;e>d;d++)b=f[d],c.add_node(b);return c.parsed},AbstractChosen=function(){function AbstractChosen(a,b){this.form_field=a,this.options=null!=b?b:{},AbstractChosen.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers())}return AbstractChosen.prototype.set_default_values=function(){var a=this;return this.click_test_action=function(b){return a.test_active_click(b)},this.activate_action=function(b){return a.activate_field(b)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null!=this.options.enable_split_word_search?this.options.enable_split_word_search:!0,this.group_search=null!=this.options.group_search?this.options.group_search:!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null!=this.options.single_backstroke_delete?this.options.single_backstroke_delete:!0,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null!=this.options.display_selected_options?this.options.display_selected_options:!0,this.display_disabled_options=null!=this.options.display_disabled_options?this.options.display_disabled_options:!0},AbstractChosen.prototype.set_default_text=function(){return this.default_text=this.form_field.getAttribute("data-placeholder")?this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||AbstractChosen.default_multiple_text:this.options.placeholder_text_single||this.options.placeholder_text||AbstractChosen.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||AbstractChosen.default_no_result_text},AbstractChosen.prototype.mouse_enter=function(){return this.mouse_on_container=!0},AbstractChosen.prototype.mouse_leave=function(){return this.mouse_on_container=!1},AbstractChosen.prototype.input_focus=function(){var a=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return a.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},AbstractChosen.prototype.input_blur=function(){var a=this;return this.mouse_on_container?void 0:(this.active_field=!1,setTimeout(function(){return a.blur_test()},100))},AbstractChosen.prototype.results_option_build=function(a){var b,c,d,e,f;for(b="",f=this.results_data,d=0,e=f.length;e>d;d++)c=f[d],b+=c.group?this.result_add_group(c):this.result_add_option(c),(null!=a?a.first:void 0)&&(c.selected&&this.is_multiple?this.choice_build(c):c.selected&&!this.is_multiple&&this.single_set_selected_text(c.text));return b},AbstractChosen.prototype.result_add_option=function(a){var b,c;return a.search_match?this.include_option_in_results(a)?(b=[],a.disabled||a.selected&&this.is_multiple||b.push("active-result"),!a.disabled||a.selected&&this.is_multiple||b.push("disabled-result"),a.selected&&b.push("result-selected"),null!=a.group_array_index&&b.push("group-option"),""!==a.classes&&b.push(a.classes),c=document.createElement("li"),c.className=b.join(" "),c.style.cssText=a.style,c.setAttribute("data-option-array-index",a.array_index),c.innerHTML=a.search_text,this.outerHTML(c)):"":""},AbstractChosen.prototype.result_add_group=function(a){var b;return a.search_match||a.group_match?a.active_options>0?(b=document.createElement("li"),b.className="group-result",b.innerHTML=a.search_text,this.outerHTML(b)):"":""},AbstractChosen.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing?this.winnow_results():void 0},AbstractChosen.prototype.reset_single_select_options=function(){var a,b,c,d,e;for(d=this.results_data,e=[],b=0,c=d.length;c>b;b++)a=d[b],a.selected?e.push(a.selected=!1):e.push(void 0);return e},AbstractChosen.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},AbstractChosen.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},AbstractChosen.prototype.winnow_results=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m;for(this.no_results_clear(),e=0,g=this.get_search_text(),a=g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),d=this.search_contains?"":"^",c=new RegExp(d+a,"i"),j=new RegExp(a,"i"),m=this.results_data,k=0,l=m.length;l>k;k++)b=m[k],b.search_match=!1,f=null,this.include_option_in_results(b)&&(b.group&&(b.group_match=!1,b.active_options=0),null!=b.group_array_index&&this.results_data[b.group_array_index]&&(f=this.results_data[b.group_array_index],0===f.active_options&&f.search_match&&(e+=1),f.active_options+=1),(!b.group||this.group_search)&&(b.search_text=b.group?b.label:b.html,b.search_match=this.search_string_match(b.search_text,c),b.search_match&&!b.group&&(e+=1),b.search_match?(g.length&&(h=b.search_text.search(j),i=b.search_text.substr(0,h+g.length)+"</em>"+b.search_text.substr(h+g.length),b.search_text=i.substr(0,h)+"<em>"+i.substr(h)),null!=f&&(f.group_match=!0)):null!=b.group_array_index&&this.results_data[b.group_array_index].search_match&&(b.search_match=!0)));return this.result_clear_highlight(),1>e&&g.length?(this.update_results_content(""),this.no_results(g)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},AbstractChosen.prototype.search_string_match=function(a,b){var c,d,e,f;if(b.test(a))return!0;if(this.enable_split_word_search&&(a.indexOf(" ")>=0||0===a.indexOf("["))&&(d=a.replace(/\[|\]/g,"").split(" "),d.length))for(e=0,f=d.length;f>e;e++)if(c=d[e],b.test(c))return!0},AbstractChosen.prototype.choices_count=function(){var a,b,c,d;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,d=this.form_field.options,b=0,c=d.length;c>b;b++)a=d[b],a.selected&&(this.selected_option_count+=1);return this.selected_option_count},AbstractChosen.prototype.choices_click=function(a){return a.preventDefault(),this.results_showing||this.is_disabled?void 0:this.results_show()},AbstractChosen.prototype.keyup_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),b){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(a.preventDefault(),this.results_showing)return this.result_select(a);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},AbstractChosen.prototype.clipboard_event_checker=function(){var a=this;return setTimeout(function(){return a.results_search()},50)},AbstractChosen.prototype.container_width=function(){return null!=this.options.width?this.options.width:""+this.form_field.offsetWidth+"px"},AbstractChosen.prototype.include_option_in_results=function(a){return this.is_multiple&&!this.display_selected_options&&a.selected?!1:!this.display_disabled_options&&a.disabled?!1:a.empty?!1:!0},AbstractChosen.prototype.search_results_touchstart=function(a){return this.touch_started=!0,this.search_results_mouseover(a)},AbstractChosen.prototype.search_results_touchmove=function(a){return this.touch_started=!1,this.search_results_mouseout(a)},AbstractChosen.prototype.search_results_touchend=function(a){return this.touch_started?this.search_results_mouseup(a):void 0},AbstractChosen.prototype.outerHTML=function(a){var b;return a.outerHTML?a.outerHTML:(b=document.createElement("div"),b.appendChild(a),b.innerHTML)},AbstractChosen.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:/iP(od|hone)/i.test(window.navigator.userAgent)?!1:/Android/i.test(window.navigator.userAgent)&&/Mobile/i.test(window.navigator.userAgent)?!1:!0},AbstractChosen.default_multiple_text="Select Some Options",AbstractChosen.default_single_text="Select an Option",AbstractChosen.default_no_result_text="No results match",AbstractChosen}(),a=jQuery,a.fn.extend({chosen:function(b){return AbstractChosen.browser_is_supported()?this.each(function(){var c,d;c=a(this),d=c.data("chosen"),"destroy"===b&&d?d.destroy():d||c.data("chosen",new Chosen(this,b))}):this}}),Chosen=function(c){function Chosen(){return b=Chosen.__super__.constructor.apply(this,arguments)}return d(Chosen,c),Chosen.prototype.setup=function(){return this.form_field_jq=a(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},Chosen.prototype.set_up_html=function(){var b,c;return b=["chosen-container"],b.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&b.push(this.form_field.className),this.is_rtl&&b.push("chosen-rtl"),c={"class":b.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(c.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=a("<div />",c),this.is_multiple?this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>'):this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior(),this.form_field_jq.trigger("chosen:ready",{chosen:this})},Chosen.prototype.register_observers=function(){var a=this;return this.container.bind("mousedown.chosen",function(b){a.container_mousedown(b)}),this.container.bind("mouseup.chosen",function(b){a.container_mouseup(b)}),this.container.bind("mouseenter.chosen",function(b){a.mouse_enter(b)}),this.container.bind("mouseleave.chosen",function(b){a.mouse_leave(b)}),this.search_results.bind("mouseup.chosen",function(b){a.search_results_mouseup(b)}),this.search_results.bind("mouseover.chosen",function(b){a.search_results_mouseover(b)}),this.search_results.bind("mouseout.chosen",function(b){a.search_results_mouseout(b)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(b){a.search_results_mousewheel(b)}),this.search_results.bind("touchstart.chosen",function(b){a.search_results_touchstart(b)}),this.search_results.bind("touchmove.chosen",function(b){a.search_results_touchmove(b)}),this.search_results.bind("touchend.chosen",function(b){a.search_results_touchend(b)}),this.form_field_jq.bind("chosen:updated.chosen",function(b){a.results_update_field(b)}),this.form_field_jq.bind("chosen:activate.chosen",function(b){a.activate_field(b)}),this.form_field_jq.bind("chosen:open.chosen",function(b){a.container_mousedown(b)}),this.form_field_jq.bind("chosen:close.chosen",function(b){a.input_blur(b)}),this.search_field.bind("blur.chosen",function(b){a.input_blur(b)}),this.search_field.bind("keyup.chosen",function(b){a.keyup_checker(b)}),this.search_field.bind("keydown.chosen",function(b){a.keydown_checker(b)}),this.search_field.bind("focus.chosen",function(b){a.input_focus(b)}),this.search_field.bind("cut.chosen",function(b){a.clipboard_event_checker(b)}),this.search_field.bind("paste.chosen",function(b){a.clipboard_event_checker(b)}),this.is_multiple?this.search_choices.bind("click.chosen",function(b){a.choices_click(b)}):this.container.bind("click.chosen",function(a){a.preventDefault()})},Chosen.prototype.destroy=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},Chosen.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},Chosen.prototype.container_mousedown=function(b){return this.is_disabled||(b&&"mousedown"===b.type&&!this.results_showing&&b.preventDefault(),null!=b&&a(b.target).hasClass("search-choice-close"))?void 0:(this.active_field?this.is_multiple||!b||a(b.target)[0]!==this.selected_item[0]&&!a(b.target).parents("a.chosen-single").length||(b.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),a(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},Chosen.prototype.container_mouseup=function(a){return"ABBR"!==a.target.nodeName||this.is_disabled?void 0:this.results_reset(a)},Chosen.prototype.search_results_mousewheel=function(a){var b;return a.originalEvent&&(b=-a.originalEvent.wheelDelta||a.originalEvent.detail),null!=b?(a.preventDefault(),"DOMMouseScroll"===a.type&&(b=40*b),this.search_results.scrollTop(b+this.search_results.scrollTop())):void 0},Chosen.prototype.blur_test=function(){return!this.active_field&&this.container.hasClass("chosen-container-active")?this.close_field():void 0},Chosen.prototype.close_field=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},Chosen.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},Chosen.prototype.test_active_click=function(b){var c;return c=a(b.target).closest(".chosen-container"),c.length&&this.container[0]===c[0]?this.active_field=!0:this.close_field()},Chosen.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=SelectParser.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},Chosen.prototype.result_do_highlight=function(a){var b,c,d,e,f;if(a.length){if(this.result_clear_highlight(),this.result_highlight=a,this.result_highlight.addClass("highlighted"),d=parseInt(this.search_results.css("maxHeight"),10),f=this.search_results.scrollTop(),e=d+f,c=this.result_highlight.position().top+this.search_results.scrollTop(),b=c+this.result_highlight.outerHeight(),b>=e)return this.search_results.scrollTop(b-d>0?b-d:0);if(f>c)return this.search_results.scrollTop(c)}},Chosen.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},Chosen.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},Chosen.prototype.update_results_content=function(a){return this.search_results.html(a)},Chosen.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},Chosen.prototype.set_tab_index=function(){var a;return this.form_field.tabIndex?(a=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=a):void 0},Chosen.prototype.set_label_behavior=function(){var b=this;return this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=a("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0?this.form_field_label.bind("click.chosen",function(a){return b.is_multiple?b.container_mousedown(a):b.activate_field()}):void 0},Chosen.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},Chosen.prototype.search_results_mouseup=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c.length?(this.result_highlight=c,this.result_select(b),this.search_field.focus()):void 0},Chosen.prototype.search_results_mouseover=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c?this.result_do_highlight(c):void 0},Chosen.prototype.search_results_mouseout=function(b){return a(b.target).hasClass("active-result")?this.result_clear_highlight():void 0},Chosen.prototype.choice_build=function(b){var c,d,e=this;return c=a("<li />",{"class":"search-choice"}).html("<span>"+b.html+"</span>"),b.disabled?c.addClass("search-choice-disabled"):(d=a("<a />",{"class":"search-choice-close","data-option-array-index":b.array_index}),d.bind("click.chosen",function(a){return e.choice_destroy_link_click(a)}),c.append(d)),this.search_container.before(c)},Chosen.prototype.choice_destroy_link_click=function(b){return b.preventDefault(),b.stopPropagation(),this.is_disabled?void 0:this.choice_destroy(a(b.target))},Chosen.prototype.choice_destroy=function(a){return this.result_deselect(a[0].getAttribute("data-option-array-index"))?(this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),a.parents("li").first().remove(),this.search_field_scale()):void 0},Chosen.prototype.results_reset=function(){return this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field?this.results_hide():void 0},Chosen.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},Chosen.prototype.result_select=function(a){var b,c;return this.result_highlight?(b=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?b.removeClass("active-result"):this.reset_single_select_options(),c=this.results_data[b[0].getAttribute("data-option-array-index")],c.selected=!0,this.form_field.options[c.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(c):this.single_set_selected_text(c.text),(a.metaKey||a.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[c.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale())):void 0},Chosen.prototype.single_set_selected_text=function(a){return null==a&&(a=this.default_text),a===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").text(a)},Chosen.prototype.result_deselect=function(a){var b;return b=this.results_data[a],this.form_field.options[b.options_index].disabled?!1:(b.selected=!1,this.form_field.options[b.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[b.options_index].value}),this.search_field_scale(),!0)},Chosen.prototype.single_deselect_control_build=function(){return this.allow_single_deselect?(this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")):void 0},Chosen.prototype.get_search_text=function(){return this.search_field.val()===this.default_text?"":a("<div/>").text(a.trim(this.search_field.val())).html()},Chosen.prototype.winnow_results_set_highlight=function(){var a,b;return b=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),a=b.length?b.first():this.search_results.find(".active-result").first(),null!=a?this.result_do_highlight(a):void 0},Chosen.prototype.no_results=function(b){var c;return c=a('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),c.find("span").first().html(b),this.search_results.append(c),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},Chosen.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},Chosen.prototype.keydown_arrow=function(){var a;return this.results_showing&&this.result_highlight?(a=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(a):void 0:this.results_show()},Chosen.prototype.keyup_arrow=function(){var a;return this.results_showing||this.is_multiple?this.result_highlight?(a=this.result_highlight.prevAll("li.active-result"),a.length?this.result_do_highlight(a.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},Chosen.prototype.keydown_backstroke=function(){var a;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(a=this.search_container.siblings("li.search-choice").last(),a.length&&!a.hasClass("search-choice-disabled")?(this.pending_backstroke=a,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},Chosen.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},Chosen.prototype.keydown_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),8!==b&&this.pending_backstroke&&this.clear_backstroke(),b){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(a),this.mouse_on_container=!1;break;case 13:a.preventDefault();break;case 38:a.preventDefault(),this.keyup_arrow();break;case 40:a.preventDefault(),this.keydown_arrow()}},Chosen.prototype.search_field_scale=function(){var b,c,d,e,f,g,h,i,j;if(this.is_multiple){for(d=0,h=0,f="position:absolute; left: -1000px; top: -1000px; display:none;",g=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],i=0,j=g.length;j>i;i++)e=g[i],f+=e+":"+this.search_field.css(e)+";";return b=a("<div />",{style:f}),b.text(this.search_field.val()),a("body").append(b),h=b.width()+25,b.remove(),c=this.container.outerWidth(),h>c-10&&(h=c-10),this.search_field.css({width:h+"px"})}},Chosen}(AbstractChosen)}.call(this);
|
@@ -0,0 +1 @@
|
|
1
|
+
/* Tooltipster v3.2.6 */;(function(e,t,n){function s(t,n){this.bodyOverflowX;this.callbacks={hide:[],show:[]};this.checkInterval=null;this.Content;this.$el=e(t);this.$elProxy;this.elProxyPosition;this.enabled=true;this.options=e.extend({},i,n);this.mouseIsOverProxy=false;this.namespace="tooltipster-"+Math.round(Math.random()*1e5);this.Status="hidden";this.timerHide=null;this.timerShow=null;this.$tooltip;this.options.iconTheme=this.options.iconTheme.replace(".","");this.options.theme=this.options.theme.replace(".","");this._init()}function o(t,n){var r=true;e.each(t,function(e,i){if(typeof n[e]==="undefined"||t[e]!==n[e]){r=false;return false}});return r}function f(){return!a&&u}function l(){var e=n.body||n.documentElement,t=e.style,r="transition";if(typeof t[r]=="string"){return true}v=["Moz","Webkit","Khtml","O","ms"],r=r.charAt(0).toUpperCase()+r.substr(1);for(var i=0;i<v.length;i++){if(typeof t[v[i]+r]=="string"){return true}}return false}var r="tooltipster",i={animation:"fade",arrow:true,arrowColor:"",autoClose:true,content:null,contentAsHTML:false,contentCloning:true,debug:true,delay:200,minWidth:0,maxWidth:null,functionInit:function(e,t){},functionBefore:function(e,t){t()},functionReady:function(e,t){},functionAfter:function(e){},icon:"(?)",iconCloning:true,iconDesktop:false,iconTouch:false,iconTheme:"tooltipster-icon",interactive:false,interactiveTolerance:350,multiple:false,offsetX:0,offsetY:0,onlyOne:false,position:"top",positionTracker:false,speed:350,timer:0,theme:"tooltipster-default",touchDevices:true,trigger:"hover",updateAnimation:true};s.prototype={_init:function(){var t=this;if(n.querySelector){if(t.options.content!==null){t._content_set(t.options.content)}else{var r=t.$el.attr("title");if(typeof r==="undefined")r=null;t._content_set(r)}var i=t.options.functionInit.call(t.$el,t.$el,t.Content);if(typeof i!=="undefined")t._content_set(i);t.$el.removeAttr("title").addClass("tooltipstered");if(!u&&t.options.iconDesktop||u&&t.options.iconTouch){if(typeof t.options.icon==="string"){t.$elProxy=e('<span class="'+t.options.iconTheme+'"></span>');t.$elProxy.text(t.options.icon)}else{if(t.options.iconCloning)t.$elProxy=t.options.icon.clone(true);else t.$elProxy=t.options.icon}t.$elProxy.insertAfter(t.$el)}else{t.$elProxy=t.$el}if(t.options.trigger=="hover"){t.$elProxy.on("mouseenter."+t.namespace,function(){if(!f()||t.options.touchDevices){t.mouseIsOverProxy=true;t._show()}}).on("mouseleave."+t.namespace,function(){if(!f()||t.options.touchDevices){t.mouseIsOverProxy=false}});if(u&&t.options.touchDevices){t.$elProxy.on("touchstart."+t.namespace,function(){t._showNow()})}}else if(t.options.trigger=="click"){t.$elProxy.on("click."+t.namespace,function(){if(!f()||t.options.touchDevices){t._show()}})}}},_show:function(){var e=this;if(e.Status!="shown"&&e.Status!="appearing"){if(e.options.delay){e.timerShow=setTimeout(function(){if(e.options.trigger=="click"||e.options.trigger=="hover"&&e.mouseIsOverProxy){e._showNow()}},e.options.delay)}else e._showNow()}},_showNow:function(n){var r=this;r.options.functionBefore.call(r.$el,r.$el,function(){if(r.enabled&&r.Content!==null){if(n)r.callbacks.show.push(n);r.callbacks.hide=[];clearTimeout(r.timerShow);r.timerShow=null;clearTimeout(r.timerHide);r.timerHide=null;if(r.options.onlyOne){e(".tooltipstered").not(r.$el).each(function(t,n){var r=e(n),i=r.data("tooltipster-ns");e.each(i,function(e,t){var n=r.data(t),i=n.status(),s=n.option("autoClose");if(i!=="hidden"&&i!=="disappearing"&&s){n.hide()}})})}var i=function(){r.Status="shown";e.each(r.callbacks.show,function(e,t){t.call(r.$el)});r.callbacks.show=[]};if(r.Status!=="hidden"){var s=0;if(r.Status==="disappearing"){r.Status="appearing";if(l()){r.$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-"+r.options.animation+"-show");if(r.options.speed>0)r.$tooltip.delay(r.options.speed);r.$tooltip.queue(i)}else{r.$tooltip.stop().fadeIn(i)}}else if(r.Status==="shown"){i()}}else{r.Status="appearing";var s=r.options.speed;r.bodyOverflowX=e("body").css("overflow-x");e("body").css("overflow-x","hidden");var o="tooltipster-"+r.options.animation,a="-webkit-transition-duration: "+r.options.speed+"ms; -webkit-animation-duration: "+r.options.speed+"ms; -moz-transition-duration: "+r.options.speed+"ms; -moz-animation-duration: "+r.options.speed+"ms; -o-transition-duration: "+r.options.speed+"ms; -o-animation-duration: "+r.options.speed+"ms; -ms-transition-duration: "+r.options.speed+"ms; -ms-animation-duration: "+r.options.speed+"ms; transition-duration: "+r.options.speed+"ms; animation-duration: "+r.options.speed+"ms;",f=r.options.minWidth?"min-width:"+Math.round(r.options.minWidth)+"px;":"",c=r.options.maxWidth?"max-width:"+Math.round(r.options.maxWidth)+"px;":"",h=r.options.interactive?"pointer-events: auto;":"";r.$tooltip=e('<div class="tooltipster-base '+r.options.theme+'" style="'+f+" "+c+" "+h+" "+a+'"><div class="tooltipster-content"></div></div>');if(l())r.$tooltip.addClass(o);r._content_insert();r.$tooltip.appendTo("body");r.reposition();r.options.functionReady.call(r.$el,r.$el,r.$tooltip);if(l()){r.$tooltip.addClass(o+"-show");if(r.options.speed>0)r.$tooltip.delay(r.options.speed);r.$tooltip.queue(i)}else{r.$tooltip.css("display","none").fadeIn(r.options.speed,i)}r._interval_set();e(t).on("scroll."+r.namespace+" resize."+r.namespace,function(){r.reposition()});if(r.options.autoClose){e("body").off("."+r.namespace);if(r.options.trigger=="hover"){if(u){setTimeout(function(){e("body").on("touchstart."+r.namespace,function(){r.hide()})},0)}if(r.options.interactive){if(u){r.$tooltip.on("touchstart."+r.namespace,function(e){e.stopPropagation()})}var p=null;r.$elProxy.add(r.$tooltip).on("mouseleave."+r.namespace+"-autoClose",function(){clearTimeout(p);p=setTimeout(function(){r.hide()},r.options.interactiveTolerance)}).on("mouseenter."+r.namespace+"-autoClose",function(){clearTimeout(p)})}else{r.$elProxy.on("mouseleave."+r.namespace+"-autoClose",function(){r.hide()})}}else if(r.options.trigger=="click"){setTimeout(function(){e("body").on("click."+r.namespace+" touchstart."+r.namespace,function(){r.hide()})},0);if(r.options.interactive){r.$tooltip.on("click."+r.namespace+" touchstart."+r.namespace,function(e){e.stopPropagation()})}}}}if(r.options.timer>0){r.timerHide=setTimeout(function(){r.timerHide=null;r.hide()},r.options.timer+s)}}})},_interval_set:function(){var t=this;t.checkInterval=setInterval(function(){if(e("body").find(t.$el).length===0||e("body").find(t.$elProxy).length===0||t.Status=="hidden"||e("body").find(t.$tooltip).length===0){if(t.Status=="shown"||t.Status=="appearing")t.hide();t._interval_cancel()}else{if(t.options.positionTracker){var n=t._repositionInfo(t.$elProxy),r=false;if(o(n.dimension,t.elProxyPosition.dimension)){if(t.$elProxy.css("position")==="fixed"){if(o(n.position,t.elProxyPosition.position))r=true}else{if(o(n.offset,t.elProxyPosition.offset))r=true}}if(!r){t.reposition()}}}},200)},_interval_cancel:function(){clearInterval(this.checkInterval);this.checkInterval=null},_content_set:function(e){if(typeof e==="object"&&e!==null&&this.options.contentCloning){e=e.clone(true)}this.Content=e},_content_insert:function(){var e=this,t=this.$tooltip.find(".tooltipster-content");if(typeof e.Content==="string"&&!e.options.contentAsHTML){t.text(e.Content)}else{t.empty().append(e.Content)}},_update:function(e){var t=this;t._content_set(e);if(t.Content!==null){if(t.Status!=="hidden"){t._content_insert();t.reposition();if(t.options.updateAnimation){if(l()){t.$tooltip.css({width:"","-webkit-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-moz-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-o-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-ms-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms",transition:"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms"}).addClass("tooltipster-content-changing");setTimeout(function(){if(t.Status!="hidden"){t.$tooltip.removeClass("tooltipster-content-changing");setTimeout(function(){if(t.Status!=="hidden"){t.$tooltip.css({"-webkit-transition":t.options.speed+"ms","-moz-transition":t.options.speed+"ms","-o-transition":t.options.speed+"ms","-ms-transition":t.options.speed+"ms",transition:t.options.speed+"ms"})}},t.options.speed)}},t.options.speed)}else{t.$tooltip.fadeTo(t.options.speed,.5,function(){if(t.Status!="hidden"){t.$tooltip.fadeTo(t.options.speed,1)}})}}}}else{t.hide()}},_repositionInfo:function(e){return{dimension:{height:e.outerHeight(false),width:e.outerWidth(false)},offset:e.offset(),position:{left:parseInt(e.css("left")),top:parseInt(e.css("top"))}}},hide:function(n){var r=this;if(n)r.callbacks.hide.push(n);r.callbacks.show=[];clearTimeout(r.timerShow);r.timerShow=null;clearTimeout(r.timerHide);r.timerHide=null;var i=function(){e.each(r.callbacks.hide,function(e,t){t.call(r.$el)});r.callbacks.hide=[]};if(r.Status=="shown"||r.Status=="appearing"){r.Status="disappearing";var s=function(){r.Status="hidden";if(typeof r.Content=="object"&&r.Content!==null){r.Content.detach()}r.$tooltip.remove();r.$tooltip=null;e(t).off("."+r.namespace);e("body").off("."+r.namespace).css("overflow-x",r.bodyOverflowX);e("body").off("."+r.namespace);r.$elProxy.off("."+r.namespace+"-autoClose");r.options.functionAfter.call(r.$el,r.$el);i()};if(l()){r.$tooltip.clearQueue().removeClass("tooltipster-"+r.options.animation+"-show").addClass("tooltipster-dying");if(r.options.speed>0)r.$tooltip.delay(r.options.speed);r.$tooltip.queue(s)}else{r.$tooltip.stop().fadeOut(r.options.speed,s)}}else if(r.Status=="hidden"){i()}return r},show:function(e){this._showNow(e);return this},update:function(e){return this.content(e)},content:function(e){if(typeof e==="undefined"){return this.Content}else{this._update(e);return this}},reposition:function(){var n=this;if(e("body").find(n.$tooltip).length!==0){n.$tooltip.css("width","");n.elProxyPosition=n._repositionInfo(n.$elProxy);var r=null,i=e(t).width(),s=n.elProxyPosition,o=n.$tooltip.outerWidth(false),u=n.$tooltip.innerWidth()+1,a=n.$tooltip.outerHeight(false);if(n.$elProxy.is("area")){var f=n.$elProxy.attr("shape"),l=n.$elProxy.parent().attr("name"),c=e('img[usemap="#'+l+'"]'),h=c.offset().left,p=c.offset().top,d=n.$elProxy.attr("coords")!==undefined?n.$elProxy.attr("coords").split(","):undefined;if(f=="circle"){var v=parseInt(d[0]),m=parseInt(d[1]),g=parseInt(d[2]);s.dimension.height=g*2;s.dimension.width=g*2;s.offset.top=p+m-g;s.offset.left=h+v-g}else if(f=="rect"){var v=parseInt(d[0]),m=parseInt(d[1]),y=parseInt(d[2]),b=parseInt(d[3]);s.dimension.height=b-m;s.dimension.width=y-v;s.offset.top=p+m;s.offset.left=h+v}else if(f=="poly"){var w=[],E=[],S=0,x=0,T=0,N=0,C="even";for(var k=0;k<d.length;k++){var L=parseInt(d[k]);if(C=="even"){if(L>T){T=L;if(k===0){S=T}}if(L<S){S=L}C="odd"}else{if(L>N){N=L;if(k==1){x=N}}if(L<x){x=L}C="even"}}s.dimension.height=N-x;s.dimension.width=T-S;s.offset.top=p+x;s.offset.left=h+S}else{s.dimension.height=c.outerHeight(false);s.dimension.width=c.outerWidth(false);s.offset.top=p;s.offset.left=h}}var A=0,O=0,M=0,_=parseInt(n.options.offsetY),D=parseInt(n.options.offsetX),P=n.options.position;function H(){var n=e(t).scrollLeft();if(A-n<0){r=A-n;A=n}if(A+o-n>i){r=A-(i+n-o);A=i+n-o}}function B(n,r){if(s.offset.top-e(t).scrollTop()-a-_-12<0&&r.indexOf("top")>-1){P=n}if(s.offset.top+s.dimension.height+a+12+_>e(t).scrollTop()+e(t).height()&&r.indexOf("bottom")>-1){P=n;M=s.offset.top-a-_-12}}if(P=="top"){var j=s.offset.left+o-(s.offset.left+s.dimension.width);A=s.offset.left+D-j/2;M=s.offset.top-a-_-12;H();B("bottom","top")}if(P=="top-left"){A=s.offset.left+D;M=s.offset.top-a-_-12;H();B("bottom-left","top-left")}if(P=="top-right"){A=s.offset.left+s.dimension.width+D-o;M=s.offset.top-a-_-12;H();B("bottom-right","top-right")}if(P=="bottom"){var j=s.offset.left+o-(s.offset.left+s.dimension.width);A=s.offset.left-j/2+D;M=s.offset.top+s.dimension.height+_+12;H();B("top","bottom")}if(P=="bottom-left"){A=s.offset.left+D;M=s.offset.top+s.dimension.height+_+12;H();B("top-left","bottom-left")}if(P=="bottom-right"){A=s.offset.left+s.dimension.width+D-o;M=s.offset.top+s.dimension.height+_+12;H();B("top-right","bottom-right")}if(P=="left"){A=s.offset.left-D-o-12;O=s.offset.left+D+s.dimension.width+12;var F=s.offset.top+a-(s.offset.top+s.dimension.height);M=s.offset.top-F/2-_;if(A<0&&O+o>i){var I=parseFloat(n.$tooltip.css("border-width"))*2,q=o+A-I;n.$tooltip.css("width",q+"px");a=n.$tooltip.outerHeight(false);A=s.offset.left-D-q-12-I;F=s.offset.top+a-(s.offset.top+s.dimension.height);M=s.offset.top-F/2-_}else if(A<0){A=s.offset.left+D+s.dimension.width+12;r="left"}}if(P=="right"){A=s.offset.left+D+s.dimension.width+12;O=s.offset.left-D-o-12;var F=s.offset.top+a-(s.offset.top+s.dimension.height);M=s.offset.top-F/2-_;if(A+o>i&&O<0){var I=parseFloat(n.$tooltip.css("border-width"))*2,q=i-A-I;n.$tooltip.css("width",q+"px");a=n.$tooltip.outerHeight(false);F=s.offset.top+a-(s.offset.top+s.dimension.height);M=s.offset.top-F/2-_}else if(A+o>i){A=s.offset.left-D-o-12;r="right"}}if(n.options.arrow){var R="tooltipster-arrow-"+P;if(n.options.arrowColor.length<1){var U=n.$tooltip.css("background-color")}else{var U=n.options.arrowColor}if(!r){r=""}else if(r=="left"){R="tooltipster-arrow-right";r=""}else if(r=="right"){R="tooltipster-arrow-left";r=""}else{r="left:"+Math.round(r)+"px;"}if(P=="top"||P=="top-left"||P=="top-right"){var z=parseFloat(n.$tooltip.css("border-bottom-width")),W=n.$tooltip.css("border-bottom-color")}else if(P=="bottom"||P=="bottom-left"||P=="bottom-right"){var z=parseFloat(n.$tooltip.css("border-top-width")),W=n.$tooltip.css("border-top-color")}else if(P=="left"){var z=parseFloat(n.$tooltip.css("border-right-width")),W=n.$tooltip.css("border-right-color")}else if(P=="right"){var z=parseFloat(n.$tooltip.css("border-left-width")),W=n.$tooltip.css("border-left-color")}else{var z=parseFloat(n.$tooltip.css("border-bottom-width")),W=n.$tooltip.css("border-bottom-color")}if(z>1){z++}var X="";if(z!==0){var V="",J="border-color: "+W+";";if(R.indexOf("bottom")!==-1){V="margin-top: -"+Math.round(z)+"px;"}else if(R.indexOf("top")!==-1){V="margin-bottom: -"+Math.round(z)+"px;"}else if(R.indexOf("left")!==-1){V="margin-right: -"+Math.round(z)+"px;"}else if(R.indexOf("right")!==-1){V="margin-left: -"+Math.round(z)+"px;"}X='<span class="tooltipster-arrow-border" style="'+V+" "+J+';"></span>'}n.$tooltip.find(".tooltipster-arrow").remove();var K='<div class="'+R+' tooltipster-arrow" style="'+r+'">'+X+'<span style="border-color:'+U+';"></span></div>';n.$tooltip.append(K)}n.$tooltip.css({top:Math.round(M)+"px",left:Math.round(A)+"px"})}return n},enable:function(){this.enabled=true;return this},disable:function(){this.hide();this.enabled=false;return this},destroy:function(){var t=this;t.hide();if(t.$el[0]!==t.$elProxy[0])t.$elProxy.remove();t.$el.removeData(t.namespace).off("."+t.namespace);var n=t.$el.data("tooltipster-ns");if(n.length===1){var r=typeof t.Content==="string"?t.Content:e("<div></div>").append(t.Content).html();t.$el.removeClass("tooltipstered").attr("title",r).removeData(t.namespace).removeData("tooltipster-ns").off("."+t.namespace)}else{n=e.grep(n,function(e,n){return e!==t.namespace});t.$el.data("tooltipster-ns",n)}return t},elementIcon:function(){return this.$el[0]!==this.$elProxy[0]?this.$elProxy[0]:undefined},elementTooltip:function(){return this.$tooltip?this.$tooltip[0]:undefined},option:function(e,t){if(typeof t=="undefined")return this.options[e];else{this.options[e]=t;return this}},status:function(){return this.Status}};e.fn[r]=function(){var t=arguments;if(this.length===0){if(typeof t[0]==="string"){var n=true;switch(t[0]){case"setDefaults":e.extend(i,t[1]);break;default:n=false;break}if(n)return true;else return this}else{return this}}else{if(typeof t[0]==="string"){var r="#*$~&";this.each(function(){var n=e(this).data("tooltipster-ns"),i=n?e(this).data(n[0]):null;if(i){if(typeof i[t[0]]==="function"){var s=i[t[0]](t[1],t[2])}else{throw new Error('Unknown method .tooltipster("'+t[0]+'")')}if(s!==i){r=s;return false}}else{throw new Error("You called Tooltipster's \""+t[0]+'" method on an uninitialized element')}});return r!=="#*$~&"?r:this}else{var o=[],u=t[0]&&typeof t[0].multiple!=="undefined",a=u&&t[0].multiple||!u&&i.multiple,f=t[0]&&typeof t[0].debug!=="undefined",l=f&&t[0].debug||!f&&i.debug;this.each(function(){var n=false,r=e(this).data("tooltipster-ns"),i=null;if(!r){n=true}else if(a){n=true}else if(l){console.log('Tooltipster: one or more tooltips are already attached to this element: ignoring. Use the "multiple" option to attach more tooltips.')}if(n){i=new s(this,t[0]);if(!r)r=[];r.push(i.namespace);e(this).data("tooltipster-ns",r);e(this).data(i.namespace,i)}o.push(i)});if(a)return o;else return this}}};var u=!!("ontouchstart"in t);var a=false;e("body").one("mousemove",function(){a=true})})(jQuery,window,document);
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){function n(){var e='<div class="sweet-overlay" tabIndex="-1"></div><div class="sweet-alert" tabIndex="-1"><div class="icon error"><span class="x-mark"><span class="line left"></span><span class="line right"></span></span></div><div class="icon warning"> <span class="body"></span> <span class="dot"></span> </div> <div class="icon info"></div> <div class="icon success"> <span class="line tip"></span> <span class="line long"></span> <div class="placeholder"></div> <div class="fix"></div> </div> <div class="icon custom"></div> <h2>Title</h2><p>Text</p><button class="cancel" tabIndex="2">Cancel</button><button class="confirm" tabIndex="1">OK</button></div>',n=t.createElement("div");n.innerHTML=e,t.body.appendChild(n)}function o(t){var n=y(),o=n.querySelector("h2"),r=n.querySelector("p"),a=n.querySelector("button.cancel"),c=n.querySelector("button.confirm");if(o.innerHTML=b(t.title).split("\n").join("<br>"),r.innerHTML=b(t.text||"").split("\n").join("<br>"),t.text&&w(r),x(n.querySelectorAll(".icon")),t.type){for(var l=!1,s=0;s<f.length;s++)if(t.type===f[s]){l=!0;break}if(!l)return e.console.error("Unknown alert type: "+t.type),!1;var u=n.querySelector(".icon."+t.type);switch(w(u),t.type){case"success":g(u,"animate"),g(u.querySelector(".tip"),"animateSuccessTip"),g(u.querySelector(".long"),"animateSuccessLong");break;case"error":g(u,"animateErrorIcon"),g(u.querySelector(".x-mark"),"animateXMark");break;case"warning":g(u,"pulseWarning"),g(u.querySelector(".body"),"pulseWarningIns"),g(u.querySelector(".dot"),"pulseWarningIns")}}if(t.imageUrl){var d=n.querySelector(".icon.custom");d.style.backgroundImage="url("+t.imageUrl+")",w(d);var p=80,m=80;if(t.imageSize){var v=t.imageSize.split("x")[0],h=t.imageSize.split("x")[1];v&&h?(p=v,m=h,d.css({width:v+"px",height:h+"px"})):e.console.error("Parameter imageSize expects value with format WIDTHxHEIGHT, got "+t.imageSize)}d.setAttribute("style",d.getAttribute("style")+"width:"+p+"px; height:"+m+"px")}n.setAttribute("data-has-cancel-button",t.showCancelButton),t.showCancelButton?a.style.display="inline-block":x(a),t.cancelButtonText&&(a.innerHTML=b(t.cancelButtonText)),t.confirmButtonText&&(c.innerHTML=b(t.confirmButtonText)),c.style.backgroundColor=t.confirmButtonColor,i(c,t.confirmButtonColor),n.setAttribute("data-allow-ouside-click",t.allowOutsideClick);var S=t.doneFunction?!0:!1;n.setAttribute("data-has-done-function",S)}function r(e,t){e=String(e).replace(/[^0-9a-f]/gi,""),e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;var n="#",o,r;for(r=0;3>r;r++)o=parseInt(e.substr(2*r,2),16),o=Math.round(Math.min(Math.max(0,o+o*t),255)).toString(16),n+=("00"+o).substr(o.length);return n}function a(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16):null}function i(e,t){var n=a(t);e.style.boxShadow="0 0 2px rgba("+n+", 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)"}function c(){var e=y();B(p(),10),w(e),g(e,"showSweetAlert"),v(e,"hideSweetAlert"),I=t.activeElement;var n=e.querySelector("button.confirm");n.focus(),setTimeout(function(){g(e,"visible")},500)}function l(){var n=y();T(p(),5),T(n,5),v(n,"showSweetAlert"),g(n,"hideSweetAlert"),v(n,"visible");var o=n.querySelector(".icon.success");v(o,"animate"),v(o.querySelector(".tip"),"animateSuccessTip"),v(o.querySelector(".long"),"animateSuccessLong");var r=n.querySelector(".icon.error");v(r,"animateErrorIcon"),v(r.querySelector(".x-mark"),"animateXMark");var a=n.querySelector(".icon.warning");v(a,"pulseWarning"),v(a.querySelector(".body"),"pulseWarningIns"),v(a.querySelector(".dot"),"pulseWarningIns"),e.onkeydown=M,t.onclick=A,I&&I.focus(),L=void 0}function s(){var e=y();e.style.marginTop=C(y())}var u=".sweet-alert",d=".sweet-overlay",f=["error","warning","info","success"],y=function(){return t.querySelector(u)},p=function(){return t.querySelector(d)},m=function(e,t){return new RegExp(" "+t+" ").test(" "+e.className+" ")},g=function(e,t){m(e,t)||(e.className+=" "+t)},v=function(e,t){var n=" "+e.className.replace(/[\t\r\n]/g," ")+" ";if(m(e,t)){for(;n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=n.replace(/^\s+|\s+$/g,"")}},b=function(e){var n=t.createElement("div");return n.appendChild(t.createTextNode(e)),n.innerHTML},h=function(e){e.style.opacity="",e.style.display="block"},w=function(e){if(e&&!e.length)return h(e);for(var t=0;t<e.length;++t)h(e[t])},S=function(e){e.style.opacity="",e.style.display="none"},x=function(e){if(e&&!e.length)return S(e);for(var t=0;t<e.length;++t)S(e[t])},k=function(e,t){for(var n=t.parentNode;null!==n;){if(n===e)return!0;n=n.parentNode}return!1},C=function(e){e.style.left="-9999px",e.style.display="block";var t=e.clientHeight,n=parseInt(getComputedStyle(e).getPropertyValue("padding"),10);return e.style.left="",e.style.display="none","-"+parseInt(t/2+n)+"px"},B=function(e,t){t=t||16,e.style.opacity=0,e.style.display="block";var n=+new Date,o=function(){e.style.opacity=+e.style.opacity+(new Date-n)/100,n=+new Date,+e.style.opacity<1&&setTimeout(o,t)};o()},T=function(e,t){t=t||16,e.style.opacity=1;var n=+new Date,o=function(){e.style.opacity=+e.style.opacity-(new Date-n)/100,n=+new Date,+e.style.opacity>0?setTimeout(o,t):e.style.display="none"};o()},E=function(n){if(MouseEvent){var o=new MouseEvent("click",{view:e,bubbles:!1,cancelable:!0});n.dispatchEvent(o)}else if(t.createEvent){var r=t.createEvent("MouseEvents");r.initEvent("click",!1,!1),n.dispatchEvent(r)}else t.createEventObject?n.fireEvent("onclick"):"function"==typeof n.onclick&&n.onclick()},q=function(t){"function"==typeof t.stopPropagation?(t.stopPropagation(),t.preventDefault()):e.event&&e.event.hasOwnProperty("cancelBubble")&&(e.event.cancelBubble=!0)},I,A,M,L;e.sweetAlert=e.swal=function(){function n(e){var t=e.keyCode||e.which;if(-1!==[9,13,32,27].indexOf(t)){for(var n=e.target||e.srcElement,o=-1,r=0;r<h.length;r++)if(n===h[r]){o=r;break}9===t?(n=-1===o?v:o===h.length-1?h[0]:h[o+1],q(e),n.focus(),i(n,u.confirmButtonColor)):(n=13===t||32===t?-1===o?v:void 0:27!==t||b.hidden||"none"===b.style.display?void 0:b,void 0!==n&&E(n,e))}}function a(e){var t=e.target||e.srcElement,n=e.relatedTarget,o=m(d,"visible");if(o){var r=-1;if(null!==n){for(var a=0;a<h.length;a++)if(n===h[a]){r=a;break}-1===r&&t.focus()}else L=t}}var u={title:"",text:"",type:null,allowOutsideClick:!1,showCancelButton:!1,confirmButtonText:"OK",confirmButtonColor:"#AEDEF4",cancelButtonText:"Cancel",imageUrl:null,imageSize:null};if(void 0===arguments[0])return e.console.error("sweetAlert expects at least 1 attribute!"),!1;switch(typeof arguments[0]){case"string":u.title=arguments[0],u.text=arguments[1]||"",u.type=arguments[2]||"";break;case"object":if(void 0===arguments[0].title)return e.console.error('Missing "title" argument!'),!1;u.title=arguments[0].title,u.text=arguments[0].text||u.text,u.type=arguments[0].type||u.type,u.allowOutsideClick=arguments[0].allowOutsideClick||u.allowOutsideClick,u.showCancelButton=arguments[0].showCancelButton||u.showCancelButton,u.confirmButtonText=u.showCancelButton?"Confirm":u.confirmButtonText,u.confirmButtonText=arguments[0].confirmButtonText||u.confirmButtonText,u.confirmButtonColor=arguments[0].confirmButtonColor||u.confirmButtonColor,u.cancelButtonText=arguments[0].cancelButtonText||u.cancelButtonText,u.imageUrl=arguments[0].imageUrl||u.imageUrl,u.imageSize=arguments[0].imageSize||u.imageSize,u.doneFunction=arguments[1]||null;break;default:return e.console.error('Unexpected type of argument! Expected "string" or "object", got '+typeof arguments[0]),!1}o(u),s(),c();for(var d=y(),f=function(e){var t=e.target||e.srcElement,n="confirm"===t.className,o=m(d,"visible"),a=u.doneFunction&&"true"===d.getAttribute("data-has-done-function");switch(e.type){case"mouseover":n&&(e.target.style.backgroundColor=r(u.confirmButtonColor,-.04));break;case"mouseout":n&&(e.target.style.backgroundColor=u.confirmButtonColor);break;case"mousedown":n&&(e.target.style.backgroundColor=r(u.confirmButtonColor,-.14));break;case"mouseup":n&&(e.target.style.backgroundColor=r(u.confirmButtonColor,-.04));break;case"focus":var i=d.querySelector("button.confirm"),c=d.querySelector("button.cancel");n?c.style.boxShadow="none":i.style.boxShadow="none";break;case"click":n&&a&&o&&u.doneFunction(),l()}},p=d.querySelectorAll("button"),g=0;g<p.length;g++)p[g].onclick=f,p[g].onmouseover=f,p[g].onmouseout=f,p[g].onmousedown=f,p[g].onfocus=f;A=t.onclick,t.onclick=function(e){var t=e.target||e.srcElement,n=d===t,o=k(d,e.target),r=m(d,"visible"),a="true"===d.getAttribute("data-allow-ouside-click");!n&&!o&&r&&a&&l()};var v=d.querySelector("button.confirm"),b=d.querySelector("button.cancel"),h=d.querySelectorAll("button:not([type=hidden])");M=e.onkeydown,e.onkeydown=n,v.onblur=a,b.onblur=a,e.onfocus=function(){e.setTimeout(function(){void 0!==L&&(L.focus(),L=void 0)},0)}},function(){"complete"===t.readyState||"interactive"===t.readyState?n():t.addEventListener?t.addEventListener("DOMContentLoaded",function e(){t.removeEventListener("DOMContentLoaded",arguments.callee,!1),n()},!1):t.attachEvent&&t.attachEvent("onreadystatechange",function(){"complete"===t.readyState&&(t.detachEvent("onreadystatechange",arguments.callee),n())})}()}(window,document);
|
File without changes
|
@@ -0,0 +1,1323 @@
|
|
1
|
+
// Church to Church - Base Style Sheet
|
2
|
+
//
|
3
|
+
// Table of Contents
|
4
|
+
//
|
5
|
+
// Variables
|
6
|
+
// Overrides
|
7
|
+
// Typography
|
8
|
+
// Buttons
|
9
|
+
// Forms
|
10
|
+
// Tooltips
|
11
|
+
// Tags
|
12
|
+
// Pagination
|
13
|
+
// Alerts, Flash Messages, Notification Banners & Modals
|
14
|
+
// Tables
|
15
|
+
// Utility Classes (keep at bottom)
|
16
|
+
|
17
|
+
// Z index - List all uses of z-index here
|
18
|
+
//
|
19
|
+
// Dropdowns: 2
|
20
|
+
// Input elements: 1
|
21
|
+
// Pagination: 1
|
22
|
+
// Flash messages: 4
|
23
|
+
|
24
|
+
|
25
|
+
// Variables // ------------------------------------------
|
26
|
+
|
27
|
+
// Rainbow Spectrum
|
28
|
+
$blue: #64b4f2
|
29
|
+
$dark-blue: #7690f4
|
30
|
+
$violet: #b075ed
|
31
|
+
$purple: #dd81e8
|
32
|
+
$pink: #f77292
|
33
|
+
$red-lighter: #ffc2c1
|
34
|
+
$red-light: #f78785
|
35
|
+
$red: #e25552
|
36
|
+
$red-orange: #f67d42
|
37
|
+
$orange: #ffac48
|
38
|
+
$orange-yellow: #ffc948
|
39
|
+
$yellow-lighter: #fef1bc
|
40
|
+
$yellow-light: #feea94
|
41
|
+
$yellow: #fcdb51
|
42
|
+
$yellow-dark: #e8bf00
|
43
|
+
$yellow-green: #e9e45b
|
44
|
+
$lime: #b0dd61
|
45
|
+
$green-lighter: #b9eda4
|
46
|
+
$green-light: #98df7a
|
47
|
+
$green: #7fc661
|
48
|
+
$teal: #5bd69a
|
49
|
+
$cyan: #73e2e1
|
50
|
+
$network-blue: #00b1ed
|
51
|
+
|
52
|
+
// Gray Spectrum
|
53
|
+
$black: #29292A
|
54
|
+
$gray: #404041
|
55
|
+
$gray-90: #535354
|
56
|
+
$gray-80: #666667
|
57
|
+
$gray-70: #79797A
|
58
|
+
$gray-60: #8C8C8D
|
59
|
+
$gray-50: #9F9FA0
|
60
|
+
$gray-40: #B2B2B3
|
61
|
+
$gray-30: #C6C6C6
|
62
|
+
$gray-20: #D8D8D9
|
63
|
+
$gray-10: #ECECEC
|
64
|
+
$gray-5: #F5F5F5
|
65
|
+
$white: #FFFFFF
|
66
|
+
|
67
|
+
// Gray Overrides - DO NOT USE
|
68
|
+
$gray-super-lightest: $gray-5
|
69
|
+
$gray-lightest: $gray-10
|
70
|
+
$gray-lighter: $gray-20
|
71
|
+
$gray-light: $gray-50
|
72
|
+
$gray-dark: $gray-90
|
73
|
+
$gray-darker: $gray
|
74
|
+
$gray-darkest: $black
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
// Other constants
|
79
|
+
$global-radius: 2px
|
80
|
+
$font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif
|
81
|
+
$global-shadow: 0 2px 3px rgba(100,100,110,0.1)
|
82
|
+
$input-shadow: inset 0 1px 2px rgba(100, 100, 110, 0.1)
|
83
|
+
$top-bar-height: 60px
|
84
|
+
$global-overlay: rgba($gray-darkest, 0.9)
|
85
|
+
$font-color: $gray
|
86
|
+
|
87
|
+
$medium-width: 40.063em
|
88
|
+
$large-width: 64.063em
|
89
|
+
$xlarge-width: 90.063em
|
90
|
+
|
91
|
+
// Mixins
|
92
|
+
@mixin font-awesome-base // Use this mixin in a ':before' to add Font Awesome characters. You must add the appropriate icon in the 'content' decleration. (e.g. content: "\f00c")
|
93
|
+
display: inline-block
|
94
|
+
font: normal normal normal 14px/1 FontAwesome
|
95
|
+
font-size: inherit
|
96
|
+
text-rendering: auto
|
97
|
+
-webkit-font-smoothing: antialiased
|
98
|
+
|
99
|
+
@mixin media-medium-up
|
100
|
+
@media (min-width: #{$medium-width})
|
101
|
+
@content
|
102
|
+
|
103
|
+
@mixin media-large-up
|
104
|
+
@media (min-width: #{$large-width})
|
105
|
+
@content
|
106
|
+
|
107
|
+
@mixin media-xlarge-up
|
108
|
+
@media (min-width: #{$xlarge-width})
|
109
|
+
@content
|
110
|
+
|
111
|
+
// Overrides // ------------------------------------------
|
112
|
+
|
113
|
+
// Application colors, override these to fit the appropriate app.
|
114
|
+
$primary-color: $blue
|
115
|
+
$secondary-color: $green
|
116
|
+
// This should be white on all products except Open. which should be $gray-dark
|
117
|
+
$primary-button-font-color: white
|
118
|
+
// This should be $primary-color on all products except Open. which should be $gray-dark
|
119
|
+
$chosen-hover-highlight-color: $primary-color
|
120
|
+
|
121
|
+
@import c2c-overrides
|
122
|
+
|
123
|
+
@import foundation_and_overrides
|
124
|
+
|
125
|
+
// Typography // -------------------------------------------
|
126
|
+
|
127
|
+
// Typekit Proxima Nova size reference
|
128
|
+
// 100 = Thin
|
129
|
+
// 300 = Light
|
130
|
+
// 400 = Regular
|
131
|
+
// 600 = Semibold
|
132
|
+
// 700 = Bold
|
133
|
+
// 800 = Extra bold
|
134
|
+
// 900 = Black
|
135
|
+
|
136
|
+
$global-line-height: 1.4
|
137
|
+
|
138
|
+
html
|
139
|
+
font-size: 100%
|
140
|
+
font-family: $font-family
|
141
|
+
|
142
|
+
body
|
143
|
+
font-size: inherit
|
144
|
+
line-height: 1
|
145
|
+
color: $font-color
|
146
|
+
|
147
|
+
h1, h2, h3, h4, h5, h6
|
148
|
+
font-family: $font-family
|
149
|
+
|
150
|
+
h1, h2, .sweet-alert h2, h3, h4
|
151
|
+
font-weight: 700
|
152
|
+
color: $font-color
|
153
|
+
margin: 1rem 0
|
154
|
+
|
155
|
+
h1
|
156
|
+
font-size: 28px
|
157
|
+
line-height: 1.2
|
158
|
+
|
159
|
+
h1.large
|
160
|
+
font-size: 33px
|
161
|
+
|
162
|
+
h1.xlarge
|
163
|
+
font-size: 40px
|
164
|
+
|
165
|
+
h1.xxlarge
|
166
|
+
font-size: 48px
|
167
|
+
|
168
|
+
h2, .sweet-alert h2
|
169
|
+
font-size: 23px
|
170
|
+
line-height: 1.2
|
171
|
+
|
172
|
+
h3
|
173
|
+
font-size: 19px
|
174
|
+
line-height: $global-line-height
|
175
|
+
|
176
|
+
h4
|
177
|
+
font-size: 1rem
|
178
|
+
line-height: $global-line-height
|
179
|
+
|
180
|
+
h5, .section-header
|
181
|
+
font-size: 0.875rem
|
182
|
+
line-height: $global-line-height
|
183
|
+
text-transform: uppercase
|
184
|
+
color: $font-color
|
185
|
+
|
186
|
+
p, .sweet-alert p
|
187
|
+
font-size: 1rem
|
188
|
+
line-height: $global-line-height
|
189
|
+
margin: 1rem 0
|
190
|
+
font-weight: 400
|
191
|
+
|
192
|
+
p.lede
|
193
|
+
font-size: 19px
|
194
|
+
|
195
|
+
a
|
196
|
+
color: inherit
|
197
|
+
text-decoration: underline
|
198
|
+
i
|
199
|
+
text-decoration: underline
|
200
|
+
&:hover
|
201
|
+
color: $primary-color
|
202
|
+
|
203
|
+
.primary-link
|
204
|
+
color: $primary-color
|
205
|
+
|
206
|
+
.secondary-link
|
207
|
+
color: $gray-light
|
208
|
+
&:hover
|
209
|
+
color: $primary-color
|
210
|
+
|
211
|
+
ol, ul
|
212
|
+
margin-top: 1rem
|
213
|
+
margin-bottom: 1rem
|
214
|
+
|
215
|
+
li
|
216
|
+
font-size: 1rem
|
217
|
+
line-height: $global-line-height
|
218
|
+
|
219
|
+
hr
|
220
|
+
border-color: $gray-lighter
|
221
|
+
|
222
|
+
span
|
223
|
+
line-height: $global-line-height
|
224
|
+
|
225
|
+
small
|
226
|
+
font-size: 0.875rem
|
227
|
+
|
228
|
+
strong
|
229
|
+
font-weight: 700
|
230
|
+
|
231
|
+
button, input[type="submit"]
|
232
|
+
font-family: $font-family
|
233
|
+
|
234
|
+
// Buttons // --------------------------------------------------
|
235
|
+
|
236
|
+
$button-hover-shadow: 0 1px 2px rgba(100, 100, 110, 0.15)
|
237
|
+
$button-active-shadow: inset 0 1px 2px rgba(100, 100, 110, 0.15)
|
238
|
+
|
239
|
+
button, .button
|
240
|
+
display: inline-block
|
241
|
+
box-sizing: border-box
|
242
|
+
margin: 0
|
243
|
+
border: none
|
244
|
+
border-radius: $global-radius
|
245
|
+
padding: 0 1.25rem
|
246
|
+
text-align: center
|
247
|
+
vertical-align: top
|
248
|
+
text-decoration: none
|
249
|
+
font-size: 1rem
|
250
|
+
line-height: 36px
|
251
|
+
white-space: nowrap
|
252
|
+
background-color: $gray-lighter
|
253
|
+
color: $font-color
|
254
|
+
cursor: pointer
|
255
|
+
vertical-align: middle
|
256
|
+
+transition(none)
|
257
|
+
&:active, &:hover, &:focus
|
258
|
+
outline: none
|
259
|
+
+box-shadow($button-hover-shadow)
|
260
|
+
background-color: lighten($gray-lighter, 2%)
|
261
|
+
color: $font-color
|
262
|
+
text-decoration: none
|
263
|
+
&:active
|
264
|
+
+box-shadow(none)
|
265
|
+
background-color: $gray-lighter
|
266
|
+
color: $font-color
|
267
|
+
|
268
|
+
&:disabled, &.disabled
|
269
|
+
+opacity(0.45)
|
270
|
+
cursor: default
|
271
|
+
color: $gray
|
272
|
+
background-color: $gray-lighter
|
273
|
+
&:hover
|
274
|
+
+box-shadow(none)
|
275
|
+
|
276
|
+
&.primary
|
277
|
+
background-color: $primary-color
|
278
|
+
color: $primary-button-font-color
|
279
|
+
&:hover, &:focus
|
280
|
+
background-color: lighten($primary-color, 7%)
|
281
|
+
+box-shadow($button-hover-shadow)
|
282
|
+
&:active
|
283
|
+
background-color: $primary-color
|
284
|
+
+box-shadow(none)
|
285
|
+
&:disabled, &.disabled
|
286
|
+
background-color: $primary-color
|
287
|
+
|
288
|
+
&.white
|
289
|
+
background-color: white
|
290
|
+
+box-shadow(inset 0 0 0 1px $gray-lighter)
|
291
|
+
color: $gray-light
|
292
|
+
&:hover
|
293
|
+
background-color: lighten($primary-color, 7%)
|
294
|
+
color: $primary-button-font-color
|
295
|
+
+box-shadow($button-hover-shadow)
|
296
|
+
&:active
|
297
|
+
background-color: $primary-color
|
298
|
+
color: $primary-button-font-color
|
299
|
+
+box-shadow(none)
|
300
|
+
&:disabled, &.disabled
|
301
|
+
color: $gray-lighter
|
302
|
+
+opacity(1)
|
303
|
+
&:hover
|
304
|
+
background-color: white
|
305
|
+
+box-shadow(inset 0 0 0 1px $gray-lighter)
|
306
|
+
|
307
|
+
&.large
|
308
|
+
padding: 0 1.5em
|
309
|
+
font-size: 1.1875em
|
310
|
+
line-height: 44px
|
311
|
+
|
312
|
+
&.small
|
313
|
+
padding: 0 0.875rem
|
314
|
+
font-size: 0.875rem
|
315
|
+
line-height: 30px
|
316
|
+
|
317
|
+
&.tiny
|
318
|
+
padding: 0 0.625rem
|
319
|
+
font-size: 0.875rem
|
320
|
+
line-height: 24px
|
321
|
+
|
322
|
+
// Forms // --------------------------------------------
|
323
|
+
|
324
|
+
form
|
325
|
+
fieldset:last-of-type
|
326
|
+
border-bottom: none
|
327
|
+
margin-bottom: 1.5rem
|
328
|
+
|
329
|
+
.field
|
330
|
+
margin-bottom: 1.5rem
|
331
|
+
width: 100%
|
332
|
+
+media-medium-up
|
333
|
+
width: auto
|
334
|
+
max-width: 27.5rem
|
335
|
+
&.short
|
336
|
+
width: 260px
|
337
|
+
max-width: inherit
|
338
|
+
&.shorter
|
339
|
+
width: 130px
|
340
|
+
max-width: inherit
|
341
|
+
&.long
|
342
|
+
width: 100%
|
343
|
+
max-width: inherit
|
344
|
+
|
345
|
+
label, .field-label
|
346
|
+
color: $font-color
|
347
|
+
font-size: 0.875rem
|
348
|
+
margin-bottom: 0.25rem
|
349
|
+
margin-right: 1rem
|
350
|
+
display: inline-block
|
351
|
+
line-height: 1
|
352
|
+
|
353
|
+
.field-label
|
354
|
+
display: block
|
355
|
+
margin-bottom: 0.5rem
|
356
|
+
|
357
|
+
input[type="text"],
|
358
|
+
input[type="password"],
|
359
|
+
input[type="email"],
|
360
|
+
input[type="date"],
|
361
|
+
textarea,
|
362
|
+
.chosen-container .chosen-single,
|
363
|
+
.chosen-container .chosen-choices
|
364
|
+
display: block
|
365
|
+
min-height: 2.25rem
|
366
|
+
width: 100%
|
367
|
+
margin: 0
|
368
|
+
border: 1px solid $gray-lighter
|
369
|
+
padding: 0.25rem 0.5rem
|
370
|
+
font-size: 1rem
|
371
|
+
font-family: $font-family
|
372
|
+
line-height: 1.4
|
373
|
+
color: $font-color
|
374
|
+
background: white
|
375
|
+
border-radius: $global-radius
|
376
|
+
+box-shadow($input-shadow)
|
377
|
+
+transition(none)
|
378
|
+
&:focus
|
379
|
+
border: 1px solid $primary-color
|
380
|
+
outline: none
|
381
|
+
+box-shadow(none)
|
382
|
+
|
383
|
+
select
|
384
|
+
display: block
|
385
|
+
margin: 0
|
386
|
+
width: auto
|
387
|
+
|
388
|
+
input[type="submit"]
|
389
|
+
@extend .button
|
390
|
+
-webkit-appearance: none
|
391
|
+
background-color: $primary-color
|
392
|
+
color: $primary-button-font-color
|
393
|
+
&:hover, &:focus
|
394
|
+
color: $primary-button-font-color
|
395
|
+
background-color: lighten($primary-color, 7%)
|
396
|
+
+box-shadow($button-hover-shadow)
|
397
|
+
&:active
|
398
|
+
color: $primary-button-font-color
|
399
|
+
background-color: $primary-color
|
400
|
+
+box-shadow(none)
|
401
|
+
&:disabled, &.disabled
|
402
|
+
background-color: $primary-color
|
403
|
+
|
404
|
+
.hint, fieldset .field label // Use this on span elements underneath input fields when a label doesn't add enough clarity
|
405
|
+
font-size: 0.75rem
|
406
|
+
color: $gray-light
|
407
|
+
margin-top: 0.3rem
|
408
|
+
|
409
|
+
// Chosen.js overides
|
410
|
+
|
411
|
+
.chosen-container
|
412
|
+
display: block
|
413
|
+
.chosen-drop
|
414
|
+
+box-shadow($global-shadow)
|
415
|
+
+border-radius($global-radius)
|
416
|
+
z-index: 2
|
417
|
+
margin-top: 2px
|
418
|
+
border: 1px solid $gray-lighter
|
419
|
+
.chosen-search
|
420
|
+
padding: 0.25rem 0.5rem
|
421
|
+
.chosen-results
|
422
|
+
margin: 0
|
423
|
+
padding: 0
|
424
|
+
font-size: 0.875rem
|
425
|
+
li
|
426
|
+
position: relative
|
427
|
+
padding: 0.25rem 0.5rem 0.25rem 1.6rem
|
428
|
+
line-height: 1.4
|
429
|
+
&.highlighted
|
430
|
+
background-color: $gray-lightest
|
431
|
+
color: $chosen-hover-highlight-color
|
432
|
+
+background-image(none)
|
433
|
+
li.group-result
|
434
|
+
padding-left: 0.5rem
|
435
|
+
li.group-option
|
436
|
+
padding-left: 1.6rem
|
437
|
+
li.no-results
|
438
|
+
background: $gray-lightest
|
439
|
+
.result-selected
|
440
|
+
&:before
|
441
|
+
+font-awesome-base
|
442
|
+
position: absolute
|
443
|
+
left: 0.5rem
|
444
|
+
top: 0.55rem
|
445
|
+
content: "\f00c"
|
446
|
+
font-size: 0.75rem
|
447
|
+
.chosen-default span
|
448
|
+
color: $gray-light
|
449
|
+
|
450
|
+
.chosen-container-single
|
451
|
+
.chosen-single
|
452
|
+
text-decoration: none
|
453
|
+
> span
|
454
|
+
margin-top: 2px
|
455
|
+
div b
|
456
|
+
background-image: none !important
|
457
|
+
&:before
|
458
|
+
+font-awesome-base
|
459
|
+
content: "\f0d7"
|
460
|
+
line-height: 2.125rem
|
461
|
+
color: $gray-lighter
|
462
|
+
&:hover div b:before
|
463
|
+
color: $font-color
|
464
|
+
.chosen-search
|
465
|
+
input[type="text"]
|
466
|
+
margin: 0
|
467
|
+
border: 1px solid $gray-lighter
|
468
|
+
+border-radius($global-radius)
|
469
|
+
background-image: none !important
|
470
|
+
font-size: 0.875rem
|
471
|
+
min-height: 1.875rem
|
472
|
+
&:before
|
473
|
+
+font-awesome-base
|
474
|
+
content: "\f002"
|
475
|
+
position: absolute
|
476
|
+
top: 12px
|
477
|
+
right: 16px
|
478
|
+
color: $gray-lighter
|
479
|
+
|
480
|
+
.chosen-container-multi
|
481
|
+
.chosen-choices
|
482
|
+
padding-top: 5px
|
483
|
+
padding-bottom: 0
|
484
|
+
li.search-choice
|
485
|
+
margin: 0 0.25rem 5px 0
|
486
|
+
border: none
|
487
|
+
padding: 0 1.35rem 0 0.5rem
|
488
|
+
line-height: 24px
|
489
|
+
font-size: 0.875rem
|
490
|
+
background: $gray-lighter
|
491
|
+
+box-shadow(none)
|
492
|
+
border-radius: 2rem
|
493
|
+
span
|
494
|
+
position: relative
|
495
|
+
top: 1px
|
496
|
+
.search-choice-close
|
497
|
+
background: none
|
498
|
+
width: 1rem
|
499
|
+
height: 1rem
|
500
|
+
text-align: center
|
501
|
+
color: $gray-light
|
502
|
+
text-decoration: none
|
503
|
+
right: 0.25rem
|
504
|
+
&:before
|
505
|
+
font-size: 1.1rem
|
506
|
+
content: "×"
|
507
|
+
line-height: 1
|
508
|
+
&:hover
|
509
|
+
color: $font-color
|
510
|
+
li.search-field input[type=text]
|
511
|
+
margin: 1px 0 0
|
512
|
+
border: none
|
513
|
+
padding: 0
|
514
|
+
min-height: inherit
|
515
|
+
height: inherit
|
516
|
+
line-height: 1.4
|
517
|
+
color: $font-color
|
518
|
+
font-family: $font-family
|
519
|
+
.chosen-drop .result-selected
|
520
|
+
color: $font-color
|
521
|
+
|
522
|
+
.chosen-container-active
|
523
|
+
.chosen-single, .chosen-choices
|
524
|
+
border-color: $primary-color
|
525
|
+
+box-shadow(none)
|
526
|
+
&.chosen-with-drop
|
527
|
+
.chosen-single,
|
528
|
+
.chosen-choices
|
529
|
+
+background-image(none)
|
530
|
+
border-color: $primary-color
|
531
|
+
+border-radius($global-radius)
|
532
|
+
div b:before
|
533
|
+
content: "\f0d8"
|
534
|
+
line-height: 2rem
|
535
|
+
|
536
|
+
// Datepicker
|
537
|
+
.datepicker-inline
|
538
|
+
width: 220px
|
539
|
+
|
540
|
+
.datepicker.datepicker-rtl
|
541
|
+
direction: rtl
|
542
|
+
table tr td span
|
543
|
+
float: right
|
544
|
+
|
545
|
+
.datepicker-dropdown
|
546
|
+
top: 0
|
547
|
+
left: 0
|
548
|
+
|
549
|
+
.datepicker
|
550
|
+
padding: 2px
|
551
|
+
border-radius: 4px
|
552
|
+
direction: ltr
|
553
|
+
margin-top: 2px
|
554
|
+
margin-bottom: 2px
|
555
|
+
thead
|
556
|
+
background-color: transparent
|
557
|
+
tr:hover
|
558
|
+
border: none
|
559
|
+
background-color: transparent
|
560
|
+
> div
|
561
|
+
display: none
|
562
|
+
&.days .datepicker-days, &.months .datepicker-months, &.years .datepicker-years
|
563
|
+
display: block
|
564
|
+
table
|
565
|
+
border: none
|
566
|
+
margin: 0
|
567
|
+
-webkit-touch-callout: none
|
568
|
+
-webkit-user-select: none
|
569
|
+
-khtml-user-select: none
|
570
|
+
-moz-user-select: none
|
571
|
+
-ms-user-select: none
|
572
|
+
user-select: none
|
573
|
+
tr
|
574
|
+
td, th
|
575
|
+
text-align: center
|
576
|
+
width: 30px
|
577
|
+
height: 30px
|
578
|
+
border-radius: $global-radius
|
579
|
+
border: none
|
580
|
+
td span
|
581
|
+
display: block
|
582
|
+
width: 23%
|
583
|
+
height: 45px
|
584
|
+
line-height: 45px
|
585
|
+
float: left
|
586
|
+
margin: 1%
|
587
|
+
cursor: pointer
|
588
|
+
border-radius: 4px
|
589
|
+
&:hover
|
590
|
+
background: #eeeeee
|
591
|
+
|
592
|
+
.today
|
593
|
+
color: $font-color
|
594
|
+
background-color: $gray-lighter
|
595
|
+
&:hover, &:focus, &:hover:focus, &:active, &:hover:active
|
596
|
+
color: $font-color
|
597
|
+
background-color: $gray-lightest
|
598
|
+
&.disabled
|
599
|
+
color: $gray-light
|
600
|
+
&:hover, &:focus, &:hover:focus, &:active, &:hover:active
|
601
|
+
color: $gray-light
|
602
|
+
background-color: transparent
|
603
|
+
|
604
|
+
.day, .month, .year
|
605
|
+
&:hover, &.focused, &:focus, &:active
|
606
|
+
background: $gray-lightest
|
607
|
+
cursor: pointer
|
608
|
+
&.old, &.new
|
609
|
+
color: $gray-light
|
610
|
+
&.disabled
|
611
|
+
background: none
|
612
|
+
cursor: default
|
613
|
+
&:hover
|
614
|
+
background: none
|
615
|
+
cursor: default
|
616
|
+
&.active
|
617
|
+
color: $primary-button-font-color
|
618
|
+
background-color: $primary-color
|
619
|
+
&:hover, &:focus, &:active
|
620
|
+
color: $primary-button-font-color
|
621
|
+
background-color: lighten($primary-color, 7%)
|
622
|
+
&.disabled
|
623
|
+
color: #ffffff
|
624
|
+
background-color: #428bca
|
625
|
+
&:hover, &:focus, &:active
|
626
|
+
color: #ffffff
|
627
|
+
background-color: #428bca
|
628
|
+
border-color: #357ebd
|
629
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
|
630
|
+
|
631
|
+
&.dropdown-menu
|
632
|
+
position: absolute
|
633
|
+
top: 100%
|
634
|
+
left: 0
|
635
|
+
z-index: 1000
|
636
|
+
float: left
|
637
|
+
display: none
|
638
|
+
min-width: 160px
|
639
|
+
list-style: none
|
640
|
+
background-color: white
|
641
|
+
border: 1px solid $gray-lighter
|
642
|
+
border-radius: $global-radius
|
643
|
+
box-shadow: $global-shadow
|
644
|
+
background-clip: padding-box
|
645
|
+
font-size: 12px
|
646
|
+
line-height: 1.4
|
647
|
+
th
|
648
|
+
padding: 0px 5px
|
649
|
+
|
650
|
+
&.datepicker-inline th, &.dropdown-menu td, &.datepicker-inline td
|
651
|
+
padding: 0px 5px
|
652
|
+
|
653
|
+
.datepicker
|
654
|
+
.datepicker-switch
|
655
|
+
width: 145px
|
656
|
+
thead tr:first-child th, tfoot tr th
|
657
|
+
cursor: pointer
|
658
|
+
thead tr:first-child th:hover, tfoot tr th:hover
|
659
|
+
background: $gray-lightest
|
660
|
+
.cw
|
661
|
+
font-size: 10px
|
662
|
+
width: 12px
|
663
|
+
padding: 0 2px 0 5px
|
664
|
+
vertical-align: middle
|
665
|
+
thead tr:first-child .cw
|
666
|
+
cursor: default
|
667
|
+
background-color: transparent
|
668
|
+
|
669
|
+
.input-group.date .input-group-addon
|
670
|
+
cursor: pointer
|
671
|
+
|
672
|
+
.input-daterange
|
673
|
+
width: 100%
|
674
|
+
input
|
675
|
+
text-align: center
|
676
|
+
&:first-child
|
677
|
+
border-radius: 3px 0 0 3px
|
678
|
+
&:last-child
|
679
|
+
border-radius: 0 3px 3px 0
|
680
|
+
.input-group-addon
|
681
|
+
width: auto
|
682
|
+
min-width: 16px
|
683
|
+
padding: 4px 5px
|
684
|
+
font-weight: normal
|
685
|
+
line-height: 1.42857143
|
686
|
+
text-align: center
|
687
|
+
text-shadow: 0 1px 0 #fff
|
688
|
+
vertical-align: middle
|
689
|
+
background-color: #eeeeee
|
690
|
+
border: solid #cccccc
|
691
|
+
border-width: 1px 0
|
692
|
+
margin-left: -5px
|
693
|
+
margin-right: -5px
|
694
|
+
|
695
|
+
|
696
|
+
.table-striped .datepicker table tr
|
697
|
+
td, th
|
698
|
+
background-color: transparent
|
699
|
+
|
700
|
+
// Fieldsets
|
701
|
+
|
702
|
+
$label-margin: 11.25rem
|
703
|
+
|
704
|
+
fieldset
|
705
|
+
margin: 0
|
706
|
+
border: none
|
707
|
+
border-bottom: 1px dotted $gray-lighter
|
708
|
+
padding: 1.5rem 0 0
|
709
|
+
> label, .field-label
|
710
|
+
position: absolute
|
711
|
+
max-width: $label-margin
|
712
|
+
margin-top: 0.75rem
|
713
|
+
line-height: 1
|
714
|
+
|
715
|
+
.fieldset-row
|
716
|
+
margin-left: $label-margin
|
717
|
+
+legacy-pie-clearfix
|
718
|
+
&.two-column, &.three-column
|
719
|
+
input
|
720
|
+
width: 100%
|
721
|
+
> div
|
722
|
+
width: 50%
|
723
|
+
float: left
|
724
|
+
padding-left: 0.75rem
|
725
|
+
padding-right: 0.75rem
|
726
|
+
&:first-of-type
|
727
|
+
padding-left: 0
|
728
|
+
&:last-of-type
|
729
|
+
padding-right: 0
|
730
|
+
&.two-column
|
731
|
+
> div
|
732
|
+
width: 50%
|
733
|
+
&.three-column
|
734
|
+
> div
|
735
|
+
width: 33.33%
|
736
|
+
input[type="radio"], input[type="checkbox"]
|
737
|
+
margin-top: 0.75rem
|
738
|
+
margin-bottom: 0.75rem
|
739
|
+
+ label
|
740
|
+
position: relative
|
741
|
+
top: 1px
|
742
|
+
font-size: 0.875rem
|
743
|
+
color: $font-color
|
744
|
+
margin-top: 0
|
745
|
+
|
746
|
+
.field
|
747
|
+
clear: none
|
748
|
+
|
749
|
+
.field.inline
|
750
|
+
input, textarea, select, .chosen-container
|
751
|
+
display: inline-block
|
752
|
+
width: auto
|
753
|
+
label
|
754
|
+
vertical-align: top
|
755
|
+
margin-top: 0.75rem
|
756
|
+
|
757
|
+
input.prefix, span.postfix
|
758
|
+
border-radius: 0 $global-radius $global-radius 0
|
759
|
+
|
760
|
+
input.postfix, span.prefix
|
761
|
+
border-radius: $global-radius 0 0 $global-radius
|
762
|
+
|
763
|
+
input.prefix, input.postfix
|
764
|
+
text-align: left
|
765
|
+
|
766
|
+
ul.radio-pill-select
|
767
|
+
display: block
|
768
|
+
list-style-type: none
|
769
|
+
margin: 0 auto
|
770
|
+
padding: 0
|
771
|
+
position: relative
|
772
|
+
z-index: 1
|
773
|
+
li
|
774
|
+
display: block
|
775
|
+
float: left
|
776
|
+
&:first-of-type label
|
777
|
+
border-radius: $global-radius 0 0 $global-radius
|
778
|
+
border-left: 1px solid $gray-lighter
|
779
|
+
&.active
|
780
|
+
box-shadow: none
|
781
|
+
border-color: $primary-color
|
782
|
+
&:last-of-type label
|
783
|
+
border-radius: 0 $global-radius $global-radius 0
|
784
|
+
input
|
785
|
+
display: none
|
786
|
+
label
|
787
|
+
font-size: 1rem
|
788
|
+
line-height: 2rem
|
789
|
+
background-color: white
|
790
|
+
padding: 0 1.25rem
|
791
|
+
border-top: 1px solid $gray-lighter
|
792
|
+
border-bottom: 1px solid $gray-lighter
|
793
|
+
border-right: 1px solid $gray-lighter
|
794
|
+
margin: 0
|
795
|
+
&:hover
|
796
|
+
cursor: pointer
|
797
|
+
color: $primary-color
|
798
|
+
background-color: $gray-lightest
|
799
|
+
&.active
|
800
|
+
color: $primary-button-font-color
|
801
|
+
background-color: $primary-color
|
802
|
+
border-color: $primary-color
|
803
|
+
box-shadow: -1px 0 $primary-color
|
804
|
+
|
805
|
+
.radio-pill-header
|
806
|
+
text-align: center
|
807
|
+
position: relative
|
808
|
+
width: 100%
|
809
|
+
max-width: inherit
|
810
|
+
&:after
|
811
|
+
content: " "
|
812
|
+
height: 1px
|
813
|
+
width: 100%
|
814
|
+
background-color: $gray-lighter
|
815
|
+
display: block
|
816
|
+
position: absolute
|
817
|
+
bottom: 36%
|
818
|
+
.radio-pill-select
|
819
|
+
display: inline-block
|
820
|
+
label
|
821
|
+
margin-right: 0
|
822
|
+
display: block
|
823
|
+
|
824
|
+
// Form Errors
|
825
|
+
.field.error label, .field_with_errors label,
|
826
|
+
.field.error .field-label, .field_with_errors .field-label,
|
827
|
+
fieldset .error .hint,
|
828
|
+
fieldset.error > label
|
829
|
+
color: $red
|
830
|
+
font-weight: bold
|
831
|
+
|
832
|
+
.field.error, .field_with_errors
|
833
|
+
input, .chosen-single
|
834
|
+
border-color: $red
|
835
|
+
|
836
|
+
.field.error, .field_with_errors
|
837
|
+
input[type="radio"] + label,
|
838
|
+
label + input[type="radio"],
|
839
|
+
input[type="checkbox"] + label,
|
840
|
+
label + input[type="checkbox"]
|
841
|
+
color: inherit
|
842
|
+
font-weight: normal
|
843
|
+
|
844
|
+
.form-error-list
|
845
|
+
color: $font-color
|
846
|
+
background-color: $red-lighter
|
847
|
+
border-radius: $global-radius
|
848
|
+
padding: 0.75rem 1rem
|
849
|
+
font-size: 0.875rem
|
850
|
+
margin-left: 0
|
851
|
+
list-style: none
|
852
|
+
|
853
|
+
|
854
|
+
// .file-upload
|
855
|
+
// .button
|
856
|
+
// display: inline-block
|
857
|
+
// text-align: center
|
858
|
+
// text-decoration: none
|
859
|
+
// color: #999
|
860
|
+
// @include border-radius(3px)
|
861
|
+
// line-height: 28px
|
862
|
+
// padding: 5px 20px
|
863
|
+
// cursor: pointer
|
864
|
+
// background-color: #CCC
|
865
|
+
// border: 1px solid #D1D1D1
|
866
|
+
// @include background-image(linear-gradient(to top, #DDDDDD, #F1F1F1))
|
867
|
+
// &:hover
|
868
|
+
// @include background-image(linear-gradient(to top, #E3E3E3, #F4F4F4))
|
869
|
+
|
870
|
+
// #file-name
|
871
|
+
// display: inline-block
|
872
|
+
// line-height: 40px
|
873
|
+
// margin-left: 10px
|
874
|
+
// position: relative
|
875
|
+
// top: -15px
|
876
|
+
|
877
|
+
// .hidden
|
878
|
+
// height: 0px
|
879
|
+
// width: 0px
|
880
|
+
// overflow: hidden
|
881
|
+
|
882
|
+
// Tooltips // -------------------------------------------
|
883
|
+
.tooltipster-default
|
884
|
+
background: $global-overlay
|
885
|
+
border: none
|
886
|
+
border-radius: $global-radius
|
887
|
+
.tooltipster-content
|
888
|
+
font-family: $font-family
|
889
|
+
font-size: 0.875rem
|
890
|
+
padding: 0.3rem 0.6rem
|
891
|
+
|
892
|
+
// Tag // -------------------------------------------
|
893
|
+
span.tag, a.tag
|
894
|
+
line-height: 1.5rem
|
895
|
+
border-radius: 0.75rem
|
896
|
+
background-color: $gray-lighter
|
897
|
+
color: $font-color
|
898
|
+
font-size: 0.875rem
|
899
|
+
padding: 0 0.5rem
|
900
|
+
display: inline-block
|
901
|
+
white-space: nowrap
|
902
|
+
&.outline
|
903
|
+
box-shadow: inset 0 0 0 1px $gray-lighter
|
904
|
+
background-color: transparent
|
905
|
+
color: $gray-light
|
906
|
+
&.primary
|
907
|
+
background-color: $primary-color
|
908
|
+
color: $primary-button-font-color
|
909
|
+
.close
|
910
|
+
color: darken($primary-color, 20%)
|
911
|
+
&.primary.outline
|
912
|
+
box-shadow: inset 0 0 0 1px $primary-color
|
913
|
+
background-color: transparent
|
914
|
+
color: $primary-color
|
915
|
+
.close
|
916
|
+
color: $primary-color
|
917
|
+
&.small
|
918
|
+
line-height: 1.2rem
|
919
|
+
border-radius: 0.625rem
|
920
|
+
font-size: 0.75rem
|
921
|
+
padding-top: 1px
|
922
|
+
.close
|
923
|
+
padding-left: 0.125rem
|
924
|
+
height: 1rem
|
925
|
+
text-align: center
|
926
|
+
color: $gray-light
|
927
|
+
text-decoration: none
|
928
|
+
display: inline-block
|
929
|
+
position: relative
|
930
|
+
top: 2px
|
931
|
+
&:before
|
932
|
+
font-size: 1.1rem
|
933
|
+
content: "×"
|
934
|
+
line-height: 1
|
935
|
+
|
936
|
+
a.tag
|
937
|
+
text-decoration: none
|
938
|
+
&:active, &:hover
|
939
|
+
box-shadow: $button-hover-shadow
|
940
|
+
background-color: lighten($gray-lighter, 2%)
|
941
|
+
text-decoration: none
|
942
|
+
.close
|
943
|
+
color: $font-color
|
944
|
+
&:active
|
945
|
+
box-shadow: none
|
946
|
+
background-color: $gray-lighter
|
947
|
+
color: $font-color
|
948
|
+
&:focus
|
949
|
+
outline: none
|
950
|
+
&.outline
|
951
|
+
&:hover, &:active
|
952
|
+
background: transparent
|
953
|
+
color: $primary-color
|
954
|
+
box-shadow: inset 0 0 0 1px $primary-color
|
955
|
+
.close
|
956
|
+
color: $primary-color
|
957
|
+
&.primary
|
958
|
+
&:hover
|
959
|
+
background-color: lighten($primary-color, 7%)
|
960
|
+
box-shadow: $button-hover-shadow
|
961
|
+
.close
|
962
|
+
color: $primary-button-font-color
|
963
|
+
&:active
|
964
|
+
background-color: $primary-color
|
965
|
+
box-shadow: none
|
966
|
+
color: $primary-button-font-color
|
967
|
+
.close
|
968
|
+
color: $primary-button-font-color
|
969
|
+
&.primary.outline
|
970
|
+
&:hover
|
971
|
+
background-color: lighten($primary-color, 7%)
|
972
|
+
color: $primary-button-font-color
|
973
|
+
box-shadow: $button-hover-shadow
|
974
|
+
&:active
|
975
|
+
background-color: $primary-color
|
976
|
+
box-shadow: none
|
977
|
+
color: $primary-button-font-color
|
978
|
+
|
979
|
+
|
980
|
+
|
981
|
+
// Pagination // -------------------------------------------
|
982
|
+
.pagination
|
983
|
+
display: inline-block
|
984
|
+
+border-radius($global-radius)
|
985
|
+
span
|
986
|
+
display: inline
|
987
|
+
span:first-of-type a
|
988
|
+
+border-radius($global-radius 0 0 $global-radius)
|
989
|
+
span:last-of-type a
|
990
|
+
+border-radius(0 $global-radius $global-radius 0)
|
991
|
+
a, .gap, .current
|
992
|
+
text-decoration: none
|
993
|
+
position: relative
|
994
|
+
color: $gray-light
|
995
|
+
display: block
|
996
|
+
float: left
|
997
|
+
margin-left: -1px
|
998
|
+
border: 1px solid $gray-lighter
|
999
|
+
width: 2rem
|
1000
|
+
text-align: center
|
1001
|
+
line-height: 2.125rem
|
1002
|
+
a:hover
|
1003
|
+
color: $chosen-hover-highlight-color
|
1004
|
+
background-color: $gray-lightest
|
1005
|
+
text-decoration: none
|
1006
|
+
.current
|
1007
|
+
z-index: 1
|
1008
|
+
color: $primary-button-font-color
|
1009
|
+
background-color: $primary-color
|
1010
|
+
border-color: $primary-color
|
1011
|
+
|
1012
|
+
// Alerts, Flash Messages, Notification Banners & Modals // -------------------------------------------
|
1013
|
+
.flash-messages
|
1014
|
+
margin-bottom: 1rem
|
1015
|
+
z-index: 4
|
1016
|
+
overflow: hidden
|
1017
|
+
max-width: 30rem
|
1018
|
+
|
1019
|
+
.flash
|
1020
|
+
display: block
|
1021
|
+
position: relative
|
1022
|
+
background-color: $global-overlay
|
1023
|
+
color: white
|
1024
|
+
margin-top: 1rem
|
1025
|
+
border-radius: $global-radius
|
1026
|
+
padding: 0.75rem 1rem
|
1027
|
+
font-size: 0.875rem
|
1028
|
+
+box-shadow($global-shadow)
|
1029
|
+
line-height: 1.4
|
1030
|
+
.flash-close
|
1031
|
+
&:after
|
1032
|
+
color: $gray
|
1033
|
+
&:hover:after
|
1034
|
+
color: white
|
1035
|
+
.button
|
1036
|
+
float: right
|
1037
|
+
margin-top: -0.325rem
|
1038
|
+
margin-left: 1rem
|
1039
|
+
background: transparent
|
1040
|
+
+box-shadow(inset 0 0 0 1px white)
|
1041
|
+
color: white
|
1042
|
+
&:hover
|
1043
|
+
color: $font-color
|
1044
|
+
background: white
|
1045
|
+
.flash-warn
|
1046
|
+
border-left: 0.5rem solid $yellow
|
1047
|
+
.flash-error
|
1048
|
+
border-left: 0.5rem solid $red
|
1049
|
+
|
1050
|
+
.application-note
|
1051
|
+
background-color: $gray-lightest
|
1052
|
+
border-radius: $global-radius
|
1053
|
+
padding: 0.75rem 2.5rem 0.75rem 1rem
|
1054
|
+
font-size: 0.875rem
|
1055
|
+
line-height: 1.4
|
1056
|
+
position: relative
|
1057
|
+
overflow: hidden
|
1058
|
+
min-height: 43px
|
1059
|
+
p
|
1060
|
+
max-width: 36rem
|
1061
|
+
margin-top: 0.75rem
|
1062
|
+
margin-bottom: 0.75rem
|
1063
|
+
p:first-of-type
|
1064
|
+
margin-top: 0
|
1065
|
+
p:last-of-type
|
1066
|
+
margin-bottom: 0
|
1067
|
+
p .button, p button
|
1068
|
+
margin-left: 0.5rem
|
1069
|
+
margin-right: 0.5rem
|
1070
|
+
.fa
|
1071
|
+
color: $gray
|
1072
|
+
margin-left: -0.25rem
|
1073
|
+
margin-right: 0.5rem
|
1074
|
+
font-size: 1rem
|
1075
|
+
position: relative
|
1076
|
+
top: 0.1rem
|
1077
|
+
float: left
|
1078
|
+
.close-application-note
|
1079
|
+
color: $gray-light
|
1080
|
+
&:hover:after
|
1081
|
+
color: $font-color
|
1082
|
+
&.text-center
|
1083
|
+
text-align: center
|
1084
|
+
padding-left: 2.5rem
|
1085
|
+
p
|
1086
|
+
margin-left: auto
|
1087
|
+
margin-right: auto
|
1088
|
+
&.warning
|
1089
|
+
background-color: $yellow-lighter
|
1090
|
+
.fa
|
1091
|
+
color: $yellow
|
1092
|
+
.close-application-note
|
1093
|
+
color: $yellow
|
1094
|
+
&:hover:after
|
1095
|
+
color: $yellow-dark
|
1096
|
+
&.success
|
1097
|
+
background-color: $green-lighter
|
1098
|
+
.fa
|
1099
|
+
color: $green
|
1100
|
+
.close-application-note
|
1101
|
+
color: $green-light
|
1102
|
+
&:hover:after
|
1103
|
+
color: $green
|
1104
|
+
&.error
|
1105
|
+
background-color: $red-lighter
|
1106
|
+
.fa
|
1107
|
+
color: $red
|
1108
|
+
.close-application-note
|
1109
|
+
color: $red-light
|
1110
|
+
&:hover:after
|
1111
|
+
color: $red
|
1112
|
+
|
1113
|
+
.flash .flash-close, .application-note .close-application-note
|
1114
|
+
cursor: pointer
|
1115
|
+
position: absolute
|
1116
|
+
padding: 0.75rem 1rem
|
1117
|
+
right: 0
|
1118
|
+
top: 0
|
1119
|
+
&:after
|
1120
|
+
+font-awesome-base
|
1121
|
+
content: "\f00d"
|
1122
|
+
|
1123
|
+
.placeholder-note
|
1124
|
+
border: 1px solid $gray-lighter
|
1125
|
+
border-radius: $global-radius
|
1126
|
+
color: $gray-light
|
1127
|
+
text-align: center
|
1128
|
+
padding: 1rem
|
1129
|
+
p
|
1130
|
+
max-width: 42rem
|
1131
|
+
margin-left: auto
|
1132
|
+
margin-right: auto
|
1133
|
+
|
1134
|
+
.global-messages
|
1135
|
+
.flash
|
1136
|
+
margin: 0
|
1137
|
+
border-radius: 0
|
1138
|
+
border-left: 0
|
1139
|
+
.flash-warn
|
1140
|
+
border-bottom: 0.25rem solid $yellow
|
1141
|
+
.flash-error
|
1142
|
+
border-bottom: 0.25rem solid $red
|
1143
|
+
|
1144
|
+
.sweet-alert
|
1145
|
+
border-radius: $global-radius
|
1146
|
+
font-family: $font-family
|
1147
|
+
padding: 1rem
|
1148
|
+
button
|
1149
|
+
background-color: $primary-color !important
|
1150
|
+
border-radius: $global-radius
|
1151
|
+
padding: 0 1.25rem
|
1152
|
+
line-height: 2rem
|
1153
|
+
font-weight: 400
|
1154
|
+
margin: 1.25rem .25rem 0.5rem
|
1155
|
+
&:hover
|
1156
|
+
color: white
|
1157
|
+
background-color: lighten($primary-color, 7%) !important
|
1158
|
+
box-shadow: $button-hover-shadow !important
|
1159
|
+
&:active, &:focus
|
1160
|
+
background-color: $primary-color !important
|
1161
|
+
color: white
|
1162
|
+
box-shadow: none
|
1163
|
+
&.cancel
|
1164
|
+
background-color: $gray-lighter !important
|
1165
|
+
color: $font-color
|
1166
|
+
&:hover
|
1167
|
+
background-color: lighten($gray-lighter, 2%) !important
|
1168
|
+
color: $font-color
|
1169
|
+
box-shadow: $button-hover-shadow
|
1170
|
+
&:active, &:focus
|
1171
|
+
box-shadow: none !important
|
1172
|
+
background-color: $gray-lighter !important
|
1173
|
+
color: $font-color
|
1174
|
+
p
|
1175
|
+
color: $font-color
|
1176
|
+
margin: 0
|
1177
|
+
h2
|
1178
|
+
margin: 0.5rem 0 0
|
1179
|
+
.icon.success
|
1180
|
+
border-color: $green
|
1181
|
+
.line
|
1182
|
+
background-color: $green
|
1183
|
+
.placeholder
|
1184
|
+
border-color: rgba($green, 0.4)
|
1185
|
+
.icon.warning
|
1186
|
+
border-color: rgba($yellow, 0.4)
|
1187
|
+
.body, .dot
|
1188
|
+
background-color: $yellow
|
1189
|
+
.icon.error
|
1190
|
+
border-color: rgba($red, 0.4)
|
1191
|
+
.line
|
1192
|
+
background-color: $red
|
1193
|
+
|
1194
|
+
.sweet-overlay
|
1195
|
+
background-color: $global-overlay
|
1196
|
+
|
1197
|
+
.reveal-modal, dialog
|
1198
|
+
.close-reveal-modal
|
1199
|
+
text-decoration: none
|
1200
|
+
padding-left: 1rem
|
1201
|
+
padding-right: 1rem
|
1202
|
+
&:hover
|
1203
|
+
color: $font-color
|
1204
|
+
footer, header
|
1205
|
+
margin-left: -1rem
|
1206
|
+
margin-right: -1rem
|
1207
|
+
header
|
1208
|
+
border-bottom: 1px solid $gray-lighter
|
1209
|
+
padding: 0 1rem 1rem
|
1210
|
+
h1, h2, h3, h4, h5, p, ul, ol
|
1211
|
+
&:first-of-type
|
1212
|
+
margin-top: 0
|
1213
|
+
&:last-of-type
|
1214
|
+
margin-bottom: 0
|
1215
|
+
footer
|
1216
|
+
border-top: 1px solid $gray-lighter
|
1217
|
+
padding: 1rem 1rem 0
|
1218
|
+
|
1219
|
+
// Tables // ============================
|
1220
|
+
table
|
1221
|
+
border-spacing: 0
|
1222
|
+
th
|
1223
|
+
border-right: solid 1px $gray-lighter
|
1224
|
+
border-bottom: solid 1px $gray-lighter
|
1225
|
+
padding: 0 0.5rem
|
1226
|
+
font-size: 0.875rem
|
1227
|
+
height: 32px
|
1228
|
+
&:last-of-type
|
1229
|
+
border-right: none
|
1230
|
+
td
|
1231
|
+
border-bottom: dotted 1px $gray-lighter
|
1232
|
+
padding: 0 0.5rem
|
1233
|
+
height: 33px
|
1234
|
+
button, .button
|
1235
|
+
margin-right: 0.125rem
|
1236
|
+
.tag
|
1237
|
+
margin: 0.25rem 0.125rem 0.25rem 0
|
1238
|
+
.tag-group
|
1239
|
+
padding-top: 0.25rem
|
1240
|
+
.tag
|
1241
|
+
margin-top: 0
|
1242
|
+
thead tr:hover
|
1243
|
+
border-top: none
|
1244
|
+
background: transparent
|
1245
|
+
tr:hover
|
1246
|
+
background-color: $gray-super-lightest
|
1247
|
+
border-top: 1px solid $gray-super-lightest
|
1248
|
+
border-bottom: 1px solid $gray-super-lightest
|
1249
|
+
.action-column
|
1250
|
+
white-space: nowrap
|
1251
|
+
width: 1px
|
1252
|
+
text-align: right
|
1253
|
+
.sortable
|
1254
|
+
position: relative
|
1255
|
+
.sortable:before
|
1256
|
+
+font-awesome-base
|
1257
|
+
content: "\f0dc"
|
1258
|
+
float: right
|
1259
|
+
color: $gray-lighter
|
1260
|
+
position: relative
|
1261
|
+
top: 2px
|
1262
|
+
.sort-up.sortable:before
|
1263
|
+
content: "\f0de"
|
1264
|
+
color: $primary-color
|
1265
|
+
top: 6px
|
1266
|
+
.sort-down.sortable:before
|
1267
|
+
content: "\f0dd"
|
1268
|
+
color: $primary-color
|
1269
|
+
top: -4px
|
1270
|
+
.filter
|
1271
|
+
text-decoration: none
|
1272
|
+
line-height: 1.5rem
|
1273
|
+
border-radius: 0.75rem
|
1274
|
+
color: #494A4E
|
1275
|
+
font-size: 0.875rem
|
1276
|
+
display: inline-block
|
1277
|
+
white-space: nowrap
|
1278
|
+
&:after
|
1279
|
+
+font-awesome-base
|
1280
|
+
content: "\f0b0"
|
1281
|
+
color: $gray-lighter
|
1282
|
+
&.active
|
1283
|
+
padding: 0 0.5rem
|
1284
|
+
background-color: $primary-color
|
1285
|
+
color: $primary-button-font-color
|
1286
|
+
&:after
|
1287
|
+
content: "×"
|
1288
|
+
padding-left: .125rem
|
1289
|
+
color: darken($primary-color, 20%)
|
1290
|
+
&:hover
|
1291
|
+
background-color: lighten($primary-color, 7%)
|
1292
|
+
box-shadow: $button-hover-shadow
|
1293
|
+
&:after
|
1294
|
+
color: $primary-button-font-color
|
1295
|
+
.grabbable
|
1296
|
+
white-space: nowrap
|
1297
|
+
width: 1px
|
1298
|
+
th.grabbable
|
1299
|
+
border-right: none
|
1300
|
+
+ th
|
1301
|
+
padding-left: 0
|
1302
|
+
td.grabbable
|
1303
|
+
padding: 0
|
1304
|
+
+ td
|
1305
|
+
padding-left: 0
|
1306
|
+
.grabber
|
1307
|
+
color: $gray-lighter
|
1308
|
+
padding: 6px 0.5rem 6px 0
|
1309
|
+
cursor: ns-resize
|
1310
|
+
&:after
|
1311
|
+
+font-awesome-base
|
1312
|
+
content: "\f0c9"
|
1313
|
+
|
1314
|
+
// Utility Classes // ------------------------------------------
|
1315
|
+
.no-margin-top
|
1316
|
+
margin-top: 0 !important
|
1317
|
+
.no-margin-bottom
|
1318
|
+
margin-bottom: 0 !important
|
1319
|
+
.no-margin-top-bottom
|
1320
|
+
margin-top: 0 !important
|
1321
|
+
margin-bottom: 0 !important
|
1322
|
+
.no-wrap
|
1323
|
+
white-space: nowrap
|