2017-07-29 22:16:31 +00:00
---
title: File upload
layout: documentation
doc-tab: form
2017-07-29 22:46:27 +00:00
doc-subtab: file
2018-04-09 15:15:58 +00:00
breadcrumb:
- home
- documentation
- form
- form-file
2017-07-29 22:16:31 +00:00
file_name: "Screen Shot 2017-07-29 at 15.54.25.png"
2017-10-17 09:28:59 +00:00
variables_keys:
- file-border-color
- file-radius
- file-cta-background-color
- file-cta-color
- file-cta-hover-color
- file-cta-active-color
- file-name-border-color
- file-name-border-style
- file-name-border-width
- file-name-max-width
2018-04-09 15:15:58 +00:00
meta:
experimental: true
colors: true
sizes: true
variables: true
2017-07-29 22:16:31 +00:00
---
{% capture file %}
< div class = "file" >
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Choose a file…
< / span >
< / span >
< / label >
< / div >
{% endcapture %}
2017-07-29 22:46:27 +00:00
{% capture file_name %}
< div class = "file has-name" >
2017-07-29 22:16:31 +00:00
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Choose a file…
< / span >
< / span >
2017-07-29 22:46:27 +00:00
< span class = "file-name" >
2017-07-29 22:16:31 +00:00
{{ page.file_name }}
< / span >
< / label >
< / div >
{% endcapture %}
2017-07-29 23:22:26 +00:00
{% capture file_name_right %}
< div class = "file has-name is-right" >
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 23:22:26 +00:00
< / span >
< span class = "file-label" >
Choose a file…
< / span >
< / span >
< span class = "file-name" >
{{ page.file_name }}
< / span >
< / label >
< / div >
{% endcapture %}
{% capture file_name_fullwidth %}
< div class = "file has-name is-fullwidth" >
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 23:22:26 +00:00
< / span >
< span class = "file-label" >
Choose a file…
< / span >
< / span >
< span class = "file-name" >
{{ page.file_name }}
< / span >
< / label >
< / div >
{% endcapture %}
2017-08-07 18:49:24 +00:00
{% capture file_boxed %}
< div class = "file is-boxed" >
2017-07-29 22:16:31 +00:00
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Choose a file…
< / span >
< / span >
< / label >
< / div >
{% endcapture %}
2017-08-07 18:49:24 +00:00
{% capture file_boxed_name %}
< div class = "file has-name is-boxed" >
2017-07-29 22:16:31 +00:00
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Choose a file…
< / span >
< / span >
2017-07-29 22:46:27 +00:00
< span class = "file-name" >
2017-07-29 22:16:31 +00:00
{{ page.file_name }}
< / span >
< / label >
< / div >
{% endcapture %}
2017-07-29 23:06:32 +00:00
{% capture file_colors %}
< div class = "field" >
< div class = "file is-primary" >
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 23:06:32 +00:00
< / span >
< span class = "file-label" >
Primary file…
< / span >
< / span >
< / label >
< / div >
< / div >
< div class = "field" >
< div class = "file is-info has-name" >
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 23:06:32 +00:00
< / span >
< span class = "file-label" >
Info file…
< / span >
< / span >
< span class = "file-name" >
{{ page.file_name }}
< / span >
< / label >
< / div >
< / div >
< div class = "field" >
2017-08-07 18:49:24 +00:00
< div class = "file is-warning is-boxed" >
2017-07-29 23:06:32 +00:00
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-cloud-upload-alt" > < / i >
2017-07-29 23:06:32 +00:00
< / span >
< span class = "file-label" >
Warning file…
< / span >
< / span >
< / label >
< / div >
< / div >
< div class = "field" >
2017-08-07 18:49:24 +00:00
< div class = "file is-danger has-name is-boxed" >
2017-07-29 23:06:32 +00:00
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-cloud-upload-alt" > < / i >
2017-07-29 23:06:32 +00:00
< / span >
< span class = "file-label" >
Danger file…
< / span >
< / span >
< span class = "file-name" >
{{ page.file_name }}
< / span >
< / label >
< / div >
< / div >
{% endcapture %}
2017-07-29 22:16:31 +00:00
{% capture file_sizes %}
< div class = "field" >
< div class = "file is-small" >
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Small file…
< / span >
< / span >
< / label >
< / div >
< / div >
< div class = "field" >
< div class = "file" >
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Normal file…
< / span >
< / span >
< / label >
< / div >
< / div >
< div class = "field" >
< div class = "file is-medium" >
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Medium file…
< / span >
< / span >
< / label >
< / div >
< / div >
< div class = "field" >
< div class = "file is-large" >
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Large file…
< / span >
< / span >
< / label >
< / div >
< / div >
{% endcapture %}
2017-07-29 22:46:27 +00:00
{% capture file_sizes_name %}
2017-07-29 22:16:31 +00:00
< div class = "field" >
2017-07-29 22:46:27 +00:00
< div class = "file is-small has-name" >
2017-07-29 22:16:31 +00:00
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Small file…
< / span >
< / span >
2017-07-29 22:46:27 +00:00
< span class = "file-name" >
2017-07-29 22:16:31 +00:00
{{ page.file_name }}
< / span >
< / label >
< / div >
< / div >
< div class = "field" >
2017-07-29 22:46:27 +00:00
< div class = "file has-name" >
2017-07-29 22:16:31 +00:00
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Normal file…
< / span >
< / span >
2017-07-29 22:46:27 +00:00
< span class = "file-name" >
2017-07-29 22:16:31 +00:00
{{ page.file_name }}
< / span >
< / label >
< / div >
< / div >
< div class = "field" >
2017-07-29 22:46:27 +00:00
< div class = "file is-medium has-name" >
2017-07-29 22:16:31 +00:00
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Medium file…
< / span >
< / span >
2017-07-29 22:46:27 +00:00
< span class = "file-name" >
2017-07-29 22:16:31 +00:00
{{ page.file_name }}
< / span >
< / label >
< / div >
< / div >
< div class = "field" >
2017-07-29 22:46:27 +00:00
< div class = "file is-large has-name" >
2017-07-29 22:16:31 +00:00
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Large file…
< / span >
< / span >
2017-07-29 22:46:27 +00:00
< span class = "file-name" >
2017-07-29 22:16:31 +00:00
{{ page.file_name }}
< / span >
< / label >
< / div >
< / div >
{% endcapture %}
2017-08-07 18:49:24 +00:00
{% capture file_sizes_boxed %}
2017-07-29 22:16:31 +00:00
< div class = "field" >
2017-08-07 18:49:24 +00:00
< div class = "file is-small is-boxed" >
2017-07-29 22:16:31 +00:00
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Small file…
< / span >
< / span >
< / label >
< / div >
< / div >
< div class = "field" >
2017-08-07 18:49:24 +00:00
< div class = "file is-boxed" >
2017-07-29 22:16:31 +00:00
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Normal file…
< / span >
< / span >
< / label >
< / div >
< / div >
< div class = "field" >
2017-08-07 18:49:24 +00:00
< div class = "file is-medium is-boxed" >
2017-07-29 22:16:31 +00:00
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Medium file…
< / span >
< / span >
< / label >
< / div >
< / div >
< div class = "field" >
2017-08-07 18:49:24 +00:00
< div class = "file is-large is-boxed" >
2017-07-29 22:16:31 +00:00
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Large file…
< / span >
< / span >
< / label >
< / div >
< / div >
{% endcapture %}
2017-08-07 18:49:24 +00:00
{% capture file_centered %}
< div class = "field" >
< div class = "file is-centered is-boxed is-success has-name" >
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-08-07 18:49:24 +00:00
< / span >
< span class = "file-label" >
Centered file…
< / span >
< / span >
< span class = "file-name" >
{{ page.file_name }}
< / span >
< / label >
< / div >
< / div >
{% endcapture %}
{% capture file_right %}
< div class = "field" >
< div class = "file is-right is-info" >
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-08-07 18:49:24 +00:00
< / span >
< span class = "file-label" >
Right file…
< / span >
< / span >
< span class = "file-name" >
{{ page.file_name }}
< / span >
< / label >
< / div >
< / div >
{% endcapture %}
{% capture file_sizes_boxed_name %}
2017-07-29 22:16:31 +00:00
< div class = "field" >
2017-08-07 18:49:24 +00:00
< div class = "file is-small is-boxed has-name" >
2017-07-29 22:16:31 +00:00
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Small file…
< / span >
< / span >
2017-07-29 22:46:27 +00:00
< span class = "file-name" >
2017-07-29 22:16:31 +00:00
{{ page.file_name }}
< / span >
< / label >
< / div >
< / div >
< div class = "field" >
2017-08-07 18:49:24 +00:00
< div class = "file is-boxed has-name" >
2017-07-29 22:16:31 +00:00
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Normal file…
< / span >
< / span >
2017-07-29 22:46:27 +00:00
< span class = "file-name" >
2017-07-29 22:16:31 +00:00
{{ page.file_name }}
< / span >
< / label >
< / div >
< / div >
< div class = "field" >
2017-08-07 18:49:24 +00:00
< div class = "file is-medium is-boxed has-name" >
2017-07-29 22:16:31 +00:00
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Medium file…
< / span >
< / span >
2017-07-29 22:46:27 +00:00
< span class = "file-name" >
2017-07-29 22:16:31 +00:00
{{ page.file_name }}
< / span >
< / label >
< / div >
< / div >
< div class = "field" >
2017-08-07 18:49:24 +00:00
< div class = "file is-large is-boxed has-name" >
2017-07-29 22:16:31 +00:00
< label class = "file-label" >
< input class = "file-input" type = "file" name = "resume" >
< span class = "file-cta" >
< span class = "file-icon" >
2018-01-10 16:30:23 +00:00
< i class = "fas fa-upload" > < / i >
2017-07-29 22:16:31 +00:00
< / span >
< span class = "file-label" >
Large file…
< / span >
< / span >
2017-07-29 22:46:27 +00:00
< span class = "file-name" >
2017-07-29 22:16:31 +00:00
{{ page.file_name }}
< / span >
< / label >
< / div >
< / div >
{% endcapture %}
2018-04-09 15:15:58 +00:00
< div class = "content" >
< p >
The < code > .file< / code > element is a simple < strong > interactive label< / strong > that wraps an < code > < input type="file"> < / code > . It comprises several sub-elements:
< / p >
< ul >
< li >
< code > .file< / code > the main < strong > container< / strong >
2017-07-29 22:46:27 +00:00
< ul >
< li >
2018-04-09 15:15:58 +00:00
< code > .file-label< / code > the actual < strong > interactive< / strong > and clickable part of the element
2017-07-29 22:46:27 +00:00
< ul >
< li >
2018-04-09 15:15:58 +00:00
< code > .file-input< / code > the < strong > native< / strong > file input, hidden for styling purposes
< / li >
< li >
< code > .file-cta< / code > the upload < strong > call-to-action< / strong >
2017-07-29 22:46:27 +00:00
< ul >
< li >
2018-04-09 15:15:58 +00:00
< code > .file-icon< / code > an optional < strong > upload< / strong > icon
2017-07-29 22:46:27 +00:00
< / li >
< li >
2018-04-09 15:15:58 +00:00
< code > .file-label< / code > the "Choose a file…" text
2017-07-29 22:46:27 +00:00
< / li >
< / ul >
< / li >
2018-04-09 15:15:58 +00:00
< li >
< code > .file-name< / code > a container for the < strong > chosen file< / strong > name
< / li >
2017-07-29 22:46:27 +00:00
< / ul >
< / li >
< / ul >
2018-04-09 15:15:58 +00:00
< / li >
< / ul >
< / div >
2017-07-29 22:16:31 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/snippet.html content=file %}
2017-07-29 22:16:31 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/anchor.html name="Modifiers" %}
2017-07-29 23:22:26 +00:00
2018-04-09 15:15:58 +00:00
< div class = "columns" >
< div class = "column" >
< div class = "content" >
< p >
With the < code > .has-name< / code > modifier combined with the < code > .file-name< / code > element, you can add a < strong > placeholder< / strong > for the selected file name.
< / p >
2017-07-29 23:22:26 +00:00
< / div >
2018-04-09 15:15:58 +00:00
< div class = "bd-example" >
{{ file_name }}
2017-07-29 22:16:31 +00:00
< / div >
2018-04-09 15:15:58 +00:00
< / div >
< div class = "column highlight-full" >
{% highlight html %}{{ file_name }}{% endhighlight %}
< / div >
< / div >
2017-07-29 22:16:31 +00:00
2018-04-09 15:15:58 +00:00
< div class = "columns" >
< div class = "column" >
< div class = "content" >
< p >
You can move the CTA to the < strong > right side< / strong > with the < code > .is-right< / code > modifier.
< / p >
2017-07-29 22:16:31 +00:00
< / div >
2018-04-09 15:15:58 +00:00
< div class = "bd-example" >
{{ file_name_right }}
< / div >
< / div >
< div class = "column highlight-full" >
{% highlight html %}{{ file_name_right }}{% endhighlight %}
< / div >
< / div >
2017-07-29 23:06:32 +00:00
2018-04-09 15:15:58 +00:00
< div class = "columns" >
< div class = "column" >
2017-08-30 21:21:30 +00:00
< div class = "content" >
< p >
2018-04-09 15:15:58 +00:00
You can also < strong > expand< / strong > the name to fill up the space with the < code > .is-fullwidth< / code > modifier.
2017-08-30 21:21:30 +00:00
< / p >
2017-07-29 23:06:32 +00:00
< / div >
2018-04-09 15:15:58 +00:00
< div class = "bd-example" >
{{ file_name_fullwidth }}
< / div >
< / div >
< div class = "column highlight-full" >
{% highlight html %}{{ file_name_fullwidth }}{% endhighlight %}
< / div >
< / div >
2017-07-29 22:16:31 +00:00
2018-04-09 15:15:58 +00:00
< div class = "columns" >
< div class = "column" >
< div class = "content" >
< p >
You can have a < strong > boxed block< / strong > with the < code > .is-boxed< / code > modifier.
< / p >
< / div >
< div class = "bd-example" >
{{ file_boxed }}
< / div >
< / div >
< div class = "column highlight-full" >
{% highlight html %}{{ file_boxed }}{% endhighlight %}
< / div >
< / div >
2017-07-29 22:16:31 +00:00
2018-04-09 15:15:58 +00:00
< div class = "columns" >
< div class = "column" >
2017-07-29 22:46:27 +00:00
< div class = "content" >
< p >
2018-04-09 15:15:58 +00:00
You can < strong > combine< / strong > < code > .has-name< / code > and < code > .is-boxed< / code > .
2017-07-29 22:46:27 +00:00
< / p >
< / div >
2018-04-09 15:15:58 +00:00
< div class = "bd-example" >
{{ file_boxed_name }}
< / div >
< / div >
< div class = "column highlight-full" >
{% highlight html %}{{ file_boxed_name }}{% endhighlight %}
< / div >
< / div >
2017-07-29 22:46:27 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/anchor.html name="Colors" %}
2018-04-09 15:15:58 +00:00
< div class = "content" >
< p >
You can style the file element by appending one of the < strong > {{ site.data.colors.derived | size }} color modifiers< / strong > :
< / p >
< ul >
{% for color in site.data.colors.derived %}
< li >
< code > is-{{ color.id }}< / code >
< / li >
{% endfor %}
< / ul >
< / div >
2017-07-29 22:16:31 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/snippet.html content=file_colors clipped=true %}
2018-04-09 15:15:58 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/anchor.html name="Sizes" %}
2018-04-09 15:15:58 +00:00
< div class = "content" >
< p >
You can append one of < strong > 3 additional sizes< / strong > :
< / p >
< ul >
< li >
< code > .is-small< / code >
< / li >
< li >
< code > .is-medium< / code >
< / li >
< li >
< code > .is-large< / code >
< / li >
< / ul >
< / div >
2017-07-29 22:16:31 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/snippet.html content=file_sizes clipped=true %}
2017-08-07 18:49:24 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/snippet.html content=file_sizes_name clipped=true %}
2017-08-07 18:49:24 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/snippet.html content=file_sizes_boxed clipped=true %}
2017-08-07 18:49:24 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/snippet.html content=file_sizes_boxed_name clipped=true %}
2017-08-07 18:49:24 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/anchor.html name="Alignment" %}
2017-07-29 22:16:31 +00:00
2018-04-09 15:15:58 +00:00
< div class = "content" >
< p >
You can < strong > align< / strong > the file input:
< / p >
< ul >
< li >
to the < strong > center< / strong > with the < code > is-centered< / code > modifier
< / li >
< li >
to the < strong > right< / strong > with the < code > is-right< / code > modifier
< / li >
< / ul >
< / div >
2017-07-29 22:46:27 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/snippet.html content=file_centered %}
2017-07-29 22:46:27 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/snippet.html content=file_right %}
2017-07-29 22:46:27 +00:00
2018-04-09 21:25:26 +00:00
{% include elements/anchor.html name="JavaScript" %}
2017-10-17 09:28:59 +00:00
2018-04-09 15:15:58 +00:00
< div class = "content" >
< p >
A file upload input requires JavaScript to < strong > retrieve< / strong > the < strong > selected file name< / strong > .
< br >
User < a href = "https://github.com/chintanbanugaria" > < strong > @chintanbanugaria< / strong > < / a > on GitHub < a href = "https://github.com/jgthms/bulma/issues/280#issuecomment-294099510" > has provided< / a > a simple solution < a href = "https://jsfiddle.net/chintanbanugaria/uzva5byy/" > on JSFiddle< / a > .
< / p >
< / div >
2018-04-09 21:25:26 +00:00
{% include elements/anchor.html name="Variables" %}
2018-04-09 15:15:58 +00:00
< div class = "content" >
< p >
You can use < a href = "{{ site.data.meta.github | append: '/blob/master/sass/elements/form.sass#L25,L36' }}" target = "_blank" > these variables< / a > to < strong > customize< / strong > this element. Simply set one or multiple of these variables < em > before< / em > importing Bulma. < a href = "{{ site.url }}/documentation/overview/customize/" > Learn how< / a > .
< / p >
< / div >
2017-10-17 09:28:59 +00:00
2018-04-09 15:15:58 +00:00
< table class = "table is-bordered" >
< thead >
< tr >
< th > Name< / th >
< th > Default value< / th >
< / tr >
< / thead >
< tfoot >
< tr >
< th > Name< / th >
< th > Default value< / th >
< / tr >
< / tfoot >
< tbody >
{% for key in page.variables_keys %}
{% assign variable = site.data.variables.elements.form.vars[key] %}
< tr >
< td >
< code > {{ variable.name }}< / code >
< / td >
< td >
< code > {{ variable.value }}< / code >
< / td >
< / tr >
{% endfor %}
< / tbody >
< / table >