🚑 Fix issue with little button and UiCustomizer #18

This commit is contained in:
Sebastien Clement 2021-04-27 00:52:39 +02:00
parent b78ad7a49b
commit f7189147bf
2 changed files with 44 additions and 29 deletions

View File

@ -1,7 +1,16 @@
.ses_small, .ses_small_disabled{
padding: 12px 0px 12px;
}
.ses_small i {
color: red;
}
.ses_small span, .ses_small_disabled span {
padding: 5px 10px 5px;
font-size: 15px
}
.ses_small_disabled i {
color: grey;
cursor: default;
@ -11,6 +20,10 @@
cursor: default;
}
.ses_big, .ses_big_disabled{
padding: 0px 5px 0px 5px
}
.ses_big_disabled {
cursor: default;
}

View File

@ -1,30 +1,29 @@
<a data-bind="click: click, css: little_button_css(), attr: { title: get_title() }, visible: little_button_visible()"
href="#" style="padding: 5px 5px 5px 5px">
<span class="fa-stack" style="font-size: 15px">
<i class="far fa-circle fa-stack-2x" ></i>
<div>
<a data-bind="click: click, css: little_button_css(), attr: { title: get_title() }, visible: little_button_visible()"
href="#">
<span class="fa-stack">
<i class="far fa-circle fa-stack-2x"></i>
<i class="fas fa-hand-paper fa-stack-1x fa-inverse"></i>
</span>
{# <i class="" style="font-size: 22px"></i>#}
</a>
<a data-bind="click: click, css: big_button_css(), attr: { title: get_title() }, visible: big_button_visible()"
href="#"
style="padding: 0px 5px 0px 5px">
</a>
</div>
<div>
<a data-bind="click: click, css: big_button_css(), attr: { title: get_title() }, visible: big_button_visible()"
href="#">
<div class="ses_big_middle">
<span class="fa-stack" style="font-size: 11px">
<i class="far fa-circle fa-stack-2x" ></i>
<i class="far fa-circle fa-stack-2x"></i>
<i class="fas fa-hand-paper fa-stack-1x fa-inverse"></i>
</span>
<h5>{{ _('Emergency Stop') }}</h5>
<h5>{{ _("Emergency Stop") }}</h5>
<span class="fa-stack" style="font-size: 11px">
<i class="far fa-circle fa-stack-2x" ></i>
<i class="far fa-circle fa-stack-2x"></i>
<i class="fas fa-hand-paper fa-stack-1x fa-inverse"></i>
</span>
</div>
</a>
</a>
</div>
<div id="confirmation" class="modal hide fade">
<div class="modal-header">
@ -33,12 +32,15 @@
</div>
<div class="modal-body">
<p>
{{ _('Are you sure you want to stop your printer?') }}
{{ _("Are you sure you want to stop your printer?") }}
</p>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal" aria-hidden="true">{{ _('Cancel') }}</a>
<a href="#" class="btn btn-danger" data-bind="click: sendCommand">{{ _('Proceed') }}</a>
<a href="#" class="btn" data-dismiss="modal" aria-hidden="true">{{
_("Cancel")
}}</a>
<a href="#" class="btn btn-danger" data-bind="click: sendCommand">{{
_("Proceed")
}}</a>
</div>
</div>