Merge branch 'ent-9662-Restyling-fuentes-colores-botones' of brutus.artica.es:artica/pandorafms into ent-9662-Restyling-fuentes-colores-botones

This commit is contained in:
Jose Gonzalez 2023-02-22 14:20:20 +01:00
commit 095caf6fa9
2 changed files with 29 additions and 15 deletions

View File

@ -1,11 +1,11 @@
div.criticity { div.criticity {
width: 150px; width: 100px;
height: 2em; height: 15px;
color: #fff; color: #fff;
text-align: center; text-align: center;
border-radius: 5px; border-radius: 5px;
font-size: 0.8em; font-size: 0.7em;
padding: 5px; padding: 2px;
margin: 0; margin: 0;
display: table-cell; display: table-cell;
vertical-align: middle; vertical-align: middle;
@ -82,6 +82,19 @@ table.dataTable tbody td {
padding: 8px 10px; padding: 8px 10px;
} }
th:last-child {
padding-top: 0px !important;
padding-bottom: 0px !important;
}
td {
padding: 0px !important;
}
td > input[id^="checkbox-multi"] {
margin: 0px !important;
}
.info_table.events tr > th { .info_table.events tr > th {
padding-left: 1em; padding-left: 1em;
font-size: 8pt; font-size: 8pt;

View File

@ -633,8 +633,8 @@ if (is_ajax() === true) {
$tmp->mini_severity .= $output; $tmp->mini_severity .= $output;
$tmp->mini_severity .= '</div>'; $tmp->mini_severity .= '</div>';
$criticity = '<div class="criticity" style="background: '; $criticity = '<div class="criticity forced_title" style="background: ';
$criticity .= $color.'">'.$text.'</div>'; $criticity .= $color.'" data-title="'.$text.'" data-use_title_for_force_title="1">'.$text.'</div>';
$tmp->criticity = $criticity; $tmp->criticity = $criticity;
// Add event severity to end of text. // Add event severity to end of text.
@ -702,8 +702,8 @@ if (is_ajax() === true) {
break; break;
} }
$event_type = '<div class="criticity" style="background: '; $event_type = '<div class="event_module_background_state forced_title" style="background: ';
$event_type .= $color.'">'.$text.'</div>'; $event_type .= $color.'" data-title="'.$text.'" data-use_title_for_force_title="1">&nbsp;</div>';
$tmp->event_type = $event_type; $tmp->event_type = $event_type;
// Module status. // Module status.
@ -742,8 +742,8 @@ if (is_ajax() === true) {
break; break;
} }
$module_status = '<div class="criticity" style="background: '; $module_status = '<div class="status_rounded_rectangles forced_title" style="background: ';
$module_status .= $color.'">'.$text.'</div>'; $module_status .= $color.'" data-title="'.$text.'" data-use_title_for_force_title="1">&nbsp;</div>';
$tmp->module_status = $module_status; $tmp->module_status = $module_status;
// Status. // Status.
@ -779,7 +779,7 @@ if (is_ajax() === true) {
true, true,
[ [
'title' => __('Event in process'), 'title' => __('Event in process'),
'class' => 'forced-title invert_filter', 'class' => 'forced-title invert_filter height_20px',
] ]
); );
break; break;
@ -797,7 +797,7 @@ if (is_ajax() === true) {
break; break;
} }
$draw_state = '<div>'; $draw_state = '<div class="center">';
$draw_state .= '<span class="invisible">'; $draw_state .= '<span class="invisible">';
$draw_state .= $state; $draw_state .= $state;
$draw_state .= '</span>'; $draw_state .= '</span>';
@ -1819,7 +1819,7 @@ $in .= '</div>';
$inputs[] = $in; $inputs[] = $in;
// Trick view in table. // Trick view in table.
$inputs[] = '<div style="min-width:32%;"></div>'; $inputs[] = '<div class="w100p"></div>';
$buttons = []; $buttons = [];
@ -2218,7 +2218,8 @@ $filter .= ui_toggle(
true, true,
true, true,
'white_box white_box_opened', 'white_box white_box_opened',
'no-border flex-row' 'no-border flex-row',
'box-flat white_table_graph w100p'
); );
try { try {
@ -2401,7 +2402,7 @@ try {
[ [
'id' => $table_id, 'id' => $table_id,
'class' => 'info_table events', 'class' => 'info_table events',
'style' => 'width: 100%;', 'style' => 'width: 99%;',
'ajax_url' => 'operation/events/events', 'ajax_url' => 'operation/events/events',
'ajax_data' => [ 'ajax_data' => [
'get_events' => 1, 'get_events' => 1,