mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-28 12:24:23 +00:00
Add field element
This commit is contained in:
parent
d5865cd4eb
commit
9fc8cdf225
@ -1800,7 +1800,7 @@ a.box:active {
|
|||||||
.help {
|
.help {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
margin-top: 5px;
|
margin-top: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.help.is-white {
|
.help.is-white {
|
||||||
@ -1839,113 +1839,138 @@ a.box:active {
|
|||||||
color: #ff3860;
|
color: #ff3860;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.field:not(:last-child) {
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field.has-addons {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field.has-addons .control {
|
||||||
|
margin-right: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field.has-addons .control:hover {
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field.has-addons .control:focus, .field.has-addons .control:active {
|
||||||
|
z-index: 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field.has-addons .control:first-child .button,
|
||||||
|
.field.has-addons .control:first-child .input,
|
||||||
|
.field.has-addons .control:first-child .select select {
|
||||||
|
border-bottom-left-radius: 3px;
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field.has-addons .control:last-child .button,
|
||||||
|
.field.has-addons .control:last-child .input,
|
||||||
|
.field.has-addons .control:last-child .select select {
|
||||||
|
border-bottom-right-radius: 3px;
|
||||||
|
border-top-right-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field.has-addons .control .button,
|
||||||
|
.field.has-addons .control .input,
|
||||||
|
.field.has-addons .control .select select {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field.has-addons .control.is-expanded {
|
||||||
|
flex-grow: 1;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field.has-addons.has-addons-centered {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field.has-addons.has-addons-right {
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field.has-addons.has-addons-fullwidth .control {
|
||||||
|
flex-grow: 1;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field.is-grouped {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field.is-grouped > .control {
|
||||||
|
flex-basis: 0;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field.is-grouped > .control:not(:last-child) {
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-right: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field.is-grouped > .control.is-expanded {
|
||||||
|
flex-grow: 1;
|
||||||
|
flex-shrink: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field.is-grouped.is-grouped-centered {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field.is-grouped.is-grouped-right {
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 769px) {
|
||||||
|
.field.is-horizontal {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 768px) {
|
||||||
.control-label {
|
.field-label {
|
||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 769px) {
|
@media screen and (min-width: 769px) {
|
||||||
.control-label {
|
.field-label {
|
||||||
flex-basis: 0;
|
flex-basis: 0;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
margin-right: 1.5em;
|
margin-right: 1.5rem;
|
||||||
padding-top: 0.5em;
|
padding-top: 0.375em;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 769px) {
|
||||||
|
.field-body {
|
||||||
|
display: flex;
|
||||||
|
flex-basis: 0;
|
||||||
|
flex-grow: 5;
|
||||||
|
flex-shrink: 1;
|
||||||
|
}
|
||||||
|
.field-body .field {
|
||||||
|
flex-grow: 1;
|
||||||
|
flex-shrink: 1;
|
||||||
|
}
|
||||||
|
.field-body .field:not(:last-child) {
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-right: 0.75rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.control {
|
.control {
|
||||||
position: relative;
|
position: relative;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control:not(:last-child) {
|
|
||||||
margin-bottom: 0.75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.has-addons {
|
|
||||||
display: flex;
|
|
||||||
justify-content: flex-start;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.has-addons .button,
|
|
||||||
.control.has-addons .input,
|
|
||||||
.control.has-addons .select {
|
|
||||||
border-radius: 0;
|
|
||||||
margin-right: -1px;
|
|
||||||
width: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.has-addons .button:hover,
|
|
||||||
.control.has-addons .input:hover,
|
|
||||||
.control.has-addons .select:hover {
|
|
||||||
z-index: 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.has-addons .button:focus, .control.has-addons .button:active,
|
|
||||||
.control.has-addons .input:focus,
|
|
||||||
.control.has-addons .input:active,
|
|
||||||
.control.has-addons .select:focus,
|
|
||||||
.control.has-addons .select:active {
|
|
||||||
z-index: 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.has-addons .button:first-child,
|
|
||||||
.control.has-addons .input:first-child,
|
|
||||||
.control.has-addons .select:first-child {
|
|
||||||
border-radius: 3px 0 0 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.has-addons .button:first-child select,
|
|
||||||
.control.has-addons .input:first-child select,
|
|
||||||
.control.has-addons .select:first-child select {
|
|
||||||
border-radius: 3px 0 0 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.has-addons .button:last-child,
|
|
||||||
.control.has-addons .input:last-child,
|
|
||||||
.control.has-addons .select:last-child {
|
|
||||||
border-radius: 0 3px 3px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.has-addons .button:last-child select,
|
|
||||||
.control.has-addons .input:last-child select,
|
|
||||||
.control.has-addons .select:last-child select {
|
|
||||||
border-radius: 0 3px 3px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.has-addons .button.is-expanded,
|
|
||||||
.control.has-addons .input.is-expanded,
|
|
||||||
.control.has-addons .select.is-expanded {
|
|
||||||
flex-grow: 1;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.has-addons .select select:hover {
|
|
||||||
z-index: 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.has-addons .select select:focus, .control.has-addons .select select:active {
|
|
||||||
z-index: 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.has-addons.has-addons-centered {
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.has-addons.has-addons-right {
|
|
||||||
justify-content: flex-end;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.has-addons.has-addons-fullwidth .button,
|
|
||||||
.control.has-addons.has-addons-fullwidth .input,
|
|
||||||
.control.has-addons.has-addons-fullwidth .select {
|
|
||||||
flex-grow: 1;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.has-icon .icon {
|
.control.has-icon .icon {
|
||||||
color: #dbdbdb;
|
color: #dbdbdb;
|
||||||
height: 2.25em;
|
height: 2.25em;
|
||||||
@ -1988,46 +2013,6 @@ a.box:active {
|
|||||||
padding-right: 2.25em;
|
padding-right: 2.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control.is-grouped {
|
|
||||||
display: flex;
|
|
||||||
justify-content: flex-start;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.is-grouped > .control {
|
|
||||||
flex-basis: 0;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.is-grouped > .control:not(:last-child) {
|
|
||||||
margin-bottom: 0;
|
|
||||||
margin-right: 0.75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.is-grouped > .control.is-expanded {
|
|
||||||
flex-grow: 1;
|
|
||||||
flex-shrink: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.is-grouped.is-grouped-centered {
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.is-grouped.is-grouped-right {
|
|
||||||
justify-content: flex-end;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (min-width: 769px) {
|
|
||||||
.control.is-horizontal {
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
.control.is-horizontal > .control {
|
|
||||||
display: flex;
|
|
||||||
flex-basis: 0;
|
|
||||||
flex-grow: 5;
|
|
||||||
flex-shrink: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.control.is-loading:after {
|
.control.is-loading:after {
|
||||||
animation: spinAround 500ms infinite linear;
|
animation: spinAround 500ms infinite linear;
|
||||||
border: 2px solid #dbdbdb;
|
border: 2px solid #dbdbdb;
|
||||||
@ -2040,8 +2025,8 @@ a.box:active {
|
|||||||
position: relative;
|
position: relative;
|
||||||
width: 1rem;
|
width: 1rem;
|
||||||
position: absolute !important;
|
position: absolute !important;
|
||||||
right: 0.75em;
|
right: 0.625em;
|
||||||
top: 0.75em;
|
top: 0.625em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
|
@ -32,45 +32,64 @@ doc-subtab: form
|
|||||||
|
|
||||||
{% capture form_example %}
|
{% capture form_example %}
|
||||||
<label class="label">Name</label>
|
<label class="label">Name</label>
|
||||||
<p class="control">
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<input class="input" type="text" placeholder="Text input">
|
<input class="input" type="text" placeholder="Text input">
|
||||||
</p>
|
</p>
|
||||||
<label class="label">Username</label>
|
</div>
|
||||||
<p class="control has-icon has-icon-right">
|
|
||||||
|
<div class="field">
|
||||||
|
<label class="label">Username</label>
|
||||||
|
<p class="control has-icon has-icon-right">
|
||||||
<input class="input is-success" type="text" placeholder="Text input" value="bulma">
|
<input class="input is-success" type="text" placeholder="Text input" value="bulma">
|
||||||
<span class="icon is-small">
|
<span class="icon is-small">
|
||||||
<i class="fa fa-check"></i>
|
<i class="fa fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="help is-success">This username is available</span>
|
</p>
|
||||||
</p>
|
<p class="help is-success">This username is available</p>
|
||||||
<label class="label">Email</label>
|
</div>
|
||||||
<p class="control has-icon has-icon-right">
|
|
||||||
|
<div class="field">
|
||||||
|
<label class="label">Email</label>
|
||||||
|
<p class="control has-icon has-icon-right">
|
||||||
<input class="input is-danger" type="text" placeholder="Email input" value="hello@">
|
<input class="input is-danger" type="text" placeholder="Email input" value="hello@">
|
||||||
<span class="icon is-small">
|
<span class="icon is-small">
|
||||||
<i class="fa fa-warning"></i>
|
<i class="fa fa-warning"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="help is-danger">This email is invalid</span>
|
</p>
|
||||||
</p>
|
<p class="help is-danger">This email is invalid</p>
|
||||||
<label class="label">Subject</label>
|
</div>
|
||||||
<p class="control">
|
|
||||||
|
<div class="field">
|
||||||
|
<label class="label">Subject</label>
|
||||||
|
<p class="control">
|
||||||
<span class="select">
|
<span class="select">
|
||||||
<select>
|
<select>
|
||||||
<option>Select dropdown</option>
|
<option>Select dropdown</option>
|
||||||
<option>With options</option>
|
<option>With options</option>
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<label class="label">Message</label>
|
</div>
|
||||||
<p class="control">
|
|
||||||
|
<div class="field">
|
||||||
|
<label class="label">Message</label>
|
||||||
|
<p class="control">
|
||||||
<textarea class="textarea" placeholder="Textarea"></textarea>
|
<textarea class="textarea" placeholder="Textarea"></textarea>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox">
|
<input type="checkbox">
|
||||||
Remember me
|
Remember me
|
||||||
</label>
|
</label>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<label class="radio">
|
<label class="radio">
|
||||||
<input type="radio" name="question">
|
<input type="radio" name="question">
|
||||||
Yes
|
Yes
|
||||||
@ -79,8 +98,10 @@ doc-subtab: form
|
|||||||
<input type="radio" name="question">
|
<input type="radio" name="question">
|
||||||
No
|
No
|
||||||
</label>
|
</label>
|
||||||
</p>
|
</p>
|
||||||
<div class="control is-grouped">
|
</div>
|
||||||
|
|
||||||
|
<div class="field is-grouped">
|
||||||
<p class="control">
|
<p class="control">
|
||||||
<button class="button is-primary">Submit</button>
|
<button class="button is-primary">Submit</button>
|
||||||
</p>
|
</p>
|
||||||
@ -105,21 +126,31 @@ doc-subtab: form
|
|||||||
|
|
||||||
<h3 class="title">Colors</h3>
|
<h3 class="title">Colors</h3>
|
||||||
{% capture colors_example %}
|
{% capture colors_example %}
|
||||||
<p class="control">
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<input class="input is-primary" type="text" placeholder="Primary input">
|
<input class="input is-primary" type="text" placeholder="Primary input">
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<input class="input is-info" type="text" placeholder="Info input">
|
<input class="input is-info" type="text" placeholder="Info input">
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<input class="input is-success" type="text" placeholder="Success input">
|
<input class="input is-success" type="text" placeholder="Success input">
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<input class="input is-warning" type="text" placeholder="Warning input">
|
<input class="input is-warning" type="text" placeholder="Warning input">
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<input class="input is-danger" type="text" placeholder="Danger input">
|
<input class="input is-danger" type="text" placeholder="Danger input">
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column is-half">
|
<div class="column is-half">
|
||||||
@ -135,50 +166,66 @@ doc-subtab: form
|
|||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
{% capture sizes_example %}
|
{% capture sizes_example %}
|
||||||
<p class="control">
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<input class="input is-small" type="text" placeholder="Small input">
|
<input class="input is-small" type="text" placeholder="Small input">
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<input class="input" type="text" placeholder="Normal input">
|
<input class="input" type="text" placeholder="Normal input">
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<input class="input is-medium" type="text" placeholder="Medium input">
|
<input class="input is-medium" type="text" placeholder="Medium input">
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<input class="input is-large" type="text" placeholder="Large input">
|
<input class="input is-large" type="text" placeholder="Large input">
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<span class="select is-small">
|
<span class="select is-small">
|
||||||
<select>
|
<select>
|
||||||
<option>Select dropdown</option>
|
<option>Select dropdown</option>
|
||||||
<option>With options</option>
|
<option>With options</option>
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<span class="select">
|
<span class="select">
|
||||||
<select>
|
<select>
|
||||||
<option>Select dropdown</option>
|
<option>Select dropdown</option>
|
||||||
<option>With options</option>
|
<option>With options</option>
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<span class="select is-medium">
|
<span class="select is-medium">
|
||||||
<select>
|
<select>
|
||||||
<option>Select dropdown</option>
|
<option>Select dropdown</option>
|
||||||
<option>With options</option>
|
<option>With options</option>
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<span class="select is-large">
|
<span class="select is-large">
|
||||||
<select>
|
<select>
|
||||||
<option>Select dropdown</option>
|
<option>Select dropdown</option>
|
||||||
<option>With options</option>
|
<option>With options</option>
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
<h3 class="title">Sizes</h3>
|
<h3 class="title">Sizes</h3>
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
@ -197,12 +244,16 @@ doc-subtab: form
|
|||||||
<h3 class="title">States</h3>
|
<h3 class="title">States</h3>
|
||||||
<h4 class="subtitle">Normal</h4>
|
<h4 class="subtitle">Normal</h4>
|
||||||
{% capture normal_example %}
|
{% capture normal_example %}
|
||||||
<p class="control">
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<input class="input" type="text" placeholder="Normal input">
|
<input class="input" type="text" placeholder="Normal input">
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<textarea class="textarea" placeholder="Normal textarea"></textarea>
|
<textarea class="textarea" placeholder="Normal textarea"></textarea>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column is-half">
|
<div class="column is-half">
|
||||||
@ -217,12 +268,16 @@ doc-subtab: form
|
|||||||
|
|
||||||
<h4 class="subtitle">Hover</h4>
|
<h4 class="subtitle">Hover</h4>
|
||||||
{% capture hover_example %}
|
{% capture hover_example %}
|
||||||
<p class="control">
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<input class="input is-hovered" type="text" placeholder="Hovered input">
|
<input class="input is-hovered" type="text" placeholder="Hovered input">
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<textarea class="textarea is-hovered" placeholder="Hovered textarea"></textarea>
|
<textarea class="textarea is-hovered" placeholder="Hovered textarea"></textarea>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column is-half">
|
<div class="column is-half">
|
||||||
@ -237,12 +292,16 @@ doc-subtab: form
|
|||||||
|
|
||||||
<h4 class="subtitle">Focus</h4>
|
<h4 class="subtitle">Focus</h4>
|
||||||
{% capture focus_example %}
|
{% capture focus_example %}
|
||||||
<p class="control">
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<input class="input is-focused" type="text" placeholder="Focused input">
|
<input class="input is-focused" type="text" placeholder="Focused input">
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<textarea class="textarea is-focused" placeholder="Focused textarea"></textarea>
|
<textarea class="textarea is-focused" placeholder="Focused textarea"></textarea>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column is-half">
|
<div class="column is-half">
|
||||||
@ -257,12 +316,16 @@ doc-subtab: form
|
|||||||
|
|
||||||
<h4 class="subtitle">Loading</h4>
|
<h4 class="subtitle">Loading</h4>
|
||||||
{% capture loading_example %}
|
{% capture loading_example %}
|
||||||
<p class="control is-loading">
|
<div class="field">
|
||||||
|
<p class="control is-loading">
|
||||||
<input class="input" type="text" placeholder="Loading input">
|
<input class="input" type="text" placeholder="Loading input">
|
||||||
</p>
|
</p>
|
||||||
<p class="control is-loading">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control is-loading">
|
||||||
<textarea class="textarea" placeholder="Loading textarea"></textarea>
|
<textarea class="textarea" placeholder="Loading textarea"></textarea>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column is-half">
|
<div class="column is-half">
|
||||||
@ -277,19 +340,26 @@ doc-subtab: form
|
|||||||
|
|
||||||
<h4 class="subtitle">Disabled</h4>
|
<h4 class="subtitle">Disabled</h4>
|
||||||
{% capture disabled_example %}
|
{% capture disabled_example %}
|
||||||
<p class="control">
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<input class="input" type="text" placeholder="Disabled input" disabled>
|
<input class="input" type="text" placeholder="Disabled input" disabled>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<textarea class="textarea" placeholder="Disabled textarea" disabled></textarea>
|
<textarea class="textarea" placeholder="Disabled textarea" disabled></textarea>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<label class="checkbox is-disabled">
|
<label class="checkbox is-disabled">
|
||||||
<input type="checkbox" disabled>
|
<input type="checkbox" disabled>
|
||||||
Remember me
|
Remember me
|
||||||
</label>
|
</label>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<label class="radio is-disabled">
|
<label class="radio is-disabled">
|
||||||
<input type="radio" name="question" disabled>
|
<input type="radio" name="question" disabled>
|
||||||
Yes
|
Yes
|
||||||
@ -298,8 +368,9 @@ doc-subtab: form
|
|||||||
<input type="radio" name="question" disabled>
|
<input type="radio" name="question" disabled>
|
||||||
No
|
No
|
||||||
</label>
|
</label>
|
||||||
</p>
|
</p>
|
||||||
<div class="control is-grouped">
|
</div>
|
||||||
|
<div class="field is-grouped">
|
||||||
<p class="control">
|
<p class="control">
|
||||||
<button class="button is-primary" disabled>Submit</button>
|
<button class="button is-primary" disabled>Submit</button>
|
||||||
</p>
|
</p>
|
||||||
@ -321,23 +392,29 @@ doc-subtab: form
|
|||||||
|
|
||||||
<h4 class="subtitle">With Font Awesome icons</h4>
|
<h4 class="subtitle">With Font Awesome icons</h4>
|
||||||
{% capture icons_example %}
|
{% capture icons_example %}
|
||||||
<p class="control has-icon">
|
<div class="field">
|
||||||
|
<p class="control has-icon">
|
||||||
<input class="input" type="email" placeholder="Email">
|
<input class="input" type="email" placeholder="Email">
|
||||||
<span class="icon is-small">
|
<span class="icon is-small">
|
||||||
<i class="fa fa-envelope"></i>
|
<i class="fa fa-envelope"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control has-icon">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control has-icon">
|
||||||
<input class="input" type="password" placeholder="Password">
|
<input class="input" type="password" placeholder="Password">
|
||||||
<span class="icon is-small">
|
<span class="icon is-small">
|
||||||
<i class="fa fa-lock"></i>
|
<i class="fa fa-lock"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control">
|
||||||
<button class="button is-success">
|
<button class="button is-success">
|
||||||
Login
|
Login
|
||||||
</button>
|
</button>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column is-half">
|
<div class="column is-half">
|
||||||
@ -351,66 +428,78 @@ doc-subtab: form
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% capture icons_sizes_example %}
|
{% capture icons_sizes_example %}
|
||||||
<p class="control has-icon">
|
<div class="field">
|
||||||
|
<p class="control has-icon">
|
||||||
<input class="input is-small" type="email" placeholder="Email">
|
<input class="input is-small" type="email" placeholder="Email">
|
||||||
<span class="icon is-small">
|
<span class="icon is-small">
|
||||||
<i class="fa fa-envelope"></i>
|
<i class="fa fa-envelope"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control has-icon">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control has-icon">
|
||||||
<input class="input" type="email" placeholder="Email">
|
<input class="input" type="email" placeholder="Email">
|
||||||
<span class="icon is-small">
|
<span class="icon is-small">
|
||||||
<i class="fa fa-envelope"></i>
|
<i class="fa fa-envelope"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control has-icon">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control has-icon">
|
||||||
<input class="input" type="email" placeholder="Email">
|
<input class="input" type="email" placeholder="Email">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fa fa-envelope"></i>
|
<i class="fa fa-envelope"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control has-icon">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control has-icon">
|
||||||
<input class="input is-medium" type="email" placeholder="Email">
|
<input class="input is-medium" type="email" placeholder="Email">
|
||||||
<span class="icon is-small">
|
<span class="icon is-small">
|
||||||
<i class="fa fa-envelope"></i>
|
<i class="fa fa-envelope"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control has-icon">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control has-icon">
|
||||||
<input class="input is-medium" type="email" placeholder="Email">
|
<input class="input is-medium" type="email" placeholder="Email">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fa fa-envelope"></i>
|
<i class="fa fa-envelope"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control has-icon">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control has-icon">
|
||||||
<input class="input is-medium" type="email" placeholder="Email">
|
<input class="input is-medium" type="email" placeholder="Email">
|
||||||
<span class="icon is-medium">
|
<span class="icon is-medium">
|
||||||
<i class="fa fa-envelope"></i>
|
<i class="fa fa-envelope"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control has-icon">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control has-icon">
|
||||||
<input class="input is-large" type="email" placeholder="Email">
|
<input class="input is-large" type="email" placeholder="Email">
|
||||||
<span class="icon is-small">
|
<span class="icon is-small">
|
||||||
<i class="fa fa-envelope"></i>
|
<i class="fa fa-envelope"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control has-icon">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control has-icon">
|
||||||
<input class="input is-large" type="email" placeholder="Email">
|
<input class="input is-large" type="email" placeholder="Email">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fa fa-envelope"></i>
|
<i class="fa fa-envelope"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control has-icon">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control has-icon">
|
||||||
<input class="input is-large" type="email" placeholder="Email">
|
<input class="input is-large" type="email" placeholder="Email">
|
||||||
<span class="icon is-medium">
|
<span class="icon is-medium">
|
||||||
<i class="fa fa-envelope"></i>
|
<i class="fa fa-envelope"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control has-icon">
|
</div>
|
||||||
<input class="input is-large" type="email" placeholder="Email">
|
|
||||||
<span class="icon is-large">
|
|
||||||
<i class="fa fa-envelope"></i>
|
|
||||||
</span>
|
|
||||||
</p>
|
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column is-half">
|
<div class="column is-half">
|
||||||
@ -432,30 +521,38 @@ doc-subtab: form
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% capture icons_sizes_right_example %}
|
{% capture icons_sizes_right_example %}
|
||||||
<p class="control has-icon has-icon-right">
|
<div class="field">
|
||||||
|
<p class="control has-icon has-icon-right">
|
||||||
<input class="input is-small" type="email" placeholder="Email">
|
<input class="input is-small" type="email" placeholder="Email">
|
||||||
<span class="icon is-small">
|
<span class="icon is-small">
|
||||||
<i class="fa fa-check"></i>
|
<i class="fa fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control has-icon has-icon-right">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control has-icon has-icon-right">
|
||||||
<input class="input" type="email" placeholder="Email">
|
<input class="input" type="email" placeholder="Email">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fa fa-check"></i>
|
<i class="fa fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control has-icon has-icon-right">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control has-icon has-icon-right">
|
||||||
<input class="input is-medium" type="email" placeholder="Email">
|
<input class="input is-medium" type="email" placeholder="Email">
|
||||||
<span class="icon is-medium">
|
<span class="icon is-medium">
|
||||||
<i class="fa fa-check"></i>
|
<i class="fa fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="control has-icon has-icon-right">
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<p class="control has-icon has-icon-right">
|
||||||
<input class="input is-large" type="email" placeholder="Email">
|
<input class="input is-large" type="email" placeholder="Email">
|
||||||
<span class="icon is-large">
|
<span class="icon is-large">
|
||||||
<i class="fa fa-check"></i>
|
<i class="fa fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column is-half">
|
<div class="column is-half">
|
||||||
@ -480,12 +577,16 @@ doc-subtab: form
|
|||||||
<p>If you want to <strong>attach</strong> controls together, use the <code>has-addons</code> modifier on the <code>control</code> container:</p>
|
<p>If you want to <strong>attach</strong> controls together, use the <code>has-addons</code> modifier on the <code>control</code> container:</p>
|
||||||
</div>
|
</div>
|
||||||
{% capture addons_example %}
|
{% capture addons_example %}
|
||||||
<p class="control has-addons">
|
<div class="field has-addons">
|
||||||
|
<p class="control">
|
||||||
<input class="input" type="text" placeholder="Find a repository">
|
<input class="input" type="text" placeholder="Find a repository">
|
||||||
|
</p>
|
||||||
|
<p class="control">
|
||||||
<a class="button is-info">
|
<a class="button is-info">
|
||||||
Search
|
Search
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
</div
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
<div class="example">
|
<div class="example">
|
||||||
{{addons_example}}
|
{{addons_example}}
|
||||||
@ -498,7 +599,8 @@ doc-subtab: form
|
|||||||
<p>Use the <code>is-expanded</code> modifier on the element you want to fill up the remaing space (in this case, the input):</p>
|
<p>Use the <code>is-expanded</code> modifier on the element you want to fill up the remaing space (in this case, the input):</p>
|
||||||
</div>
|
</div>
|
||||||
{% capture addons_expanded_example %}
|
{% capture addons_expanded_example %}
|
||||||
<p class="control has-addons">
|
<div class="field has-addons">
|
||||||
|
<p class="control">
|
||||||
<span class="select">
|
<span class="select">
|
||||||
<select>
|
<select>
|
||||||
<option>$</option>
|
<option>$</option>
|
||||||
@ -506,12 +608,19 @@ doc-subtab: form
|
|||||||
<option>€</option>
|
<option>€</option>
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
<input class="input is-expanded" type="text" placeholder="Amount of money">
|
</p>
|
||||||
|
<p class="control">
|
||||||
|
<input class="input" type="text" placeholder="Amount of money">
|
||||||
|
</p>
|
||||||
|
<p class="control">
|
||||||
<a class="button">
|
<a class="button">
|
||||||
Transfer
|
Transfer
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<p class="control has-addons">
|
</div>
|
||||||
|
|
||||||
|
<div class="field has-addons">
|
||||||
|
<p class="control">
|
||||||
<span class="select">
|
<span class="select">
|
||||||
<select>
|
<select>
|
||||||
<option>$</option>
|
<option>$</option>
|
||||||
@ -519,11 +628,16 @@ doc-subtab: form
|
|||||||
<option>€</option>
|
<option>€</option>
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
<input class="input is-expanded" type="text" placeholder="Amount of money">
|
</p>
|
||||||
|
<p class="control is-expanded">
|
||||||
|
<input class="input" type="text" placeholder="Amount of money">
|
||||||
|
</p>
|
||||||
|
<p class="control">
|
||||||
<a class="button">
|
<a class="button">
|
||||||
Transfer
|
Transfer
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
<div class="example">
|
<div class="example">
|
||||||
{{addons_expanded_example}}
|
{{addons_expanded_example}}
|
||||||
@ -535,7 +649,8 @@ doc-subtab: form
|
|||||||
<p>Use the <code>has-addons-centered</code> or the <code>has-addons-right</code> modifers to alter the <strong>alignment</strong>.</p>
|
<p>Use the <code>has-addons-centered</code> or the <code>has-addons-right</code> modifers to alter the <strong>alignment</strong>.</p>
|
||||||
</div>
|
</div>
|
||||||
{% capture addons_center_example %}
|
{% capture addons_center_example %}
|
||||||
<p class="control has-addons has-addons-centered">
|
<div class="field has-addons has-addons-centered">
|
||||||
|
<p class="control">
|
||||||
<span class="select">
|
<span class="select">
|
||||||
<select>
|
<select>
|
||||||
<option>$</option>
|
<option>$</option>
|
||||||
@ -543,11 +658,16 @@ doc-subtab: form
|
|||||||
<option>€</option>
|
<option>€</option>
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
|
</p>
|
||||||
|
<p class="control">
|
||||||
<input class="input" type="text" placeholder="Amount of money">
|
<input class="input" type="text" placeholder="Amount of money">
|
||||||
|
</p>
|
||||||
|
<p class="control">
|
||||||
<a class="button is-primary">
|
<a class="button is-primary">
|
||||||
Transfer
|
Transfer
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
<div class="example">
|
<div class="example">
|
||||||
{{addons_center_example}}
|
{{addons_center_example}}
|
||||||
@ -556,7 +676,8 @@ doc-subtab: form
|
|||||||
{{addons_center_example}}
|
{{addons_center_example}}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
{% capture addons_right_example %}
|
{% capture addons_right_example %}
|
||||||
<p class="control has-addons has-addons-right">
|
<div class="field has-addons has-addons-right">
|
||||||
|
<p class="control">
|
||||||
<span class="select">
|
<span class="select">
|
||||||
<select>
|
<select>
|
||||||
<option>$</option>
|
<option>$</option>
|
||||||
@ -564,11 +685,16 @@ doc-subtab: form
|
|||||||
<option>€</option>
|
<option>€</option>
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
|
</p>
|
||||||
|
<p class="control">
|
||||||
<input class="input" type="text" placeholder="Amount of money">
|
<input class="input" type="text" placeholder="Amount of money">
|
||||||
|
</p>
|
||||||
|
<p class="control">
|
||||||
<a class="button is-primary">
|
<a class="button is-primary">
|
||||||
Transfer
|
Transfer
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
<div class="example">
|
<div class="example">
|
||||||
{{addons_right_example}}
|
{{addons_right_example}}
|
||||||
@ -588,7 +714,7 @@ doc-subtab: form
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{% capture group_example %}
|
{% capture group_example %}
|
||||||
<div class="control is-grouped">
|
<div class="field is-grouped">
|
||||||
<p class="control is-expanded">
|
<p class="control is-expanded">
|
||||||
<input class="input" type="text" placeholder="Find a repository">
|
<input class="input" type="text" placeholder="Find a repository">
|
||||||
</p>
|
</p>
|
||||||
@ -622,23 +748,34 @@ doc-subtab: form
|
|||||||
<p>You can of course use <code>is-grouped</code> or <code>has-addons</code> for the child elements.</p>
|
<p>You can of course use <code>is-grouped</code> or <code>has-addons</code> for the child elements.</p>
|
||||||
</div>
|
</div>
|
||||||
{% capture horizontal_form_example %}
|
{% capture horizontal_form_example %}
|
||||||
<div class="control is-horizontal">
|
<div class="field is-horizontal">
|
||||||
<div class="control-label">
|
<div class="field-label">
|
||||||
<label class="label">From</label>
|
<label class="label">From</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="control is-grouped">
|
<div class="field-body">
|
||||||
|
<div class="field is-grouped">
|
||||||
<p class="control is-expanded">
|
<p class="control is-expanded">
|
||||||
<input class="input" type="text" placeholder="Name">
|
<input class="input" type="text" placeholder="Name">
|
||||||
</p>
|
</p>
|
||||||
<p class="control is-expanded">
|
</div>
|
||||||
<input class="input" type="email" placeholder="Email">
|
<div class="field">
|
||||||
|
<p class="control is-expanded has-icon">
|
||||||
|
<input class="input is-success" type="email" placeholder="Email" value="alex@smith.com">
|
||||||
|
<span class="icon is-small">
|
||||||
|
<i class="fa fa-check"></i>
|
||||||
|
</span>
|
||||||
</p>
|
</p>
|
||||||
|
<p class="help is-success">This username is available</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control is-horizontal">
|
|
||||||
<div class="control-label">
|
<div class="field is-horizontal">
|
||||||
|
<div class="field-label">
|
||||||
<label class="label">Subject</label>
|
<label class="label">Subject</label>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="field-body">
|
||||||
|
<div class="field">
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<div class="select is-fullwidth">
|
<div class="select is-fullwidth">
|
||||||
<select>
|
<select>
|
||||||
@ -646,14 +783,21 @@ doc-subtab: form
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control is-horizontal">
|
|
||||||
<div class="control-label">
|
<div class="field is-horizontal">
|
||||||
|
<div class="field-label">
|
||||||
<label class="label">Question</label>
|
<label class="label">Question</label>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="field-body">
|
||||||
|
<div class="field">
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<textarea class="textarea" placeholder="Explain how we can help you"></textarea>
|
<textarea class="textarea" placeholder="Explain how we can help you"></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
{{horizontal_form_example}}
|
{{horizontal_form_example}}
|
||||||
|
@ -152,7 +152,7 @@ $input-radius: $radius !default
|
|||||||
.help
|
.help
|
||||||
display: block
|
display: block
|
||||||
font-size: $size-small
|
font-size: $size-small
|
||||||
margin-top: 5px
|
margin-top: 0.25rem
|
||||||
@each $name, $pair in $colors
|
@each $name, $pair in $colors
|
||||||
$color: nth($pair, 1)
|
$color: nth($pair, 1)
|
||||||
&.is-#{$name}
|
&.is-#{$name}
|
||||||
@ -160,64 +160,110 @@ $input-radius: $radius !default
|
|||||||
|
|
||||||
// Containers
|
// Containers
|
||||||
|
|
||||||
.control-label
|
.field
|
||||||
+mobile
|
|
||||||
margin-bottom: 0.5em
|
|
||||||
+tablet
|
|
||||||
flex-basis: 0
|
|
||||||
flex-grow: 1
|
|
||||||
flex-shrink: 0
|
|
||||||
margin-right: 1.5em
|
|
||||||
padding-top: 0.5em
|
|
||||||
text-align: right
|
|
||||||
|
|
||||||
.control
|
|
||||||
position: relative
|
|
||||||
text-align: left
|
|
||||||
&:not(:last-child)
|
&:not(:last-child)
|
||||||
margin-bottom: 0.75rem
|
margin-bottom: 0.75rem
|
||||||
// Modifiers
|
// Modifiers
|
||||||
&.has-addons
|
&.has-addons
|
||||||
display: flex
|
display: flex
|
||||||
justify-content: flex-start
|
justify-content: flex-start
|
||||||
.button,
|
.control
|
||||||
.input,
|
|
||||||
.select
|
|
||||||
border-radius: 0
|
|
||||||
margin-right: -1px
|
margin-right: -1px
|
||||||
width: auto
|
|
||||||
&:hover
|
&:hover
|
||||||
z-index: 2
|
z-index: 2
|
||||||
&:focus,
|
&:focus,
|
||||||
&:active
|
&:active
|
||||||
z-index: 3
|
z-index: 3
|
||||||
&:first-child
|
&:first-child
|
||||||
border-radius: $input-radius 0 0 $input-radius
|
.button,
|
||||||
select
|
.input,
|
||||||
border-radius: $input-radius 0 0 $input-radius
|
.select select
|
||||||
|
border-bottom-left-radius: $input-radius
|
||||||
|
border-top-left-radius: $input-radius
|
||||||
&:last-child
|
&:last-child
|
||||||
border-radius: 0 $input-radius $input-radius 0
|
.button,
|
||||||
select
|
.input,
|
||||||
border-radius: 0 $input-radius $input-radius 0
|
.select select
|
||||||
|
border-bottom-right-radius: $input-radius
|
||||||
|
border-top-right-radius: $input-radius
|
||||||
|
.button,
|
||||||
|
.input,
|
||||||
|
.select select
|
||||||
|
border-radius: 0
|
||||||
&.is-expanded
|
&.is-expanded
|
||||||
flex-grow: 1
|
flex-grow: 1
|
||||||
flex-shrink: 0
|
flex-shrink: 0
|
||||||
.select select
|
// width: auto
|
||||||
&:hover
|
// .control:first-child &
|
||||||
z-index: 2
|
// border-radius: $input-radius 0 0 $input-radius
|
||||||
&:focus,
|
// select
|
||||||
&:active
|
// border-radius: $input-radius 0 0 $input-radius
|
||||||
z-index: 3
|
// .control:last-child &
|
||||||
|
// border-radius: 0 $input-radius $input-radius 0
|
||||||
|
// select
|
||||||
|
// border-radius: 0 $input-radius $input-radius 0
|
||||||
|
// .select select
|
||||||
|
// &:hover
|
||||||
|
// z-index: 2
|
||||||
|
// &:focus,
|
||||||
|
// &:active
|
||||||
|
// z-index: 3
|
||||||
&.has-addons-centered
|
&.has-addons-centered
|
||||||
justify-content: center
|
justify-content: center
|
||||||
&.has-addons-right
|
&.has-addons-right
|
||||||
justify-content: flex-end
|
justify-content: flex-end
|
||||||
&.has-addons-fullwidth
|
&.has-addons-fullwidth
|
||||||
.button,
|
.control
|
||||||
.input,
|
|
||||||
.select
|
|
||||||
flex-grow: 1
|
flex-grow: 1
|
||||||
flex-shrink: 0
|
flex-shrink: 0
|
||||||
|
&.is-grouped
|
||||||
|
display: flex
|
||||||
|
justify-content: flex-start
|
||||||
|
& > .control
|
||||||
|
flex-basis: 0
|
||||||
|
flex-shrink: 0
|
||||||
|
&:not(:last-child)
|
||||||
|
margin-bottom: 0
|
||||||
|
margin-right: 0.75rem
|
||||||
|
&.is-expanded
|
||||||
|
flex-grow: 1
|
||||||
|
flex-shrink: 1
|
||||||
|
&.is-grouped-centered
|
||||||
|
justify-content: center
|
||||||
|
&.is-grouped-right
|
||||||
|
justify-content: flex-end
|
||||||
|
&.is-horizontal
|
||||||
|
+tablet
|
||||||
|
display: flex
|
||||||
|
|
||||||
|
.field-label
|
||||||
|
+mobile
|
||||||
|
margin-bottom: 0.5rem
|
||||||
|
+tablet
|
||||||
|
flex-basis: 0
|
||||||
|
flex-grow: 1
|
||||||
|
flex-shrink: 0
|
||||||
|
margin-right: 1.5rem
|
||||||
|
padding-top: 0.375em
|
||||||
|
text-align: right
|
||||||
|
|
||||||
|
.field-body
|
||||||
|
+tablet
|
||||||
|
display: flex
|
||||||
|
flex-basis: 0
|
||||||
|
flex-grow: 5
|
||||||
|
flex-shrink: 1
|
||||||
|
.field
|
||||||
|
flex-grow: 1
|
||||||
|
flex-shrink: 1
|
||||||
|
&:not(:last-child)
|
||||||
|
margin-bottom: 0
|
||||||
|
margin-right: 0.75rem
|
||||||
|
|
||||||
|
.control
|
||||||
|
position: relative
|
||||||
|
text-align: left
|
||||||
|
// Modifiers
|
||||||
&.has-icon
|
&.has-icon
|
||||||
.icon
|
.icon
|
||||||
color: $input-icon
|
color: $input-icon
|
||||||
@ -270,33 +316,9 @@ $input-radius: $radius !default
|
|||||||
// &.is-large
|
// &.is-large
|
||||||
// & + .icon
|
// & + .icon
|
||||||
// right: ($size-large * 2.5) / 2
|
// right: ($size-large * 2.5) / 2
|
||||||
&.is-grouped
|
|
||||||
display: flex
|
|
||||||
justify-content: flex-start
|
|
||||||
& > .control
|
|
||||||
flex-basis: 0
|
|
||||||
flex-shrink: 0
|
|
||||||
&:not(:last-child)
|
|
||||||
margin-bottom: 0
|
|
||||||
margin-right: 0.75rem
|
|
||||||
&.is-expanded
|
|
||||||
flex-grow: 1
|
|
||||||
flex-shrink: 1
|
|
||||||
&.is-grouped-centered
|
|
||||||
justify-content: center
|
|
||||||
&.is-grouped-right
|
|
||||||
justify-content: flex-end
|
|
||||||
&.is-horizontal
|
|
||||||
+tablet
|
|
||||||
display: flex
|
|
||||||
& > .control
|
|
||||||
display: flex
|
|
||||||
flex-basis: 0
|
|
||||||
flex-grow: 5
|
|
||||||
flex-shrink: 1
|
|
||||||
&.is-loading
|
&.is-loading
|
||||||
&:after
|
&:after
|
||||||
+loader
|
+loader
|
||||||
position: absolute !important
|
position: absolute !important
|
||||||
right: 0.75em
|
right: 0.625em
|
||||||
top: 0.75em
|
top: 0.625em
|
||||||
|
Loading…
Reference in New Issue
Block a user