Browse Source

changed tables to bootstrap tables

Warafear 11 months ago
parent
commit
1ef4bdf622

+ 3 - 3
src/app/journal/journal-character/class/class.component.scss

@@ -51,9 +51,9 @@
   margin-top: 1rem;
   margin-top: 1rem;
 }
 }
 
 
-// :host ::ng-deep p {
-//   margin: 0;
-// }
+::ng-deep .table {
+  --bs-table-bg: transparent !important;
+}
 
 
 :host ::ng-deep h3,
 :host ::ng-deep h3,
 :host ::ng-deep h4 {
 :host ::ng-deep h4 {

+ 17 - 18
src/app/journal/journal-character/species/species.component.scss

@@ -78,25 +78,24 @@
   margin-top: 1rem;
   margin-top: 1rem;
 }
 }
 
 
-table {
-  width: 100%;
-  border-collapse: collapse;
+::ng-deep .table {
+  --bs-table-bg: transparent !important;
 }
 }
 
 
-/* Style the table header */
-th {
-  background-color: #f2f2f2;
-  text-align: left;
-  padding: 8px;
-}
+// /* Style the table header */
+// th {
+//   background-color: #f2f2f2;
+//   text-align: left;
+//   padding: 8px;
+// }
 
 
-/* Style the table cells */
-td {
-  border: 1px solid #ddd;
-  padding: 8px;
-}
+// /* Style the table cells */
+// td {
+//   border: 1px solid #ddd;
+//   padding: 8px;
+// }
 
 
-/* Style the table rows */
-tr:nth-child(even) {
-  background-color: #f2f2f2;
-}
+// /* Style the table rows */
+// tr:nth-child(even) {
+//   background-color: #f2f2f2;
+// }

+ 4 - 0
src/app/journal/journal-character/subclass/subclass.component.scss

@@ -59,3 +59,7 @@
 :host ::ng-deep h4 {
 :host ::ng-deep h4 {
   margin-top: 1rem;
   margin-top: 1rem;
 }
 }
+
+::ng-deep .table {
+  --bs-table-bg: transparent !important;
+}

+ 2 - 2
src/services/class/class.service.ts

