From dbf9f5e9085e9c40f5feb0d20e1c19aae9ad5ed8 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sat, 27 Aug 2022 22:58:26 +0200 Subject: [PATCH] =?UTF-8?q?Am=C3=A9liorations=20des=20boutons=20fontawesom?= =?UTF-8?q?e&css?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- styles/simple.css | 90 ++++++++----------- templates/actor-blessure-partial.html | 2 +- templates/actor-creature-sheet.html | 4 +- templates/actor-entite-sheet.html | 8 +- templates/actor-sheet-competence-partial.html | 10 +-- templates/actor-sheet-inventaire-item.html | 14 +-- templates/actor-sheet-inventaire-monnaie.html | 10 +-- templates/actor-sheet-liens-animaux.html | 2 +- templates/actor-sheet-liens-suivants.html | 2 +- templates/actor-sheet-liens-vehicules.html | 2 +- templates/actor-sheet-oeuvre-partial.html | 4 +- templates/actor-sheet.html | 84 +++++++++-------- 12 files changed, 109 insertions(+), 123 deletions(-) diff --git a/styles/simple.css b/styles/simple.css index 75742656..e279bf05 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -65,7 +65,11 @@ --debug-box-shadow-blue: inset 0 0 2px blue; --debug-box-shadow-green: inset 0 0 2px green; -/* =================== 3. some constants ============ */ +/* =================== 3. some constants ============ */ + --color-controls:rgba(0, 0, 0, 0.9); + --color-controls-hover:rgba(255, 255, 128, 0.7); + --color-control-border-hover:rgba(255, 128, 0, 0.8); + --color-gold: rgba(191, 149, 63, 0.8); --gradient-gold: linear-gradient(30deg, rgba(191, 149, 63, 0.3), rgba(252, 246, 186, 0.3), rgba(179, 135, 40, 0.3), rgba(251, 245, 183, 0.3), rgba(170, 119, 28, 0.3)); --gradient-silver: linear-gradient(30deg, rgba(61, 55, 93, 0.3), rgba(178, 179, 196, 0.3), rgba(59, 62, 63, 0.6), rgba(206, 204, 199, 0.3), rgba(61, 46, 49, 0.3)); --gradient-green: linear-gradient(30deg, rgba(7, 76, 0, 0.3), rgba(66, 163, 65, 0.2), rgba(184, 226, 163, 0.1), rgba(66, 163, 65, 0.2), rgba(184, 226, 163, 0.3)); @@ -104,6 +108,9 @@ .strong-text{ font-weight: bold; } +i:is(.fas, .far) { + font-size: smaller; +} .tabs .item.active, .blessures-list li ul li:first-child:hover, a:hover { text-shadow: 1px 0px 0px #ff6600; @@ -286,14 +293,8 @@ table {border: 1px solid #7a7971;} height: 8%; max-height: 48px; border-width: 0; - border: 1px solid rgba(0, 0, 0, 0); + border: 1px solid rgba(0, 0, 0, 0); } -.button-img:hover { - color: rgba(255, 255, 128, 0.7); - border: 1px solid rgba(255, 128, 0, 0.8); - cursor: pointer; -} - .button-effect-img { vertical-align: baseline; width: 16px; @@ -301,9 +302,16 @@ table {border: 1px solid #7a7971;} height: 16; border-width: 0; } -.button-effect-img:hover { - color: rgba(255, 255, 128, 0.7); - border: 1px solid rgba(255, 128, 0, 0.8); +.small-button-direction { + height: 32px; + width: 32px; + border: 0; + vertical-align: bottom; +} +:is(.button-img,.button-effect-img:hover,.small-button-direction):hover { + color: var(--color-controls-hover); + border: 1px solid var(--color-control-border-hover); + text-shadow: 1px 0px 0px #ff6600; cursor: pointer; } @@ -314,18 +322,6 @@ table {border: 1px solid #7a7971;} vertical-align: bottom; } -.small-button-direction { - height: 32px; - width: 32px; - border: 0; - vertical-align: bottom; -} -.small-button-direction:hover { - color: rgba(255, 255, 128, 0.7); - border: 1px solid rgba(255, 128, 0, 0.8); - cursor: pointer; -} - .foundryvtt-reve-de-dragon .sheet-header .header-fields { -webkit-box-flex: 1; -ms-flex: 1; @@ -489,13 +485,18 @@ table {border: 1px solid #7a7971;} flex: 0 0 86px; text-align: right; } - .competence-list .item-controls { display: contents !important; } .competence-list .item-controls.hidden-controls { display: none !important; } +.item-controls i:is(.fas,.far) { + color: var(--color-controls); +} +.item-controls i:is(.fas,.far):hover { + opacity: 0.7 ; +} .rdddialog .dialog-roll-sort s{ width: 600px; @@ -647,11 +648,15 @@ section.sheet-body:after { .sheet header.sheet-header .flex-compteurs {text-align: right;} .sheet header.sheet-header .resource-content {width: 2rem;} -.ctn-vie span, .ctn-endu span, .ctn-fatigue span, .ctn-reve span { +.compteur span { display: inline-block; text-align: left; width: 2rem; } +.compteur a i:is(.fas,.far):hover { + opacity: 0.7 ; +} + .select-diff { display: inline-block; text-align: left; @@ -664,17 +669,6 @@ section.sheet-body:after { max-width: 90%; } -.plus-moins { - display: inline-block; - width: 1.25rem; - background: rgba(30, 25, 20, 1); - text-align: center; - border: 1px solid rgba(72, 46, 28, 1); - border-radius: 0.25rem; - line-height: 1.25rem; - color: rgba(255, 255, 255, 0.5); -} - .alchimie-tache { font-weight: bold; background: rgb(182, 180, 179); @@ -761,14 +755,8 @@ ul, li { .niveau-archetype { background: var(--gradient-silver-light) !important; } -.fa-arrow-alt-circle-up.allouer-stress { - color: rgba(83, 60, 14, 0.8); -} -.fa-arrow-alt-circle-up.allouer-stress-level-up { - color: rgba(191, 149, 63, 0.8); -} -i.fas, i.far { - font-size: smaller; +.item-controls i.fas.allouer-stress.level-up { + color: var(--color-gold); } .blessures-list ul { display: flex; @@ -1006,7 +994,7 @@ i.fas, i.far { border-left: none; font-weight: 500; font-size: 1rem; - color: black; + color: var(--color-controls); padding-top: 5px; margin-right: 0px; width: 45px; @@ -1184,11 +1172,11 @@ i.fas, i.far { border-image-width: 4px; border-image-outset: 0px; } - #controls .control-tools { - max-height: calc(100vh - 156px); - height: auto; +#controls .control-tools { + max-height: calc(100vh - 156px); + height: auto; } -#controls .scene-control.active, #controls .control-tool.active, #controls .scene-control:hover, #controls .control-tool:hover { +#controls :is(.scene-control.active,.control-tool.active, .scene-control:hover, .control-tool:hover) { background: rgba(72, 46, 28, 1); background-origin: padding-box; border-image: url(img/ui/footer-button.webp) 10 repeat; @@ -1374,8 +1362,8 @@ i.fas, i.far { color: rgba(255, 255, 255, 0.5); } .calendar-btn:hover { - color: rgba(255, 255, 128, 0.7); - border: 1px solid rgba(255, 128, 0, 0.8); + color: var(--color-controls-hover); + border: 1px solid var(--color-control-border-hover); cursor: pointer; } diff --git a/templates/actor-blessure-partial.html b/templates/actor-blessure-partial.html index 57ee004f..d475751b 100644 --- a/templates/actor-blessure-partial.html +++ b/templates/actor-blessure-partial.html @@ -1,5 +1,5 @@ - + {{#if bless.active}} {{else}} diff --git a/templates/actor-creature-sheet.html b/templates/actor-creature-sheet.html index 99782371..571b2086 100644 --- a/templates/actor-creature-sheet.html +++ b/templates/actor-creature-sheet.html @@ -108,8 +108,8 @@
- - + +
{{/each}} diff --git a/templates/actor-entite-sheet.html b/templates/actor-entite-sheet.html index 455d795e..67b27dee 100644 --- a/templates/actor-entite-sheet.html +++ b/templates/actor-entite-sheet.html @@ -104,8 +104,8 @@
- - + +
{{/each}} @@ -118,8 +118,8 @@ {{possession.name}}
- - + +
{{/each}} diff --git a/templates/actor-sheet-competence-partial.html b/templates/actor-sheet-competence-partial.html index ff294648..614e8b13 100644 --- a/templates/actor-sheet-competence-partial.html +++ b/templates/actor-sheet-competence-partial.html @@ -7,7 +7,7 @@ {{#if data.isLevelUp}} Vous pouvez dépenser {{data.xpNext}} points d'Experience pour augmenter de 1 votre compétence {{name}} - + {{/if}} @@ -31,9 +31,9 @@ {{#if @root.options.vueDetaillee}}
{{#if data.stressXpMax}} - - + {{else}} @@ -41,9 +41,9 @@ - + {{#if @root.options.isGM}} - + {{/if}}
{{/if}} diff --git a/templates/actor-sheet-inventaire-item.html b/templates/actor-sheet-inventaire-item.html index e46f8745..fe9a9d89 100644 --- a/templates/actor-sheet-inventaire-item.html +++ b/templates/actor-sheet-inventaire-item.html @@ -23,23 +23,23 @@ {{item.data.quantite}} {{#if (gt item.data.quantite 1)}} - + {{/if}} {{numberFormat item.data.encTotal decimals=2}} - + {{#unless item.estContenu}} {{#if (ne item.type 'conteneur')}} - {{#if item.data.equipe}}{{else}}{{/if}} + {{#if item.data.equipe}}{{else}}{{/if}} {{/if}} {{/unless}} - - + +   {{#if (or (eq item.type 'arme') (eq item.type 'conteneur') item.data.quantite)}} - + {{/if}} - + {{#if item.data.actionPrincipale}} {{item.data.actionPrincipale}} {{/if}} diff --git a/templates/actor-sheet-inventaire-monnaie.html b/templates/actor-sheet-inventaire-monnaie.html index 0921720c..3e203359 100644 --- a/templates/actor-sheet-inventaire-monnaie.html +++ b/templates/actor-sheet-inventaire-monnaie.html @@ -4,13 +4,13 @@
  • {{piece.name}} - + {{piece.data.quantite}} - + @@ -19,9 +19,9 @@ {{piece.data.quantite}} --> - - - + + +
  • {{/each}} diff --git a/templates/actor-sheet-liens-animaux.html b/templates/actor-sheet-liens-animaux.html index c9b6aa92..284d0a7d 100644 --- a/templates/actor-sheet-liens-animaux.html +++ b/templates/actor-sheet-liens-animaux.html @@ -5,7 +5,7 @@ {{monture.name}}
    - +
    {{/each}} diff --git a/templates/actor-sheet-liens-suivants.html b/templates/actor-sheet-liens-suivants.html index 4ee37e0a..91d28e58 100644 --- a/templates/actor-sheet-liens-suivants.html +++ b/templates/actor-sheet-liens-suivants.html @@ -5,7 +5,7 @@ {{suivant.name}}
    - +
    {{/each}} diff --git a/templates/actor-sheet-liens-vehicules.html b/templates/actor-sheet-liens-vehicules.html index 6951d70f..a95d61bf 100644 --- a/templates/actor-sheet-liens-vehicules.html +++ b/templates/actor-sheet-liens-vehicules.html @@ -7,7 +7,7 @@ {{vehicule.categorie}} {{vehicule.structure}}
    - +
    {{/each}} diff --git a/templates/actor-sheet-oeuvre-partial.html b/templates/actor-sheet-oeuvre-partial.html index 4492568d..474ce5f8 100644 --- a/templates/actor-sheet-oeuvre-partial.html +++ b/templates/actor-sheet-oeuvre-partial.html @@ -4,8 +4,8 @@ {{oeuvre.name}} (niveau {{oeuvre.data.niveau}})
    - - + +
    diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 37b97ee8..b9ced891 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -10,7 +10,7 @@
    - {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=(sortCompetence competenceByCategory.generale) categorie="Compétences générales"}} - {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=(sortCompetence competenceByCategory.particuliere) categorie="Compétences Particulières"}} - {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=(sortCompetence competenceByCategory.specialisee) categorie="Compétences Spécialisées"}} + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=(filtreTriCompetences competenceByCategory.generale) categorie="Compétences générales"}} + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=(filtreTriCompetences competenceByCategory.particuliere) categorie="Compétences Particulières"}} + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=(filtreTriCompetences competenceByCategory.specialisee) categorie="Compétences Spécialisées"}}
    - {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=(sortCompetence competenceByCategory.melee) categorie="Compétences de Mêlée"}} - {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=(sortCompetence competenceByCategory.tir) categorie="Compétences de Tir"}} - {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=(sortCompetence competenceByCategory.lancer) categorie="Compétences de Lancer"}} - {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=(sortCompetence competenceByCategory.connaissance) categorie="Connaissances"}} + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=(filtreTriCompetences competenceByCategory.melee) categorie="Compétences de Mêlée"}} + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=(filtreTriCompetences competenceByCategory.tir) categorie="Compétences de Tir"}} + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=(filtreTriCompetences competenceByCategory.lancer) categorie="Compétences de Lancer"}} + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=(filtreTriCompetences competenceByCategory.connaissance) categorie="Connaissances"}} {{#if (or data.attributs.hautrevant.value options.vueDetaillee)}} - {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=(sortCompetence competenceByCategory.draconic) categorie="Draconic"}} + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=(filtreTriCompetences competenceByCategory.draconic) categorie="Draconic"}} {{/if}}
    @@ -349,8 +347,8 @@ {{/if}}
    - - + +
    {{/each}} @@ -372,8 +370,8 @@ {{possession.data.type}}
    - - + +
    {{/each}} @@ -391,8 +389,8 @@ (or @root.options.isGM (not tache.data.cacher_points_de_tache)) }}/{{tache.data.points_de_tache}}{{/if}})
    - - + +
    {{/each}} @@ -421,8 +419,8 @@ {{#each jeux as |jeu id|}}
  • {{jeu.name}} (base {{jeu.data.base}})
    - - + +
  • {{/each}} @@ -432,8 +430,8 @@ {{#each recettesAlchimiques as |recette id|}}
  • {{recette.name}}
    - - + +
  • {{/each}} @@ -519,7 +517,7 @@
  • {{queue.name}}
    - +
  • {{/each}} @@ -532,7 +530,7 @@
  • {{ombre.name}}
    - +
  • {{/each}} @@ -545,7 +543,7 @@
  • {{souffle.name}}
    - +
  • {{/each}} @@ -558,7 +556,7 @@
  • {{tete.name}}
    - +
  • {{/each}} @@ -573,7 +571,7 @@ {{signe.name}} {{signe.data.difficulte}}
    - +
    {{/each}} @@ -591,7 +589,7 @@ {{upperFirst rencontre.heure}}, le {{rencontre.date}} {{/if}}
    - +
    {{/each}} @@ -606,7 +604,7 @@ {{reserve.sort.name}} r{{reserve.sort.data.ptreve_reel}} {{reserve.coord}} - {{caseTmr-label reserve.coord}}
    - +
    {{/each}} @@ -626,7 +624,7 @@ {{sort.data.draconic}} / {{sort.data.difficulte}}
    - +
    {{/each}} @@ -638,8 +636,8 @@
  • {{meditation.name}} - {{meditation.data.competence}}
    - - + +
  • {{/each}} @@ -653,7 +651,7 @@ {{casetmr.name}} {{casetmr.data.coord}} - {{caseTmr-label casetmr.data.coord}}
    - +
    {{/each}}