spud_core 0.8.28 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. data/app/assets/javascripts/spud/admin/application.js +80 -39
  2. data/app/assets/javascripts/spud/admin/editor.js +91 -0
  3. data/app/assets/libs/bootstrap/css/bootstrap-responsive.css +799 -397
  4. data/app/assets/libs/bootstrap/css/bootstrap.css +3275 -1372
  5. data/app/assets/libs/bootstrap/img/glyphicons-halflings-white.png +0 -0
  6. data/app/assets/libs/bootstrap/img/glyphicons-halflings.png +0 -0
  7. data/app/assets/libs/bootstrap/js/bootstrap.js +716 -417
  8. data/app/assets/libs/datepicker/css/datepicker.css +223 -0
  9. data/app/assets/libs/datepicker/js/bootstrap-datepicker.js +779 -0
  10. data/app/assets/libs/datepicker/less/datepicker.less +122 -0
  11. data/app/assets/libs/jquery-ui/css/flick/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  12. data/app/assets/libs/jquery-ui/css/flick/images/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  13. data/app/assets/libs/jquery-ui/css/flick/images/ui-bg_flat_55_ffffff_40x100.png +0 -0
  14. data/app/assets/libs/jquery-ui/css/flick/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  15. data/app/assets/libs/jquery-ui/css/flick/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  16. data/app/assets/libs/jquery-ui/css/flick/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png +0 -0
  17. data/app/assets/libs/jquery-ui/css/flick/images/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
  18. data/app/assets/libs/jquery-ui/css/flick/images/ui-bg_highlight-soft_50_dddddd_1x100.png +0 -0
  19. data/app/assets/libs/jquery-ui/css/flick/images/ui-icons_0073ea_256x240.png +0 -0
  20. data/app/assets/libs/jquery-ui/css/flick/images/ui-icons_454545_256x240.png +0 -0
  21. data/app/assets/libs/jquery-ui/css/flick/images/ui-icons_666666_256x240.png +0 -0
  22. data/app/assets/libs/jquery-ui/css/flick/images/ui-icons_ff0084_256x240.png +0 -0
  23. data/app/assets/libs/jquery-ui/css/flick/images/ui-icons_ffffff_256x240.png +0 -0
  24. data/app/assets/libs/jquery-ui/css/flick/jquery-ui-1.9.1.custom.css +297 -0
  25. data/app/assets/libs/jquery-ui/css/flick/jquery-ui-1.9.1.custom.min.css +5 -0
  26. data/app/assets/libs/jquery-ui/js/jquery-ui-1.9.1.custom.js +4870 -0
  27. data/app/assets/libs/jquery-ui/js/jquery-ui-1.9.1.custom.min.js +6 -0
  28. data/app/assets/stylesheets/spud/admin/application.css +22 -4
  29. data/app/controllers/spud/admin/application_controller.rb +13 -4
  30. data/app/controllers/spud/admin/dashboard_controller.rb +1 -1
  31. data/app/controllers/spud/admin/users_controller.rb +4 -9
  32. data/app/controllers/spud/setup_controller.rb +3 -4
  33. data/app/models/spud_admin_permission.rb +1 -1
  34. data/app/models/spud_user.rb +4 -2
  35. data/app/views/layouts/spud/admin/application.html.erb +24 -5
  36. data/app/views/spud/admin/users/_edit.html.erb +2 -4
  37. data/app/views/spud/admin/users/_new.html.erb +3 -5
  38. data/app/views/spud/admin/users/index.html.erb +6 -5
  39. data/lib/spud_core/belongs_to_app.rb +9 -6
  40. data/lib/spud_core/configuration.rb +23 -1
  41. data/lib/spud_core/engine.rb +20 -28
  42. data/lib/spud_core/version.rb +1 -1
  43. data/spec/dummy/log/development.log +15 -37
  44. data/spec/dummy/log/test.log +72841 -25918
  45. metadata +25 -101
  46. data/app/assets/libs/bootstrap/css/bootstrap-responsive.min.css +0 -12
  47. data/app/assets/libs/bootstrap/css/bootstrap.min.css +0 -689
  48. data/app/assets/libs/bootstrap/js/bootstrap.min.js +0 -6
  49. data/app/assets/libs/tiny_mce/plugins/autosave/editor_plugin.js +0 -1
  50. data/app/assets/libs/tiny_mce/plugins/autosave/editor_plugin_src.js +0 -431
  51. data/app/assets/libs/tiny_mce/plugins/autosave/langs/en.js +0 -4
  52. data/app/assets/libs/tiny_mce/plugins/bbcode/editor_plugin.js +0 -1
  53. data/app/assets/libs/tiny_mce/plugins/bbcode/editor_plugin_src.js +0 -120
  54. data/app/assets/libs/tiny_mce/plugins/emotions/editor_plugin.js +0 -1
  55. data/app/assets/libs/tiny_mce/plugins/emotions/editor_plugin_src.js +0 -43
  56. data/app/assets/libs/tiny_mce/plugins/emotions/emotions.htm +0 -42
  57. data/app/assets/libs/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
  58. data/app/assets/libs/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
  59. data/app/assets/libs/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  60. data/app/assets/libs/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  61. data/app/assets/libs/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
  62. data/app/assets/libs/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
  63. data/app/assets/libs/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
  64. data/app/assets/libs/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
  65. data/app/assets/libs/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  66. data/app/assets/libs/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
  67. data/app/assets/libs/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
  68. data/app/assets/libs/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
  69. data/app/assets/libs/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  70. data/app/assets/libs/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
  71. data/app/assets/libs/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
  72. data/app/assets/libs/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
  73. data/app/assets/libs/tiny_mce/plugins/emotions/js/emotions.js +0 -43
  74. data/app/assets/libs/tiny_mce/plugins/emotions/langs/en_dlg.js +0 -1
  75. data/app/assets/libs/tiny_mce/plugins/fullpage/css/fullpage.css +0 -143
  76. data/app/assets/libs/tiny_mce/plugins/fullpage/editor_plugin.js +0 -1
  77. data/app/assets/libs/tiny_mce/plugins/fullpage/editor_plugin_src.js +0 -405
  78. data/app/assets/libs/tiny_mce/plugins/fullpage/fullpage.htm +0 -259
  79. data/app/assets/libs/tiny_mce/plugins/fullpage/js/fullpage.js +0 -232
  80. data/app/assets/libs/tiny_mce/plugins/fullpage/langs/en_dlg.js +0 -1
  81. data/app/assets/libs/tiny_mce/plugins/fullscreen/editor_plugin.js +0 -1
  82. data/app/assets/libs/tiny_mce/plugins/fullscreen/editor_plugin_src.js +0 -159
  83. data/app/assets/libs/tiny_mce/plugins/fullscreen/fullscreen.htm +0 -110
  84. data/app/assets/libs/tiny_mce/plugins/insertdatetime/editor_plugin.js +0 -1
  85. data/app/assets/libs/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +0 -83
  86. data/app/assets/libs/tiny_mce/plugins/legacyoutput/editor_plugin.js +0 -1
  87. data/app/assets/libs/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +0 -139
  88. data/app/assets/libs/tiny_mce/plugins/nonbreaking/editor_plugin.js +0 -1
  89. data/app/assets/libs/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +0 -54
  90. data/app/assets/libs/tiny_mce/plugins/noneditable/editor_plugin.js +0 -1
  91. data/app/assets/libs/tiny_mce/plugins/noneditable/editor_plugin_src.js +0 -454
  92. data/app/assets/libs/tiny_mce/plugins/pagebreak/editor_plugin.js +0 -1
  93. data/app/assets/libs/tiny_mce/plugins/pagebreak/editor_plugin_src.js +0 -74
  94. data/app/assets/libs/tiny_mce/plugins/preview/editor_plugin.js +0 -1
  95. data/app/assets/libs/tiny_mce/plugins/preview/editor_plugin_src.js +0 -53
  96. data/app/assets/libs/tiny_mce/plugins/preview/example.html +0 -28
  97. data/app/assets/libs/tiny_mce/plugins/preview/jscripts/embed.js +0 -73
  98. data/app/assets/libs/tiny_mce/plugins/preview/preview.html +0 -17
  99. data/app/assets/libs/tiny_mce/plugins/print/editor_plugin.js +0 -1
  100. data/app/assets/libs/tiny_mce/plugins/print/editor_plugin_src.js +0 -34
  101. data/app/assets/libs/tiny_mce/plugins/save/editor_plugin.js +0 -1
  102. data/app/assets/libs/tiny_mce/plugins/save/editor_plugin_src.js +0 -101
  103. data/app/assets/libs/tiny_mce/plugins/searchreplace/css/searchreplace.css +0 -6
  104. data/app/assets/libs/tiny_mce/plugins/searchreplace/editor_plugin.js +0 -1
  105. data/app/assets/libs/tiny_mce/plugins/searchreplace/editor_plugin_src.js +0 -61
  106. data/app/assets/libs/tiny_mce/plugins/searchreplace/js/searchreplace.js +0 -142
  107. data/app/assets/libs/tiny_mce/plugins/searchreplace/langs/en_dlg.js +0 -1
  108. data/app/assets/libs/tiny_mce/plugins/searchreplace/searchreplace.htm +0 -100
  109. data/app/assets/libs/tiny_mce/plugins/tabfocus/editor_plugin.js +0 -1
  110. data/app/assets/libs/tiny_mce/plugins/tabfocus/editor_plugin_src.js +0 -122
  111. data/app/assets/libs/tiny_mce/plugins/template/blank.htm +0 -12
  112. data/app/assets/libs/tiny_mce/plugins/template/css/template.css +0 -23
  113. data/app/assets/libs/tiny_mce/plugins/template/editor_plugin.js +0 -1
  114. data/app/assets/libs/tiny_mce/plugins/template/editor_plugin_src.js +0 -159
  115. data/app/assets/libs/tiny_mce/plugins/template/js/template.js +0 -106
  116. data/app/assets/libs/tiny_mce/plugins/template/langs/en_dlg.js +0 -1
  117. data/app/assets/libs/tiny_mce/plugins/template/template.htm +0 -31
  118. data/app/assets/libs/tiny_mce/plugins/visualblocks/css/visualblocks.css +0 -21
  119. data/app/assets/libs/tiny_mce/plugins/visualblocks/editor_plugin.js +0 -1
  120. data/app/assets/libs/tiny_mce/plugins/visualblocks/editor_plugin_src.js +0 -63
  121. data/app/assets/libs/tiny_mce/plugins/visualchars/editor_plugin.js +0 -1
  122. data/app/assets/libs/tiny_mce/plugins/visualchars/editor_plugin_src.js +0 -83
  123. data/app/assets/libs/tiny_mce/plugins/wordcount/editor_plugin.js +0 -1
  124. data/app/assets/libs/tiny_mce/plugins/wordcount/editor_plugin_src.js +0 -122
  125. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/abbr.htm +0 -142
  126. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/acronym.htm +0 -142
  127. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/attributes.htm +0 -149
  128. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/cite.htm +0 -142
  129. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/css/attributes.css +0 -11
  130. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/css/popup.css +0 -9
  131. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/del.htm +0 -162
  132. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +0 -1
  133. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +0 -132
  134. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/ins.htm +0 -162
  135. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/js/abbr.js +0 -28
  136. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/js/acronym.js +0 -28
  137. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/js/attributes.js +0 -111
  138. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/js/cite.js +0 -28
  139. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/js/del.js +0 -53
  140. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/js/element_common.js +0 -229
  141. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/js/ins.js +0 -53
  142. data/app/assets/libs/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +0 -1
