bs5 0.0.26 → 0.0.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/app/components/bs5/carousel/caption_component.html.erb +3 -0
  3. data/app/components/bs5/carousel/caption_component.rb +8 -0
  4. data/app/components/bs5/carousel/item_component.html.erb +4 -0
  5. data/app/components/bs5/carousel/item_component.rb +74 -0
  6. data/app/components/bs5/carousel_component.html.erb +30 -0
  7. data/app/components/bs5/carousel_component.rb +60 -0
  8. data/app/components/bs5/modal/body_component.html.erb +3 -0
  9. data/app/components/bs5/modal/body_component.rb +8 -0
  10. data/app/components/bs5/modal/controller_component.html.erb +1 -0
  11. data/app/components/bs5/modal/controller_component.rb +40 -0
  12. data/app/components/bs5/modal/footer_component.html.erb +4 -0
  13. data/app/components/bs5/modal/footer_component.rb +8 -0
  14. data/app/components/bs5/modal/header_component.html.erb +4 -0
  15. data/app/components/bs5/modal/header_component.rb +18 -0
  16. data/app/components/bs5/modal_component.html.erb +11 -0
  17. data/app/components/bs5/modal_component.rb +80 -0
  18. data/app/components/bs5/nav/item_component.html.erb +1 -0
  19. data/app/components/bs5/nav/item_component.rb +80 -0
  20. data/app/components/bs5/nav_component.html.erb +7 -0
  21. data/app/components/bs5/nav_component.rb +47 -0
  22. data/app/components/bs5/progress/bar_component.html.erb +1 -0
  23. data/app/components/bs5/progress/bar_component.rb +60 -0
  24. data/app/components/bs5/progress_component.html.erb +9 -0
  25. data/app/components/bs5/progress_component.rb +15 -0
  26. data/app/components/bs5/tabs/item_component.html.erb +3 -0
  27. data/app/components/bs5/tabs/item_component.rb +48 -0
  28. data/app/components/bs5/tabs/link_component.html.erb +1 -0
  29. data/app/components/bs5/tabs/link_component.rb +27 -0
  30. data/app/components/bs5/tabs_component.html.erb +16 -0
  31. data/app/components/bs5/tabs_component.rb +63 -0
  32. data/app/helpers/bs5/components_helper.rb +6 -3
  33. data/app/views/bs5/examples/carousel/_dark_variant.html.erb +2 -0
  34. data/app/views/bs5/examples/carousel/_examples.html.erb +13 -0
  35. data/app/views/bs5/examples/carousel/dark_variant/snippet1.html.erb +25 -0
  36. data/app/views/bs5/examples/carousel/examples/snippet1.html.erb +13 -0
  37. data/app/views/bs5/examples/carousel/examples/snippet2.html.erb +13 -0
  38. data/app/views/bs5/examples/carousel/examples/snippet3.html.erb +13 -0
  39. data/app/views/bs5/examples/carousel/examples/snippet4.html.erb +25 -0
  40. data/app/views/bs5/examples/carousel/examples/snippet5.html.erb +13 -0
  41. data/app/views/bs5/examples/carousel/examples/snippet6.html.erb +13 -0
  42. data/app/views/bs5/examples/modal/_examples.html.erb +9 -0
  43. data/app/views/bs5/examples/modal/_fullscreen.html.erb +2 -0
  44. data/app/views/bs5/examples/modal/_optional_sizes.html.erb +2 -0
  45. data/app/views/bs5/examples/modal/examples/snippet1.html.erb +12 -0
  46. data/app/views/bs5/examples/modal/examples/snippet2.html.erb +12 -0
  47. data/app/views/bs5/examples/modal/examples/snippet3.html.erb +14 -0
  48. data/app/views/bs5/examples/modal/examples/snippet4.html.erb +12 -0
  49. data/app/views/bs5/examples/modal/fullscreen/snippet1.html.erb +55 -0
  50. data/app/views/bs5/examples/modal/optional_sizes/snippet1.html.erb +23 -0
  51. data/app/views/bs5/examples/navs_and_tabs/_base_nav.html.erb +2 -0
  52. data/app/views/bs5/examples/navs_and_tabs/_dropdowns.html.erb +5 -0
  53. data/app/views/bs5/examples/navs_and_tabs/_flex_utils.html.erb +2 -0
  54. data/app/views/bs5/examples/navs_and_tabs/_styles.html.erb +15 -0
  55. data/app/views/bs5/examples/navs_and_tabs/_tabs.html.erb +4 -0
  56. data/app/views/bs5/examples/navs_and_tabs/base_nav/snippet1.html.erb +6 -0
  57. data/app/views/bs5/examples/navs_and_tabs/dropdowns/snippet1.html.erb +14 -0
  58. data/app/views/bs5/examples/navs_and_tabs/dropdowns/snippet2.html.erb +14 -0
  59. data/app/views/bs5/examples/navs_and_tabs/flex_utils/snippet1.html.erb +6 -0
  60. data/app/views/bs5/examples/navs_and_tabs/styles/snippet1.html.erb +6 -0
  61. data/app/views/bs5/examples/navs_and_tabs/styles/snippet2.html.erb +6 -0
  62. data/app/views/bs5/examples/navs_and_tabs/styles/snippet3.html.erb +6 -0
  63. data/app/views/bs5/examples/navs_and_tabs/styles/snippet4.html.erb +6 -0
  64. data/app/views/bs5/examples/navs_and_tabs/styles/snippet5.html.erb +6 -0
  65. data/app/views/bs5/examples/navs_and_tabs/styles/snippet6.html.erb +6 -0
  66. data/app/views/bs5/examples/navs_and_tabs/styles/snippet7.html.erb +6 -0
  67. data/app/views/bs5/examples/navs_and_tabs/styles/snippet8.html.erb +6 -0
  68. data/app/views/bs5/examples/navs_and_tabs/styles/snippet9.html.erb +6 -0
  69. data/app/views/bs5/examples/navs_and_tabs/tabs/snippet1.html.erb +11 -0
  70. data/app/views/bs5/examples/navs_and_tabs/tabs/snippet2.html.erb +11 -0
  71. data/app/views/bs5/examples/navs_and_tabs/tabs/snippet3.html.erb +11 -0
  72. data/app/views/bs5/examples/progress/_animated.html.erb +2 -0
  73. data/app/views/bs5/examples/progress/_backgrounds.html.erb +2 -0
  74. data/app/views/bs5/examples/progress/_examples.html.erb +2 -0
  75. data/app/views/bs5/examples/progress/_labels.html.erb +2 -0
  76. data/app/views/bs5/examples/progress/_multiple_bars.html.erb +2 -0
  77. data/app/views/bs5/examples/progress/_striped.html.erb +2 -0
  78. data/app/views/bs5/examples/progress/animated/snippet1.html.erb +13 -0
  79. data/app/views/bs5/examples/progress/backgrounds/snippet1.html.erb +13 -0
  80. data/app/views/bs5/examples/progress/examples/snippet1.html.erb +17 -0
  81. data/app/views/bs5/examples/progress/labels/snippet1.html.erb +5 -0
  82. data/app/views/bs5/examples/progress/multiple_bars/snippet1.html.erb +5 -0
  83. data/app/views/bs5/examples/progress/striped/snippet1.html.erb +13 -0
  84. data/app/views/bs5/pages/carousel.html.erb +3 -0
  85. data/app/views/bs5/pages/modal.html.erb +4 -0
  86. data/app/views/bs5/pages/navs_and_tabs.html.erb +6 -0
  87. data/app/views/bs5/pages/progress.html.erb +7 -0
  88. data/app/views/layouts/bs5/pages.html.erb +4 -0
  89. data/lib/bs5/version.rb +1 -1
  90. metadata +95 -16
