para 0.6.9 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/para/admin/tangram-mosaic.png +0 -0
  3. data/app/assets/images/para/admin/template-section.svg +23 -0
  4. data/app/assets/javascripts/para/admin.coffee +20 -0
  5. data/app/assets/javascripts/para/admin/tabs.coffee +22 -5
  6. data/app/assets/javascripts/para/admin/theme_actions.coffee +3 -3
  7. data/app/assets/javascripts/para/inputs/material-input.coffee +4 -0
  8. data/app/assets/javascripts/para/inputs/multi-select-input.coffee +173 -0
  9. data/app/assets/javascripts/para/inputs/nested_many.coffee +9 -9
  10. data/app/assets/stylesheets/para/admin.sass +5 -5
  11. data/app/assets/stylesheets/para/admin/main.sass +32 -0
  12. data/app/assets/stylesheets/para/admin/src/_alert.sass +17 -0
  13. data/app/assets/stylesheets/para/admin/src/_base.sass +51 -0
  14. data/app/assets/stylesheets/para/admin/src/_bootstrap-variables.scss +874 -0
  15. data/app/assets/stylesheets/para/admin/src/_breadcrumb.sass +22 -0
  16. data/app/assets/stylesheets/para/admin/src/_buttons.sass +107 -0
  17. data/app/assets/stylesheets/para/admin/src/_checkable.sass +94 -0
  18. data/app/assets/stylesheets/para/admin/src/_common.sass +203 -0
  19. data/app/assets/stylesheets/para/admin/src/_dropdown.sass +40 -0
  20. data/app/assets/stylesheets/para/admin/src/_form.sass +271 -0
  21. data/app/assets/stylesheets/para/admin/src/_list.sass +61 -0
  22. data/app/assets/stylesheets/para/admin/src/_mixins.sass +113 -0
  23. data/app/assets/stylesheets/para/admin/src/_multi-select.sass +91 -0
  24. data/app/assets/stylesheets/para/admin/src/_navigation.sass +150 -0
  25. data/app/assets/stylesheets/para/admin/src/_navtabs.sass +41 -0
  26. data/app/assets/stylesheets/para/admin/src/_nested-many.sass +69 -0
  27. data/app/assets/stylesheets/para/admin/src/_nested_one.sass +13 -0
  28. data/app/assets/stylesheets/para/admin/src/_orderable.sass +44 -0
  29. data/app/assets/stylesheets/para/admin/src/_page-loading.sass +39 -0
  30. data/app/assets/stylesheets/para/admin/src/_pagination.sass +34 -0
  31. data/app/assets/stylesheets/para/admin/src/_panel.sass +55 -0
  32. data/app/assets/stylesheets/para/admin/src/_responsive.sass +100 -0
  33. data/app/assets/stylesheets/para/admin/{theme → src}/_sorting.sass +11 -3
  34. data/app/assets/stylesheets/para/admin/src/_statcard.sass +41 -0
  35. data/app/assets/stylesheets/para/admin/src/_table.sass +33 -0
  36. data/app/assets/stylesheets/para/admin/src/_tree.sass +52 -0
  37. data/app/assets/stylesheets/para/admin/src/_variables.sass +37 -0
  38. data/app/assets/stylesheets/para/admin/src/_well.sass +12 -0
  39. data/app/assets/stylesheets/para/{admin/src → lib}/datetimepicker.sass +1 -3
  40. data/app/assets/stylesheets/para/{admin/src → lib}/fuelux.sass +3 -5
  41. data/app/assets/stylesheets/para/lib/jasny-bootstrap.sass +97 -0
  42. data/app/assets/stylesheets/para/{admin/src → lib}/redactor.sass +2 -5
  43. data/app/assets/stylesheets/para/lib/selectize.sass +112 -0
  44. data/app/assets/stylesheets/para/lib/slider.sass +12 -0
  45. data/app/controllers/concerns/para/admin/resource_controller_concerns.rb +14 -2
  46. data/app/controllers/para/admin/base_controller.rb +7 -0
  47. data/app/controllers/para/admin/crud_resources_controller.rb +13 -6
  48. data/app/controllers/para/admin/form_resources_controller.rb +5 -3
  49. data/app/controllers/para/admin/resources_controller.rb +9 -3
  50. data/app/controllers/para/admin/search_controller.rb +15 -0
  51. data/app/controllers/para/application_controller.rb +10 -2
  52. data/app/helpers/para/admin/page_helper.rb +9 -9
  53. data/app/helpers/para/application_helper.rb +1 -10
  54. data/app/helpers/para/form_helper.rb +5 -6
  55. data/app/helpers/para/model_helper.rb +13 -3
  56. data/app/helpers/para/ordering_helper.rb +1 -1
  57. data/app/helpers/para/search_results_helper.rb +16 -0
  58. data/app/helpers/para/tree_helper.rb +10 -6
  59. data/app/models/para/page.rb +5 -0
  60. data/app/models/para/page/section.rb +42 -0
  61. data/app/models/para/page/section_resource.rb +12 -0
  62. data/app/views/layouts/para/admin.html.haml +5 -8
  63. data/app/views/para/admin/dashboard.html.haml +21 -8
  64. data/app/views/para/admin/form_resources/show.html.haml +1 -1
  65. data/app/views/para/admin/imports/new.html.haml +2 -2
  66. data/app/views/para/admin/resources/_actions.html.haml +3 -3
  67. data/app/views/para/admin/resources/_add_button.html.haml +1 -1
  68. data/app/views/para/admin/resources/_exports_menu.html.haml +6 -6
  69. data/app/views/para/admin/resources/_filters.html.haml +7 -8
  70. data/app/views/para/admin/resources/_imports_menu.html.haml +6 -6
  71. data/app/views/para/admin/resources/_list.html.haml +14 -15
  72. data/app/views/para/admin/resources/_per_page_select.html.haml +4 -3
  73. data/app/views/para/admin/resources/_subclassable_add_button.html.haml +3 -3
  74. data/app/views/para/admin/resources/_tree.html.haml +7 -9
  75. data/app/views/para/admin/resources/_tree_item.html.haml +5 -6
  76. data/app/views/para/admin/resources/edit.html.haml +1 -1
  77. data/app/views/para/admin/resources/new.html.haml +1 -1
  78. data/app/views/para/admin/search/_result.html.haml +7 -0
  79. data/app/views/para/admin/search/index.html.haml +1 -0
  80. data/app/views/para/admin/settings_component/show.html.haml +1 -1
  81. data/app/views/para/admin/shared/_breadcrumbs.html.haml +2 -3
  82. data/app/views/para/admin/shared/_header.html.haml +16 -27
  83. data/app/views/para/admin/shared/_navigation.html.haml +20 -19
  84. data/app/views/para/form/_tabs.html.haml +6 -7
  85. data/app/views/para/inputs/_multi_select.html.haml +40 -0
  86. data/app/views/para/inputs/_nested_many.html.haml +4 -4
  87. data/app/views/para/inputs/multi_select/_no_items.html.haml +6 -0
  88. data/app/views/para/inputs/nested_many/_add.html.haml +1 -2
  89. data/app/views/para/inputs/nested_many/_add_with_subclasses.html.haml +4 -5
  90. data/app/views/para/inputs/nested_many/_container.html.haml +7 -8
  91. data/app/views/shared/_breadcrumbs.html.haml +4 -0
  92. data/config/locales/fr.yml +29 -4
  93. data/db/migrate/20170324125547_create_para_page_section_resources.rb +15 -0
  94. data/lib/generators/para/filters/templates/_filters.html.haml +3 -5
  95. data/lib/generators/para/install/templates/initializer.rb +12 -0
  96. data/lib/generators/para/page/section/section_generator.rb +13 -2
  97. data/lib/generators/para/page/section/templates/section.html.haml.erb +3 -0
  98. data/lib/generators/para/resource/resource_generator.rb +1 -1
  99. data/lib/para.rb +25 -21
  100. data/lib/para/attribute_field.rb +2 -0
  101. data/lib/para/attribute_field/base.rb +1 -1
  102. data/lib/para/attribute_field/belongs_to.rb +1 -1
  103. data/lib/para/attribute_field/boolean.rb +1 -1
  104. data/lib/para/attribute_field/friendly_id.rb +19 -0
  105. data/lib/para/attribute_field/has_many.rb +43 -4
  106. data/lib/para/attribute_field/nested_field.rb +46 -0
  107. data/lib/para/attribute_field/nested_many.rb +30 -9
  108. data/lib/para/attribute_field/nested_one.rb +28 -9
  109. data/lib/para/attribute_field/password.rb +1 -1
  110. data/lib/para/attribute_field/relation.rb +19 -1
  111. data/lib/para/attribute_field_mappings.rb +9 -3
  112. data/lib/para/breadcrumbs/breadcrumb.rb +57 -10
  113. data/lib/para/breadcrumbs/controller.rb +19 -6
  114. data/lib/para/breadcrumbs/manager.rb +9 -1
  115. data/lib/para/config.rb +3 -0
  116. data/lib/para/controller_resource.rb +34 -0
  117. data/lib/para/engine.rb +33 -14
  118. data/lib/para/exporter/base.rb +1 -1
  119. data/lib/para/ext.rb +1 -1
  120. data/lib/para/ext/active_record_nested_attributes.rb +51 -0
  121. data/lib/para/ext/paperclip.rb +2 -6
  122. data/lib/para/form_builder.rb +3 -0
  123. data/lib/para/form_builder/attributes_mappings_tracker.rb +45 -0
  124. data/lib/para/form_builder/containers.rb +13 -17
  125. data/lib/para/form_builder/nested_form.rb +2 -3
  126. data/lib/para/helpers.rb +8 -0
  127. data/lib/para/helpers/attributes_mappings.rb +13 -0
  128. data/lib/para/helpers/resource_name.rb +14 -0
  129. data/lib/para/inputs.rb +1 -0
  130. data/lib/para/inputs/multi_select_input.rb +90 -0
  131. data/lib/para/inputs/nested_many_input.rb +6 -1
  132. data/lib/para/markup/resources_table.rb +15 -11
  133. data/lib/para/model_field_parsers.rb +3 -2
  134. data/lib/para/model_field_parsers/base.rb +7 -2
  135. data/lib/para/model_field_parsers/friendly_id.rb +19 -0
  136. data/lib/para/model_field_parsers/relations.rb +20 -1
  137. data/lib/para/page/model.rb +3 -1
  138. data/lib/para/routes.rb +1 -0
  139. data/lib/para/simple_form_config.rb +85 -0
  140. data/lib/para/version.rb +1 -1
  141. data/lib/rails/routing_mapper.rb +5 -8
  142. data/vendor/assets/javascripts/jasny-bootstrap.js +577 -0
  143. data/vendor/assets/stylesheets/animate.css +3340 -0
  144. data/vendor/assets/stylesheets/hint.css +649 -0
  145. data/vendor/assets/stylesheets/jasny-bootstrap.css +287 -0
  146. metadata +114 -67
  147. data/app/assets/images/para/admin/bg.png +0 -0
  148. data/app/assets/javascripts/para/admin.js +0 -20
  149. data/app/assets/stylesheets/admin/theme.sass +0 -0
  150. data/app/assets/stylesheets/para/admin/src/jasny.bootstrap.sass +0 -40
  151. data/app/assets/stylesheets/para/admin/src/nested_many.sass +0 -5
  152. data/app/assets/stylesheets/para/admin/src/page-loading.sass +0 -24
  153. data/app/assets/stylesheets/para/admin/src/page-top-bar.sass +0 -9
  154. data/app/assets/stylesheets/para/admin/src/selectize.sass +0 -46
  155. data/app/assets/stylesheets/para/admin/src/slider.sass +0 -12
  156. data/app/assets/stylesheets/para/admin/theme.sass +0 -22
  157. data/app/assets/stylesheets/para/admin/theme/_base.sass +0 -176
  158. data/app/assets/stylesheets/para/admin/theme/_breadcrumb.sass +0 -75
  159. data/app/assets/stylesheets/para/admin/theme/_buttons.sass +0 -27
  160. data/app/assets/stylesheets/para/admin/theme/_checkable.sass +0 -108
  161. data/app/assets/stylesheets/para/admin/theme/_commonds.sass +0 -210
  162. data/app/assets/stylesheets/para/admin/theme/_dropdown.sass +0 -52
  163. data/app/assets/stylesheets/para/admin/theme/_form.sass +0 -150
  164. data/app/assets/stylesheets/para/admin/theme/_list.sass +0 -139
  165. data/app/assets/stylesheets/para/admin/theme/_navigation.sass +0 -229
  166. data/app/assets/stylesheets/para/admin/theme/_navtabs.sass +0 -151
  167. data/app/assets/stylesheets/para/admin/theme/_orderable.sass +0 -45
  168. data/app/assets/stylesheets/para/admin/theme/_panel.sass +0 -264
  169. data/app/assets/stylesheets/para/admin/theme/_responsive.sass +0 -123
  170. data/app/assets/stylesheets/para/admin/theme/_table.sass +0 -28
  171. data/app/assets/stylesheets/para/admin/theme/_tree.sass +0 -74
  172. data/app/assets/stylesheets/para/admin/theme/_variables.sass +0 -31
  173. data/app/assets/stylesheets/para/application.css +0 -15
  174. data/app/assets/stylesheets/para/lib/_variables.scss +0 -646
  175. data/app/assets/stylesheets/para/overrides/responsive.sass +0 -62
  176. data/app/assets/stylesheets/para/overrides/theme.sass +0 -172
  177. data/lib/para/ext/cancan.rb +0 -26
  178. data/vendor/assets/javascripts/jasny.bootstrap.min.js +0 -7
  179. data/vendor/assets/stylesheets/animate.min.css +0 -6
  180. data/vendor/assets/stylesheets/jasny.bootstrap.min.css +0 -7