@@ -1870,7 +1870,7 @@ export class ClassService {
       </ul>
       </ul>
       </li>
       </li>
       </ul>
       </ul>
-      <table class="wiki-content-table">
+      <table
       <tr>
       <tr>
       <th colspan="2">Creating Spell Slots</th>
       <th colspan="2">Creating Spell Slots</th>
       </tr>
       </tr>
@@ -2074,7 +2074,7 @@ export class ClassService {
         description: `
         description: `
         <p>Starting at 2nd level, you can use your action to magically assume the shape of a beast that you have seen before. You can use this feature twice. You regain expended uses when you finish a short or long rest.</p>
         <p>Starting at 2nd level, you can use your action to magically assume the shape of a beast that you have seen before. You can use this feature twice. You regain expended uses when you finish a short or long rest.</p>
         <p>Your druid level determines the beasts you can transform into, as shown in the Beast Shapes table. At 2nd level, for example, you can transform into any beast that has a challenge rating of 1/4 or lower that doesn't have a flying or swimming speed.</p>
         <p>Your druid level determines the beasts you can transform into, as shown in the Beast Shapes table. At 2nd level, for example, you can transform into any beast that has a challenge rating of 1/4 or lower that doesn't have a flying or swimming speed.</p>
-        <table class="wiki-content-table">
+        <table class='table'>
         <tr>
         <tr>
         <th colspan="4">Beast Shapes</th>
         <th colspan="4">Beast Shapes</th>
         </tr>
         </tr>

+ 21 - 21
src/services/species/species.service.ts

@@ -133,7 +133,7 @@ export class SpeciesService {
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Warding Spells table are added to the spell list of your Spellcasting class.</li>
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Warding Spells table are added to the spell list of your Spellcasting class.</li>
           </ul>
           </ul>
           <p><strong>Mark of Warding Spells</strong></p>
           <p><strong>Mark of Warding Spells</strong></p>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th>Spell Level</th>
           <th>Spell Level</th>
           <th>Spell</th>
           <th>Spell</th>
@@ -399,7 +399,7 @@ export class SpeciesService {
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class features, the spells on the Mark of Shadow Spells table are added to the spell list of your spellcasting class.</li>
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class features, the spells on the Mark of Shadow Spells table are added to the spell list of your spellcasting class.</li>
           </ul>
           </ul>
           <p><strong>Mark of Shadow Spells</strong></p>
           <p><strong>Mark of Shadow Spells</strong></p>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th>Spell Level</th>
           <th>Spell Level</th>
           <th>Spell</th>
           <th>Spell</th>
@@ -828,7 +828,7 @@ export class SpeciesService {
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Scribing Spells table are added to the spell list of your Spellcasting class.</li>
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Scribing Spells table are added to the spell list of your Spellcasting class.</li>
           </ul>
           </ul>
           <p><strong>Mark of Scribing Spells</strong></p>
           <p><strong>Mark of Scribing Spells</strong></p>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th>Spell Level</th>
           <th>Spell Level</th>
           <th>Spell</th>
           <th>Spell</th>
@@ -941,7 +941,7 @@ export class SpeciesService {
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Detection Spells table are added to the spell list of your Spellcasting class.</li>
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Detection Spells table are added to the spell list of your Spellcasting class.</li>
           </ul>
           </ul>
           <p><strong>Mark of Detection Spells</strong></p>
           <p><strong>Mark of Detection Spells</strong></p>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th>Spell Level</th>
           <th>Spell Level</th>
           <th>Spell</th>
           <th>Spell</th>
@@ -993,7 +993,7 @@ export class SpeciesService {
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Storm Spells table are added to the spell list of your Spellcasting class.</li>
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Storm Spells table are added to the spell list of your Spellcasting class.</li>
           </ul>
           </ul>
           <p><strong>Mark of Storm Spells</strong></p>
           <p><strong>Mark of Storm Spells</strong></p>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th>Spell Level</th>
           <th>Spell Level</th>
           <th>Spell</th>
           <th>Spell</th>
@@ -1116,7 +1116,7 @@ export class SpeciesService {
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Finding Spells table are added to the spell list of your Spellcasting class.</li>
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Finding Spells table are added to the spell list of your Spellcasting class.</li>
           </ul>
           </ul>
           <p><strong>Mark of Finding Spells</strong></p>
           <p><strong>Mark of Finding Spells</strong></p>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th>Spell Level</th>
           <th>Spell Level</th>
           <th>Spell</th>
           <th>Spell</th>
@@ -1316,7 +1316,7 @@ export class SpeciesService {
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class features, the spells on the Mark of Hospitality Spells table are added to the spell list of your spellcasting class.</li>
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class features, the spells on the Mark of Hospitality Spells table are added to the spell list of your spellcasting class.</li>
           </ul>
           </ul>
           <p><strong>Mark of Hospitality Spells</strong></p>
           <p><strong>Mark of Hospitality Spells</strong></p>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th>Spell Level</th>
           <th>Spell Level</th>
           <th>Spell</th>
           <th>Spell</th>
@@ -1368,7 +1368,7 @@ export class SpeciesService {
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class features, the spells on the Mark of Healing Spells table are added to the spell list of your spellcasting class.</li>
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class features, the spells on the Mark of Healing Spells table are added to the spell list of your spellcasting class.</li>
           </ul>
           </ul>
           <p><strong>Mark of Healing Spells</strong></p>
           <p><strong>Mark of Healing Spells</strong></p>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th>Spell Level</th>
           <th>Spell Level</th>
           <th>Spell</th>
           <th>Spell</th>
@@ -1468,7 +1468,7 @@ export class SpeciesService {
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Finding Spells table are added to the spell list of your Spellcasting class.</li>
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Finding Spells table are added to the spell list of your Spellcasting class.</li>
           </ul>
           </ul>
           <p><strong>Mark of Finding Spells</strong></p>
           <p><strong>Mark of Finding Spells</strong></p>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th>Spell Level</th>
           <th>Spell Level</th>
           <th>Spell</th>
           <th>Spell</th>
@@ -1531,7 +1531,7 @@ export class SpeciesService {
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Handling Spells table are added to the spell list of your Spellcasting class.</li>
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Handling Spells table are added to the spell list of your Spellcasting class.</li>
           </ul>
           </ul>
           <p><strong>Mark of Handling Spells</strong></p>
           <p><strong>Mark of Handling Spells</strong></p>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th>Spell Level</th>
           <th>Spell Level</th>
           <th>Spell</th>
           <th>Spell</th>
@@ -1614,7 +1614,7 @@ export class SpeciesService {
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Passage Spells table are added to the spell list of your Spellcasting class.</li>
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Passage Spells table are added to the spell list of your Spellcasting class.</li>
           </ul>
           </ul>
           <p><strong>Mark of Passage Spells</strong></p>
           <p><strong>Mark of Passage Spells</strong></p>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th>Spell Level</th>
           <th>Spell Level</th>
           <th>Spell</th>
           <th>Spell</th>
@@ -1666,7 +1666,7 @@ export class SpeciesService {
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Sentinel Spells table are added to the spell list of your Spellcasting class.</li>
           <li><strong>Spells of the Mark.</strong> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Sentinel Spells table are added to the spell list of your Spellcasting class.</li>
           </ul>
           </ul>
           <p><strong>Mark of Sentinel Spells</strong></p>
           <p><strong>Mark of Sentinel Spells</strong></p>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th>Spell Level</th>
           <th>Spell Level</th>
           <th>Spell</th>
           <th>Spell</th>
@@ -1883,7 +1883,7 @@ export class SpeciesService {
         <ul>
         <ul>
         <li><strong>Draconic Ancestry.</strong> You are distantly related to a particular kind of dragon. Choose a type of dragon from the below list; this determines the damage and area of your breath weapon, and the type of resistance you gain.</li>
         <li><strong>Draconic Ancestry.</strong> You are distantly related to a particular kind of dragon. Choose a type of dragon from the below list; this determines the damage and area of your breath weapon, and the type of resistance you gain.</li>
         </ul>
         </ul>
-        <table class="wiki-content-table">
+        <table class='table'>
         <tr>
         <tr>
         <th>Dragon Color</th>
         <th>Dragon Color</th>
         <th>Damage Type</th>
         <th>Damage Type</th>
@@ -2039,7 +2039,7 @@ export class SpeciesService {
           <ul>
           <ul>
           <li><strong>Chromatic Ancestry.</strong> You trace your ancestry to a chromatic dragon, granting you a special magical affinity. Choose one type of dragon from the Chromatic Ancestry table. This determines the damage type for your other traits as shown in the table.</li>
           <li><strong>Chromatic Ancestry.</strong> You trace your ancestry to a chromatic dragon, granting you a special magical affinity. Choose one type of dragon from the Chromatic Ancestry table. This determines the damage type for your other traits as shown in the table.</li>
           </ul>
           </ul>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th colspan="2">Chromatic Ancestry</th>
           <th colspan="2">Chromatic Ancestry</th>
           </tr>
           </tr>
@@ -2118,7 +2118,7 @@ export class SpeciesService {
           <ul>
           <ul>
           <li><strong>Metallic Ancestry.</strong> You trace your ancestry to a metallic dragon, granting you a special magical affinity. Choose one type of dragon from the Metallic Ancestry table. This determines the damage type for your other traits as shown in the table.</li>
           <li><strong>Metallic Ancestry.</strong> You trace your ancestry to a metallic dragon, granting you a special magical affinity. Choose one type of dragon from the Metallic Ancestry table. This determines the damage type for your other traits as shown in the table.</li>
           </ul>
           </ul>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th colspan="2">Metallic Ancestry</th>
           <th colspan="2">Metallic Ancestry</th>
           </tr>
           </tr>
@@ -2202,7 +2202,7 @@ export class SpeciesService {
           <ul>
           <ul>
           <li><strong>Gem Ancestry.</strong> You trace your ancestry to a Gem dragon, granting you a special magical affinity. Choose one type of dragon from the Gem Ancestry table. This determines the damage type for your other traits as shown in the table.</li>
           <li><strong>Gem Ancestry.</strong> You trace your ancestry to a Gem dragon, granting you a special magical affinity. Choose one type of dragon from the Gem Ancestry table. This determines the damage type for your other traits as shown in the table.</li>
           </ul>
           </ul>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th colspan="2">Gem Ancestry</th>
           <th colspan="2">Gem Ancestry</th>
           </tr>
           </tr>
@@ -2289,7 +2289,7 @@ export class SpeciesService {
           <ul>
           <ul>
           <li><strong>Chromatic Ancestry.</strong> You trace your ancestry to a chromatic dragon, granting you a special magical affinity. Choose one type of dragon from the Chromatic Ancestry table. This determines the damage type for your other traits as shown in the table.</li>
           <li><strong>Chromatic Ancestry.</strong> You trace your ancestry to a chromatic dragon, granting you a special magical affinity. Choose one type of dragon from the Chromatic Ancestry table. This determines the damage type for your other traits as shown in the table.</li>
           </ul>
           </ul>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th colspan="2">Chromatic Ancestry</th>
           <th colspan="2">Chromatic Ancestry</th>
           </tr>
           </tr>
@@ -2368,7 +2368,7 @@ export class SpeciesService {
           <ul>
           <ul>
           <li><strong>Metallic Ancestry.</strong> You trace your ancestry to a metallic dragon, granting you a special magical affinity. Choose one type of dragon from the Metallic Ancestry table. This determines the damage type for your other traits as shown in the table.</li>
           <li><strong>Metallic Ancestry.</strong> You trace your ancestry to a metallic dragon, granting you a special magical affinity. Choose one type of dragon from the Metallic Ancestry table. This determines the damage type for your other traits as shown in the table.</li>
           </ul>
           </ul>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th colspan="2">Metallic Ancestry</th>
           <th colspan="2">Metallic Ancestry</th>
           </tr>
           </tr>
@@ -2452,7 +2452,7 @@ export class SpeciesService {
           <ul>
           <ul>
           <li><strong>Gem Ancestry.</strong> You trace your ancestry to a Gem dragon, granting you a special magical affinity. Choose one type of dragon from the Gem Ancestry table. This determines the damage type for your other traits as shown in the table.</li>
           <li><strong>Gem Ancestry.</strong> You trace your ancestry to a Gem dragon, granting you a special magical affinity. Choose one type of dragon from the Gem Ancestry table. This determines the damage type for your other traits as shown in the table.</li>
           </ul>
           </ul>
-          <table class="wiki-content-table">
+          <table class='table'>
           <tr>
           <tr>
           <th colspan="2">Gem Ancestry</th>
           <th colspan="2">Gem Ancestry</th>
           </tr>
           </tr>
@@ -2728,7 +2728,7 @@ export class SpeciesService {
         <ul>
         <ul>
         <li><strong>Languages.</strong> You can speak, read, and write Abyssal.</li>
         <li><strong>Languages.</strong> You can speak, read, and write Abyssal.</li>
         </ul>
         </ul>
-        <table class="wiki-content-table">
+        <table class='table'>
         <tr>
         <tr>
         <th colspan="4">Abyssal Arcana Spells</th>
         <th colspan="4">Abyssal Arcana Spells</th>
         </tr>
         </tr>
@@ -2870,7 +2870,7 @@ export class SpeciesService {
     <p><b>Magical Detection:</b> You can cast the Detect Magic and the Detect Poison and Disease spells with this trait. Starting at 3rd level, you can also cast the See Invisibility spell with it. Once you cast either spell with this trait, you can't cast that spell again until you finish a Long Rest. Intelligence is your Spellcasting Ability for these spells, and you don't require material components for them.</p>
     <p><b>Magical Detection:</b> You can cast the Detect Magic and the Detect Poison and Disease spells with this trait. Starting at 3rd level, you can also cast the See Invisibility spell with it. Once you cast either spell with this trait, you can't cast that spell again until you finish a Long Rest. Intelligence is your Spellcasting Ability for these spells, and you don't require material components for them.</p>
     <p><b>Spells of the Mark:</b> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Detection Spells table are added to the spell list of your Spellcasting class.</p>
     <p><b>Spells of the Mark:</b> If you have the Spellcasting or Pact Magic class feature, the spells on the Mark of Detection Spells table are added to the spell list of your Spellcasting class.</p>
     <p><b>Mark of Detection Spells</b></p>
     <p><b>Mark of Detection Spells</b></p>
-    <table>
+    <table class='table'>>
       <tr>
       <tr>
         <th>Spell Level</th>
         <th>Spell Level</th>
         <th>Spells</th>
         <th>Spells</th>

+ 3 - 3
src/services/subclass/subclass.service.ts

@@ -336,7 +336,7 @@ export class SubclassService {
           <p>In combat, the beast acts during your turn. It can move and use its reaction on its own, but the only action it takes is the Dodge action, unless you take a bonus action on your turn to command it to take another action. That action can be one in its stat block or some other action. You can also sacrifice one of your attacks when you take the Attack action to command the beast to take the Attack action. If<br />
           <p>In combat, the beast acts during your turn. It can move and use its reaction on its own, but the only action it takes is the Dodge action, unless you take a bonus action on your turn to command it to take another action. That action can be one in its stat block or some other action. You can also sacrifice one of your attacks when you take the Attack action to command the beast to take the Attack action. If<br />
           you are incapacitated, the beast can take any action of its choice, not just Dodge.</p>
           you are incapacitated, the beast can take any action of its choice, not just Dodge.</p>
           <p>If the beast has died within the last hour, you can use your action to touch it and expend a spell slot of 1st level or higher. The beast returns to life after 1 minute with all its hit points restored. When you finish a long rest, you can summon a different primal beast. The new beast appears in an unoccupied space within 5 feet of you, and you choose its stat block and appearance. If you already have a beast from this feature, it vanishes when the new beast appears. The beast also vanishes if you die.</p>
           <p>If the beast has died within the last hour, you can use your action to touch it and expend a spell slot of 1st level or higher. The beast returns to life after 1 minute with all its hit points restored. When you finish a long rest, you can summon a different primal beast. The new beast appears in an unoccupied space within 5 feet of you, and you choose its stat block and appearance. If you already have a beast from this feature, it vanishes when the new beast appears. The beast also vanishes if you die.</p>
-          <table class="wiki-content-table">
+          <table 
           <tr>
           <tr>
           <th colspan="6">Beast of the Land</th>
           <th colspan="6">Beast of the Land</th>
           </tr>
           </tr>
@@ -393,7 +393,7 @@ export class SubclassService {
           <td colspan="6"><strong><em>Maul.</em></strong> <em>Melee Weapon Attack:</em> your spell attack modifier to hit, reach 5 ft., one target. <em>Hit:</em> 1d8 + 2 + PB slashing damage.</td>
           <td colspan="6"><strong><em>Maul.</em></strong> <em>Melee Weapon Attack:</em> your spell attack modifier to hit, reach 5 ft., one target. <em>Hit:</em> 1d8 + 2 + PB slashing damage.</td>
           </tr>
           </tr>
           </table>
           </table>
-          <table class="wiki-content-table">
+          <table 
           <tr>
           <tr>
           <th colspan="6">Beast of the Sea</th>
           <th colspan="6">Beast of the Sea</th>
           </tr>
           </tr>
@@ -450,7 +450,7 @@ export class SubclassService {
           <td colspan="6"><strong><em>Binding Strike.</em></strong> <em>Melee Weapon Attack:</em> your spell attack modifier to hit, reach 5 ft., one target. <em>Hit:</em> 1d6 + 2 + PB piercing or bludgeoning damage (your choice), and the target is grappled (escape DC equals your spell save DC). Until this grapple ends, the beast can't use this attack on another target.</td>
           <td colspan="6"><strong><em>Binding Strike.</em></strong> <em>Melee Weapon Attack:</em> your spell attack modifier to hit, reach 5 ft., one target. <em>Hit:</em> 1d6 + 2 + PB piercing or bludgeoning damage (your choice), and the target is grappled (escape DC equals your spell save DC). Until this grapple ends, the beast can't use this attack on another target.</td>
           </tr>
           </tr>
           </table>
           </table>
-          <table class="wiki-content-table">
+          <table 
           <tr>
           <tr>
           <th colspan="6">Beast of the Sky</th>
           <th colspan="6">Beast of the Sky</th>
           </tr>
           </tr>