@@ -0,0 +1,13 @@
1
+ <%= bs5_carousel(controls: true, crossfade: true) do |c| %>
2
+ <% c.item do %>
3
+ <%= image_tag 'https://picsum.photos/800/400?random=1' %>
4
+ <% end %>
5
+
6
+ <% c.item do %>
7
+ <%= image_tag 'https://picsum.photos/800/400?random=2' %>
8
+ <% end %>
9
+
10
+ <% c.item do %>
11
+ <%= image_tag 'https://picsum.photos/800/400?random=3' %>
12
+ <% end %>
13
+ <% end %>
@@ -0,0 +1,13 @@
1
+ <%= bs5_carousel(controls: true, crossfade: true) do |c| %>
2
+ <% c.item(interval: 10_000) do %>
3
+ <%= image_tag 'https://picsum.photos/800/400?random=1' %>
4
+ <% end %>
5
+
6
+ <% c.item(interval: 2_000) do %>
7
+ <%= image_tag 'https://picsum.photos/800/400?random=2' %>
8
+ <% end %>
9
+
10
+ <% c.item do %>
11
+ <%= image_tag 'https://picsum.photos/800/400?random=3' %>
12
+ <% end %>
13
+ <% end %>
@@ -0,0 +1,9 @@
1
+ <h2>Examples</h2>
2
+ <h3>Live demo</h3>
3
+ <%= bs5_example(snippet: 'modal/examples/snippet1') %>
4
+ <h3>Static backdrop</h3>
5
+ <%= bs5_example(snippet: 'modal/examples/snippet2') %>
6
+ <h3>Scrolling long content</h3>
7
+ <%= bs5_example(snippet: 'modal/examples/snippet3') %>
8
+ <h3>Vertically centered</h3>
9
+ <%= bs5_example(snippet: 'modal/examples/snippet4') %>
@@ -0,0 +1,2 @@
1
+ <h2>Fullscreen Modal</h2>
2
+ <%= bs5_example(snippet: 'modal/fullscreen/snippet1') %>
@@ -0,0 +1,2 @@
1
+ <h2>Optional sizes</h2>
2
+ <%= bs5_example(snippet: 'modal/optional_sizes/snippet1') %>
@@ -0,0 +1,12 @@
1
+ <%= bs5_modal do |m| %>
2
+ <%= m.controller do %>
3
+ <%= bs5_button_tag('Launch demo modal', type: 'button') %>
4
+ <% end %>
5
+ <%= m.header { 'Modal title' } %>
6
+ <%= m.body do %>
7
+ <p>Modal body text goes here.</p>
8
+ <% end %>
9
+ <%= m.footer do %>
10
+ <%= bs5_button_tag('Save changes', type: 'button') %>
11
+ <% end %>
12
+ <% end %>
@@ -0,0 +1,12 @@
1
+ <%= bs5_modal(backdrop: :static, keyboard: false) do |m| %>
2
+ <%= m.controller do %>
3
+ <%= bs5_button_tag('Launch demo modal', type: 'button') %>
4
+ <% end %>
5
+ <%= m.header { 'Modal title' } %>
6
+ <%= m.body do %>
7
+ <p>I will not close if you click outside me. Don't even try to press escape key.</p>
8
+ <% end %>
9
+ <%= m.footer do %>
10
+ <%= bs5_button_tag('Understood', type: 'button') %>
11
+ <% end %>
12
+ <% end %>
@@ -0,0 +1,14 @@
1
+ <%= bs5_modal(scroll: true) do |m| %>
2
+ <%= m.controller do %>
3
+ <%= bs5_button_tag('Launch demo modal', type: 'button') %>
4
+ <% end %>
5
+ <%= m.header { 'Modal title' } %>
6
+ <%= m.body do %>
7
+ <% 15.times do %>
8
+ <p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
9
+ <% end %>
10
+ <% end %>
11
+ <%= m.footer do %>
12
+ <%= bs5_button_tag('Save changes', type: 'button') %>
13
+ <% end %>
14
+ <% end %>
@@ -0,0 +1,12 @@
1
+ <%= bs5_modal(center: true) do |m| %>
2
+ <%= m.controller do %>
3
+ <%= bs5_button_tag('Launch demo modal', type: 'button') %>
4
+ <% end %>
5
+ <%= m.header { 'Modal title' } %>
6
+ <%= m.body do %>
7
+ <p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
8
+ <% end %>
9
+ <%= m.footer do %>
10
+ <%= bs5_button_tag('Save changes', type: 'button') %>
11
+ <% end %>
12
+ <% end %>
@@ -0,0 +1,55 @@
1
+ <%= bs5_modal(fullscreen: true) do |m| %>
2
+ <%= m.controller do %>
3
+ <%= bs5_button_tag('Full screen', type: 'button') %>
4
+ <% end %>
5
+ <%= m.header { 'Full screen modal' } %>
6
+ <%= m.body do %>
7
+ <p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
8
+ <% end %>
9
+ <%= m.footer {} %>
10
+ <% end %>
11
+
12
+ <%= bs5_modal(fullscreen: :sm) do |m| %>
13
+ <%= m.controller do %>
14
+ <%= bs5_button_tag('Full screen below sm', type: 'button') %>
15
+ <% end %>
16
+ <%= m.header { 'Full screen below sm' } %>
17
+ <%= m.body { '...'} %>
18
+ <%= m.footer {} %>
19
+ <% end %>
20
+
21
+ <%= bs5_modal(fullscreen: :md) do |m| %>
22
+ <%= m.controller do %>
23
+ <%= bs5_button_tag('Full screen below md', type: 'button') %>
24
+ <% end %>
25
+ <%= m.header { 'Full screen below md' } %>
26
+ <%= m.body { '...'} %>
27
+ <%= m.footer {} %>
28
+ <% end %>
29
+
30
+ <%= bs5_modal(fullscreen: :lg) do |m| %>
31
+ <%= m.controller do %>
32
+ <%= bs5_button_tag('Full screen below lg', type: 'button') %>
33
+ <% end %>
34
+ <%= m.header { 'Full screen below lg' } %>
35
+ <%= m.body { '...'} %>
36
+ <%= m.footer {} %>
37
+ <% end %>
38
+
39
+ <%= bs5_modal(fullscreen: :xl) do |m| %>
40
+ <%= m.controller do %>
41
+ <%= bs5_button_tag('Full screen below xl', type: 'button') %>
42
+ <% end %>
43
+ <%= m.header { 'Full screen below xl' } %>
44
+ <%= m.body { '...'} %>
45
+ <%= m.footer {} %>
46
+ <% end %>
47
+
48
+ <%= bs5_modal(fullscreen: :xxl) do |m| %>
49
+ <%= m.controller do %>
50
+ <%= bs5_button_tag('Full screen below xxl', type: 'button') %>
51
+ <% end %>
52
+ <%= m.header { 'Full screen below xxl' } %>
53
+ <%= m.body { '...'} %>
54
+ <%= m.footer {} %>
55
+ <% end %>
@@ -0,0 +1,23 @@
1
+ <%= bs5_modal(size: :xl) do |m| %>
2
+ <%= m.controller do %>
3
+ <%= bs5_button_tag('Extra large modal', type: 'button') %>
4
+ <% end %>
5
+ <%= m.header { 'Extra large modal' } %>
6
+ <%= m.body { '...' } %>
7
+ <% end %>
8
+
9
+ <%= bs5_modal(size: :lg) do |m| %>
10
+ <%= m.controller do %>
11
+ <%= bs5_button_tag('Large modal', type: 'button') %>
12
+ <% end %>
13
+ <%= m.header { 'Large modal' } %>
14
+ <%= m.body { '...' } %>
15
+ <% end %>
16
+
17
+ <%= bs5_modal(size: :sm) do |m| %>
18
+ <%= m.controller do %>
19
+ <%= bs5_button_tag('Small modal', type: 'button') %>
20
+ <% end %>
21
+ <%= m.header { 'Small modal' } %>
22
+ <%= m.body { '...' } %>
23
+ <% end %>
@@ -0,0 +1,2 @@
1
+ <h2>Base nav</h2>
2
+ <%= bs5_example(snippet: 'navs_and_tabs/base_nav/snippet1') %>
@@ -0,0 +1,5 @@
1
+ <h2>Using dropdowns</h2>
2
+ <h3>Tabs with dropdowns</h3>
3
+ <%= bs5_example(snippet: 'navs_and_tabs/dropdowns/snippet1') %>
4
+ <h3>Pills with dropdowns</h3>
5
+ <%= bs5_example(snippet: 'navs_and_tabs/dropdowns/snippet2') %>
@@ -0,0 +1,2 @@
1
+ <h2>Working with flex utilities</h2>
2
+ <%= bs5_example(snippet: 'navs_and_tabs/flex_utils/snippet1') %>
@@ -0,0 +1,15 @@
1
+ <h2>Available styles</h2>
2
+ <h3>Horizontal alignment</h3>
3
+ <%= bs5_example(snippet: 'navs_and_tabs/styles/snippet1') %>
4
+ <%= bs5_example(snippet: 'navs_and_tabs/styles/snippet2') %>
5
+ <h3>Vertical</h3>
6
+ <%= bs5_example(snippet: 'navs_and_tabs/styles/snippet3') %>
7
+ <h3>Tabs</h3>
8
+ <%= bs5_example(snippet: 'navs_and_tabs/styles/snippet4') %>
9
+ <h3>Pills</h3>
10
+ <%= bs5_example(snippet: 'navs_and_tabs/styles/snippet5') %>
11
+ <h3>Fill and justify</h3>
12
+ <%= bs5_example(snippet: 'navs_and_tabs/styles/snippet6') %>
13
+ <%= bs5_example(snippet: 'navs_and_tabs/styles/snippet7') %>
14
+ <%= bs5_example(snippet: 'navs_and_tabs/styles/snippet8') %>
15
+ <%= bs5_example(snippet: 'navs_and_tabs/styles/snippet9') %>
@@ -0,0 +1,4 @@
1
+ <h2>Tabs</h2>
2
+ <%= bs5_example(snippet: 'navs_and_tabs/tabs/snippet1') %>
3
+ <%= bs5_example(snippet: 'navs_and_tabs/tabs/snippet2') %>
4
+ <%= bs5_example(snippet: 'navs_and_tabs/tabs/snippet3') %>
@@ -0,0 +1,6 @@
1
+ <%= bs5_nav do |n| %>
2
+ <% n.item(active: true) do %><%= link_to 'Active', '#' %><% end %>
3
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
4
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
5
+ <% n.item(disabled: true) do %><%= link_to 'Disabled', '#' %><% end %>
6
+ <%- end %>
@@ -0,0 +1,14 @@
1
+ <%= bs5_nav(style: :tabs) do |n| %>
2
+ <% n.item(active: true) do %><%= link_to 'Active', '#' %><% end %>
3
+ <% n.item do %>
4
+ <%= bs5_dropdown('Dropdown', color: :link) do |d| %>
5
+ <%= d.item do %><%= link_to 'Action', '#' %><% end %>
6
+ <%= d.item do %><%= link_to 'Another action', '#' %><% end %>
7
+ <%= d.item do %><%= link_to 'Something else here', '#' %><% end %>
8
+ <%= d.item do %><% end %>
9
+ <%= d.item do %><%= link_to 'Separated link', '#' %><% end %>
10
+ <% end %>
11
+ <% end %>
12
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
13
+ <% n.item(disabled: true) do %><%= link_to 'Disabled', '#' %><% end %>
14
+ <%- end %>
@@ -0,0 +1,14 @@
1
+ <%= bs5_nav(style: :pills) do |n| %>
2
+ <% n.item(active: true) do %><%= link_to 'Active', '#' %><% end %>
3
+ <% n.item do %>
4
+ <%= bs5_dropdown('Dropdown', color: :link) do |d| %>
5
+ <%= d.item do %><%= link_to 'Action', '#' %><% end %>
6
+ <%= d.item do %><%= link_to 'Another action', '#' %><% end %>
7
+ <%= d.item do %><%= link_to 'Something else here', '#' %><% end %>
8
+ <%= d.item do %><% end %>
9
+ <%= d.item do %><%= link_to 'Separated link', '#' %><% end %>
10
+ <% end %>
11
+ <% end %>
12
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
13
+ <% n.item(disabled: true) do %><%= link_to 'Disabled', '#' %><% end %>
14
+ <%- end %>
@@ -0,0 +1,6 @@
1
+ <%= bs5_nav(style: :pills, class: 'flex-column flex-sm-row') do |n| %>
2
+ <% n.item(active: true, class: 'flex-sm-fill text-sm-center') do %><%= link_to 'Active', '#' %><% end %>
3
+ <% n.item(class: 'flex-sm-fill text-sm-center') do %><%= link_to 'Longer nav link', '#' %><% end %>
4
+ <% n.item(class: 'flex-sm-fill text-sm-center') do %><%= link_to 'Link', '#' %><% end %>
5
+ <% n.item(disabled: true, class: 'flex-sm-fill text-sm-center') do %><%= link_to 'Disabled', '#' %><% end %>
6
+ <%- end %>
@@ -0,0 +1,6 @@
1
+ <%= bs5_nav(class: 'justify-content-center') do |n| %>
2
+ <% n.item(active: true) do %><%= link_to 'Active', '#' %><% end %>
3
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
4
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
5
+ <% n.item(disabled: true) do %><%= link_to 'Disabled', '#' %><% end %>
6
+ <%- end %>
@@ -0,0 +1,6 @@
1
+ <%= bs5_nav(class: 'justify-content-end') do |n| %>
2
+ <% n.item(active: true) do %><%= link_to 'Active', '#' %><% end %>
3
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
4
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
5
+ <% n.item(disabled: true) do %><%= link_to 'Disabled', '#' %><% end %>
6
+ <%- end %>
@@ -0,0 +1,6 @@
1
+ <%= bs5_nav(class: 'flex-column') do |n| %>
2
+ <% n.item(active: true) do %><%= link_to 'Active', '#' %><% end %>
3
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
4
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
5
+ <% n.item(disabled: true) do %><%= link_to 'Disabled', '#' %><% end %>
6
+ <%- end %>
@@ -0,0 +1,6 @@
1
+ <%= bs5_nav(style: :tabs) do |n| %>
2
+ <% n.item(active: true) do %><%= link_to 'Active', '#' %><% end %>
3
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
4
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
5
+ <% n.item(disabled: true) do %><%= link_to 'Disabled', '#' %><% end %>
6
+ <%- end %>
@@ -0,0 +1,6 @@
1
+ <%= bs5_nav(style: :pills) do |n| %>
2
+ <% n.item(active: true) do %><%= link_to 'Active', '#' %><% end %>
3
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
4
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
5
+ <% n.item(disabled: true) do %><%= link_to 'Disabled', '#' %><% end %>
6
+ <%- end %>
@@ -0,0 +1,6 @@
1
+ <%= bs5_nav(style: :pills, space: :fill) do |n| %>
2
+ <% n.item(active: true) do %><%= link_to 'Active', '#' %><% end %>
3
+ <% n.item do %><%= link_to 'Much longer nav link', '#' %><% end %>
4
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
5
+ <% n.item(disabled: true) do %><%= link_to 'Disabled', '#' %><% end %>
6
+ <%- end %>
@@ -0,0 +1,6 @@
1
+ <%= bs5_nav(style: :tabs, space: :fill) do |n| %>
2
+ <% n.item(active: true) do %><%= link_to 'Active', '#' %><% end %>
3
+ <% n.item do %><%= link_to 'Much longer nav link', '#' %><% end %>
4
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
5
+ <% n.item(disabled: true) do %><%= link_to 'Disabled', '#' %><% end %>
6
+ <%- end %>
@@ -0,0 +1,6 @@
1
+ <%= bs5_nav(style: :pills, space: :justified) do |n| %>
2
+ <% n.item(active: true) do %><%= link_to 'Active', '#' %><% end %>
3
+ <% n.item do %><%= link_to 'Much longer nav link', '#' %><% end %>
4
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
5
+ <% n.item(disabled: true) do %><%= link_to 'Disabled', '#' %><% end %>
6
+ <%- end %>
@@ -0,0 +1,6 @@
1
+ <%= bs5_nav(style: :tabs, space: :justified) do |n| %>
2
+ <% n.item(active: true) do %><%= link_to 'Active', '#' %><% end %>
3
+ <% n.item do %><%= link_to 'Much longer nav link', '#' %><% end %>
4
+ <% n.item do %><%= link_to 'Link', '#' %><% end %>
5
+ <% n.item(disabled: true) do %><%= link_to 'Disabled', '#' %><% end %>
6
+ <%- end %>
@@ -0,0 +1,11 @@
1
+ <%= bs5_tabs(style: :tabs) do |n| %>
2
+ <% n.item('Home', active: true) do %>
3
+ <p class="mt-3">Et et consectetur ipsum labore excepteur est proident excepteur ad velit occaecat qui minim occaecat veniam. Fugiat veniam incididunt anim aliqua enim pariatur veniam sunt est aute sit dolor anim. Velit non irure adipisicing aliqua ullamco irure incididunt irure non esse consectetur nostrud minim non minim occaecat. Amet duis do nisi duis veniam non est eiusmod tempor incididunt tempor dolor ipsum in qui sit. Exercitation mollit sit culpa nisi culpa non adipisicing reprehenderit do dolore. Duis reprehenderit occaecat anim ullamco ad duis occaecat ex.</p>
4
+ <% end %>
5
+ <% n.item('Profile') do %>
6
+ <p class="mt-3">Nulla est ullamco ut irure incididunt nulla Lorem Lorem minim irure officia enim reprehenderit. Magna duis labore cillum sint adipisicing exercitation ipsum. Nostrud ut anim non exercitation velit laboris fugiat cupidatat. Commodo esse dolore fugiat sint velit ullamco magna consequat voluptate minim amet aliquip ipsum aute laboris nisi. Labore labore veniam irure irure ipsum pariatur mollit magna in cupidatat dolore magna irure esse tempor ad mollit. Dolore commodo nulla minim amet ipsum officia consectetur amet ullamco voluptate nisi commodo ea sit eu.</p>
7
+ <% end %>
8
+ <% n.item('Contact') do %>
9
+ <p class="mt-3">Sint sit mollit irure quis est nostrud cillum consequat Lorem esse do quis dolor esse fugiat sunt do. Eu ex commodo veniam Lorem aliquip laborum occaecat qui Lorem esse mollit dolore anim cupidatat. Deserunt officia id Lorem nostrud aute id commodo elit eiusmod enim irure amet eiusmod qui reprehenderit nostrud tempor. Fugiat ipsum excepteur in aliqua non et quis aliquip ad irure in labore cillum elit enim. Consequat aliquip incididunt ipsum et minim laborum laborum laborum et cillum labore. Deserunt adipisicing cillum id nulla minim nostrud labore eiusmod et amet. Laboris consequat consequat commodo non ut non aliquip reprehenderit nulla anim occaecat. Sunt sit ullamco reprehenderit irure ea ullamco Lorem aute nostrud magna.</p>
10
+ <% end %>
11
+ <%- end %>
@@ -0,0 +1,11 @@
1
+ <%= bs5_tabs(style: :pills) do |n| %>
2
+ <% n.item('Home', active: true) do %>
3
+ <p class="mt-3">Et et consectetur ipsum labore excepteur est proident excepteur ad velit occaecat qui minim occaecat veniam. Fugiat veniam incididunt anim aliqua enim pariatur veniam sunt est aute sit dolor anim. Velit non irure adipisicing aliqua ullamco irure incididunt irure non esse consectetur nostrud minim non minim occaecat. Amet duis do nisi duis veniam non est eiusmod tempor incididunt tempor dolor ipsum in qui sit. Exercitation mollit sit culpa nisi culpa non adipisicing reprehenderit do dolore. Duis reprehenderit occaecat anim ullamco ad duis occaecat ex.</p>
4
+ <% end %>
5
+ <% n.item('Profile') do %>
6
+ <p class="mt-3">Nulla est ullamco ut irure incididunt nulla Lorem Lorem minim irure officia enim reprehenderit. Magna duis labore cillum sint adipisicing exercitation ipsum. Nostrud ut anim non exercitation velit laboris fugiat cupidatat. Commodo esse dolore fugiat sint velit ullamco magna consequat voluptate minim amet aliquip ipsum aute laboris nisi. Labore labore veniam irure irure ipsum pariatur mollit magna in cupidatat dolore magna irure esse tempor ad mollit. Dolore commodo nulla minim amet ipsum officia consectetur amet ullamco voluptate nisi commodo ea sit eu.</p>
7
+ <% end %>
8
+ <% n.item('Contact') do %>
9
+ <p class="mt-3">Sint sit mollit irure quis est nostrud cillum consequat Lorem esse do quis dolor esse fugiat sunt do. Eu ex commodo veniam Lorem aliquip laborum occaecat qui Lorem esse mollit dolore anim cupidatat. Deserunt officia id Lorem nostrud aute id commodo elit eiusmod enim irure amet eiusmod qui reprehenderit nostrud tempor. Fugiat ipsum excepteur in aliqua non et quis aliquip ad irure in labore cillum elit enim. Consequat aliquip incididunt ipsum et minim laborum laborum laborum et cillum labore. Deserunt adipisicing cillum id nulla minim nostrud labore eiusmod et amet. Laboris consequat consequat commodo non ut non aliquip reprehenderit nulla anim occaecat. Sunt sit ullamco reprehenderit irure ea ullamco Lorem aute nostrud magna.</p>
10
+ <% end %>
11
+ <%- end %>
@@ -0,0 +1,11 @@
1
+ <%= bs5_tabs(vertical: true) do |n| %>
2
+ <% n.item('Home', active: true) do %>
3
+ <p class="ms-3">Et et consectetur ipsum labore excepteur est proident excepteur ad velit occaecat qui minim occaecat veniam. Fugiat veniam incididunt anim aliqua enim pariatur veniam sunt est aute sit dolor anim. Velit non irure adipisicing aliqua ullamco irure incididunt irure non esse consectetur nostrud minim non minim occaecat. Amet duis do nisi duis veniam non est eiusmod tempor incididunt tempor dolor ipsum in qui sit. Exercitation mollit sit culpa nisi culpa non adipisicing reprehenderit do dolore. Duis reprehenderit occaecat anim ullamco ad duis occaecat ex.</p>
4
+ <% end %>
5
+ <% n.item('Profile') do %>
6
+ <p class="ms-3">Nulla est ullamco ut irure incididunt nulla Lorem Lorem minim irure officia enim reprehenderit. Magna duis labore cillum sint adipisicing exercitation ipsum. Nostrud ut anim non exercitation velit laboris fugiat cupidatat. Commodo esse dolore fugiat sint velit ullamco magna consequat voluptate minim amet aliquip ipsum aute laboris nisi. Labore labore veniam irure irure ipsum pariatur mollit magna in cupidatat dolore magna irure esse tempor ad mollit. Dolore commodo nulla minim amet ipsum officia consectetur amet ullamco voluptate nisi commodo ea sit eu.</p>
7
+ <% end %>
8
+ <% n.item('Contact') do %>
9
+ <p class="ms-3">Sint sit mollit irure quis est nostrud cillum consequat Lorem esse do quis dolor esse fugiat sunt do. Eu ex commodo veniam Lorem aliquip laborum occaecat qui Lorem esse mollit dolore anim cupidatat. Deserunt officia id Lorem nostrud aute id commodo elit eiusmod enim irure amet eiusmod qui reprehenderit nostrud tempor. Fugiat ipsum excepteur in aliqua non et quis aliquip ad irure in labore cillum elit enim. Consequat aliquip incididunt ipsum et minim laborum laborum laborum et cillum labore. Deserunt adipisicing cillum id nulla minim nostrud labore eiusmod et amet. Laboris consequat consequat commodo non ut non aliquip reprehenderit nulla anim occaecat. Sunt sit ullamco reprehenderit irure ea ullamco Lorem aute nostrud magna.</p>
10
+ <% end %>
11
+ <%- end %>
@@ -0,0 +1,2 @@
1
+ <h2>Animated stripes</h2>
2
+ <%= bs5_example(snippet: 'progress/animated/snippet1') %>
@@ -0,0 +1,2 @@
1
+ <h2>Backgrounds</h2>
2
+ <%= bs5_example(snippet: 'progress/backgrounds/snippet1') %>
@@ -0,0 +1,2 @@
1
+ <h2>Examples</h2>
2
+ <%= bs5_example(snippet: 'progress/examples/snippet1') %>
@@ -0,0 +1,2 @@
1
+ <h2>Labels</h2>
2
+ <%= bs5_example(snippet: 'progress/labels/snippet1') %>
@@ -0,0 +1,2 @@
1
+ <h2>Multiple bars</h2>
2
+ <%= bs5_example(snippet: 'progress/multiple_bars/snippet1') %>
@@ -0,0 +1,2 @@
1
+ <h2>Striped</h2>
2
+ <%= bs5_example(snippet: 'progress/striped/snippet1') %>
@@ -0,0 +1,13 @@
1
+ <div class="mb-3">
2
+ <%= bs5_progress(25, animated: true, color: :success) %>
3
+ </div>
4
+
5
+ <div class="mb-3">
6
+ <%= bs5_progress(50, animated: true, color: :info) %>
7
+ </div>
8
+
9
+ <div class="mb-3">
10
+ <%= bs5_progress(75, animated: true, color: :warning) %>
11
+ </div>
12
+
13
+ <%= bs5_progress(100, animated: true, color: :danger) %>
@@ -0,0 +1,13 @@
1
+ <div class="mb-3">
2
+ <%= bs5_progress(25, color: :success) %>
3
+ </div>
4
+
5
+ <div class="mb-3">
6
+ <%= bs5_progress(50, color: :info) %>
7
+ </div>
8
+
9
+ <div class="mb-3">
10
+ <%= bs5_progress(75, color: :warning) %>
11
+ </div>
12
+
13
+ <%= bs5_progress(100, color: :danger) %>