Skip to content

Commit 2c5e899

Browse files
committed
refactor: miglioria tooltip
1 parent 61c50ea commit 2c5e899

1 file changed

Lines changed: 44 additions & 4 deletions

File tree

assets/src/css/style.css

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,20 +402,46 @@ span.form-control {
402402
.tooltipster-shadow {
403403
border-radius: 4px !important;
404404
box-shadow: 0 3px 10px rgba(0,0,0,0.2) !important;
405+
border: none !important;
406+
background-color: #e0e6eb !important;
405407
}
406408

407409
.tooltipster-shadow .tooltipster-content {
408410
font-family: inherit !important;
409411
padding: 8px !important;
410412
width: 400px !important;
413+
background-color: #e0e6eb !important;
414+
color: #000000 !important;
415+
overflow: hidden !important;
416+
word-wrap: break-word !important;
411417
}
412418

413419
.tooltipster-base {
414420
max-width: 400px !important;
415421
width: 400px !important;
416-
z-index: 10000; /* Consistent z-index for all tooltip states */
422+
z-index: 10000 !important; /* Consistent z-index for all tooltip states */
423+
background-color: #e0e6eb !important;
424+
border: none !important;
425+
}
426+
427+
/* Rimuove i bordi esterni dai tooltip */
428+
.tooltipster-box,
429+
.tooltipster-arrow,
430+
.tooltipster-arrow-border,
431+
.tooltipster-arrow-background {
432+
border: none !important;
417433
}
418434

435+
/* Nasconde le barre di scorrimento */
436+
.tooltipster-content::-webkit-scrollbar {
437+
display: none !important;
438+
}
439+
.tooltipster-content {
440+
-ms-overflow-style: none !important; /* IE and Edge */
441+
scrollbar-width: none !important; /* Firefox */
442+
}
443+
444+
419445
/* Tooltip header */
420446
.tooltip-header {
421447
position: relative;
@@ -455,7 +481,7 @@ span.form-control {
455481
/* Tooltip content sections */
456482
.tooltip-info-section {
457483
margin-bottom: 15px;
458-
border-bottom: 1px solid #eee;
484+
border-bottom: 1px solid #ccc !important;
459485
padding-bottom: 10px;
460486
}
461487

@@ -475,7 +501,7 @@ span.form-control {
475501
font-weight: bold;
476502
margin-right: 5px;
477503
min-width: 120px;
478-
color: #3c8dbc;
504+
color: #000000;
479505
}
480506

481507
.tooltip-info-value {
@@ -486,7 +512,7 @@ span.form-control {
486512
.shorten-toggle,
487513
.request-toggle {
488514
display: inline-block;
489-
margin: 5px 0;
515+
margin: 2px 0 0 0;
490516
color: #fff;
491517
background-color: #3c8dbc;
492518
padding: 4px 10px;
@@ -503,6 +529,20 @@ span.form-control {
503529
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
504530
}
505531

532+
/* Classi per i wrapper di testo troncato */
533+
.shorten-wrapper {
534+
margin-bottom: 0;
535+
}
536+
537+
.shorten-text, .request-text {
538+
display: block;
539+
}
540+
541+
.shorten-full, .request-full {
542+
display: none;
543+
margin-bottom: 0;
544+
}
545+
506546
.shorten-toggle:hover,
507547
.request-toggle:hover {
508548
background-color: #367fa9;

0 commit comments

Comments
 (0)