shipyard-framework 0.5.87 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/javascripts/{shipyard.es6 → shipyard.js} +0 -0
- data/assets/javascripts/shipyard/{accordion-trigger.es6 → accordion-trigger.js} +0 -0
- data/assets/javascripts/shipyard/{accordion.es6 → accordion.js} +0 -0
- data/assets/javascripts/shipyard/{alert-timer.es6 → alert-timer.js} +0 -0
- data/assets/javascripts/shipyard/{alert.es6 → alert.js} +0 -0
- data/assets/javascripts/shipyard/{core.es6 → core.js} +0 -0
- data/assets/javascripts/shipyard/{hamburger.es6 → hamburger.js} +0 -0
- data/assets/javascripts/shipyard/{modal-trigger.es6 → modal-trigger.js} +0 -0
- data/assets/javascripts/shipyard/{modal.es6 → modal.js} +0 -0
- data/assets/javascripts/shipyard/{scroll.es6 → scroll.js} +0 -0
- data/assets/stylesheets/shipyard/_functions.sass +1 -0
- data/assets/stylesheets/shipyard/components/_tooltips.sass +140 -40
- data/assets/stylesheets/shipyard/core/_reset.sass +5 -1
- data/assets/stylesheets/shipyard/functions/_opposite-direction.sass +9 -0
- data/assets/stylesheets/shipyard/utilities/_typography.sass +2 -1
- data/lib/shipyard-framework/version.rb +1 -1
- metadata +19 -114
- data/.gitignore +0 -13
- data/.rspec +0 -3
- data/.ruby-version +0 -1
- data/.travis.yml +0 -40
- data/Brewfile +0 -4
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -3
- data/LICENSE.txt +0 -21
- data/README.md +0 -46
- data/Rakefile +0 -16
- data/ci/build.rb +0 -5
- data/ci/deploy +0 -31
- data/ci/jekyll +0 -16
- data/ci/percy +0 -16
- data/ci/sass_lint +0 -47
- data/ci/setup +0 -6
- data/shipyard.gemspec +0 -28
- data/spec/helpers/alert_helper_spec.rb +0 -27
- data/spec/helpers/box_helper_spec.rb +0 -27
- data/spec/helpers/button_helper_spec.rb +0 -37
- data/spec/helpers/form_helper_spec.rb +0 -29
- data/spec/helpers/icon_helper_spec.rb +0 -21
- data/spec/helpers/note_helper_spec.rb +0 -19
- data/spec/shipyard_spec.rb +0 -7
- data/spec/spec_helper.rb +0 -104
- data/styleguide/.gitignore +0 -3
- data/styleguide/.nojekyll +0 -0
- data/styleguide/.ruby-version +0 -1
- data/styleguide/Gemfile +0 -9
- data/styleguide/Gemfile.lock +0 -125
- data/styleguide/_assets/css/application.sass +0 -3
- data/styleguide/_assets/css/fonts.sass +0 -2
- data/styleguide/_assets/css/layout.sass +0 -10
- data/styleguide/_assets/css/syntax.css +0 -209
- data/styleguide/_assets/css/vendor.sass +0 -4
- data/styleguide/_assets/css/views.sass +0 -103
- data/styleguide/_assets/img/arrows/down.svg +0 -3
- data/styleguide/_assets/img/checkmark.svg +0 -3
- data/styleguide/_assets/js/application.es6 +0 -6
- data/styleguide/_assets/js/views/components/alert-trigger.es6 +0 -20
- data/styleguide/_assets/js/views/utilities/colors.es6 +0 -14
- data/styleguide/_config.yml +0 -67
- data/styleguide/_data/breakpoints.yml +0 -15
- data/styleguide/_includes/css-stats.html +0 -14
- data/styleguide/_includes/page-heading.html +0 -4
- data/styleguide/_layouts/application.html +0 -45
- data/styleguide/_plugins/color_css_class.rb +0 -13
- data/styleguide/_plugins/component_css_class.rb +0 -9
- data/styleguide/_plugins/css_declarations.rb +0 -16
- data/styleguide/_plugins/css_selectors.rb +0 -16
- data/styleguide/_plugins/css_size.rb +0 -20
- data/styleguide/_plugins/human_size_filter.rb +0 -12
- data/styleguide/_plugins/icon_item.rb +0 -28
- data/styleguide/_plugins/opacity_css_class.rb +0 -12
- data/styleguide/_plugins/sass_generator.rb +0 -55
- data/styleguide/_plugins/sass_output.rb +0 -24
- data/styleguide/components/alerts.md +0 -107
- data/styleguide/components/boxes.md +0 -97
- data/styleguide/components/buttons.md +0 -192
- data/styleguide/components/checkboxes.md +0 -281
- data/styleguide/components/code.html +0 -49
- data/styleguide/components/empty-states.html +0 -12
- data/styleguide/components/forms.md +0 -151
- data/styleguide/components/horizontal-rules.md +0 -82
- data/styleguide/components/icons.md +0 -129
- data/styleguide/components/index.md +0 -18
- data/styleguide/components/modals/_modal.html +0 -100
- data/styleguide/components/modals/example-billing.html +0 -80
- data/styleguide/components/modals/example-downgrade.html +0 -33
- data/styleguide/components/modals/example-small.html +0 -19
- data/styleguide/components/modals/example-survey.html +0 -52
- data/styleguide/components/modals/example-tall.html +0 -6
- data/styleguide/components/modals/index.md +0 -41
- data/styleguide/components/notes.md +0 -67
- data/styleguide/components/radio-buttons.md +0 -195
- data/styleguide/components/statuses.md +0 -324
- data/styleguide/components/tables.md +0 -34
- data/styleguide/components/tooltips.md +0 -16
- data/styleguide/index.md +0 -27
- data/styleguide/stats.md +0 -49
- data/styleguide/utilities/accordion.md +0 -55
- data/styleguide/utilities/border-radius.md +0 -104
- data/styleguide/utilities/colors.md +0 -45
- data/styleguide/utilities/grid.md +0 -256
- data/styleguide/utilities/index.md +0 -19
- data/styleguide/utilities/margin-padding.md +0 -124
- data/styleguide/utilities/opacity.md +0 -28
- data/styleguide/utilities/position.md +0 -24
- data/styleguide/utilities/responsive.md +0 -20
- data/styleguide/utilities/typography.md +0 -74
@@ -1,55 +0,0 @@
|
|
1
|
-
require 'sassc'
|
2
|
-
require 'zlib'
|
3
|
-
|
4
|
-
module Jekyll
|
5
|
-
class SassOutputGenerator < Generator
|
6
|
-
def generate(site)
|
7
|
-
@shipyard_size = 0
|
8
|
-
@stylesheets_path = '../assets/stylesheets/'
|
9
|
-
sass = load_sass_files
|
10
|
-
site.config['sass_output'] = sass
|
11
|
-
site.data.merge!(sass_output: sass)
|
12
|
-
end
|
13
|
-
|
14
|
-
private
|
15
|
-
|
16
|
-
def load_sass_files
|
17
|
-
Dir["#{@stylesheets_path}**/*.sass"].sort.map do |file|
|
18
|
-
sass = %(@import "shipyard/core"\n)
|
19
|
-
sass += File.read(file)
|
20
|
-
compact_css = render(sass, :compact)
|
21
|
-
compressed_css = render(sass, :compressed)
|
22
|
-
gzip_size = Zlib::Deflate.deflate(compressed_css).bytesize
|
23
|
-
|
24
|
-
# Gather all the selectors
|
25
|
-
selectors = compressed_css
|
26
|
-
.gsub(/({[^{}]*})/, ",\n") # Remove declarations
|
27
|
-
.gsub(/@media[^{]*{([^}]*)}/, "\\1") # Remove media queries
|
28
|
-
.gsub(/@keyframes[^{]*{[^}]*}/, '') # Remove keyframes
|
29
|
-
.gsub(/,([^\n])/, ",\n\\1") # Add new lines
|
30
|
-
|
31
|
-
@shipyard_size = gzip_size if file.include?('_shipyard.sass')
|
32
|
-
{
|
33
|
-
'file' => file.gsub(@stylesheets_path, ''),
|
34
|
-
'sass' => sass,
|
35
|
-
'compact_css' => compact_css,
|
36
|
-
'compressed_css' => compressed_css,
|
37
|
-
'selectors' => selectors.scan(/,/).size,
|
38
|
-
'declarations' => compressed_css.scan(/({[^{}]*})/).size,
|
39
|
-
'media_queries' => compressed_css.scan(/@media/).size,
|
40
|
-
'gzip_size' => gzip_size,
|
41
|
-
'percentage' => (gzip_size.to_f / @shipyard_size.to_f * 100.0).round(1)
|
42
|
-
}
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
def render(sass, style)
|
47
|
-
SassC::Engine.new(
|
48
|
-
sass,
|
49
|
-
syntax: :sass,
|
50
|
-
style: style,
|
51
|
-
load_paths: [Shipyard::stylesheets_path]
|
52
|
-
).render
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
module Jekyll
|
2
|
-
class SassOutput < Liquid::Tag
|
3
|
-
def initialize(tag_name, args, options)
|
4
|
-
super
|
5
|
-
end
|
6
|
-
|
7
|
-
def render(context)
|
8
|
-
sass = context['site']['sass_output'].detect { |s|
|
9
|
-
s['file'].include? context['page']['sass_file']
|
10
|
-
}
|
11
|
-
output = sass['compressed_css']
|
12
|
-
output.gsub! /}/, " }\n"
|
13
|
-
output.gsub! /([a-z]),/, "\\1,\n\\2"
|
14
|
-
output.gsub! /\),./, "),\n." # Matches :not(...),.class
|
15
|
-
output.gsub! /{/, ' { '
|
16
|
-
output.gsub! /([a-z]):([^:|not])/, '\1: \2'
|
17
|
-
output.gsub! /;/, '; '
|
18
|
-
output.gsub! /\n\z/, ''
|
19
|
-
output
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
Liquid::Template.register_tag('sass_output', Jekyll::SassOutput)
|
@@ -1,107 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Shipyard Alerts
|
3
|
-
description: Alerts should be used to grab a user's attention before proceeding to the next action. They are commonly found at the very top of the page directly above the content.
|
4
|
-
sass_file: shipyard/components/_alerts
|
5
|
-
---
|
6
|
-
|
7
|
-
{% include page-heading.html page=page %}
|
8
|
-
|
9
|
-
---
|
10
|
-
|
11
|
-
### Timed Alerts
|
12
|
-
Useful when you want to display an alert for a predetermined amount of time.
|
13
|
-
{: .section-description }
|
14
|
-
|
15
|
-
{% alert :success, :dismissible, id: 'timed-alert-5s', class: 'alert-closed' %}
|
16
|
-
Pack your bags! You'll be on the next flight to Hawaii.
|
17
|
-
<div class="alert-timer alert-timer-on" data-duration="5"></div>
|
18
|
-
{% endalert %}
|
19
|
-
|
20
|
-
{% alert :success, :dismissible, id: 'timed-alert-10s', class: 'alert-closed' %}
|
21
|
-
Pack your bags! You'll be on the next flight to Tahiti.
|
22
|
-
<div class="alert-timer alert-timer-on" data-duration="10"></div>
|
23
|
-
{% endalert %}
|
24
|
-
|
25
|
-
{% alert :success, :dismissible, id: 'timed-alert-15s', class: 'alert-closed' %}
|
26
|
-
Pack your bags! You'll be on the next flight to Corsica.
|
27
|
-
<div class="alert-timer alert-timer-on" data-duration="15"></div>
|
28
|
-
{% endalert %}
|
29
|
-
|
30
|
-
<button class="btn btn-primary mr-10" alert-trigger="#timed-alert-5s">5 Seconds</button>
|
31
|
-
<button class="btn btn-primary mr-10" alert-trigger="#timed-alert-10s">10 Seconds</button>
|
32
|
-
<button class="btn btn-primary" alert-trigger="#timed-alert-15s">15 Seconds</button>
|
33
|
-
|
34
|
-
---
|
35
|
-
|
36
|
-
### Dismissible
|
37
|
-
Used to display notes, tips, and other non-critical information.
|
38
|
-
{: .section-description }
|
39
|
-
|
40
|
-
{% alert :dismissible %}
|
41
|
-
Ten other people are also viewing tickets for <a href="#">this flight</a>.
|
42
|
-
Use the code <code class="code-inline">Travel_Light_2017</code> before you book your flight.
|
43
|
-
{% endalert %}
|
44
|
-
|
45
|
-
---
|
46
|
-
|
47
|
-
### Default `.alert`
|
48
|
-
Used to display notes, tips, and other non-critical information.
|
49
|
-
{: .section-description }
|
50
|
-
|
51
|
-
{% alert %}
|
52
|
-
Ten other people are also viewing tickets for <a href="#">this flight</a>.
|
53
|
-
Use the code <code class="code-inline">Travel_Light_2017</code> before you book your flight.
|
54
|
-
{% btn Call to Action, :sm, class: 'alert-cta' %}
|
55
|
-
{% endalert %}
|
56
|
-
|
57
|
-
---
|
58
|
-
|
59
|
-
### Info `.alert-info`
|
60
|
-
Useful when drawing attention to non-critical information or actions we want the user to take.
|
61
|
-
{: .section-description }
|
62
|
-
|
63
|
-
{% alert :info %}
|
64
|
-
Ten other people are also viewing tickets for <a href="#">this flight</a>.
|
65
|
-
Use the code <code class="code-inline">Travel_Light_2017</code> before you book your flight.
|
66
|
-
{% btn Call to Action, :sm, class: 'alert-cta' %}
|
67
|
-
{% endalert %}
|
68
|
-
|
69
|
-
---
|
70
|
-
|
71
|
-
### Success `.alert-success`
|
72
|
-
Useful when drawing attention to interactions that have produced successful results.
|
73
|
-
{: .section-description }
|
74
|
-
|
75
|
-
{% alert :success %}
|
76
|
-
Pack your bags! You'll be on the next flight to Hawaii.
|
77
|
-
Use the code <code class="code-inline">Travel_Light_2017</code> on your next flight. In the meantime you can <a href="#">invite a friend</a> to this flight.
|
78
|
-
{% btn Call to Action, :sm, class: 'alert-cta' %}
|
79
|
-
{% endalert %}
|
80
|
-
|
81
|
-
---
|
82
|
-
|
83
|
-
### Warning `.alert-warning`
|
84
|
-
Useful when drawing attention to critical, time-sensitive information — even if nothing has gone wrong.
|
85
|
-
{: .section-description }
|
86
|
-
|
87
|
-
{% alert :warning %}
|
88
|
-
There are only 2 seats left on this flight! We recommend to <a href="#">book your tickets</a> as soon as possible.
|
89
|
-
Use the code <code class="code-inline">Travel_Light_2017</code> before you book your flight.
|
90
|
-
{% btn Call to Action, :sm, class: 'alert-cta' %}
|
91
|
-
{% endalert %}
|
92
|
-
|
93
|
-
---
|
94
|
-
|
95
|
-
### Error `.alert-error`
|
96
|
-
Useful when drawing attention to something that has gone critically wrong.
|
97
|
-
{: .section-description }
|
98
|
-
|
99
|
-
{% alert :error %}
|
100
|
-
This flight is now sold out. Let's get you on the <a href="#">next flight to Kauai</a>.
|
101
|
-
We hope the code <code class="code-inline">Travel_Light_2017</code> will be useful for your next flight.
|
102
|
-
{% btn Call to Action, :sm, class: 'alert-cta' %}
|
103
|
-
{% endalert %}
|
104
|
-
|
105
|
-
---
|
106
|
-
|
107
|
-
{% include css-stats.html %}
|
@@ -1,97 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Shipyard Boxes
|
3
|
-
description: Boxes should be used to grab a draw attention to specific groups of content, and are most useful to linked content. By default, all boxes need to have the base class of `.box` in order to function properly.
|
4
|
-
sass_file: shipyard/components/_boxes
|
5
|
-
box_sizes: [xxs, xs, sm, md, lg, xl, xxl]
|
6
|
-
---
|
7
|
-
|
8
|
-
{% include page-heading.html page=page %}
|
9
|
-
|
10
|
-
---
|
11
|
-
|
12
|
-
### Default `.box`
|
13
|
-
Useful when needing to draw extra attention to a particular group of content.
|
14
|
-
{: .section-description }
|
15
|
-
|
16
|
-
{% box %}
|
17
|
-
<p>Donec id elit non mi porta gravida at eget metus. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Cras mattis consectetur purus sit amet fermentum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.</p>
|
18
|
-
{% endbox %}
|
19
|
-
|
20
|
-
---
|
21
|
-
|
22
|
-
### Padded `.box-padding`
|
23
|
-
Useful when needing to draw extra attention to a particular group of content.
|
24
|
-
{: .section-description }
|
25
|
-
|
26
|
-
{% box :padding %}
|
27
|
-
<p>Donec id elit non mi porta gravida at eget metus. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Cras mattis consectetur purus sit amet fermentum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.</p>
|
28
|
-
{% endbox %}
|
29
|
-
|
30
|
-
---
|
31
|
-
|
32
|
-
### Linked `.box-link`
|
33
|
-
Useful when linking important components to another page or another group of content.
|
34
|
-
{: .section-description }
|
35
|
-
|
36
|
-
{% box :link %}
|
37
|
-
<p>Donec id elit non mi porta gravida at eget metus. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Cras mattis consectetur purus sit amet fermentum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.</p>
|
38
|
-
{% endbox %}
|
39
|
-
|
40
|
-
---
|
41
|
-
|
42
|
-
### Linked & Active `.box-link-active`
|
43
|
-
Useful when linking important components to another page or another group of content.
|
44
|
-
{: .section-description }
|
45
|
-
|
46
|
-
{% box :link, :link_active %}
|
47
|
-
<p>Donec id elit non mi porta gravida at eget metus. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Cras mattis consectetur purus sit amet fermentum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.</p>
|
48
|
-
{% endbox %}
|
49
|
-
|
50
|
-
---
|
51
|
-
|
52
|
-
### Linked & Selected `.box-link-selected`
|
53
|
-
Useful when highlighting a linked box that's been selected by the user.
|
54
|
-
{: .section-description }
|
55
|
-
|
56
|
-
{% box :link, :link_selected %}
|
57
|
-
<p>Donec id elit non mi porta gravida at eget metus. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Cras mattis consectetur purus sit amet fermentum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.</p>
|
58
|
-
{% endbox %}
|
59
|
-
|
60
|
-
---
|
61
|
-
|
62
|
-
### Secondary `.box-secondary`
|
63
|
-
Useful when connecting secondary information to the default box styles.
|
64
|
-
{: .section-description }
|
65
|
-
|
66
|
-
{% box :secondary %}
|
67
|
-
<p>Donec id elit non mi porta gravida at eget metus. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Cras mattis consectetur purus sit amet fermentum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.</p>
|
68
|
-
{% endbox %}
|
69
|
-
|
70
|
-
|
71
|
-
---
|
72
|
-
|
73
|
-
### Box Sizes `.box-[{{ page.box_sizes | join: ', ' }}]`
|
74
|
-
Useful when you need to create boxes with fixed heights. Note: The <a href="{{ site.baseurl }}/utilities/responsive">responsive utility classes</a> can also be applied to each box size.
|
75
|
-
{: .section-description }
|
76
|
-
|
77
|
-
{% for size in page.box_sizes %}
|
78
|
-
<div class="box box-{{ size }} mt-20">
|
79
|
-
<strong class="center text-lighter text-sm">.box-{{ size }}</strong>
|
80
|
-
</div>
|
81
|
-
{% endfor %}
|
82
|
-
|
83
|
-
---
|
84
|
-
|
85
|
-
### Rounded `.box-rounded`
|
86
|
-
Useful when you need a box with rounded corners.
|
87
|
-
{: .section-description }
|
88
|
-
|
89
|
-
{% for size in page.box_sizes %}
|
90
|
-
<div class="box box-rounded box-{{ size }} mt-20">
|
91
|
-
<strong class="center text-lighter text-sm">.box-{{ size }}</strong>
|
92
|
-
</div>
|
93
|
-
{% endfor %}
|
94
|
-
|
95
|
-
---
|
96
|
-
|
97
|
-
{% include css-stats.html %}
|
@@ -1,192 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Shipyard Buttons
|
3
|
-
sass_file: shipyard/components/_buttons
|
4
|
-
---
|
5
|
-
|
6
|
-
{% include page-heading.html page=page %}
|
7
|
-
|
8
|
-
---
|
9
|
-
|
10
|
-
## Common Buttons
|
11
|
-
Shipyard gives you more buttons than you can shake a stick at.
|
12
|
-
{: .section-description }
|
13
|
-
|
14
|
-
<div class="mb-20">
|
15
|
-
{% btn Default, :default, class: 'mr-10' %}
|
16
|
-
{% btn Primary, :primary, class: 'mr-10' %}
|
17
|
-
{% btn Primary Dark, :primary_dark, class: 'mr-10' %}
|
18
|
-
{% btn CTA, :cta, class: 'mr-10' %}
|
19
|
-
{% btn Caution, :caution, class: 'mr-10' %}
|
20
|
-
{% btn Disabled, :disabled, class: 'mr-10' %}
|
21
|
-
{% btn Link, :link %}
|
22
|
-
</div>
|
23
|
-
|
24
|
-
```html
|
25
|
-
{% btn Default %}
|
26
|
-
{% btn Primary, :primary %}
|
27
|
-
{% btn Primary Dark, :primary_dark %}
|
28
|
-
{% btn CTA, :cta %}
|
29
|
-
{% btn Caution, :caution %}
|
30
|
-
{% btn Disabled, :disabled %}
|
31
|
-
{% btn Link, :link %}
|
32
|
-
```
|
33
|
-
|
34
|
-
---
|
35
|
-
|
36
|
-
## Secondary Buttons
|
37
|
-
Useful when you have a button on a darker background.
|
38
|
-
{: .section-description }
|
39
|
-
|
40
|
-
<div class="mb-20">
|
41
|
-
{% btn Secondary, :secondary, class: 'mr-10' %}
|
42
|
-
{% btn Secondary Dark, :secondary_dark, class: 'mr-10' %}
|
43
|
-
{% btn Secondary Link, :secondary_link %}
|
44
|
-
</div>
|
45
|
-
|
46
|
-
```html
|
47
|
-
{% btn Secondary, :secondary %}
|
48
|
-
{% btn Secondary Dark, :secondary_dark %}
|
49
|
-
{% btn Secondary Link, :secondary_link %}
|
50
|
-
```
|
51
|
-
|
52
|
-
---
|
53
|
-
|
54
|
-
## Inverse Buttons
|
55
|
-
Useful when you have a button on a darker background.
|
56
|
-
{: .section-description }
|
57
|
-
|
58
|
-
<div class="box-secondary box-padding bg-gray-dark mb-20">
|
59
|
-
{% btn Inverse, :inverse, class: 'mr-10' %}
|
60
|
-
{% btn Inverse Secondary, :inverse_secondary %}
|
61
|
-
</div>
|
62
|
-
|
63
|
-
```html
|
64
|
-
{% btn Inverse, :inverse %}
|
65
|
-
{% btn Inverse Secondary, :inverse_secondary %}
|
66
|
-
```
|
67
|
-
|
68
|
-
---
|
69
|
-
|
70
|
-
## Rounded Buttons
|
71
|
-
Useful when you want a button with completely rounded corners.
|
72
|
-
{: .section-description }
|
73
|
-
|
74
|
-
<div class="mb-20">
|
75
|
-
{% btn Default, :rounded, class: 'mr-10' %}
|
76
|
-
{% btn Primary, :primary :rounded, class: 'mr-10' %}
|
77
|
-
{% btn CTA, :cta :rounded, class: 'mr-10' %}
|
78
|
-
{% btn Caution, :caution :rounded, class: 'mr-10' %}
|
79
|
-
{% btn Secondary, :secondary :rounded %}
|
80
|
-
</div>
|
81
|
-
|
82
|
-
```html
|
83
|
-
{% btn Rounded, :rounded %}
|
84
|
-
```
|
85
|
-
|
86
|
-
---
|
87
|
-
|
88
|
-
## Loading Buttons
|
89
|
-
Useful when you have a button that triggers an asynchronous action.
|
90
|
-
{: .section-description }
|
91
|
-
|
92
|
-
<div class="mb-20">
|
93
|
-
{% btn Default, :loading, class: 'mr-10' %}
|
94
|
-
{% btn Primary, :primary :loading, class: 'mr-10' %}
|
95
|
-
{% btn CTA, :cta :loading, class: 'mr-10' %}
|
96
|
-
{% btn Caution, :caution :loading, class: 'mr-10' %}
|
97
|
-
{% btn Secondary, :secondary :loading, class: 'mr-10' %}
|
98
|
-
{% btn Secondary Link, :secondary_link :loading, class: 'mr-10' %}
|
99
|
-
</div>
|
100
|
-
|
101
|
-
```html
|
102
|
-
{% btn Default, :loading %}
|
103
|
-
```
|
104
|
-
|
105
|
-
---
|
106
|
-
|
107
|
-
### Full-Screen Buttons
|
108
|
-
Often really useful on mobile screens or in combination with other grids.
|
109
|
-
{: .section-description }
|
110
|
-
|
111
|
-
<div class="mb-20">
|
112
|
-
{% btn Save Changes, :full %}
|
113
|
-
</div>
|
114
|
-
|
115
|
-
```html
|
116
|
-
{% btn Save Changes, :full %}
|
117
|
-
```
|
118
|
-
|
119
|
-
---
|
120
|
-
|
121
|
-
### Common Buttons Tags
|
122
|
-
The button classes can be applied to any type of html tag to achieve the desired result. The most common examples being the `button`, `a`, and `input` tags as seen in the example below.
|
123
|
-
{: .section-description }
|
124
|
-
|
125
|
-
<div class="mb-30">
|
126
|
-
{% btn Button %}
|
127
|
-
<a href="#" class="btn">Link</a>
|
128
|
-
<input type="button" class="btn" value="Input" />
|
129
|
-
<input type="submit" class="btn" value="Submit" />
|
130
|
-
<input type="reset" class="btn" value="Reset" />
|
131
|
-
</div>
|
132
|
-
|
133
|
-
```html
|
134
|
-
{% btn Button %}
|
135
|
-
<a href="#" class="btn">Link</a>
|
136
|
-
<input type="button" class="btn" value="Input" />
|
137
|
-
<input type="submit" class="btn" value="Input" />
|
138
|
-
<input type="reset" class="btn" value="Input" />
|
139
|
-
```
|
140
|
-
|
141
|
-
---
|
142
|
-
|
143
|
-
## Button Sizes (default: md)
|
144
|
-
|
145
|
-
<div class="box-padding align-center">
|
146
|
-
{% btn XX-Small, :xxs %}
|
147
|
-
{% btn X-Small, :xs %}
|
148
|
-
{% btn Small, :sm %}
|
149
|
-
{% btn Medium, :md %}
|
150
|
-
{% btn Large, :lg %}
|
151
|
-
{% btn X-Large, :xl %}
|
152
|
-
</div>
|
153
|
-
|
154
|
-
## XX-Small, Responsive Buttons
|
155
|
-
<div class="box-padding align-center">
|
156
|
-
{% btn All Screens, :xxs %}
|
157
|
-
{% btn Tablets, :x1_xxs %}
|
158
|
-
{% btn Laptops, :x2_xxs %}
|
159
|
-
{% btn Wide Screens, :x3_xxs %}
|
160
|
-
{% btn Giant Screens, :x4_xxs %}
|
161
|
-
</div>
|
162
|
-
|
163
|
-
## X-Small, Responsive Buttons
|
164
|
-
<div class="box-padding align-center">
|
165
|
-
{% btn All Screens, :xs %}
|
166
|
-
{% btn Tablets, :x1_xs %}
|
167
|
-
{% btn Laptops, :x2_xs %}
|
168
|
-
{% btn Wide Screens, :x3_xs %}
|
169
|
-
{% btn Giant Screens, :x4_xs %}
|
170
|
-
</div>
|
171
|
-
|
172
|
-
## Small, Responsive Buttons
|
173
|
-
<div class="box-padding align-center">
|
174
|
-
{% btn All Screens, :sm %}
|
175
|
-
{% btn Tablets, :x1_sm %}
|
176
|
-
{% btn Laptops, :x2_sm %}
|
177
|
-
{% btn Wide Screens, :x3_sm %}
|
178
|
-
{% btn Giant Screens, :x4_sm %}
|
179
|
-
</div>
|
180
|
-
|
181
|
-
## Medium, Responsive Buttons (Default Size)
|
182
|
-
<div class="box-padding align-center">
|
183
|
-
{% btn All Screens %}
|
184
|
-
{% btn Tablets, :sm :x1_md %}
|
185
|
-
{% btn Laptops, :sm :x2_md %}
|
186
|
-
{% btn Wide Screens, :sm :x3_md %}
|
187
|
-
{% btn Giant Screens, :sm :x4_md %}
|
188
|
-
</div>
|
189
|
-
|
190
|
-
---
|
191
|
-
|
192
|
-
{% include css-stats.html %}
|