@@ -1,74 +0,0 @@
1
- @import "variables"
2
-
3
- @import "compass/css3/inline-block"
4
-
5
- .root-tree
6
- padding-left: 0
7
- > .node
8
- margin-bottom: 20px
9
- .tree
10
- padding-left: 40px
11
- .sortable-dragging
12
- .placeholder,
13
- .btn-group
14
- display: none
15
-
16
- .sortable-placeholder
17
- height: 30px
18
- margin: 10px 0px 20px 0
19
-
20
- .node
21
- border-left: 4px solid $gray
22
- padding-bottom: 5px
23
- .node-row
24
- padding: 5px
25
- &:hover
26
- background-color: $table-bg-hover
27
- .handle
28
- cursor: move
29
- padding: 5px
30
- text-align: center
31
- width: 32px
32
- +inline-block
33
- margin-top: 3px
34
- &:focus,
35
- &:active,
36
- &:hover
37
- cursor: move
38
-
39
- .node-name
40
- margin-top: 3px
41
- +inline-block
42
-
43
- .placeholder
44
- height: 30px
45
- border: dashed 1px $gray
46
- margin-top: 5px
47
-
48
- .tree
49
- list-style: none
50
- .node:last-child
51
- margin-bottom: 20px
52
-
53
- .table >
54
- tbody > tr >
55
- td, th
56
- border-width: 1px
57
- vertical-align: middle
58
- tfoot > tr >
59
- td, th
60
- border-width: 1px
61
- thead > tr >
62
- td, th
63
- border-width: 1px
64
-
65
- .table > thead > tr > th
66
- background: $table-heading-bg
67
- color: $table-heading-color
68
- font-size: 12px
69
-
70
- .table
71
- &.table-actions td
72
- line-height: 28px
73
- .progress-small
74
- margin: 7px 0 8px
@@ -1,31 +0,0 @@
1
- @mixin clearfix()
2
- &:before,
3
- &:after
4
- content: " "
5
- display: table
6
- &:after
7
- clear: both
8
-
9
- // Commonds
10
- // -------------------------
11
- $title-color: #434a54
12
- $help-block-color: #AAB2BD
13
-
14
- // Content Frame
15
- // -------------------------
16
- $content-frame-with: 300px
17
-
18
- // Left menu
19
- // -------------------------
20
- $left-menu-width-open: 220px
21
-
22
- $navbar-icon-color: #ffd559
23
- $navbar-icon-brand-color: #fff
24
-
25
- // Table
26
- // -------------------------
27
- $table-heading-color: #56688A
28
- $table-heading-bg: #f1f5f9
29
-
30
- @import 'admin/theme'
31
- @import 'para/lib/variables'
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,646 +0,0 @@
1
- // bootstrap specific variable. set to false if not using ruby + asset pipeline / compass.
2
- $bootstrap-sass-asset-helper: true !default;
3
- //
4
- // Variables
5
- // --------------------------------------------------
6
-
7
-
8
- // Global values
9
- // --------------------------------------------------
10
-
11
- // Grays
12
- // -------------------------
13
-
14
- $gray-darker: #555 !default; // #222
15
- $gray-dark: #999 !default;
16
- $gray: #CCC !default;
17
- $gray-light: #EEE !default;
18
- $gray-lighter: #fbfbfb !default;
19
-
20
- // Brand colors
21
- // -------------------------
22
-
23
- $brand-primary: #428bca !default;
24
- $brand-success: #5cb85c !default;
25
- $brand-warning: #f0ad4e !default;
26
- $brand-danger: #d9534f !default;
27
- $brand-info: #5bc0de !default;
28
-
29
- // Scaffolding
30
- // -------------------------
31
-
32
- $body-bg: #fff !default;
33
- $text-color: $gray-darker !default;
34
-
35
- // Links
36
- // -------------------------
37
-
38
- $link-color: $brand-primary !default;
39
- $link-hover-color: darken($link-color, 10%) !default;
40
-
41
- // Typography
42
- // -------------------------
43
-
44
- $font-family-sans-serif: "Open Sans", Helvetica, Arial, sans-serif !default;
45
- $font-family-serif: Georgia, "Times New Roman", Times, serif !default;
46
- $font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace !default;
47
- $font-family-base: $font-family-sans-serif !default;
48
-
49
- $font-size-base: 12px !default;
50
- $font-size-large: ceil($font-size-base * 1.25) !default;
51
- $font-size-small: ceil($font-size-base * 0.85) !default;
52
-
53
- $font-size-h1: 23px !default;
54
- $font-size-h2: 26px !default;
55
- $font-size-h3: 18px !default;
56
- $font-size-h4: 16px !default;
57
- $font-size-h5: 15px !default;
58
- $font-size-h6: 13px !default;
59
-
60
- $line-height-base: 1.428571429 !default; // 20/14
61
- $line-height-computed: floor($font-size-base * $line-height-base) !default; // ~20px
62
-
63
- $headings-font-family: $font-family-base !default;
64
- $headings-font-weight: 500 !default;
65
- $headings-line-height: 1.1 !default;
66
- $headings-color: inherit !default;
67
-
68
-
69
- // Iconography
70
- // -------------------------
71
-
72
- $icon-font-path: "bootstrap/" !default;
73
- $icon-font-name: "glyphicons-halflings-regular" !default;
74
-
75
-
76
- // Components
77
- // -------------------------
78
- // Based on 14px font-size and 1.428 line-height (~20px to start)
79
-
80
- $padding-base-vertical: 6px !default;
81
- $padding-base-horizontal: 16px !default;
82
-
83
- $padding-large-vertical: 10px !default;
84
- $padding-large-horizontal: 16px !default;
85
-
86
- $padding-small-vertical: 5px !default;
87
- $padding-small-horizontal: 10px !default;
88
-
89
- $padding-xs-vertical: 1px !default;
90
- $padding-xs-horizontal: 5px !default;
91
-
92
- $line-height-large: 1.33 !default;
93
- $line-height-small: 1.5 !default;
94
-
95
- $border-radius-base: 2px !default;
96
- $border-radius-large: 6px !default;
97
- $border-radius-small: 2px !default;
98
-
99
- $component-active-color: #fff !default;
100
- $component-active-bg: $gray-light !default;
101
-
102
- $caret-width-base: 4px !default;
103
- $caret-width-large: 5px !default;
104
-
105
- // Tables
106
- // -------------------------
107
-
108
- $table-cell-padding: 8px !default;
109
- $table-condensed-cell-padding: 5px !default;
110
-
111
- $table-bg: transparent !default; // overall background-color
112
- $table-bg-accent: #F8FAFC !default; // for striping
113
- $table-bg-hover: #f5f5f5 !default;
114
- $table-bg-active: $table-bg-hover !default;
115
-
116
- $table-border-color: #E5E5E5 !default; // table and cell border
117
-
118
-
119
- // Buttons
120
- // -------------------------
121
-
122
- $btn-font-weight: normal !default;
123
-
124
- $btn-default-color: #59595a !default;
125
- $btn-default-bg: #fff !default;
126
- $btn-default-border: #ddd !default;
127
-
128
- $btn-primary-color: #fff !default;
129
- $btn-primary-bg: $brand-primary !default;
130
- $btn-primary-border: $btn-primary-bg !default;
131
-
132
- $btn-success-color: #fff !default;
133
- $btn-success-bg: $brand-success !default;
134
- $btn-success-border: $btn-success-bg !default;
135
-
136
- $btn-warning-color: #fff !default;
137
- $btn-warning-bg: $brand-warning !default;
138
- $btn-warning-border: $btn-warning-bg !default;
139
-
140
- $btn-danger-color: #fff !default;
141
- $btn-danger-bg: $brand-danger !default;
142
- $btn-danger-border: $btn-danger-bg !default;
143
-
144
- $btn-info-color: #fff !default;
145
- $btn-info-bg: $brand-info !default;
146
- $btn-info-border: $btn-info-bg !default;
147
-
148
-
149
- // Forms
150
- // -------------------------
151
-
152
- $input-bg: #F9F9F9 !default;
153
- $input-bg-disabled: $gray-light !default;
154
-
155
- $input-color: $gray-darker !default;
156
- $input-border: $gray-light !default;
157
- $input-border-radius: $border-radius-base !default;
158
- $input-border-focus: #C1C1C1 !default;
159
-
160
- $input-color-placeholder: $gray-dark !default;
161
-
162
- $input-height-base: ($line-height-computed + ($padding-base-vertical * 2) + 2) !default;
163
- $input-height-large: (ceil($font-size-large * $line-height-large) + ($padding-large-vertical * 2) + 2) !default;
164
- $input-height-small: (floor($font-size-small * $line-height-small) + ($padding-small-vertical * 2) + 2) !default;
165
-
166
- $legend-color: $gray-darker !default;
167
- $legend-border-color: transparent !default;
168
-
169
- $input-group-addon-bg: $gray-lighter !default;
170
- $input-group-addon-border-color: $input-border !default;
171
-
172
-
173
- // Dropdowns
174
- // -------------------------
175
-
176
- $dropdown-bg: #fff !default;
177
- $dropdown-border: #e5e5e5 !default;
178
- $dropdown-fallback-border: #ccc !default;
179
- $dropdown-divider-bg: #e5e5e5 !default;
180
-
181
- $dropdown-link-color: $gray-darker !default;
182
- $dropdown-link-hover-color: darken($gray-darker, 5%) !default;
183
- $dropdown-link-hover-bg: darken(#fff, 5%) !default;
184
-
185
- $dropdown-link-active-color: $gray-darker !default;
186
- $dropdown-link-active-bg: $component-active-bg !default;
187
-
188
- $dropdown-link-disabled-color: $gray-light !default;
189
-
190
- $dropdown-header-color: #777 !default;
191
-
192
-
193
- // COMPONENT VARIABLES
194
- // --------------------------------------------------
195
-
196
-
197
- // Z-index master list
198
- // -------------------------
199
- // Used for a bird's eye view of components dependent on the z-axis
200
- // Try to avoid customizing these :)
201
-
202
- $zindex-navbar: 1000 !default;
203
- $zindex-dropdown: 1000 !default;
204
- $zindex-popover: 1010 !default;
205
- $zindex-tooltip: 1030 !default;
206
- $zindex-navbar-fixed: 1030 !default;
207
- $zindex-modal-background: 1040 !default;
208
- $zindex-modal: 1050 !default;
209
-
210
- // Media queries breakpoints
211
- // --------------------------------------------------
212
-
213
- // Extra small screen / phone
214
- // Note: Deprecated $screen-xs and $screen-phone as of v3.0.1
215
- $screen-xs: 480px !default;
216
- $screen-xs-min: $screen-xs !default;
217
- $screen-phone: $screen-xs-min !default;
218
-
219
- // Small screen / tablet
220
- // Note: Deprecated $screen-sm and $screen-tablet as of v3.0.1
221
- $screen-sm: 768px !default;
222
- $screen-sm-min: $screen-sm !default;
223
- $screen-tablet: $screen-sm-min !default;
224
-
225
- // Medium screen / desktop
226
- // Note: Deprecated $screen-md and $screen-desktop as of v3.0.1
227
- $screen-md: 992px !default;
228
- $screen-md-min: $screen-md !default;
229
- $screen-desktop: $screen-md-min !default;
230
-
231
- // Large screen / wide desktop
232
- // Note: Deprecated $screen-lg and $screen-lg-desktop as of v3.0.1
233
- $screen-lg: 1200px !default;
234
- $screen-lg-min: $screen-lg !default;
235
- $screen-lg-desktop: $screen-lg-min !default;
236
-
237
- // So media queries don't overlap when required, provide a maximum
238
- $screen-xs-max: ($screen-sm-min - 1) !default;
239
- $screen-sm-max: ($screen-md-min - 1) !default;
240
- $screen-md-max: ($screen-lg-min - 1) !default;
241
-
242
-
243
- // Grid system
244
- // --------------------------------------------------
245
-
246
- // Number of columns in the grid system
247
- $grid-columns: 12 !default;
248
- // Padding, to be divided by two and applied to the left and right of all columns
249
- $grid-gutter-width: 20px !default;
250
-
251
- // Navbar collapse
252
-
253
- // Point at which the navbar becomes uncollapsed
254
- $grid-float-breakpoint: $screen-md-min !default;
255
- // Point at which the navbar begins collapsing
256
- $grid-float-breakpoint-max: ($grid-float-breakpoint - 1) !default;
257
-
258
-
259
- // Navbar
260
- // -------------------------
261
-
262
- // Basics of a navbar
263
- $navbar-height: 40px !default;
264
- $navbar-margin-bottom: $line-height-computed !default;
265
- $navbar-border-radius: $border-radius-base !default;
266
- $navbar-padding-horizontal: floor($grid-gutter-width / 2) !default;
267
- $navbar-padding-vertical: (($navbar-height - $line-height-computed) / 2) !default;
268
-
269
- $navbar-default-color: #999999 !default;
270
- $navbar-default-bg: #fff !default;
271
- $navbar-default-border: $gray !default;
272
-
273
- // Navbar links
274
- $navbar-default-link-color: #555 !default;
275
- $navbar-default-link-hover-color: #555 !default;
276
- $navbar-default-link-hover-bg: #f7f7f7 !default;
277
- $navbar-default-link-active-color: $brand-primary !default;
278
- $navbar-default-link-active-bg: #fff !default;
279
- $navbar-default-link-disabled-color: #eee !default;
280
- $navbar-default-link-disabled-bg: transparent !default;
281
-
282
- // Navbar brand label
283
- $navbar-default-brand-color: #e34724 !default;
284
- $navbar-default-brand-hover-color: darken($navbar-default-brand-color, 5%) !default;
285
- $navbar-default-brand-hover-bg: darken($navbar-default-brand-color, 5%) !default;
286
-
287
- // Navbar toggle
288
- $navbar-default-toggle-hover-bg: #f7f7f7 !default;
289
- $navbar-default-toggle-icon-bar-bg: #ccc !default;
290
- $navbar-default-toggle-border-color: #ddd !default;
291
-
292
-
293
- // Inverted navbar
294
- //
295
- // Reset inverted navbar basics
296
- $navbar-inverse-color: #000 !default;
297
- $navbar-inverse-bg: #F9F9F9 !default;
298
- $navbar-inverse-border: #EEEEEE !default;
299
-
300
- // Inverted navbar links
301
- $navbar-inverse-link-color: #626262 !default;
302
- $navbar-inverse-link-hover-color: #428bca !default;
303
- $navbar-inverse-link-hover-bg: transparent !default;
304
- $navbar-inverse-link-active-color: $navbar-inverse-link-hover-color !default;
305
- $navbar-inverse-link-active-bg: #fff !default;
306
- $navbar-inverse-link-disabled-color: #444 !default;
307
- $navbar-inverse-link-disabled-bg: transparent !default;
308
-
309
- // Inverted navbar brand label
310
- $navbar-inverse-brand-color: $navbar-inverse-link-color !default;
311
- $navbar-inverse-brand-hover-color: #fff !default;
312
- $navbar-inverse-brand-hover-bg: transparent !default;
313
-
314
- // Inverted navbar toggle
315
- $navbar-inverse-toggle-hover-bg: #333 !default;
316
- $navbar-inverse-toggle-icon-bar-bg: #fff !default;
317
- $navbar-inverse-toggle-border-color: #333 !default;
318
-
319
-
320
- // Navs
321
- // -------------------------
322
-
323
- $nav-link-padding: 10px 15px !default;
324
- $nav-link-hover-bg: $gray-lighter !default;
325
-
326
- $nav-disabled-link-color: $gray-light !default;
327
- $nav-disabled-link-hover-color: $gray-light !default;
328
-
329
- $nav-open-link-hover-color: #fff !default;
330
-
331
- // Tabs
332
- $nav-tabs-border-color: #ddd !default;
333
-
334
- $nav-tabs-link-hover-border-color: $gray-lighter !default;
335
-
336
- $nav-tabs-active-link-hover-bg: $body-bg !default;
337
- $nav-tabs-active-link-hover-color: $gray-darker !default;
338
- $nav-tabs-active-link-hover-border-color: #ddd !default;
339
-
340
- $nav-tabs-justified-link-border-color: #ddd !default;
341
- $nav-tabs-justified-active-link-border-color: $body-bg !default;
342
-
343
- // Pills
344
- $nav-pills-border-radius: $border-radius-base !default;
345
- $nav-pills-active-link-hover-bg: $component-active-bg !default;
346
- $nav-pills-active-link-hover-color: $component-active-color !default;
347
-
348
-
349
- // Pagination
350
- // -------------------------
351
-
352
- $pagination-bg: #fff !default;
353
- $pagination-border: #ddd !default;
354
-
355
- $pagination-hover-bg: $gray-lighter !default;
356
-
357
- $pagination-active-bg: $brand-primary !default;
358
- $pagination-active-color: #fff !default;
359
-
360
- $pagination-disabled-color: $gray-light !default;
361
-
362
-
363
- // Pager
364
- // -------------------------
365
-
366
- $pager-border-radius: 15px !default;
367
- $pager-disabled-color: $gray-light !default;
368
-
369
-
370
- // Jumbotron
371
- // -------------------------
372
-
373
- $jumbotron-padding: 30px !default;
374
- $jumbotron-color: inherit !default;
375
- $jumbotron-bg: $gray-lighter !default;
376
- $jumbotron-heading-color: inherit !default;
377
- $jumbotron-font-size: ceil($font-size-base * 1.5) !default;
378
-
379
-
380
- // Form states and alerts
381
- // -------------------------
382
-
383
- $state-success-text: $brand-success !default;
384
- $state-success-bg: #dff0d8 !default;
385
- $state-success-border: darken($state-success-bg, 10%) !default;
386
-
387
- $state-info-text: $brand-info !default;
388
- $state-info-bg: #d9edf7 !default;
389
- $state-info-border: darken($state-info-bg, 10%) !default;
390
-
391
- $state-warning-text: $brand-warning !default;
392
- $state-warning-bg: #fcf8e3 !default;
393
- $state-warning-border: darken($state-warning-bg, 10%) !default;
394
-
395
- $state-danger-text: $brand-danger !default;
396
- $state-danger-bg: #f2dede !default;
397
- $state-danger-border: darken($state-danger-bg, 10%) !default;
398
-
399
-
400
- // Tooltips
401
- // -------------------------
402
- $tooltip-max-width: 200px !default;
403
- $tooltip-color: #fff !default;
404
- $tooltip-bg: #000 !default;
405
-
406
- $tooltip-arrow-width: 5px !default;
407
- $tooltip-arrow-color: $tooltip-bg !default;
408
-
409
-
410
- // Popovers
411
- // -------------------------
412
- $popover-bg: #fff !default;
413
- $popover-max-width: 276px !default;
414
- $popover-border-color: rgba(0,0,0,.2) !default;
415
- $popover-fallback-border-color: #ccc !default;
416
-
417
- $popover-title-bg: darken($popover-bg, 3%) !default;
418
-
419
- $popover-arrow-width: 10px !default;
420
- $popover-arrow-color: #fff !default;
421
-
422
- $popover-arrow-outer-width: ($popover-arrow-width + 1) !default;
423
- $popover-arrow-outer-color: rgba(0,0,0,.25) !default;
424
- $popover-arrow-outer-fallback-color: #999 !default;
425
-
426
-
427
- // Labels
428
- // -------------------------
429
-
430
- $label-default-bg: $btn-default-bg !default;
431
- $label-primary-bg: $brand-primary !default;
432
- $label-success-bg: $brand-success !default;
433
- $label-info-bg: $brand-info !default;
434
- $label-warning-bg: $brand-warning !default;
435
- $label-danger-bg: $brand-danger !default;
436
-
437
- $label-color: #fff !default;
438
- $label-link-hover-color: #fff !default;
439
-
440
-
441
- // Modals
442
- // -------------------------
443
- $modal-inner-padding: 20px !default;
444
-
445
- $modal-title-padding: 15px !default;
446
- $modal-title-line-height: $line-height-base !default;
447
-
448
- $modal-content-bg: #fff !default;
449
- $modal-content-border-color: rgba(0,0,0,.2) !default;
450
- $modal-content-fallback-border-color: #999 !default;
451
-
452
- $modal-backdrop-bg: #000 !default;
453
- $modal-header-border-color: #e5e5e5 !default;
454
- $modal-footer-border-color: $modal-header-border-color !default;
455
-
456
-
457
- // Alerts
458
- // -------------------------
459
- $alert-padding: 15px !default;
460
- $alert-border-radius: $border-radius-base !default;
461
- $alert-link-font-weight: bold !default;
462
-
463
- $alert-success-bg: $brand-success !default;
464
- $alert-success-text: #fff !default;
465
- $alert-success-border: $state-success-border !default;
466
-
467
- $alert-info-bg: $brand-info !default;
468
- $alert-info-text: #fff !default;
469
- $alert-info-border: $state-info-border !default;
470
-
471
- $alert-warning-bg: $brand-warning !default;
472
- $alert-warning-text: #fff !default;
473
- $alert-warning-border: $state-warning-border !default;
474
-
475
- $alert-danger-bg: $brand-danger !default;
476
- $alert-danger-text: #fff !default;
477
- $alert-danger-border: $state-danger-border !default;
478
-
479
-
480
- // Progress bars
481
- // -------------------------
482
- $progress-bg: #f5f5f5 !default;
483
- $progress-bar-color: #fff !default;
484
-
485
- $progress-bar-bg: $brand-primary !default;
486
- $progress-bar-success-bg: $brand-success !default;
487
- $progress-bar-warning-bg: $brand-warning !default;
488
- $progress-bar-danger-bg: $brand-danger !default;
489
- $progress-bar-info-bg: $brand-info !default;
490
-
491
-
492
- // List group
493
- // -------------------------
494
- $list-group-bg: #fff !default;
495
- $list-group-border: #ddd !default;
496
- $list-group-border-radius: $border-radius-base !default;
497
-
498
- $list-group-hover-bg: #f5f5f5 !default;
499
- $list-group-active-color: $component-active-color !default;
500
- $list-group-active-bg: $component-active-bg !default;
501
- $list-group-active-border: $list-group-active-bg !default;
502
-
503
- $list-group-link-color: $gray !default;
504
- $list-group-link-heading-color: $gray !default;
505
- $list-group-active-text-color: $component-active-color !default;
506
-
507
- $list-group-disabled-color: $gray-light !default;
508
- $list-group-disabled-bg: $gray-lighter !default;
509
- $list-group-disabled-text-color: $list-group-disabled-color !default;
510
-
511
- // Panels
512
- // -------------------------
513
- $panel-bg: #fff !default;
514
- $panel-inner-border: transparent !default;
515
- $panel-border-radius: $border-radius-base !default;
516
- $panel-footer-bg: #F5F5F5 !default;
517
-
518
- $panel-default-text: $text-color !default;
519
- $panel-default-border: #E5E5E5 !default;
520
- $panel-default-heading-bg: #F5F5F5 !default;
521
-
522
- $panel-primary-text: darken($brand-primary, 15%) !default;
523
- $panel-primary-border: lighten($btn-primary-border, 15%) !default;
524
- $panel-primary-heading-bg: $panel-default-heading-bg !default;
525
-
526
- $panel-success-text: $state-success-text !default;
527
- $panel-success-border: $state-success-border !default;
528
- $panel-success-heading-bg: $panel-default-heading-bg !default;
529
-
530
- $panel-warning-text: $state-warning-text !default;
531
- $panel-warning-border: $state-warning-border !default;
532
- $panel-warning-heading-bg: $panel-default-heading-bg !default;
533
-
534
- $panel-danger-text: $state-danger-text !default;
535
- $panel-danger-border: $state-danger-border !default;
536
- $panel-danger-heading-bg: $panel-default-heading-bg !default;
537
-
538
- $panel-info-text: $state-info-text !default;
539
- $panel-info-border: $state-info-border !default;
540
- $panel-info-heading-bg: $panel-default-heading-bg !default;
541
-
542
-
543
- // Thumbnails
544
- // -------------------------
545
- $thumbnail-padding: 4px !default;
546
- $thumbnail-bg: $body-bg !default;
547
- $thumbnail-border: #ddd !default;
548
- $thumbnail-border-radius: $border-radius-base !default;
549
-
550
- $thumbnail-caption-color: $text-color !default;
551
- $thumbnail-caption-padding: 9px !default;
552
-
553
-
554
- // Wells
555
- // -------------------------
556
- $well-bg: #f5f5f5 !default;
557
-
558
-
559
- // Badges
560
- // -------------------------
561
- $badge-color: #fff !default;
562
- $badge-link-hover-color: #fff !default;
563
- $badge-bg: $gray-light !default;
564
-
565
- $badge-active-color: $link-color !default;
566
- $badge-active-bg: #fff !default;
567
-
568
- $badge-font-weight: normal !default;
569
- $badge-line-height: 1 !default;
570
- $badge-border-radius: 10px !default;
571
-
572
-
573
- // Breadcrumbs
574
- // -------------------------
575
- $breadcrumb-bg: #f7f7f7 !default;
576
- $breadcrumb-color: #555 !default;
577
- $breadcrumb-active-color: $brand-primary !default;
578
- $breadcrumb-separator: "" !default;
579
-
580
-
581
- // Carousel
582
- // ------------------------
583
-
584
- $carousel-text-shadow: 0 1px 2px rgba(0,0,0,.6) !default;
585
-
586
- $carousel-control-color: #fff !default;
587
- $carousel-control-width: 15% !default;
588
- $carousel-control-opacity: .5 !default;
589
- $carousel-control-font-size: 20px !default;
590
-
591
- $carousel-indicator-active-bg: #fff !default;
592
- $carousel-indicator-border-color: #fff !default;
593
-
594
- $carousel-caption-color: #fff !default;
595
-
596
-
597
- // Close
598
- // ------------------------
599
- $close-font-weight: bold !default;
600
- $close-color: #000 !default;
601
- $close-text-shadow: 0 1px 0 #fff !default;
602
-
603
-
604
- // Code
605
- // ------------------------
606
- $code-color: #c7254e !default;
607
- $code-bg: #f9f2f4 !default;
608
-
609
- $pre-bg: #f5f5f5 !default;
610
- $pre-color: $gray-dark !default;
611
- $pre-border-color: #ccc !default;
612
- $pre-scrollable-max-height: 340px !default;
613
-
614
- // Type
615
- // ------------------------
616
- $text-muted: $gray-light !default;
617
- $abbr-border-color: $gray-light !default;
618
- $headings-small-color: $gray-light !default;
619
- $blockquote-small-color: $gray-light !default;
620
- $blockquote-border-color: $gray-lighter !default;
621
- $page-header-border-color: $gray-lighter !default;
622
-
623
- // Miscellaneous
624
- // -------------------------
625
-
626
- // Hr border color
627
- $hr-border: $gray-lighter !default;
628
-
629
- // Horizontal forms & lists
630
- $component-offset-horizontal: 180px !default;
631
-
632
-
633
- // Container sizes
634
- // --------------------------------------------------
635
-
636
- // Small screen / tablet
637
- $container-tablet: ((720px + $grid-gutter-width)) !default;
638
- $container-sm: $container-tablet !default;
639
-
640
- // Medium screen / desktop
641
- $container-desktop: ((940px + $grid-gutter-width)) !default;
642
- $container-md: $container-desktop !default;
643
-
644
- // Large screen / wide desktop
645
- $container-large-desktop: ((1140px + $grid-gutter-width)) !default;
646
- $container-lg: $container-large-desktop !default;