#12845 fix style hover

This commit is contained in:
Jonathan 2024-02-06 14:34:34 +01:00
parent e402f713c7
commit 644308db4f
4 changed files with 18 additions and 21 deletions

View File

@ -2542,15 +2542,12 @@ if ($drawConsoleSound === true) {
$output .= '<div id="progressbar_time"></div>';
$output .= '<div class="buttons-sound-modal">';
$output .= '<div class="container-button-play">';
$output .= html_print_input(
[
'label' => __('Start'),
'type' => 'button',
'name' => 'start-search',
'attributes' => [ 'class' => 'play secondary' ],
'return' => true,
],
'div',
$output .= html_print_button(
__('Start'),
'start-search',
false,
'',
['icon' => 'play'],
true
);
$output .= '</div>';

View File

@ -1261,6 +1261,10 @@ function action_events_sound(mode, settings) {
$("#button-start-search")
.removeClass("play")
.addClass("stop");
$("#button-start-search")
.find("div")
.removeClass("play")
.addClass("stop");
// Change value button.
$("#button-start-search").val(settings.stop);
$("#button-start-search > span").text(settings.stop);
@ -1277,6 +1281,10 @@ function action_events_sound(mode, settings) {
$("#button-start-search")
.removeClass("stop")
.addClass("play");
$("#button-start-search")
.find("div")
.removeClass("stop")
.addClass("play");
// Change value button.
$("#button-start-search").val(settings.start);
$("#button-start-search > span").text(settings.start);

View File

@ -12819,9 +12819,9 @@ div.agents_custom_fields #datatables_wrapper div.bottom {
.actions-sound-modal .buttons-sound-modal button.play,
.actions-sound-modal .buttons-sound-modal input[type="button"].play {
background: url(../../images/play-white.png), transparent !important;
/*background: url(../../images/play-white.png), transparent !important;
background-repeat: no-repeat !important;
background-position: 82px 14px !important;
background-position: 82px 14px !important;*/
color: #ffffff;
padding-left: 20px;
border: 0;

View File

@ -1,9 +1,6 @@
/*
* Css Modal Sound events.
*/
div.container-button-play > button#button-start-search {
transition: none !important;
}
.wizard {
text-align: left;
}
@ -217,9 +214,9 @@ div.container-button-play > button#button-start-search {
.actions-sound-modal .buttons-sound-modal button.play,
.actions-sound-modal .buttons-sound-modal input[type="button"].play {
background: url(../../images/play-white.png), transparent !important;
/*background: url(../../images/play-white.png), transparent !important;
background-repeat: no-repeat !important;
background-position: 82px 14px !important;
background-position: 82px 14px !important;*/
color: #ffffff !important;
padding-left: 20px;
border: 0;
@ -263,11 +260,6 @@ button#button-no-alerts.silence-alerts:hover {
background-position: 138px 4px !important;
}
.actions-sound-modal .container-button-play {
background-color: var(--primary-color);
border-radius: 8px;
}
.actions-sound-modal .container-button-alert.fired {
background: #ee2132;
border-radius: 8px;