From cc2254112fa220db6fe222e5ac3db95bd9411cab Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Wed, 21 Apr 2021 22:01:07 +0200 Subject: [PATCH] tooltip pour titres --- styles/simple.css | 14 ++++++++++++-- templates/actor-sheet-competence-partial.html | 2 +- templates/actor-sheet.html | 6 +++--- templates/chat-infojet.html | 2 +- templates/dialog-competence.html | 2 +- templates/partial-roll-ajustements.html | 2 +- 6 files changed, 19 insertions(+), 9 deletions(-) diff --git a/styles/simple.css b/styles/simple.css index 254dd5b0..d7fdb732 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -1292,6 +1292,9 @@ display: inline-flex; .tooltip { position: relative; display: inline-block; +} + +.tooltip-dotted { border-bottom: 1px dotted black; /* If you want dots under the hoverable text */ } @@ -1332,9 +1335,16 @@ display: inline-flex; padding: 3px 0; } -.tooltip-nobottom { - border-bottom: unset; /* If you want dots under the hoverable text */ +.tooltip .ttt-titre { + text-align: justify; + width: 100%; + top: 30px; + background: rgba(220,220,210,0.95); + border-radius: 6px; + font-size: 0.9rem; + padding: 3px; } + .tooltip .ttt-xp { width: 250px; background: rgba(220,220,210,0.95); diff --git a/templates/actor-sheet-competence-partial.html b/templates/actor-sheet-competence-partial.html index 7d938044..4e87bf5d 100644 --- a/templates/actor-sheet-competence-partial.html +++ b/templates/actor-sheet-competence-partial.html @@ -6,7 +6,7 @@ {{/if}} {{#if data.isLevelUp}} - + Vous pouvez dépenser {{data.xpNext}} points d'Experience pour augmenter de 1 votre compétence {{name}} diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 70145c11..5c3f8eef 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -66,7 +66,7 @@ {{/if}}
- Malus de fatigue : {{calc.fatigue.malus}} + Malus de fatigue : {{calc.fatigue.malus}} {{{calc.fatigue.html}}} {{calc.resumeBlessures}} @@ -134,13 +134,13 @@