@@ -1,50 +1,68 @@
1
+
1
2
  //= require jquery
2
3
  //= require jquery_ujs
3
- //= require jquery-ui
4
4
  //= require tiny_mce/jquery.tinymce.js
5
+ //= require tiny_mce/tiny_mce_src.js
5
6
  //= require spud/admin/jquery.dataTables.min
6
7
  //= require bootstrap/js/bootstrap
8
+ //= require datepicker/js/bootstrap-datepicker
9
+ //= require jquery-ui/js/jquery-ui-1.9.1.custom
7
10
  //= require_self
8
11
  //= require_tree .
9
12
  //= require retina_tag
10
13
 
11
- Spud = (typeof(Spud) == 'undefined') ? {} : Spud;
12
- Spud.Admin = (typeof(Spud.Admin) == 'undefined') ? {} : Spud.Admin;
14
+ spud = {admin:{}};
13
15
 
14
16
  $(document).ready(function() {
17
+
18
+ if(typeof(window.console) == 'undefined'){
19
+ window.console = {
20
+ log:function(){},
21
+ warn:function(){},
22
+ error:function(){}
23
+ };
24
+ }
25
+
15
26
  $('#user_table').dataTable({
16
27
  "bJQueryUI": true,
17
28
  "sPaginationType": "full_numbers"
18
29
  });
19
30
 
31
+ $("#modal_window .modal-footer .form-submit").bind('click', function() {
32
+ $("#modal_window .modal-body form").submit();
33
+ });
34
+
35
+ $("#modal_window ").on('hidden', function(){
36
+ $(this).find('.modal-footer-additional').remove();
37
+ $(this).find('.modal-footer-default').show();
38
+ });
39
+
20
40
  $('a.ajax').live('click', function() {
21
41
  var url = this.href;
22
42
  var title = this.title;
23
- var dialog = $("#dialog");
24
- if(dialog.length == 0)
25
- {
26
- dialog = $('<div id="dialog" style="display:hidden;"></div>').appendTo('body');
27
- }
28
- dialog.load(url + ".js",
29
- function(responseText, textStatus, XMLHttpRequest) {
30
- dialog.dialog({width:500,modal:true,height:500,title:title});
43
+ var dialog = $("#modal_window");
44
+
45
+ $("#modal_window .modal-title").text(title);
46
+ dialog.modal({
47
+ remote: url +".js",
48
+ show:true
31
49
  });
50
+
51
+ // dialog.load(url + ".js",
52
+ // function(responseText, textStatus, XMLHttpRequest) {
53
+ // dialog.dialog({width:500,modal:true,height:500,title:title});
54
+ // });
32
55
  return false;
33
56
  });
34
57
 
35
- $('a.close_dialog').live('click', function() {
36
- $('#dialog').dialog('close');
37
- });
58
+
38
59
 
39
60
  $('a[data-method="delete"]').live('ajax:success',
40
61
  function(data, textStatus, jqXHR){
41
62
  $(this).closest('tr').fadeOut();
42
63
  });
43
64
 
44
- $('form[data-remote="true"]').live('ajax:success',
45
- function(data, textStatus, jqXHR){
46
- $(this).closest('#dialog').dialog('close');
47
- });
65
+
48
66
  $('a.button').button();
49
67
 
50
68
 
@@ -72,44 +90,67 @@ function add_fields(link, association, content) {
72
90
 
73
91
  function initFormTabs(){
74
92
  var tabNames = [];
93
+
75
94
  $('.formtabs .formtab').each(function(tabind) {
76
- this.id = 'tab-' + tabind;
77
- tabNames.push($('.tab_name',this).first().val());
95
+ if(tabind === 0) {
96
+ $(this).addClass('active');
97
+ }
98
+ this.id = 'tab-' + tabind;
99
+ tabNames.push($('.tab_name',this).first().val());
78
100
  });
79
101
  var tabButtons = $('.formtabs .formtab_buttons').first();
80
102
  for(var x=0;x<tabNames.length;x++)
81
103
  {
82
- tabButtons.append($('<li><a href="#tab-' + x + '">' + tabNames[x] + '</a></li>'));
104
+ var tabButton = $('<li><a href="#tab-' + x + '" data-toggle="tab">' + tabNames[x] + '</a></li>');
105
+ if(x == 0) {
106
+ tabButton.addClass('active');
107
+ }
108
+ tabButtons.append(tabButton);
83
109
  }
84
110
 
85
- $('.formtabs').tabs();
111
+ // $('.formtabs').tabs();
86
112
  }
87
113
 
88
114
 
89
115
  function initTinyMCE(selector) {
90
- selector = (typeof(selector) == 'undefined') ? 'textarea.tinymce' : selector;
91
- // Location of TinyMCE script
92
- $(selector).tinymce({
93
- script_url : '/assets/tiny_mce/tiny_mce.js',
94
- theme: "advanced",
95
- plugins: "autolink,lists,pagebreak,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,paste",
96
- theme_advanced_toolbar_location: "top",
97
- theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect,cut,copy,paste,pastetext,pasteword,|,bullist,numlist",
98
- theme_advanced_buttons2 : "outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor,|,tablecontrols",
99
- theme_advanced_buttons3 : null,
100
- theme_advanced_buttons4 : null,
101
- convert_urls : false,
102
- height:"400"
103
- });
104
-
105
-
116
+ console.warn('Deprecation Notice: `initTinyMCE()` is depcreated, please use `spud.admin.editor.init()` instead.');
117
+ spud.admin.editor.init();
106
118
  }
107
119
 
108
120
  function initDatePicker(selector){
109
121
  selector = (typeof(selector) == 'undefined') ? '.spud_form_date_picker' : selector;
110
122
  $(selector).datepicker({
111
- dateFormat: 'yy-mm-dd'
123
+ 'format': 'yyyy-mm-dd',
124
+ 'autoclose': true
112
125
  });
113
126
  }
114
127
 
128
+ function displayModalDialogWithOptions(options){
129
+ var modal = $('#modal_window');
130
+ if(options.title){
131
+ modal.find('.modal-title').text(options.title);
132
+ }
133
+ if(options.html){
134
+ modal.find('.modal-body').html(options.html);
135
+ }
136
+ var defaultFooter = modal.find('.modal-footer-default');
137
+ if(options.buttons){
138
+ var newFooter = defaultFooter.clone();
139
+ newFooter.addClass('modal-footer-additional');
140
+ newFooter.find('.form-submit').remove();
141
+ for(var key in options.buttons){
142
+ newFooter.append('<button class="btn '+key+'">'+options.buttons[key]+'</button>');
143
+ }
144
+ defaultFooter.hide();
145
+ modal.append(newFooter);
146
+ }
147
+ else{
148
+ defaultFooter.show();
149
+ }
150
+ modal.modal('show');
151
+ }
115
152
 
153
+ function hideModalDialog(){
154
+ var modal = $('#modal_window');
155
+ modal.modal('hide');
156
+ }
@@ -0,0 +1,91 @@
1
+ spud.admin.editor = {};
2
+
3
+ (function(){
4
+
5
+ var editor = spud.admin.editor;
6
+
7
+ var registeredPlugins = [
8
+ 'autolink','lists','layer','table','advhr','advimage','advlink','iespell','inlinepopups','media','paste'
9
+ ];
10
+
11
+ var registeredButtons = [
12
+ ['bold','italic','underline','strikethrough','forecolor','backcolor','|','justifyleft','justifycenter','justifyright','justifyfull','|','formatselect','fontsizeselect','cut','copy','paste','pastetext','pasteword','|','bullist','numlist','outdent','indent'],
13
+ ['tablecontrols','|','link','unlink','anchor','image','code'],
14
+ [],
15
+ []
16
+ ];
17
+
18
+ var validElements = "@[id|class|style|title|dir<ltr?rtl|lang|xml::lang|onclick|ondblclick|" +
19
+ "onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|" +
20
+ "onkeydown|onkeyup],a[rel|rev|charset|hreflang|tabindex|accesskey|type|" +
21
+ "name|href|target|title|class|onfocus|onblur],strong/b,em/i,strike,u," +
22
+ "#p,-ol[type|compact],-ul[type|compact],-li,br,img[longdesc|usemap|" +
23
+ "src|border|alt=|title|hspace|vspace|width|height|align|hidpi_src],-sub,-sup," +
24
+ "-blockquote,-table[border=0|cellspacing|cellpadding|width|frame|rules|" +
25
+ "height|align|summary|bgcolor|background|bordercolor],-tr[rowspan|width|" +
26
+ "height|align|valign|bgcolor|background|bordercolor],tbody,thead,tfoot," +
27
+ "#td[colspan|rowspan|width|height|align|valign|bgcolor|background|bordercolor" +
28
+ "|scope],#th[colspan|rowspan|width|height|align|valign|scope],caption,-div," +
29
+ "-span,-code,-pre,address,-h1,-h2,-h3,-h4,-h5,-h6,hr[size|noshade],-font[face" +
30
+ "|size|color],dd,dl,dt,cite,abbr,acronym,del[datetime|cite],ins[datetime|cite]," +
31
+ "object[classid|width|height|codebase|*],param[name|value|_value],embed[type|width" +
32
+ "|height|src|*],script[src|type],map[name],area[shape|coords|href|alt|target],bdo," +
33
+ "button,col[align|char|charoff|span|valign|width],colgroup[align|char|charoff|span|" +
34
+ "valign|width],dfn,fieldset,form[action|accept|accept-charset|enctype|method]," +
35
+ "input[accept|alt|checked|disabled|maxlength|name|readonly|size|src|type|value]," +
36
+ "kbd,label[for],legend,noscript,optgroup[label|disabled],option[disabled|label|selected|value]," +
37
+ "q[cite],samp,select[disabled|multiple|name|size],small," +
38
+ "textarea[cols|rows|disabled|name|readonly],tt,var,big";
39
+
40
+ editor.init = function(){
41
+ editor.initWithOptions({});
42
+ };
43
+
44
+ editor.initWithOptions = function(options){
45
+ var selector = options.selector || 'textarea.tinymce';
46
+ var theme = options.theme || 'advanced';
47
+ var height = options.height || 400;
48
+ //var alignment:
49
+ $(selector).tinymce({
50
+ //script_url : '/assets/tiny_mce/tiny_mce.js',
51
+ theme: theme,
52
+ plugins: registeredPlugins.join(','),
53
+ theme_advanced_toolbar_location: "top",
54
+ theme_advanced_buttons1: registeredButtons[0].join(','),
55
+ theme_advanced_buttons2: registeredButtons[1].join(','),
56
+ theme_advanced_buttons3: registeredButtons[2].join(','),
57
+ theme_advanced_buttons4: registeredButtons[3].join(','),
58
+ theme_advanced_toolbar_align: 'left',
59
+ convert_urls: false,
60
+ valid_elements: validElements,
61
+ height: height
62
+ });
63
+ };
64
+
65
+ editor.registerPlugin = function(pluginName){
66
+ if($.inArray(registeredPlugins, pluginName) < 0){
67
+ registeredPlugins.push(pluginName);
68
+ }
69
+ };
70
+
71
+ editor.deregisterPlugin = function(pluginName){
72
+ var i=0;
73
+ while(i < registeredPlugins.length){
74
+ if(registeredPlugins[i] == pluginName){
75
+ registeredPlugins.splice(1, i);
76
+ break;
77
+ }
78
+ i++;
79
+ }
80
+ };
81
+
82
+ editor.registerButton = function(buttonNameOrArray, rowNum){
83
+ rowNum = rowNum || 1;
84
+ if(typeof(buttonNameOrArray) == 'object'){
85
+ registeredButtons[rowNum].concat(buttonNameOrArray);
86
+ }
87
+ else{
88
+ registeredButtons[rowNum].push(buttonNameOrArray);
89
+ }
90
+ };
91
+ })();
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap Responsive v2.0.2
2
+ * Bootstrap Responsive v2.2.1
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -7,181 +7,440 @@
7
7
  *
8
8
  * Designed and built with all the love in the world @twitter by @mdo and @fat.
9
9
  */
10
+
10
11
  .clearfix {
11
12
  *zoom: 1;
12
13
  }
14
+
13
15
  .clearfix:before,
14
16
  .clearfix:after {
15
17
  display: table;
18
+ line-height: 0;
16
19
  content: "";
17
20
  }
21
+
18
22
  .clearfix:after {
19
23
  clear: both;
20
24
  }
25
+
21
26
  .hide-text {
22
- overflow: hidden;
23
- text-indent: 100%;
24
- white-space: nowrap;
27
+ font: 0/0 a;
28
+ color: transparent;
29
+ text-shadow: none;
30
+ background-color: transparent;
31
+ border: 0;
25
32
  }
33
+
26
34
  .input-block-level {
27
35
  display: block;
28
36
  width: 100%;
29
- min-height: 28px;
30
- /* Make inputs at least the height of their button counterpart */
31
-
32
- /* Makes inputs behave like true block-level elements */
33
-
37
+ min-height: 30px;
34
38
  -webkit-box-sizing: border-box;
35
- -moz-box-sizing: border-box;
36
- -ms-box-sizing: border-box;
37
- box-sizing: border-box;
39
+ -moz-box-sizing: border-box;
40
+ box-sizing: border-box;
38
41
  }
42
+
39
43
  .hidden {
40
44
  display: none;
41
45
  visibility: hidden;
42
46
  }
47
+
43
48
  .visible-phone {
44
- display: none;
49
+ display: none !important;
45
50
  }
51
+
46
52
  .visible-tablet {
47
- display: none;
48
- }
49
- .visible-desktop {
50
- display: block;
51
- }
52
- .hidden-phone {
53
- display: block;
54
- }
55
- .hidden-tablet {
56
- display: block;
53
+ display: none !important;
57
54
  }
55
+
58
56
  .hidden-desktop {
59
- display: none;
57
+ display: none !important;
60
58
  }
61
- @media (max-width: 767px) {
62
- .visible-phone {
63
- display: block;
64
- }
65
- .hidden-phone {
66
- display: none;
67
- }
59
+
60
+ .visible-desktop {
61
+ display: inherit !important;
62
+ }
63
+
64
+ @media (min-width: 768px) and (max-width: 979px) {
68
65
  .hidden-desktop {
69
- display: block;
66
+ display: inherit !important;
70
67
  }
71
68
  .visible-desktop {
72
- display: none;
69
+ display: none !important ;
73
70
  }
74
- }
75
- @media (min-width: 768px) and (max-width: 979px) {
76
71
  .visible-tablet {
77
- display: block;
72
+ display: inherit !important;
78
73
  }
79
74
  .hidden-tablet {
80
- display: none;
75
+ display: none !important;
81
76
  }
77
+ }
78
+
79
+ @media (max-width: 767px) {
82
80
  .hidden-desktop {
83
- display: block;
81
+ display: inherit !important;
84
82
  }
85
83
  .visible-desktop {
86
- display: none;
84
+ display: none !important;
85
+ }
86
+ .visible-phone {
87
+ display: inherit !important;
88
+ }
89
+ .hidden-phone {
90
+ display: none !important;
87
91
  }
88
92
  }
89
- @media (max-width: 480px) {
90
- .nav-collapse {
91
- -webkit-transform: translate3d(0, 0, 0);
93
+
94
+ @media (min-width: 1200px) {
95
+ .row {
96
+ margin-left: -30px;
97
+ *zoom: 1;
92
98
  }
93
- .page-header h1 small {
94
- display: block;
95
- line-height: 18px;
99
+ .row:before,
100
+ .row:after {
101
+ display: table;
102
+ line-height: 0;
103
+ content: "";
96
104
  }
97
- input[type="checkbox"],
98
- input[type="radio"] {
99
- border: 1px solid #ccc;
105
+ .row:after {
106
+ clear: both;
100
107
  }
101
- .form-horizontal .control-group > label {
102
- float: none;
103
- width: auto;
104
- padding-top: 0;
105
- text-align: left;
108
+ [class*="span"] {
109
+ float: left;
110
+ min-height: 1px;
111
+ margin-left: 30px;
106
112
  }
107
- .form-horizontal .controls {
108
- margin-left: 0;
113
+ .container,
114
+ .navbar-static-top .container,
115
+ .navbar-fixed-top .container,
116
+ .navbar-fixed-bottom .container {
117
+ width: 1170px;
109
118
  }
110
- .form-horizontal .control-list {
111
- padding-top: 0;
119
+ .span12 {
120
+ width: 1170px;
112
121
  }
113
- .form-horizontal .form-actions {
114
- padding-left: 10px;
115
- padding-right: 10px;
122
+ .span11 {
123
+ width: 1070px;
116
124
  }
117
- .modal {
118
- position: absolute;
119
- top: 10px;
120
- left: 10px;
121
- right: 10px;
122
- width: auto;
123
- margin: 0;
125
+ .span10 {
126
+ width: 970px;
124
127
  }
125
- .modal.fade.in {
126
- top: auto;
128
+ .span9 {
129
+ width: 870px;
127
130
  }
128
- .modal-header .close {
129
- padding: 10px;
130
- margin: -10px;
131
+ .span8 {
132
+ width: 770px;
131
133
  }
132
- .carousel-caption {
133
- position: static;
134
+ .span7 {
135
+ width: 670px;
134
136
  }
135
- }
136
- @media (max-width: 767px) {
137
- body {
138
- padding-left: 20px;
139
- padding-right: 20px;
137
+ .span6 {
138
+ width: 570px;
140
139
  }
141
- .navbar-fixed-top {
142
- margin-left: -20px;
143
- margin-right: -20px;
140
+ .span5 {
141
+ width: 470px;
144
142
  }
145
- .container {
146
- width: auto;
143
+ .span4 {
144
+ width: 370px;
145
+ }
146
+ .span3 {
147
+ width: 270px;
148
+ }
149
+ .span2 {
150
+ width: 170px;
151
+ }
152
+ .span1 {
153
+ width: 70px;
154
+ }
155
+ .offset12 {
156
+ margin-left: 1230px;
157
+ }
158
+ .offset11 {
159
+ margin-left: 1130px;
160
+ }
161
+ .offset10 {
162
+ margin-left: 1030px;
163
+ }
164
+ .offset9 {
165
+ margin-left: 930px;
166
+ }
167
+ .offset8 {
168
+ margin-left: 830px;
169
+ }
170
+ .offset7 {
171
+ margin-left: 730px;
172
+ }
173
+ .offset6 {
174
+ margin-left: 630px;
175
+ }
176
+ .offset5 {
177
+ margin-left: 530px;
178
+ }
179
+ .offset4 {
180
+ margin-left: 430px;
181
+ }
182
+ .offset3 {
183
+ margin-left: 330px;
184
+ }
185
+ .offset2 {
186
+ margin-left: 230px;
187
+ }
188
+ .offset1 {
189
+ margin-left: 130px;
147
190
  }
148
191
  .row-fluid {
149
192
  width: 100%;
193
+ *zoom: 1;
150
194
  }
151
- .row {
152
- margin-left: 0;
153
- }
154
- .row > [class*="span"],
155
- .row-fluid > [class*="span"] {
156
- float: none;
157
- display: block;
158
- width: auto;
159
- margin: 0;
195
+ .row-fluid:before,
196
+ .row-fluid:after {
197
+ display: table;
198
+ line-height: 0;
199
+ content: "";
160
200
  }
161
- .thumbnails [class*="span"] {
162
- width: auto;
201
+ .row-fluid:after {
202
+ clear: both;
163
203
  }
164
- input[class*="span"],
165
- select[class*="span"],
166
- textarea[class*="span"],
167
- .uneditable-input {
204
+ .row-fluid [class*="span"] {
168
205
  display: block;
206
+ float: left;
169
207
  width: 100%;
170
- min-height: 28px;
171
- /* Make inputs at least the height of their button counterpart */
172
-
173
- /* Makes inputs behave like true block-level elements */
174
-
208
+ min-height: 30px;
209
+ margin-left: 2.564102564102564%;
210
+ *margin-left: 2.5109110747408616%;
175
211
  -webkit-box-sizing: border-box;
176
- -moz-box-sizing: border-box;
177
- -ms-box-sizing: border-box;
178
- box-sizing: border-box;
212
+ -moz-box-sizing: border-box;
213
+ box-sizing: border-box;
179
214
  }
180
- .input-prepend input[class*="span"],
181
- .input-append input[class*="span"] {
182
- width: auto;
215
+ .row-fluid [class*="span"]:first-child {
216
+ margin-left: 0;
217
+ }
218
+ .row-fluid .controls-row [class*="span"] + [class*="span"] {
219
+ margin-left: 2.564102564102564%;
220
+ }
221
+ .row-fluid .span12 {
222
+ width: 100%;
223
+ *width: 99.94680851063829%;
224
+ }
225
+ .row-fluid .span11 {
226
+ width: 91.45299145299145%;
227
+ *width: 91.39979996362975%;
228
+ }
229
+ .row-fluid .span10 {
230
+ width: 82.90598290598291%;
231
+ *width: 82.8527914166212%;
232
+ }
233
+ .row-fluid .span9 {
234
+ width: 74.35897435897436%;
235
+ *width: 74.30578286961266%;
236
+ }
237
+ .row-fluid .span8 {
238
+ width: 65.81196581196582%;
239
+ *width: 65.75877432260411%;
240
+ }
241
+ .row-fluid .span7 {
242
+ width: 57.26495726495726%;
243
+ *width: 57.21176577559556%;
244
+ }
245
+ .row-fluid .span6 {
246
+ width: 48.717948717948715%;
247
+ *width: 48.664757228587014%;
248
+ }
249
+ .row-fluid .span5 {
250
+ width: 40.17094017094017%;
251
+ *width: 40.11774868157847%;
252
+ }
253
+ .row-fluid .span4 {
254
+ width: 31.623931623931625%;
255
+ *width: 31.570740134569924%;
256
+ }
257
+ .row-fluid .span3 {
258
+ width: 23.076923076923077%;
259
+ *width: 23.023731587561375%;
260
+ }
261
+ .row-fluid .span2 {
262
+ width: 14.52991452991453%;
263
+ *width: 14.476723040552828%;
264
+ }
265
+ .row-fluid .span1 {
266
+ width: 5.982905982905983%;
267
+ *width: 5.929714493544281%;
268
+ }
269
+ .row-fluid .offset12 {
270
+ margin-left: 105.12820512820512%;
271
+ *margin-left: 105.02182214948171%;
272
+ }
273
+ .row-fluid .offset12:first-child {
274
+ margin-left: 102.56410256410257%;
275
+ *margin-left: 102.45771958537915%;
276
+ }
277
+ .row-fluid .offset11 {
278
+ margin-left: 96.58119658119658%;
279
+ *margin-left: 96.47481360247316%;
280
+ }
281
+ .row-fluid .offset11:first-child {
282
+ margin-left: 94.01709401709402%;
283
+ *margin-left: 93.91071103837061%;
284
+ }
285
+ .row-fluid .offset10 {
286
+ margin-left: 88.03418803418803%;
287
+ *margin-left: 87.92780505546462%;
288
+ }
289
+ .row-fluid .offset10:first-child {
290
+ margin-left: 85.47008547008548%;
291
+ *margin-left: 85.36370249136206%;
292
+ }
293
+ .row-fluid .offset9 {
294
+ margin-left: 79.48717948717949%;
295
+ *margin-left: 79.38079650845607%;
296
+ }
297
+ .row-fluid .offset9:first-child {
298
+ margin-left: 76.92307692307693%;
299
+ *margin-left: 76.81669394435352%;
300
+ }
301
+ .row-fluid .offset8 {
302
+ margin-left: 70.94017094017094%;
303
+ *margin-left: 70.83378796144753%;
304
+ }
305
+ .row-fluid .offset8:first-child {
306
+ margin-left: 68.37606837606839%;
307
+ *margin-left: 68.26968539734497%;
308
+ }
309
+ .row-fluid .offset7 {
310
+ margin-left: 62.393162393162385%;
311
+ *margin-left: 62.28677941443899%;
312
+ }
313
+ .row-fluid .offset7:first-child {
314
+ margin-left: 59.82905982905982%;
315
+ *margin-left: 59.72267685033642%;
316
+ }
317
+ .row-fluid .offset6 {
318
+ margin-left: 53.84615384615384%;
319
+ *margin-left: 53.739770867430444%;
320
+ }
321
+ .row-fluid .offset6:first-child {
322
+ margin-left: 51.28205128205128%;
323
+ *margin-left: 51.175668303327875%;
324
+ }
325
+ .row-fluid .offset5 {
326
+ margin-left: 45.299145299145295%;
327
+ *margin-left: 45.1927623204219%;
328
+ }
329
+ .row-fluid .offset5:first-child {
330
+ margin-left: 42.73504273504273%;
331
+ *margin-left: 42.62865975631933%;
332
+ }
333
+ .row-fluid .offset4 {
334
+ margin-left: 36.75213675213675%;
335
+ *margin-left: 36.645753773413354%;
336
+ }
337
+ .row-fluid .offset4:first-child {
338
+ margin-left: 34.18803418803419%;
339
+ *margin-left: 34.081651209310785%;
340
+ }
341
+ .row-fluid .offset3 {
342
+ margin-left: 28.205128205128204%;
343
+ *margin-left: 28.0987452264048%;
344
+ }
345
+ .row-fluid .offset3:first-child {
346
+ margin-left: 25.641025641025642%;
347
+ *margin-left: 25.53464266230224%;
348
+ }
349
+ .row-fluid .offset2 {
350
+ margin-left: 19.65811965811966%;
351
+ *margin-left: 19.551736679396257%;
352
+ }
353
+ .row-fluid .offset2:first-child {
354
+ margin-left: 17.094017094017094%;
355
+ *margin-left: 16.98763411529369%;
356
+ }
357
+ .row-fluid .offset1 {
358
+ margin-left: 11.11111111111111%;
359
+ *margin-left: 11.004728132387708%;
360
+ }
361
+ .row-fluid .offset1:first-child {
362
+ margin-left: 8.547008547008547%;
363
+ *margin-left: 8.440625568285142%;
364
+ }
365
+ input,
366
+ textarea,
367
+ .uneditable-input {
368
+ margin-left: 0;
369
+ }
370
+ .controls-row [class*="span"] + [class*="span"] {
371
+ margin-left: 30px;
372
+ }
373
+ input.span12,
374
+ textarea.span12,
375
+ .uneditable-input.span12 {
376
+ width: 1156px;
377
+ }
378
+ input.span11,
379
+ textarea.span11,
380
+ .uneditable-input.span11 {
381
+ width: 1056px;
382
+ }
383
+ input.span10,
384
+ textarea.span10,
385
+ .uneditable-input.span10 {
386
+ width: 956px;
387
+ }
388
+ input.span9,
389
+ textarea.span9,
390
+ .uneditable-input.span9 {
391
+ width: 856px;
392
+ }
393
+ input.span8,
394
+ textarea.span8,
395
+ .uneditable-input.span8 {
396
+ width: 756px;
397
+ }
398
+ input.span7,
399
+ textarea.span7,
400
+ .uneditable-input.span7 {
401
+ width: 656px;
402
+ }
403
+ input.span6,
404
+ textarea.span6,
405
+ .uneditable-input.span6 {
406
+ width: 556px;
407
+ }
408
+ input.span5,
409
+ textarea.span5,
410
+ .uneditable-input.span5 {
411
+ width: 456px;
412
+ }
413
+ input.span4,
414
+ textarea.span4,
415
+ .uneditable-input.span4 {
416
+ width: 356px;
417
+ }
418
+ input.span3,
419
+ textarea.span3,
420
+ .uneditable-input.span3 {
421
+ width: 256px;
422
+ }
423
+ input.span2,
424
+ textarea.span2,
425
+ .uneditable-input.span2 {
426
+ width: 156px;
427
+ }
428
+ input.span1,
429
+ textarea.span1,
430
+ .uneditable-input.span1 {
431
+ width: 56px;
432
+ }
433
+ .thumbnails {
434
+ margin-left: -30px;
435
+ }
436
+ .thumbnails > li {
437
+ margin-left: 30px;
438
+ }
439
+ .row-fluid .thumbnails {
440
+ margin-left: 0;
183
441
  }
184
442
  }
443
+
185
444
  @media (min-width: 768px) and (max-width: 979px) {
186
445
  .row {
187
446
  margin-left: -20px;
@@ -190,6 +449,7 @@
190
449
  .row:before,
191
450
  .row:after {
192
451
  display: table;
452
+ line-height: 0;
193
453
  content: "";
194
454
  }
195
455
  .row:after {
@@ -197,9 +457,11 @@
197
457
  }
198
458
  [class*="span"] {
199
459
  float: left;
460
+ min-height: 1px;
200
461
  margin-left: 20px;
201
462
  }
202
463
  .container,
464
+ .navbar-static-top .container,
203
465
  .navbar-fixed-top .container,
204
466
  .navbar-fixed-bottom .container {
205
467
  width: 724px;
@@ -283,404 +545,544 @@
283
545
  .row-fluid:before,
284
546
  .row-fluid:after {
285
547
  display: table;
548
+ line-height: 0;
286
549
  content: "";
287
550
  }
288
551
  .row-fluid:after {
289
552
  clear: both;
290
553
  }
291
- .row-fluid > [class*="span"] {
554
+ .row-fluid [class*="span"] {
555
+ display: block;
292
556
  float: left;
293
- margin-left: 2.762430939%;
557
+ width: 100%;
558
+ min-height: 30px;
559
+ margin-left: 2.7624309392265194%;
560
+ *margin-left: 2.709239449864817%;
561
+ -webkit-box-sizing: border-box;
562
+ -moz-box-sizing: border-box;
563
+ box-sizing: border-box;
294
564
  }
295
- .row-fluid > [class*="span"]:first-child {
565
+ .row-fluid [class*="span"]:first-child {
296
566
  margin-left: 0;
297
567
  }
298
- .row-fluid > .span12 {
299
- width: 99.999999993%;
568
+ .row-fluid .controls-row [class*="span"] + [class*="span"] {
569
+ margin-left: 2.7624309392265194%;
300
570
  }
301
- .row-fluid > .span11 {
302
- width: 91.436464082%;
571
+ .row-fluid .span12 {
572
+ width: 100%;
573
+ *width: 99.94680851063829%;
303
574
  }
304
- .row-fluid > .span10 {
305
- width: 82.87292817100001%;
575
+ .row-fluid .span11 {
576
+ width: 91.43646408839778%;
577
+ *width: 91.38327259903608%;
306
578
  }
307
- .row-fluid > .span9 {
308
- width: 74.30939226%;
579
+ .row-fluid .span10 {
580
+ width: 82.87292817679558%;
581
+ *width: 82.81973668743387%;
309
582
  }
310
- .row-fluid > .span8 {
311
- width: 65.74585634900001%;
583
+ .row-fluid .span9 {
584
+ width: 74.30939226519337%;
585
+ *width: 74.25620077583166%;
312
586
  }
313
- .row-fluid > .span7 {
314
- width: 57.182320438000005%;
587
+ .row-fluid .span8 {
588
+ width: 65.74585635359117%;
589
+ *width: 65.69266486422946%;
315
590
  }
316
- .row-fluid > .span6 {
317
- width: 48.618784527%;
591
+ .row-fluid .span7 {
592
+ width: 57.18232044198895%;
593
+ *width: 57.12912895262725%;
318
594
  }
319
- .row-fluid > .span5 {
320
- width: 40.055248616%;
595
+ .row-fluid .span6 {
596
+ width: 48.61878453038674%;
597
+ *width: 48.56559304102504%;
321
598
  }
322
- .row-fluid > .span4 {
323
- width: 31.491712705%;
599
+ .row-fluid .span5 {
600
+ width: 40.05524861878453%;
601
+ *width: 40.00205712942283%;
324
602
  }
325
- .row-fluid > .span3 {
326
- width: 22.928176794%;
603
+ .row-fluid .span4 {
604
+ width: 31.491712707182323%;
605
+ *width: 31.43852121782062%;
327
606
  }
328
- .row-fluid > .span2 {
329
- width: 14.364640883%;
607
+ .row-fluid .span3 {
608
+ width: 22.92817679558011%;
609
+ *width: 22.87498530621841%;
330
610
  }
331
- .row-fluid > .span1 {
332
- width: 5.801104972%;
611
+ .row-fluid .span2 {
612
+ width: 14.3646408839779%;
613
+ *width: 14.311449394616199%;
333
614
  }
334
- input,
335
- textarea,
336
- .uneditable-input {
337
- margin-left: 0;
615
+ .row-fluid .span1 {
616
+ width: 5.801104972375691%;
617
+ *width: 5.747913483013988%;
338
618
  }
339
- input.span12, textarea.span12, .uneditable-input.span12 {
340
- width: 714px;
619
+ .row-fluid .offset12 {
620
+ margin-left: 105.52486187845304%;
621
+ *margin-left: 105.41847889972962%;
341
622
  }
342
- input.span11, textarea.span11, .uneditable-input.span11 {
343
- width: 652px;
623
+ .row-fluid .offset12:first-child {
624
+ margin-left: 102.76243093922652%;
625
+ *margin-left: 102.6560479605031%;
344
626
  }
345
- input.span10, textarea.span10, .uneditable-input.span10 {
346
- width: 590px;
627
+ .row-fluid .offset11 {
628
+ margin-left: 96.96132596685082%;
629
+ *margin-left: 96.8549429881274%;
347
630
  }
348
- input.span9, textarea.span9, .uneditable-input.span9 {
349
- width: 528px;
631
+ .row-fluid .offset11:first-child {
632
+ margin-left: 94.1988950276243%;
633
+ *margin-left: 94.09251204890089%;
350
634
  }
351
- input.span8, textarea.span8, .uneditable-input.span8 {
352
- width: 466px;
635
+ .row-fluid .offset10 {
636
+ margin-left: 88.39779005524862%;
637
+ *margin-left: 88.2914070765252%;
353
638
  }
354
- input.span7, textarea.span7, .uneditable-input.span7 {
355
- width: 404px;
639
+ .row-fluid .offset10:first-child {
640
+ margin-left: 85.6353591160221%;
641
+ *margin-left: 85.52897613729868%;
356
642
  }
357
- input.span6, textarea.span6, .uneditable-input.span6 {
358
- width: 342px;
643
+ .row-fluid .offset9 {
644
+ margin-left: 79.8342541436464%;
645
+ *margin-left: 79.72787116492299%;
359
646
  }
360
- input.span5, textarea.span5, .uneditable-input.span5 {
361
- width: 280px;
647
+ .row-fluid .offset9:first-child {
648
+ margin-left: 77.07182320441989%;
649
+ *margin-left: 76.96544022569647%;
362
650
  }
363
- input.span4, textarea.span4, .uneditable-input.span4 {
364
- width: 218px;
651
+ .row-fluid .offset8 {
652
+ margin-left: 71.2707182320442%;
653
+ *margin-left: 71.16433525332079%;
365
654
  }
366
- input.span3, textarea.span3, .uneditable-input.span3 {
367
- width: 156px;
655
+ .row-fluid .offset8:first-child {
656
+ margin-left: 68.50828729281768%;
657
+ *margin-left: 68.40190431409427%;
368
658
  }
369
- input.span2, textarea.span2, .uneditable-input.span2 {
370
- width: 94px;
659
+ .row-fluid .offset7 {
660
+ margin-left: 62.70718232044199%;
661
+ *margin-left: 62.600799341718584%;
371
662
  }
372
- input.span1, textarea.span1, .uneditable-input.span1 {
373
- width: 32px;
663
+ .row-fluid .offset7:first-child {
664
+ margin-left: 59.94475138121547%;
665
+ *margin-left: 59.838368402492065%;
374
666
  }
375
- }
376
- @media (max-width: 979px) {
377
- body {
378
- padding-top: 0;
667
+ .row-fluid .offset6 {
668
+ margin-left: 54.14364640883978%;
669
+ *margin-left: 54.037263430116376%;
379
670
  }
380
- .navbar-fixed-top {
381
- position: static;
382
- margin-bottom: 18px;
671
+ .row-fluid .offset6:first-child {
672
+ margin-left: 51.38121546961326%;
673
+ *margin-left: 51.27483249088986%;
383
674
  }
384
- .navbar-fixed-top .navbar-inner {
385
- padding: 5px;
675
+ .row-fluid .offset5 {
676
+ margin-left: 45.58011049723757%;
677
+ *margin-left: 45.47372751851417%;
386
678
  }
387
- .navbar .container {
388
- width: auto;
389
- padding: 0;
679
+ .row-fluid .offset5:first-child {
680
+ margin-left: 42.81767955801105%;
681
+ *margin-left: 42.71129657928765%;
390
682
  }
391
- .navbar .brand {
392
- padding-left: 10px;
393
- padding-right: 10px;
394
- margin: 0 0 0 -5px;
683
+ .row-fluid .offset4 {
684
+ margin-left: 37.01657458563536%;
685
+ *margin-left: 36.91019160691196%;
395
686
  }
396
- .navbar .nav-collapse {
397
- clear: left;
687
+ .row-fluid .offset4:first-child {
688
+ margin-left: 34.25414364640884%;
689
+ *margin-left: 34.14776066768544%;
398
690
  }
399
- .navbar .nav {
400
- float: none;
401
- margin: 0 0 9px;
402
- }
403
- .navbar .nav > li {
404
- float: none;
405
- }
406
- .navbar .nav > li > a {
407
- margin-bottom: 2px;
408
- }
409
- .navbar .nav > .divider-vertical {
410
- display: none;
411
- }
412
- .navbar .nav .nav-header {
413
- color: #999999;
414
- text-shadow: none;
691
+ .row-fluid .offset3 {
692
+ margin-left: 28.45303867403315%;
693
+ *margin-left: 28.346655695309746%;
415
694
  }
416
- .navbar .nav > li > a,
417
- .navbar .dropdown-menu a {
418
- padding: 6px 15px;
419
- font-weight: bold;
420
- color: #999999;
421
- -webkit-border-radius: 3px;
422
- -moz-border-radius: 3px;
423
- border-radius: 3px;
695
+ .row-fluid .offset3:first-child {
696
+ margin-left: 25.69060773480663%;
697
+ *margin-left: 25.584224756083227%;
424
698
  }
425
- .navbar .dropdown-menu li + li a {
426
- margin-bottom: 2px;
427
- }
428
- .navbar .nav > li > a:hover,
429
- .navbar .dropdown-menu a:hover {
430
- background-color: #222222;
431
- }
432
- .navbar .dropdown-menu {
433
- position: static;
434
- top: auto;
435
- left: auto;
436
- float: none;
437
- display: block;
438
- max-width: none;
439
- margin: 0 15px;
440
- padding: 0;
441
- background-color: transparent;
442
- border: none;
443
- -webkit-border-radius: 0;
444
- -moz-border-radius: 0;
445
- border-radius: 0;
446
- -webkit-box-shadow: none;
447
- -moz-box-shadow: none;
448
- box-shadow: none;
699
+ .row-fluid .offset2 {
700
+ margin-left: 19.88950276243094%;
701
+ *margin-left: 19.783119783707537%;
449
702
  }
450
- .navbar .dropdown-menu:before,
451
- .navbar .dropdown-menu:after {
452
- display: none;
703
+ .row-fluid .offset2:first-child {
704
+ margin-left: 17.12707182320442%;
705
+ *margin-left: 17.02068884448102%;
453
706
  }
454
- .navbar .dropdown-menu .divider {
455
- display: none;
707
+ .row-fluid .offset1 {
708
+ margin-left: 11.32596685082873%;
709
+ *margin-left: 11.219583872105325%;
456
710
  }
457
- .navbar-form,
458
- .navbar-search {
459
- float: none;
460
- padding: 9px 15px;
461
- margin: 9px 0;
462
- border-top: 1px solid #222222;
463
- border-bottom: 1px solid #222222;
464
- -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
465
- -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
466
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
711
+ .row-fluid .offset1:first-child {
712
+ margin-left: 8.56353591160221%;
713
+ *margin-left: 8.457152932878806%;
467
714
  }
468
- .navbar .nav.pull-right {
469
- float: none;
715
+ input,
716
+ textarea,
717
+ .uneditable-input {
470
718
  margin-left: 0;
471
719
  }
472
- .navbar-static .navbar-inner {
473
- padding-left: 10px;
474
- padding-right: 10px;
475
- }
476
- .btn-navbar {
477
- display: block;
720
+ .controls-row [class*="span"] + [class*="span"] {
721
+ margin-left: 20px;
478
722
  }
479
- .nav-collapse {
480
- overflow: hidden;
481
- height: 0;
723
+ input.span12,
724
+ textarea.span12,
725
+ .uneditable-input.span12 {
726
+ width: 710px;
727
+ }
728
+ input.span11,
729
+ textarea.span11,
730
+ .uneditable-input.span11 {
731
+ width: 648px;
732
+ }
733
+ input.span10,
734
+ textarea.span10,
735
+ .uneditable-input.span10 {
736
+ width: 586px;
737
+ }
738
+ input.span9,
739
+ textarea.span9,
740
+ .uneditable-input.span9 {
741
+ width: 524px;
742
+ }
743
+ input.span8,
744
+ textarea.span8,
745
+ .uneditable-input.span8 {
746
+ width: 462px;
747
+ }
748
+ input.span7,
749
+ textarea.span7,
750
+ .uneditable-input.span7 {
751
+ width: 400px;
752
+ }
753
+ input.span6,
754
+ textarea.span6,
755
+ .uneditable-input.span6 {
756
+ width: 338px;
757
+ }
758
+ input.span5,
759
+ textarea.span5,
760
+ .uneditable-input.span5 {
761
+ width: 276px;
762
+ }
763
+ input.span4,
764
+ textarea.span4,
765
+ .uneditable-input.span4 {
766
+ width: 214px;
767
+ }
768
+ input.span3,
769
+ textarea.span3,
770
+ .uneditable-input.span3 {
771
+ width: 152px;
772
+ }
773
+ input.span2,
774
+ textarea.span2,
775
+ .uneditable-input.span2 {
776
+ width: 90px;
777
+ }
778
+ input.span1,
779
+ textarea.span1,
780
+ .uneditable-input.span1 {
781
+ width: 28px;
482
782
  }
483
783
  }
484
- @media (min-width: 980px) {
485
- .nav-collapse.collapse {
486
- height: auto !important;
487
- overflow: visible !important;
784
+
785
+ @media (max-width: 767px) {
786
+ body {
787
+ padding-right: 20px;
788
+ padding-left: 20px;
488
789
  }
489
- }
490
- @media (min-width: 1200px) {
491
- .row {
492
- margin-left: -30px;
493
- *zoom: 1;
790
+ .navbar-fixed-top,
791
+ .navbar-fixed-bottom,
792
+ .navbar-static-top {
793
+ margin-right: -20px;
794
+ margin-left: -20px;
494
795
  }
495
- .row:before,
496
- .row:after {
497
- display: table;
498
- content: "";
796
+ .container-fluid {
797
+ padding: 0;
499
798
  }
500
- .row:after {
501
- clear: both;
799
+ .dl-horizontal dt {
800
+ float: none;
801
+ width: auto;
802
+ clear: none;
803
+ text-align: left;
502
804
  }
503
- [class*="span"] {
504
- float: left;
505
- margin-left: 30px;
805
+ .dl-horizontal dd {
806
+ margin-left: 0;
506
807
  }
507
- .container,
508
- .navbar-fixed-top .container,
509
- .navbar-fixed-bottom .container {
510
- width: 1170px;
808
+ .container {
809
+ width: auto;
511
810
  }
512
- .span12 {
513
- width: 1170px;
811
+ .row-fluid {
812
+ width: 100%;
514
813
  }
515
- .span11 {
516
- width: 1070px;
814
+ .row,
815
+ .thumbnails {
816
+ margin-left: 0;
517
817
  }
518
- .span10 {
519
- width: 970px;
818
+ .thumbnails > li {
819
+ float: none;
820
+ margin-left: 0;
520
821
  }
521
- .span9 {
522
- width: 870px;
822
+ [class*="span"],
823
+ .uneditable-input[class*="span"],
824
+ .row-fluid [class*="span"] {
825
+ display: block;
826
+ float: none;
827
+ width: 100%;
828
+ margin-left: 0;
829
+ -webkit-box-sizing: border-box;
830
+ -moz-box-sizing: border-box;
831
+ box-sizing: border-box;
523
832
  }
524
- .span8 {
525
- width: 770px;
833
+ .span12,
834
+ .row-fluid .span12 {
835
+ width: 100%;
836
+ -webkit-box-sizing: border-box;
837
+ -moz-box-sizing: border-box;
838
+ box-sizing: border-box;
526
839
  }
527
- .span7 {
528
- width: 670px;
840
+ .row-fluid [class*="offset"]:first-child {
841
+ margin-left: 0;
529
842
  }
530
- .span6 {
531
- width: 570px;
843
+ .input-large,
844
+ .input-xlarge,
845
+ .input-xxlarge,
846
+ input[class*="span"],
847
+ select[class*="span"],
848
+ textarea[class*="span"],
849
+ .uneditable-input {
850
+ display: block;
851
+ width: 100%;
852
+ min-height: 30px;
853
+ -webkit-box-sizing: border-box;
854
+ -moz-box-sizing: border-box;
855
+ box-sizing: border-box;
532
856
  }
533
- .span5 {
534
- width: 470px;
857
+ .input-prepend input,
858
+ .input-append input,
859
+ .input-prepend input[class*="span"],
860
+ .input-append input[class*="span"] {
861
+ display: inline-block;
862
+ width: auto;
535
863
  }
536
- .span4 {
537
- width: 370px;
864
+ .controls-row [class*="span"] + [class*="span"] {
865
+ margin-left: 0;
538
866
  }
539
- .span3 {
540
- width: 270px;
867
+ .modal {
868
+ position: fixed;
869
+ top: 20px;
870
+ right: 20px;
871
+ left: 20px;
872
+ width: auto;
873
+ margin: 0;
541
874
  }
542
- .span2 {
543
- width: 170px;
875
+ .modal.fade {
876
+ top: -100px;
544
877
  }
545
- .span1 {
546
- width: 70px;
878
+ .modal.fade.in {
879
+ top: 20px;
547
880
  }
548
- .offset12 {
549
- margin-left: 1230px;
881
+ }
882
+
883
+ @media (max-width: 480px) {
884
+ .nav-collapse {
885
+ -webkit-transform: translate3d(0, 0, 0);
550
886
  }
551
- .offset11 {
552
- margin-left: 1130px;
887
+ .page-header h1 small {
888
+ display: block;
889
+ line-height: 20px;
553
890
  }
554
- .offset10 {
555
- margin-left: 1030px;
891
+ input[type="checkbox"],
892
+ input[type="radio"] {
893
+ border: 1px solid #ccc;
556
894
  }
557
- .offset9 {
558
- margin-left: 930px;
895
+ .form-horizontal .control-label {
896
+ float: none;
897
+ width: auto;
898
+ padding-top: 0;
899
+ text-align: left;
559
900
  }
560
- .offset8 {
561
- margin-left: 830px;
901
+ .form-horizontal .controls {
902
+ margin-left: 0;
562
903
  }
563
- .offset7 {
564
- margin-left: 730px;
904
+ .form-horizontal .control-list {
905
+ padding-top: 0;
565
906
  }
566
- .offset6 {
567
- margin-left: 630px;
907
+ .form-horizontal .form-actions {
908
+ padding-right: 10px;
909
+ padding-left: 10px;
568
910
  }
569
- .offset5 {
570
- margin-left: 530px;
911
+ .media .pull-left,
912
+ .media .pull-right {
913
+ display: block;
914
+ float: none;
915
+ margin-bottom: 10px;
571
916
  }
572
- .offset4 {
573
- margin-left: 430px;
917
+ .media-object {
918
+ margin-right: 0;
919
+ margin-left: 0;
574
920
  }
575
- .offset3 {
576
- margin-left: 330px;
921
+ .modal {
922
+ top: 10px;
923
+ right: 10px;
924
+ left: 10px;
577
925
  }
578
- .offset2 {
579
- margin-left: 230px;
926
+ .modal-header .close {
927
+ padding: 10px;
928
+ margin: -10px;
580
929
  }
581
- .offset1 {
582
- margin-left: 130px;
930
+ .carousel-caption {
931
+ position: static;
583
932
  }
584
- .row-fluid {
585
- width: 100%;
586
- *zoom: 1;
933
+ }
934
+
935
+ @media (max-width: 979px) {
936
+ body {
937
+ padding-top: 0;
587
938
  }
588
- .row-fluid:before,
589
- .row-fluid:after {
590
- display: table;
591
- content: "";
939
+ .navbar-fixed-top,
940
+ .navbar-fixed-bottom {
941
+ position: static;
592
942
  }
593
- .row-fluid:after {
594
- clear: both;
943
+ .navbar-fixed-top {
944
+ margin-bottom: 20px;
595
945
  }
596
- .row-fluid > [class*="span"] {
597
- float: left;
598
- margin-left: 2.564102564%;
946
+ .navbar-fixed-bottom {
947
+ margin-top: 20px;
599
948
  }
600
- .row-fluid > [class*="span"]:first-child {
601
- margin-left: 0;
949
+ .navbar-fixed-top .navbar-inner,
950
+ .navbar-fixed-bottom .navbar-inner {
951
+ padding: 5px;
602
952
  }
603
- .row-fluid > .span12 {
604
- width: 100%;
953
+ .navbar .container {
954
+ width: auto;
955
+ padding: 0;
605
956
  }
606
- .row-fluid > .span11 {
607
- width: 91.45299145300001%;
957
+ .navbar .brand {
958
+ padding-right: 10px;
959
+ padding-left: 10px;
960
+ margin: 0 0 0 -5px;
608
961
  }
609
- .row-fluid > .span10 {
610
- width: 82.905982906%;
962
+ .nav-collapse {
963
+ clear: both;
611
964
  }
612
- .row-fluid > .span9 {
613
- width: 74.358974359%;
965
+ .nav-collapse .nav {
966
+ float: none;
967
+ margin: 0 0 10px;
614
968
  }
615
- .row-fluid > .span8 {
616
- width: 65.81196581200001%;
969
+ .nav-collapse .nav > li {
970
+ float: none;
617
971
  }
618
- .row-fluid > .span7 {
619
- width: 57.264957265%;
972
+ .nav-collapse .nav > li > a {
973
+ margin-bottom: 2px;
620
974
  }
621
- .row-fluid > .span6 {
622
- width: 48.717948718%;
975
+ .nav-collapse .nav > .divider-vertical {
976
+ display: none;
623
977
  }
624
- .row-fluid > .span5 {
625
- width: 40.170940171000005%;
978
+ .nav-collapse .nav .nav-header {
979
+ color: #777777;
980
+ text-shadow: none;
626
981
  }
627
- .row-fluid > .span4 {
628
- width: 31.623931624%;
982
+ .nav-collapse .nav > li > a,
983
+ .nav-collapse .dropdown-menu a {
984
+ padding: 9px 15px;
985
+ font-weight: bold;
986
+ color: #777777;
987
+ -webkit-border-radius: 3px;
988
+ -moz-border-radius: 3px;
989
+ border-radius: 3px;
629
990
  }
630
- .row-fluid > .span3 {
631
- width: 23.076923077%;
991
+ .nav-collapse .btn {
992
+ padding: 4px 10px 4px;
993
+ font-weight: normal;
994
+ -webkit-border-radius: 4px;
995
+ -moz-border-radius: 4px;
996
+ border-radius: 4px;
632
997
  }
633
- .row-fluid > .span2 {
634
- width: 14.529914530000001%;
998
+ .nav-collapse .dropdown-menu li + li a {
999
+ margin-bottom: 2px;
635
1000
  }
636
- .row-fluid > .span1 {
637
- width: 5.982905983%;
1001
+ .nav-collapse .nav > li > a:hover,
1002
+ .nav-collapse .dropdown-menu a:hover {
1003
+ background-color: #f2f2f2;
638
1004
  }
639
- input,
640
- textarea,
641
- .uneditable-input {
642
- margin-left: 0;
1005
+ .navbar-inverse .nav-collapse .nav > li > a,
1006
+ .navbar-inverse .nav-collapse .dropdown-menu a {
1007
+ color: #999999;
643
1008
  }
644
- input.span12, textarea.span12, .uneditable-input.span12 {
645
- width: 1160px;
1009
+ .navbar-inverse .nav-collapse .nav > li > a:hover,
1010
+ .navbar-inverse .nav-collapse .dropdown-menu a:hover {
1011
+ background-color: #111111;
646
1012
  }
647
- input.span11, textarea.span11, .uneditable-input.span11 {
648
- width: 1060px;
1013
+ .nav-collapse.in .btn-group {
1014
+ padding: 0;
1015
+ margin-top: 5px;
649
1016
  }
650
- input.span10, textarea.span10, .uneditable-input.span10 {
651
- width: 960px;
1017
+ .nav-collapse .dropdown-menu {
1018
+ position: static;
1019
+ top: auto;
1020
+ left: auto;
1021
+ display: none;
1022
+ float: none;
1023
+ max-width: none;
1024
+ padding: 0;
1025
+ margin: 0 15px;
1026
+ background-color: transparent;
1027
+ border: none;
1028
+ -webkit-border-radius: 0;
1029
+ -moz-border-radius: 0;
1030
+ border-radius: 0;
1031
+ -webkit-box-shadow: none;
1032
+ -moz-box-shadow: none;
1033
+ box-shadow: none;
652
1034
  }
653
- input.span9, textarea.span9, .uneditable-input.span9 {
654
- width: 860px;
1035
+ .nav-collapse .open > .dropdown-menu {
1036
+ display: block;
655
1037
  }
656
- input.span8, textarea.span8, .uneditable-input.span8 {
657
- width: 760px;
1038
+ .nav-collapse .dropdown-menu:before,
1039
+ .nav-collapse .dropdown-menu:after {
1040
+ display: none;
658
1041
  }
659
- input.span7, textarea.span7, .uneditable-input.span7 {
660
- width: 660px;
1042
+ .nav-collapse .dropdown-menu .divider {
1043
+ display: none;
661
1044
  }
662
- input.span6, textarea.span6, .uneditable-input.span6 {
663
- width: 560px;
1045
+ .nav-collapse .nav > li > .dropdown-menu:before,
1046
+ .nav-collapse .nav > li > .dropdown-menu:after {
1047
+ display: none;
664
1048
  }
665
- input.span5, textarea.span5, .uneditable-input.span5 {
666
- width: 460px;
1049
+ .nav-collapse .navbar-form,
1050
+ .nav-collapse .navbar-search {
1051
+ float: none;
1052
+ padding: 10px 15px;
1053
+ margin: 10px 0;
1054
+ border-top: 1px solid #f2f2f2;
1055
+ border-bottom: 1px solid #f2f2f2;
1056
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
1057
+ -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
1058
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
667
1059
  }
668
- input.span4, textarea.span4, .uneditable-input.span4 {
669
- width: 360px;
1060
+ .navbar-inverse .nav-collapse .navbar-form,
1061
+ .navbar-inverse .nav-collapse .navbar-search {
1062
+ border-top-color: #111111;
1063
+ border-bottom-color: #111111;
670
1064
  }
671
- input.span3, textarea.span3, .uneditable-input.span3 {
672
- width: 260px;
1065
+ .navbar .nav-collapse .nav.pull-right {
1066
+ float: none;
1067
+ margin-left: 0;
673
1068
  }
674
- input.span2, textarea.span2, .uneditable-input.span2 {
675
- width: 160px;
1069
+ .nav-collapse,
1070
+ .nav-collapse.collapse {
1071
+ height: 0;
1072
+ overflow: hidden;
676
1073
  }
677
- input.span1, textarea.span1, .uneditable-input.span1 {
678
- width: 60px;
1074
+ .navbar .btn-navbar {
1075
+ display: block;
679
1076
  }
680
- .thumbnails {
681
- margin-left: -30px;
1077
+ .navbar-static .navbar-inner {
1078
+ padding-right: 10px;
1079
+ padding-left: 10px;
682
1080
  }
683
- .thumbnails > li {
684
- margin-left: 30px;
1081
+ }
1082
+
1083
+ @media (min-width: 980px) {
1084
+ .nav-collapse.collapse {
1085
+ height: auto !important;
1086
+ overflow: visible !important;
685
1087
  }
686
1088
  }