1 <!-- @file Overview of theme settings for Drupal Bootstrap based themes. -->
6 To override a setting, open `./config/install/THEMENAME.settings.yml`
13 SETTING_NAME: SETTING_VALUE
20 <table class="table table-striped table-responsive">
23 <th class="col-xs-3">Setting name</th>
24 <th>Description and default value</th>
33 <div class="help-block">
34 Enabling this setting will include any <code>deprecated.php</code> file
35 found in your theme or base themes.
37 <pre class=" language-yaml"><code>
45 suppress_deprecated_warnings
48 <div class="help-block">
49 Enable this setting if you wish to suppress deprecated warning messages.
50 <strong class='error text-error'>WARNING: Suppressing these messages does
51 not "fix" the problem and you will inevitably encounter issues
52 when they are removed in future updates. Only use this setting in extreme
53 and necessary circumstances.</strong>
55 <pre class=" language-yaml"><code>
56 suppress_deprecated_warnings: 0
66 ### Advanced > CDN (Content Delivery Network)
68 <table class="table table-striped table-responsive">
71 <th class="col-xs-3">Setting name</th>
72 <th>Description and default value</th>
81 <div class="help-block">
82 Choose between jsdelivr or a custom cdn source.
84 <pre class=" language-yaml"><code>
85 cdn_provider: jsdelivr
95 <div class="help-block">
96 It is best to use <code>https</code> protocols here as it will allow more
97 flexibility if the need ever arises.
99 <pre class=" language-yaml"><code>
101 'https://cdn.jsdelivr.net/bootstrap/3.3.7/css/bootstrap.css'
107 <td class="col-xs-3">
111 <div class="help-block">
112 Additionally, you can provide the minimized version of the file. It will be
113 used instead if site aggregation is enabled.
115 <pre class=" language-yaml"><code>
117 'https://cdn.jsdelivr.net/bootstrap/3.3.7/css/bootstrap.min.css'
123 <td class="col-xs-3">
127 <div class="help-block">
128 It is best to use <code>https</code> protocols here as it will allow more
129 flexibility if the need ever arises.
131 <pre class=" language-yaml"><code>
132 cdn_custom_js: 'https://cdn.jsdelivr.net/bootstrap/3.3.7/js/bootstrap.js'
138 <td class="col-xs-3">
142 <div class="help-block">
143 Additionally, you can provide the minimized version of the file. It will be
144 used instead if site aggregation is enabled.
146 <pre class=" language-yaml"><code>
148 'https://cdn.jsdelivr.net/bootstrap/3.3.7/js/bootstrap.min.js'
154 <td class="col-xs-3">
158 <div class="help-block">
159 Choose the Bootstrap version from jsdelivr
161 <pre class=" language-yaml"><code>
162 cdn_jsdelivr_version: 3.3.7
168 <td class="col-xs-3">
172 <div class="help-block">
173 Choose the example Bootstrap Theme provided by Bootstrap or one of the
176 <pre class=" language-yaml"><code>
177 cdn_jsdelivr_theme: bootstrap
187 ### Components > Breadcrumbs
189 <table class="table table-striped table-responsive">
192 <th class="col-xs-3">Setting name</th>
193 <th>Description and default value</th>
198 <td class="col-xs-3">
202 <div class="help-block">
203 Show or hide the Breadcrumbs
205 <pre class=" language-yaml"><code>
212 <td class="col-xs-3">
216 <div class="help-block">
217 If your site has a module dedicated to handling breadcrumbs already, ensure
218 this setting is enabled.
220 <pre class=" language-yaml"><code>
227 <td class="col-xs-3">
231 <div class="help-block">
232 If your site has a module dedicated to handling breadcrumbs already, ensure
233 this setting is disabled.
235 <pre class=" language-yaml"><code>
246 ### Components > Navbar
248 <table class="table table-striped table-responsive">
251 <th class="col-xs-3">Setting name</th>
252 <th>Description and default value</th>
257 <td class="col-xs-3">
261 <div class="help-block">
262 Select if you want the inverse navbar style.
264 <pre class=" language-yaml"><code>
271 <td class="col-xs-3">
275 <div class="help-block">
276 Determines where the navbar is positioned on the page.
278 <pre class=" language-yaml"><code>
289 ### Components > Region Wells
291 <table class="table table-striped table-responsive">
294 <th class="col-xs-3">Setting name</th>
295 <th>Description and default value</th>
300 <td class="col-xs-3">
304 <div class="help-block">
305 Enable the <code>.well</code>, <code>.well-sm</code> or
306 <code>.well-lg</code> classes for specified regions.
308 <pre class=" language-yaml"><code>
311 navigation_collapsible: ''
328 ### General > Buttons
330 <table class="table table-striped table-responsive">
333 <th class="col-xs-3">Setting name</th>
334 <th>Description and default value</th>
339 <td class="col-xs-3">
343 <div class="help-block">
344 Adds classes to buttons based on their text value.
346 <pre class=" language-yaml"><code>
353 <td class="col-xs-3">
357 <div class="help-block">
358 Adds icons to buttons based on the text value
360 <pre class=" language-yaml"><code>
367 <td class="col-xs-3">
371 <div class="help-block">
372 Defines the Bootstrap Buttons specific size
374 <pre class=" language-yaml"><code>
385 ### General > Container
387 <table class="table table-striped table-responsive">
390 <th class="col-xs-3">Setting name</th>
391 <th>Description and default value</th>
396 <td class="col-xs-3">
400 <div class="help-block">
401 Uses the <code>.container-fluid</code> class instead of
402 <code>.container</code>.
404 <pre class=" language-yaml"><code>
417 <table class="table table-striped table-responsive">
420 <th class="col-xs-3">Setting name</th>
421 <th>Description and default value</th>
426 <td class="col-xs-3">
427 forms_has_error_value_toggle
430 <div class="help-block">
431 If an element has a <code>.has-error</code> class attached to it, enabling
432 this will automatically remove that class when a value is entered.
434 <pre class=" language-yaml"><code>
435 forms_has_error_value_toggle: 1
441 <td class="col-xs-3">
442 forms_required_has_error
445 <div class="help-block">
446 If an element in a form is required, enabling this will always display the
447 element with a <code>.has-error</code> class. This turns the element red
448 and helps in usability for determining which form elements are required to
451 <pre class=" language-yaml"><code>
452 forms_required_has_error: 0
458 <td class="col-xs-3">
459 forms_smart_descriptions
462 <div class="help-block">
463 Convert descriptions into tooltips (must be enabled) automatically based on
464 certain criteria. This helps reduce the, sometimes unnecessary, amount of
465 noise on a page full of form elements.
467 <pre class=" language-yaml"><code>
468 forms_smart_descriptions: 1
474 <td class="col-xs-3">
475 forms_smart_descriptions_allowed_tags
478 <div class="help-block">
479 Prevents descriptions from becoming tooltips by checking for HTML not in
480 the list above (i.e. links). Separate by commas. To disable this filtering
481 criteria, leave an empty value.
483 <pre class=" language-yaml"><code>
484 forms_smart_descriptions_allowed_tags: 'b, code, em, i, kbd, span, strong'
490 <td class="col-xs-3">
491 forms_smart_descriptions_limit
494 <div class="help-block">
495 Prevents descriptions from becoming tooltips by checking the character
496 length of the description (HTML is not counted towards this limit). To
497 disable this filtering criteria, leave an empty value.
499 <pre class=" language-yaml"><code>
500 forms_smart_descriptions_limit: '250'
512 <table class="table table-striped table-responsive">
515 <th class="col-xs-3">Setting name</th>
516 <th>Description and default value</th>
521 <td class="col-xs-3">
525 <div class="help-block">
526 Images in Bootstrap 3 can be made responsive-friendly via the addition of
527 the <code>.img-responsive</code> class. This applies <code>max-width:
528 100%;</code> and <code>height: auto;</code> to the image so that it scales
529 nicely to the parent element.
531 <pre class=" language-yaml"><code>
538 <td class="col-xs-3">
542 <div class="help-block">
543 Add classes to an <code><img></code> element to easily style images
546 <pre class=" language-yaml"><code>
559 <table class="table table-striped table-responsive">
562 <th class="col-xs-3">Setting name</th>
563 <th>Description and default value</th>
568 <td class="col-xs-3">
572 <div class="help-block">
573 Add borders on all sides of the table and cells.
575 <pre class=" language-yaml"><code>
582 <td class="col-xs-3">
586 <div class="help-block">
587 Make tables more compact by cutting cell padding in half.
589 <pre class=" language-yaml"><code>
596 <td class="col-xs-3">
600 <div class="help-block">
601 Enable a hover state on table rows.
603 <pre class=" language-yaml"><code>
610 <td class="col-xs-3">
614 <div class="help-block">
615 Add zebra-striping to any table row within the <code><tbody></code>.
617 <pre class=" language-yaml"><code>
624 <td class="col-xs-3">
628 <div class="help-block">
629 Wraps tables with <code>.table-responsive</code> to make them horizontally
630 scroll when viewing them on devices under 768px. When viewing on devices
631 larger than 768px, you will not see a difference in the presentational
632 aspect of these tables. The <code>Automatic</code> option will only apply
633 this setting for front-end facing tables, not the tables in administrative
636 <pre class=" language-yaml"><code>
647 ### JavaScript > Modals
649 <table class="table table-striped table-responsive">
652 <th class="col-xs-3">Setting name</th>
653 <th>Description and default value</th>
658 <td class="col-xs-3">
662 <div class="help-block">
663 Enabling this will replace core's jQuery UI Dialog implementations with
664 modals from the Bootstrap Framework.
666 <pre class=" language-yaml"><code>
673 <td class="col-xs-3">
677 <div class="help-block">
678 Apply a CSS fade transition to modals.
680 <pre class=" language-yaml"><code>
687 <td class="col-xs-3">
691 <div class="help-block">
692 Includes a modal-backdrop element. Alternatively, specify
693 <code>static</code> for a backdrop which doesn't close the modal on click.
695 <pre class=" language-yaml"><code>
696 modal_backdrop: 'true'
702 <td class="col-xs-3">
706 <div class="help-block">
707 Closes the modal when escape key is pressed.
709 <pre class=" language-yaml"><code>
716 <td class="col-xs-3">
720 <div class="help-block">
721 Shows the modal when initialized.
723 <pre class=" language-yaml"><code>
730 <td class="col-xs-3">
734 <div class="help-block">
735 Defines the modal size between the default, <code>modal-sm</code> and
736 <code>modal-lg</code>.
738 <pre class=" language-yaml"><code>
749 ### JavaScript > Popovers
751 <table class="table table-striped table-responsive">
754 <th class="col-xs-3">Setting name</th>
755 <th>Description and default value</th>
760 <td class="col-xs-3">
764 <div class="help-block">
765 Elements that have the <code>data-toggle="popover"</code>
766 attribute set will automatically initialize the popover upon page load.
767 <strong class='error text-error'>WARNING: This feature can sometimes impact
768 performance. Disable if pages appear to hang after initial load.</strong>
770 <pre class=" language-yaml"><code>
777 <td class="col-xs-3">
781 <div class="help-block">
782 Apply a CSS fade transition to the popover.
784 <pre class=" language-yaml"><code>
791 <td class="col-xs-3">
795 <div class="help-block">
796 Appends the popover to a specific element. Example: <code>body</code>. This
797 option is particularly useful in that it allows you to position the popover
798 in the flow of the document near the triggering element - which will
799 prevent the popover from floating away from the triggering element during a
802 <pre class=" language-yaml"><code>
803 popover_container: body
809 <td class="col-xs-3">
813 <div class="help-block">
814 Default content value if <code>data-content</code> or
815 <code>data-target</code> attributes are not present.
817 <pre class=" language-yaml"><code>
824 <td class="col-xs-3">
828 <div class="help-block">
829 The amount of time to delay showing and hiding the popover (in
830 milliseconds). Does not apply to manual trigger type.
832 <pre class=" language-yaml"><code>
839 <td class="col-xs-3">
843 <div class="help-block">
844 Insert HTML into the popover. If false, jQuery's text method will be used
845 to insert content into the DOM. Use text if you're worried about XSS
848 <pre class=" language-yaml"><code>
855 <td class="col-xs-3">
859 <div class="help-block">
860 Where to position the popover. When <code>auto</code> is specified, it will
861 dynamically reorient the popover. For example, if placement is <code>auto
862 left</code>, the popover will display to the left when possible, otherwise
863 it will display right.
865 <pre class=" language-yaml"><code>
866 popover_placement: right
872 <td class="col-xs-3">
876 <div class="help-block">
877 If a selector is provided, tooltip objects will be delegated to the
878 specified targets. In practice, this is used to enable dynamic HTML content
879 to have popovers added.
881 <pre class=" language-yaml"><code>
888 <td class="col-xs-3">
892 <div class="help-block">
893 Default title value if <code>title</code> attribute isn't present.
895 <pre class=" language-yaml"><code>
902 <td class="col-xs-3">
906 <div class="help-block">
907 How a popover is triggered.
909 <pre class=" language-yaml"><code>
910 popover_trigger: click
916 <td class="col-xs-3">
917 popover_trigger_autoclose
920 <div class="help-block">
921 Will automatically close the current popover if a click occurs anywhere
922 else other than the popover element.
924 <pre class=" language-yaml"><code>
925 popover_trigger_autoclose: 1
935 ### JavaScript > Tooltips
937 <table class="table table-striped table-responsive">
940 <th class="col-xs-3">Setting name</th>
941 <th>Description and default value</th>
946 <td class="col-xs-3">
950 <div class="help-block">
951 Elements that have the <code>data-toggle="tooltip"</code>
952 attribute set will automatically initialize the tooltip upon page load.
953 <strong class='error text-error'>WARNING: This feature can sometimes impact
954 performance. Disable if pages appear to "hang" after initial
957 <pre class=" language-yaml"><code>
964 <td class="col-xs-3">
968 <div class="help-block">
969 Apply a CSS fade transition to the tooltip.
971 <pre class=" language-yaml"><code>
978 <td class="col-xs-3">
982 <div class="help-block">
983 Appends the tooltip to a specific element. Example: <code>body</code>.
985 <pre class=" language-yaml"><code>
986 tooltip_container: body
992 <td class="col-xs-3">
996 <div class="help-block">
997 The amount of time to delay showing and hiding the tooltip (in
998 milliseconds). Does not apply to manual trigger type.
1000 <pre class=" language-yaml"><code>
1007 <td class="col-xs-3">
1011 <div class="help-block">
1012 Insert HTML into the tooltip. If false, jQuery's text method will be used
1013 to insert content into the DOM. Use text if you're worried about XSS
1016 <pre class=" language-yaml"><code>
1023 <td class="col-xs-3">
1027 <div class="help-block">
1028 Where to position the tooltip. When <code>auto</code> is specified, it will
1029 dynamically reorient the tooltip. For example, if placement is <code>auto
1030 left</code>, the tooltip will display to the left when possible, otherwise
1031 it will display right.
1033 <pre class=" language-yaml"><code>
1034 tooltip_placement: 'auto left'
1040 <td class="col-xs-3">
1044 <div class="help-block">
1045 If a selector is provided, tooltip objects will be delegated to the
1048 <pre class=" language-yaml"><code>
1049 tooltip_selector: ''
1055 <td class="col-xs-3">
1059 <div class="help-block">
1060 How a tooltip is triggered.
1062 <pre class=" language-yaml"><code>
1063 tooltip_trigger: hover
1071 [Drupal Bootstrap]: https://www.drupal.org/project/bootstrap
1072 [Bootstrap Framework]: https://getbootstrap.com/docs/3.3/