mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°3541 Add loading state design to buttons block
This commit is contained in:
@@ -479,6 +479,22 @@ $ibo-button-colors: (
|
||||
&.ibo-action-button {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.ibo-button--loading-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.ibo-is-loading {
|
||||
.ibo-button--icon{
|
||||
display: none;
|
||||
}
|
||||
.ibo-button--loading-icon {
|
||||
display: inline-block;
|
||||
&+ .ibo-button--label{
|
||||
margin-left: $ibo-button--label--margin-left;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ibo-button--label {
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
aria-label="{{ sAriaLabel }}"
|
||||
{% endif %}
|
||||
>
|
||||
<span class="ibo-button--loading-icon fas fa-spinner fa-pulse"></span>
|
||||
{% if oUIBlock.GetIconClass() is not empty %}
|
||||
<span class="ibo-button--icon {{ oUIBlock.GetIconClass() }}"></span>
|
||||
{% endif %}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
aria-label="{{ sAriaLabel }}"
|
||||
{% endif %}
|
||||
>
|
||||
<span class="ibo-button--loading-icon fas fa-spinner fa-pulse"></span>
|
||||
{% if oUIBlock.GetIconClass() is not empty %}
|
||||
<span class="ibo-button--icon {{ oUIBlock.GetIconClass() }}"></span>
|
||||
{% endif %}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
{% endif %}
|
||||
|
||||
>
|
||||
<span class="ibo-button--loading-icon fas fa-spinner fa-pulse"></span>
|
||||
{% if oUIBlock.GetIconClass() is not empty %}
|
||||
<span class="ibo-button--icon {{ oUIBlock.GetIconClass() }}"></span>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user