bs5 0.0.18 → 0.0.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/config/bs5_manifest.js +1 -0
- data/app/assets/javascripts/bs5/application.js +13 -0
- data/app/components/bs5/accordion_component.html.erb +1 -1
- data/app/components/bs5/accordion_component.rb +7 -3
- data/app/components/bs5/alert_component.rb +5 -5
- data/app/components/bs5/badge_component.rb +6 -6
- data/app/components/bs5/breadcrumb_component.html.erb +1 -1
- data/app/components/bs5/breadcrumb_component.rb +6 -3
- data/app/components/bs5/button_tag_component.rb +8 -8
- data/app/components/bs5/button_to_component.rb +8 -8
- data/app/components/bs5/example_component.html.erb +2 -1
- data/app/components/bs5/list_group_component.html.erb +2 -2
- data/app/components/bs5/list_group_component.rb +16 -9
- data/app/components/bs5/spinner_component.html.erb +5 -0
- data/app/components/bs5/spinner_component.rb +65 -0
- data/app/helpers/bs5/components_helper.rb +1 -1
- data/app/views/bs5/examples/accordion/default/snippet.html.erb +4 -4
- data/app/views/bs5/examples/accordion/flush/snippet.html.erb +4 -4
- data/app/views/bs5/examples/alert/additional_content/snippet.html.erb +1 -1
- data/app/views/bs5/examples/alert/color/_example.html.erb +1 -0
- data/app/views/bs5/examples/alert/{style → color}/snippet.html.erb +8 -8
- data/app/views/bs5/examples/alert/dismissable/snippet.html.erb +1 -1
- data/app/views/bs5/examples/badge/color/_example.html.erb +2 -0
- data/app/views/bs5/examples/badge/color/snippet.html.erb +8 -0
- data/app/views/bs5/examples/badge/default/_example.html.erb +2 -1
- data/app/views/bs5/examples/badge/default/button.html.erb +3 -0
- data/app/views/bs5/examples/badge/pill/snippet.html.erb +8 -8
- data/app/views/bs5/examples/breadcrumb/default/snippet.html.erb +9 -9
- data/app/views/bs5/examples/button_group/button_toolbar/snippet.html.erb +4 -4
- data/app/views/bs5/examples/button_group/button_toolbar/snippet2.html.erb +8 -8
- data/app/views/bs5/examples/button_group/sizing/snippet.html.erb +9 -9
- data/app/views/bs5/examples/button_group/vertical/snippet.html.erb +6 -6
- data/app/views/bs5/examples/buttons/button_tag/outline/snippet.html.erb +9 -9
- data/app/views/bs5/examples/buttons/button_tag/size/large.html.erb +2 -2
- data/app/views/bs5/examples/buttons/button_tag/size/small.html.erb +2 -2
- data/app/views/bs5/examples/buttons/button_tag/style/snippet.html.erb +9 -9
- data/app/views/bs5/examples/buttons/button_to/default/snippet.html.erb +3 -3
- data/app/views/bs5/examples/list_group/actionable/button.html.erb +5 -5
- data/app/views/bs5/examples/list_group/actionable/snippet.html.erb +5 -5
- data/app/views/bs5/examples/list_group/active/snippet.html.erb +5 -5
- data/app/views/bs5/examples/list_group/checkboxes_and_radios/default.html.erb +5 -5
- data/app/views/bs5/examples/list_group/checkboxes_and_radios/with_labels.html.erb +5 -5
- data/app/views/bs5/examples/list_group/custom_content/default.html.erb +3 -3
- data/app/views/bs5/examples/list_group/default/snippet.html.erb +5 -5
- data/app/views/bs5/examples/list_group/disabled/snippet.html.erb +5 -5
- data/app/views/bs5/examples/list_group/flush/snippet.html.erb +5 -5
- data/app/views/bs5/examples/list_group/horizontal/snippet.html.erb +18 -18
- data/app/views/bs5/examples/list_group/style/actionable.html.erb +9 -9
- data/app/views/bs5/examples/list_group/style/default.html.erb +9 -9
- data/app/views/bs5/examples/list_group/with_badges/default.html.erb +6 -6
- data/app/views/bs5/examples/popovers/default/snippet.html.erb +1 -1
- data/app/views/bs5/examples/popovers/four_directions/snippet.html.erb +4 -4
- data/app/views/bs5/examples/spinners/border/_example.html.erb +2 -0
- data/app/views/bs5/examples/spinners/border/snippet.html.erb +1 -0
- data/app/views/bs5/examples/spinners/buttons/_example.html.erb +2 -0
- data/app/views/bs5/examples/spinners/buttons/snippet.html.erb +15 -0
- data/app/views/bs5/examples/spinners/colors/_example.html.erb +2 -0
- data/app/views/bs5/examples/spinners/colors/snippet.html.erb +16 -0
- data/app/views/bs5/examples/spinners/growing/_example.html.erb +3 -0
- data/app/views/bs5/examples/spinners/growing/colors.html.erb +16 -0
- data/app/views/bs5/examples/spinners/growing/snippet.html.erb +1 -0
- data/app/views/bs5/examples/spinners/options/_example.html.erb +10 -0
- data/app/views/bs5/examples/spinners/options/floats.html.erb +3 -0
- data/app/views/bs5/examples/spinners/options/margin.html.erb +1 -0
- data/app/views/bs5/examples/spinners/options/placement_flex1.html.erb +3 -0
- data/app/views/bs5/examples/spinners/options/placement_flex2.html.erb +4 -0
- data/app/views/bs5/examples/spinners/options/text_align.html.erb +3 -0
- data/app/views/bs5/examples/spinners/size/_example.html.erb +3 -0
- data/app/views/bs5/examples/spinners/size/size1.html.erb +7 -0
- data/app/views/bs5/examples/spinners/size/size2.html.erb +3 -0
- data/app/views/bs5/examples/tooltips/default/buttons.html.erb +5 -5
- data/app/views/bs5/pages/alert.html.erb +1 -1
- data/app/views/bs5/pages/badge.html.erb +1 -1
- data/app/views/bs5/pages/spinners.html.erb +7 -0
- data/app/views/layouts/bs5/pages.html.erb +13 -11
- data/lib/bs5/engine.rb +6 -0
- data/lib/bs5/version.rb +1 -1
- metadata +31 -22
- data/app/views/bs5/examples/alert/style/_example.html.erb +0 -2
- data/app/views/bs5/examples/badge/style/_example.html.erb +0 -2
- data/app/views/bs5/examples/badge/style/snippet.html.erb +0 -8
@@ -1,11 +1,11 @@
|
|
1
|
-
<%= bs5_accordion do |
|
2
|
-
<%
|
1
|
+
<%= bs5_accordion do |a| %>
|
2
|
+
<% a.item(title: 'Accordion Item #1', collapsed: false) do %>
|
3
3
|
<strong>This is the first item's accordion body.</strong> It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the <code>.accordion-body</code>, though the transition does limit overflow.
|
4
4
|
<% end %>
|
5
|
-
<%
|
5
|
+
<% a.item(title: 'Accordion Item #2') do %>
|
6
6
|
<strong>This is the second item's accordion body.</strong> It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the <code>.accordion-body</code>, though the transition does limit overflow.
|
7
7
|
<% end %>
|
8
|
-
<%
|
8
|
+
<% a.item(title: 'Accordion Item #3') do %>
|
9
9
|
<strong>This is the third item's accordion body.</strong> It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the <code>.accordion-body</code>, though the transition does limit overflow.
|
10
10
|
<% end %>
|
11
11
|
<%- end %>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<%= bs5_accordion(flush: true) do |
|
2
|
-
<%
|
1
|
+
<%= bs5_accordion(flush: true) do |a| %>
|
2
|
+
<% a.item(title: 'Accordion Item #1') do %>
|
3
3
|
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
4
4
|
<% end %>
|
5
|
-
<%
|
5
|
+
<% a.item(title: 'Accordion Item #2') do %>
|
6
6
|
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
7
7
|
<% end %>
|
8
|
-
<%
|
8
|
+
<% a.item(title: 'Accordion Item #3') do %>
|
9
9
|
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
|
10
10
|
<% end %>
|
11
11
|
<%- end %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= bs5_alert(
|
1
|
+
<%= bs5_alert(color: :success) do %>
|
2
2
|
<h4 class="alert-heading">Well done!</h4>
|
3
3
|
<p>Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.</p>
|
4
4
|
<hr>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= bs5_example(snippet: 'alert/color/snippet') %>
|
@@ -1,31 +1,31 @@
|
|
1
|
-
<%= bs5_alert(
|
1
|
+
<%= bs5_alert(color: :primary) do %>
|
2
2
|
A simple primary alert—check it out!
|
3
3
|
<%- end %>
|
4
4
|
|
5
|
-
<%= bs5_alert(
|
5
|
+
<%= bs5_alert(color: :secondary) do %>
|
6
6
|
A simple secondary alert—check it out!
|
7
7
|
<%- end %>
|
8
8
|
|
9
|
-
<%= bs5_alert(
|
9
|
+
<%= bs5_alert(color: :success) do %>
|
10
10
|
A simple success alert—check it out!
|
11
11
|
<%- end %>
|
12
12
|
|
13
|
-
<%= bs5_alert(
|
13
|
+
<%= bs5_alert(color: :danger) do %>
|
14
14
|
A simple danger alert—check it out!
|
15
15
|
<%- end %>
|
16
16
|
|
17
|
-
<%= bs5_alert(
|
17
|
+
<%= bs5_alert(color: :warning) do %>
|
18
18
|
A simple warning alert—check it out!
|
19
19
|
<%- end %>
|
20
20
|
|
21
|
-
<%= bs5_alert(
|
21
|
+
<%= bs5_alert(color: :info) do %>
|
22
22
|
A simple info alert—check it out!
|
23
23
|
<%- end %>
|
24
24
|
|
25
|
-
<%= bs5_alert(
|
25
|
+
<%= bs5_alert(color: :light) do %>
|
26
26
|
A simple light alert—check it out!
|
27
27
|
<%- end %>
|
28
28
|
|
29
|
-
<%= bs5_alert(
|
29
|
+
<%= bs5_alert(color: :dark) do %>
|
30
30
|
A simple dark alert—check it out!
|
31
31
|
<%- end %>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<%= bs5_badge(text: 'Primary', color: :primary) %>
|
2
|
+
<%= bs5_badge(text: 'Secondary', color: :secondary) %>
|
3
|
+
<%= bs5_badge(text: 'Success', color: :success) %>
|
4
|
+
<%= bs5_badge(text: 'Danger', color: :danger) %>
|
5
|
+
<%= bs5_badge(text: 'Warning', color: :warning) %>
|
6
|
+
<%= bs5_badge(text: 'Info', color: :info) %>
|
7
|
+
<%= bs5_badge(text: 'Light', color: :light) %>
|
8
|
+
<%= bs5_badge(text: 'Dark', color: :dark) %>
|
@@ -1,8 +1,8 @@
|
|
1
|
-
<%= bs5_badge(text: 'Primary',
|
2
|
-
<%= bs5_badge(text: 'Secondary',
|
3
|
-
<%= bs5_badge(text: 'Sucess',
|
4
|
-
<%= bs5_badge(text: 'Danger',
|
5
|
-
<%= bs5_badge(text: 'Warning',
|
6
|
-
<%= bs5_badge(text: 'Info',
|
7
|
-
<%= bs5_badge(text: 'Light',
|
8
|
-
<%= bs5_badge(text: 'Dark',
|
1
|
+
<%= bs5_badge(text: 'Primary', color: :primary, pill: true) %>
|
2
|
+
<%= bs5_badge(text: 'Secondary', color: :secondary, pill: true) %>
|
3
|
+
<%= bs5_badge(text: 'Sucess', color: :success, pill: true) %>
|
4
|
+
<%= bs5_badge(text: 'Danger', color: :danger, pill: true) %>
|
5
|
+
<%= bs5_badge(text: 'Warning', color: :warning, pill: true) %>
|
6
|
+
<%= bs5_badge(text: 'Info', color: :info, pill: true) %>
|
7
|
+
<%= bs5_badge(text: 'Light', color: :light, pill: true) %>
|
8
|
+
<%= bs5_badge(text: 'Dark', color: :dark, pill: true) %>
|
@@ -1,14 +1,14 @@
|
|
1
|
-
<%= bs5_breadcrumb do |
|
2
|
-
<%
|
1
|
+
<%= bs5_breadcrumb do |b| %>
|
2
|
+
<% b.item do %>Home<% end %>
|
3
3
|
<%- end %>
|
4
4
|
|
5
|
-
<%= bs5_breadcrumb do |
|
6
|
-
<%
|
7
|
-
<%
|
5
|
+
<%= bs5_breadcrumb do |b| %>
|
6
|
+
<% b.item do %><a href="#">Home</a><% end %>
|
7
|
+
<% b.item do %>Library<% end %>
|
8
8
|
<%- end %>
|
9
9
|
|
10
|
-
<%= bs5_breadcrumb do |
|
11
|
-
<%
|
12
|
-
<%
|
13
|
-
<%
|
10
|
+
<%= bs5_breadcrumb do |b| %>
|
11
|
+
<% b.item do %><a href="#">Home</a><% end %>
|
12
|
+
<% b.item do %><a href="#">Library</a><% end %>
|
13
|
+
<% b.item do %>Data<% end %>
|
14
14
|
<%- end %>
|
@@ -7,12 +7,12 @@
|
|
7
7
|
<% end %>
|
8
8
|
|
9
9
|
<%= bs5_button_group(class: 'me-2', aria: { label: 'Second group' }) do %>
|
10
|
-
<%= bs5_button_tag('5', type: 'button',
|
11
|
-
<%= bs5_button_tag('6', type: 'button',
|
12
|
-
<%= bs5_button_tag('7', type: 'button',
|
10
|
+
<%= bs5_button_tag('5', type: 'button', color: :secondary) %>
|
11
|
+
<%= bs5_button_tag('6', type: 'button', color: :secondary) %>
|
12
|
+
<%= bs5_button_tag('7', type: 'button', color: :secondary) %>
|
13
13
|
<% end %>
|
14
14
|
|
15
15
|
<%= bs5_button_group(aria: { label: 'Third group' }) do %>
|
16
|
-
<%= bs5_button_tag('8', type: 'button',
|
16
|
+
<%= bs5_button_tag('8', type: 'button', color: :info) %>
|
17
17
|
<% end %>
|
18
18
|
<% end %>
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<%= bs5_button_toolbar(class: 'mb-3', aria: { label: 'Toolbar with button groups' }) do %>
|
2
2
|
<%= bs5_button_group(class: 'me-2', aria: { label: 'First group' }) do %>
|
3
|
-
<%= bs5_button_tag('1', type: 'button', outline: true,
|
4
|
-
<%= bs5_button_tag('2', type: 'button', outline: true,
|
5
|
-
<%= bs5_button_tag('3', type: 'button', outline: true,
|
6
|
-
<%= bs5_button_tag('4', type: 'button', outline: true,
|
3
|
+
<%= bs5_button_tag('1', type: 'button', outline: true, color: :secondary) %>
|
4
|
+
<%= bs5_button_tag('2', type: 'button', outline: true, color: :secondary) %>
|
5
|
+
<%= bs5_button_tag('3', type: 'button', outline: true, color: :secondary) %>
|
6
|
+
<%= bs5_button_tag('4', type: 'button', outline: true, color: :secondary) %>
|
7
7
|
<% end %>
|
8
8
|
|
9
9
|
<div class="input-group">
|
@@ -14,10 +14,10 @@
|
|
14
14
|
|
15
15
|
<%= bs5_button_toolbar(class: 'justify-content-between', aria: { label: 'Toolbar with button groups' }) do %>
|
16
16
|
<%= bs5_button_group(aria: { label: 'First group' }) do %>
|
17
|
-
<%= bs5_button_tag('1', type: 'button', outline: true,
|
18
|
-
<%= bs5_button_tag('2', type: 'button', outline: true,
|
19
|
-
<%= bs5_button_tag('3', type: 'button', outline: true,
|
20
|
-
<%= bs5_button_tag('4', type: 'button', outline: true,
|
17
|
+
<%= bs5_button_tag('1', type: 'button', outline: true, color: :secondary) %>
|
18
|
+
<%= bs5_button_tag('2', type: 'button', outline: true, color: :secondary) %>
|
19
|
+
<%= bs5_button_tag('3', type: 'button', outline: true, color: :secondary) %>
|
20
|
+
<%= bs5_button_tag('4', type: 'button', outline: true, color: :secondary) %>
|
21
21
|
<% end %>
|
22
22
|
|
23
23
|
<div class="input-group">
|
@@ -1,17 +1,17 @@
|
|
1
1
|
<%= bs5_button_group(size: 'large', class: 'mb-2', aria: { label: 'Large button group' }) do %>
|
2
|
-
<%= bs5_button_tag('Left', type: 'button',
|
3
|
-
<%= bs5_button_tag('Middle', type: 'button',
|
4
|
-
<%= bs5_button_tag('Right', type: 'button',
|
2
|
+
<%= bs5_button_tag('Left', type: 'button', color: :dark, outline: true) %>
|
3
|
+
<%= bs5_button_tag('Middle', type: 'button', color: :dark, outline: true) %>
|
4
|
+
<%= bs5_button_tag('Right', type: 'button', color: :dark, outline: true) %>
|
5
5
|
<% end %>
|
6
6
|
<br/>
|
7
7
|
<%= bs5_button_group(class: 'mb-2', aria: { label: 'Default button group' }) do %>
|
8
|
-
<%= bs5_button_tag('Left', type: 'button',
|
9
|
-
<%= bs5_button_tag('Middle', type: 'button',
|
10
|
-
<%= bs5_button_tag('Right', type: 'button',
|
8
|
+
<%= bs5_button_tag('Left', type: 'button', color: :dark, outline: true) %>
|
9
|
+
<%= bs5_button_tag('Middle', type: 'button', color: :dark, outline: true) %>
|
10
|
+
<%= bs5_button_tag('Right', type: 'button', color: :dark, outline: true) %>
|
11
11
|
<% end %>
|
12
12
|
<br/>
|
13
13
|
<%= bs5_button_group(size: :small, aria: { label: 'Small button group' }) do %>
|
14
|
-
<%= bs5_button_tag('Left', type: 'button',
|
15
|
-
<%= bs5_button_tag('Middle', type: 'button',
|
16
|
-
<%= bs5_button_tag('Right', type: 'button',
|
14
|
+
<%= bs5_button_tag('Left', type: 'button', color: :dark, outline: true) %>
|
15
|
+
<%= bs5_button_tag('Middle', type: 'button', color: :dark, outline: true) %>
|
16
|
+
<%= bs5_button_tag('Right', type: 'button', color: :dark, outline: true) %>
|
17
17
|
<% end %>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<%= bs5_button_group(vertical: :true, aria: { label: 'Vertical button group' }) do %>
|
2
|
-
<%= bs5_button_tag('Button', type: 'button',
|
3
|
-
<%= bs5_button_tag('Button', type: 'button',
|
4
|
-
<%= bs5_button_tag('Button', type: 'button',
|
5
|
-
<%= bs5_button_tag('Button', type: 'button',
|
6
|
-
<%= bs5_button_tag('Button', type: 'button',
|
7
|
-
<%= bs5_button_tag('Button', type: 'button',
|
2
|
+
<%= bs5_button_tag('Button', type: 'button', color: :dark) %>
|
3
|
+
<%= bs5_button_tag('Button', type: 'button', color: :dark) %>
|
4
|
+
<%= bs5_button_tag('Button', type: 'button', color: :dark) %>
|
5
|
+
<%= bs5_button_tag('Button', type: 'button', color: :dark) %>
|
6
|
+
<%= bs5_button_tag('Button', type: 'button', color: :dark) %>
|
7
|
+
<%= bs5_button_tag('Button', type: 'button', color: :dark) %>
|
8
8
|
<% end %>
|
@@ -1,19 +1,19 @@
|
|
1
|
-
<%= bs5_button_tag('Primary',
|
1
|
+
<%= bs5_button_tag('Primary', color: :primary, outline: true) %>
|
2
2
|
|
3
|
-
<%= bs5_button_tag('Secondary',
|
3
|
+
<%= bs5_button_tag('Secondary', color: :secondary, outline: true) %>
|
4
4
|
|
5
|
-
<%= bs5_button_tag('Success',
|
5
|
+
<%= bs5_button_tag('Success', color: :success, outline: true) %>
|
6
6
|
|
7
|
-
<%= bs5_button_tag('Danger',
|
7
|
+
<%= bs5_button_tag('Danger', color: :danger, outline: true) %>
|
8
8
|
|
9
|
-
<%= bs5_button_tag(
|
9
|
+
<%= bs5_button_tag(color: :warning, outline: true, type: 'button') do %>
|
10
10
|
<%= tag.strong('Warning') %>
|
11
11
|
<% end %>
|
12
12
|
|
13
|
-
<%= bs5_button_tag('Info',
|
13
|
+
<%= bs5_button_tag('Info', color: :info, outline: true) %>
|
14
14
|
|
15
|
-
<%= bs5_button_tag('Light',
|
15
|
+
<%= bs5_button_tag('Light', color: :light, outline: true) %>
|
16
16
|
|
17
|
-
<%= bs5_button_tag('Dark',
|
17
|
+
<%= bs5_button_tag('Dark', color: :dark, outline: true) %>
|
18
18
|
|
19
|
-
<%= bs5_button_tag('Link',
|
19
|
+
<%= bs5_button_tag('Link', color: :link, outline: true) %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= bs5_button_tag('Large button',
|
1
|
+
<%= bs5_button_tag('Large button', color: :primary, size: :large) %>
|
2
2
|
|
3
|
-
<%= bs5_button_tag('Large button',
|
3
|
+
<%= bs5_button_tag('Large button', color: :secondary, size: :large) %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= bs5_button_tag('Small button',
|
1
|
+
<%= bs5_button_tag('Small button', color: :primary, size: :small) %>
|
2
2
|
|
3
|
-
<%= bs5_button_tag('Small button',
|
3
|
+
<%= bs5_button_tag('Small button', color: :secondary, size: :small) %>
|
@@ -1,19 +1,19 @@
|
|
1
|
-
<%= bs5_button_tag('Primary',
|
1
|
+
<%= bs5_button_tag('Primary', color: :primary) %>
|
2
2
|
|
3
|
-
<%= bs5_button_tag('Secondary',
|
3
|
+
<%= bs5_button_tag('Secondary', color: :secondary) %>
|
4
4
|
|
5
|
-
<%= bs5_button_tag('Success',
|
5
|
+
<%= bs5_button_tag('Success', color: :success) %>
|
6
6
|
|
7
|
-
<%= bs5_button_tag('Danger',
|
7
|
+
<%= bs5_button_tag('Danger', color: :danger) %>
|
8
8
|
|
9
|
-
<%= bs5_button_tag(
|
9
|
+
<%= bs5_button_tag(color: :warning, type: 'button') do %>
|
10
10
|
<%= tag.strong('Warning') %>
|
11
11
|
<% end %>
|
12
12
|
|
13
|
-
<%= bs5_button_tag('Info',
|
13
|
+
<%= bs5_button_tag('Info', color: :info) %>
|
14
14
|
|
15
|
-
<%= bs5_button_tag('Light',
|
15
|
+
<%= bs5_button_tag('Light', color: :light) %>
|
16
16
|
|
17
|
-
<%= bs5_button_tag('Dark',
|
17
|
+
<%= bs5_button_tag('Dark', color: :dark) %>
|
18
18
|
|
19
|
-
<%= bs5_button_tag('Link',
|
19
|
+
<%= bs5_button_tag('Link', color: :link) %>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<div class="d-grid gap-2 d-md-flex">
|
2
2
|
<%= bs5_button_to('New', 'http://www.example.com') %>
|
3
3
|
|
4
|
-
<%= bs5_button_to('http://www.example.com',
|
4
|
+
<%= bs5_button_to('http://www.example.com', color: :success) do %>
|
5
5
|
Make happy <strong>John Doe</strong>
|
6
6
|
<%- end %>
|
7
7
|
|
8
|
-
<%= bs5_button_to('New', 'http://www.example.com',
|
8
|
+
<%= bs5_button_to('New', 'http://www.example.com', color: :dark, outline: true, size: :large, form_class: 'new-thing') %>
|
9
9
|
|
10
|
-
<%= bs5_button_to('Destroy', 'http://www.example.com',
|
10
|
+
<%= bs5_button_to('Destroy', 'http://www.example.com', color: :danger, method: "delete", remote: true, data: { confirm: 'Are you sure?', disable_with: 'loading...' }) %>
|
11
11
|
</div>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= bs5_list_group do |lg| %>
|
2
|
-
<% lg.
|
3
|
-
<% lg.
|
4
|
-
<% lg.
|
5
|
-
<% lg.
|
6
|
-
<% lg.
|
2
|
+
<% lg.item(active: true) do %><%= button_tag 'Cras justo odio' %><% end %>
|
3
|
+
<% lg.item do %><%= button_tag 'Dapibus ac facilisis in' %><% end %>
|
4
|
+
<% lg.item do %><%= button_tag 'Morbi leo risus' %><% end %>
|
5
|
+
<% lg.item do %><%= button_tag 'Porta ac consectetur ac' %><% end %>
|
6
|
+
<% lg.item(disabled: true) do %><%= button_tag 'Vestibulum at eros' %><% end %>
|
7
7
|
<%- end %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= bs5_list_group do |lg| %>
|
2
|
-
<% lg.
|
3
|
-
<% lg.
|
4
|
-
<% lg.
|
5
|
-
<% lg.
|
6
|
-
<% lg.
|
2
|
+
<% lg.item(active: true) do %><%= link_to 'Cras justo odio', '#' %><% end %>
|
3
|
+
<% lg.item do %><%= link_to 'Dapibus ac facilisis in', '#' %><% end %>
|
4
|
+
<% lg.item do %><%= link_to 'Morbi leo risus', '#' %><% end %>
|
5
|
+
<% lg.item do %><%= link_to 'Porta ac consectetur ac', '#' %><% end %>
|
6
|
+
<% lg.item(disabled: true) do %><%= link_to 'Vestibulum at eros', '#' %><% end %>
|
7
7
|
<%- end %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= bs5_list_group do |lg| %>
|
2
|
-
<% lg.
|
3
|
-
<% lg.
|
4
|
-
<% lg.
|
5
|
-
<% lg.
|
6
|
-
<% lg.
|
2
|
+
<% lg.item(active: true) do %>Cras justo odio<% end %>
|
3
|
+
<% lg.item do %>Dapibus ac facilisis in<% end %>
|
4
|
+
<% lg.item do %>Morbi leo risus<% end %>
|
5
|
+
<% lg.item do %>Porta ac consectetur ac<% end %>
|
6
|
+
<% lg.item do %>Vestibulum at eros<% end %>
|
7
7
|
<%- end %>
|
@@ -1,21 +1,21 @@
|
|
1
1
|
<%= bs5_list_group do |lg| %>
|
2
|
-
<% lg.
|
2
|
+
<% lg.item do %>
|
3
3
|
<%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
|
4
4
|
Cras justo odio
|
5
5
|
<% end %>
|
6
|
-
<% lg.
|
6
|
+
<% lg.item do %>
|
7
7
|
<%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
|
8
8
|
Dapibus ac facilisis in
|
9
9
|
<% end %>
|
10
|
-
<% lg.
|
10
|
+
<% lg.item do %>
|
11
11
|
<%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
|
12
12
|
Morbi leo risus
|
13
13
|
<% end %>
|
14
|
-
<% lg.
|
14
|
+
<% lg.item do %>
|
15
15
|
<%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
|
16
16
|
Porta ac consectetur ac
|
17
17
|
<% end %>
|
18
|
-
<% lg.
|
18
|
+
<% lg.item do %>
|
19
19
|
<%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
|
20
20
|
Vestibulum at eros
|
21
21
|
<% end %>
|
@@ -1,29 +1,29 @@
|
|
1
1
|
<%= bs5_list_group do |lg| %>
|
2
|
-
<% lg.
|
2
|
+
<% lg.item do %>
|
3
3
|
<%= label_tag do %>
|
4
4
|
<%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
|
5
5
|
Cras justo odio
|
6
6
|
<% end %>
|
7
7
|
<% end %>
|
8
|
-
<% lg.
|
8
|
+
<% lg.item do %>
|
9
9
|
<%= label_tag do %>
|
10
10
|
<%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
|
11
11
|
Dapibus ac facilisis in
|
12
12
|
<% end %>
|
13
13
|
<% end %>
|
14
|
-
<% lg.
|
14
|
+
<% lg.item do %>
|
15
15
|
<%= label_tag do %>
|
16
16
|
<%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
|
17
17
|
Morbi leo risus
|
18
18
|
<% end %>
|
19
19
|
<% end %>
|
20
|
-
<% lg.
|
20
|
+
<% lg.item do %>
|
21
21
|
<%= label_tag do %>
|
22
22
|
<%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
|
23
23
|
Porta ac consectetur ac
|
24
24
|
<% end %>
|
25
25
|
<% end %>
|
26
|
-
<% lg.
|
26
|
+
<% lg.item do %>
|
27
27
|
<%= label_tag do %>
|
28
28
|
<%= check_box_tag nil, nil, false, class: 'form-check-input mr-1', aria: { label: '...' } %>
|
29
29
|
Vestibulum at eros
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= bs5_list_group do |lg| %>
|
2
|
-
<% lg.
|
2
|
+
<% lg.item(active: true) do %>
|
3
3
|
<%= link_to '#' do %>
|
4
4
|
<div class="d-flex w-100 justify-content-between">
|
5
5
|
<h5 class="mb-1">List group item heading</h5>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<small>Donec id elit non mi porta.</small>
|
10
10
|
<% end %>
|
11
11
|
<% end %>
|
12
|
-
<% lg.
|
12
|
+
<% lg.item do %>
|
13
13
|
<%= link_to '#' do %>
|
14
14
|
<div class="d-flex w-100 justify-content-between">
|
15
15
|
<h5 class="mb-1">List group item heading</h5>
|
@@ -19,7 +19,7 @@
|
|
19
19
|
<small class="text-muted">Donec id elit non mi porta.</small>
|
20
20
|
<% end %>
|
21
21
|
<% end %>
|
22
|
-
<% lg.
|
22
|
+
<% lg.item do %>
|
23
23
|
<%= link_to '#' do %>
|
24
24
|
<div class="d-flex w-100 justify-content-between">
|
25
25
|
<h5 class="mb-1">List group item heading</h5>
|