crobi 10 jaren geleden
bovenliggende
commit
c77b9e651d

+ 12
- 4
generator/components-test.html Bestand weergeven

@@ -16,13 +16,14 @@
16 16
             <card-icon src="/icons/lorc/originals/svg/book-cover.svg"></card-icon>
17 17
         </card-title>
18 18
         <card-contents>
19
-            <card-subtitle>Mage spell</card-subtitle>
19
+            <card-subtitle>1st level evocation</card-subtitle>
20 20
             <card-rule></card-rule>
21 21
             <card-property><h4>Casting time</h4><p>1 action</p></card-property>
22 22
             <card-property><h4>Range</h4><p>Self (15ft cone)</p></card-property>
23 23
             <card-property><h4>Components</h4><p>V,S,Some obscure long named material</p></card-property>
24 24
             <card-rule></card-rule>
25
-            <card-description><h4>Mechanics</h4><p>Each creature in a 15-foot cone must make a Dexterity saving throw. A creature takes 3d6 fire damage on a failed save, or half as much damage on a successful one.</p></card-description>
25
+            <card-description><h4>Mechanics</h4><p>Each creature in a 15-foot cone must make a Dexterity saving throw. A creature takes <b>3d6 fire damage</b> on a failed save, or half as much damage on a successful one.</p></card-description>
26
+            <card-description><h4>Ignite</h4><p>The fire ignites any flammable objects in the area that aren't being worn or carried.</p></card-description>
26 27
             <card-fill size="2"></card-fill>
27 28
             <card-section>At higher levels</card-section>
28 29
             <card-description><p>+1d6 damage for each slot above 1st</p></card-description>
@@ -32,14 +33,21 @@
32 33
     <card-front class="card-size-25x35" color="saddlebrown">
33 34
         <card-title>
34 35
             <h1>Brown bear</h1>
35
-            <h2>1</h2>
36
+            <h2>2</h2>
36 37
             <card-icon src="/icons/lorc/originals/svg/pawprint.svg"></card-icon>
37 38
         </card-title>
38 39
         <card-contents>
39 40
             <card-subtitle>Medium beast</card-subtitle>
40 41
             <card-rule></card-rule>
41
-            <card-property>Test</card-property>
42
+            <card-property><h4>Armor class</h4><p>12 (natural armor)</p></card-property>
43
+            <card-property><h4>Hit points</h4><p>7 (2d6)</p></card-property>
44
+            <card-rule></card-rule>
45
+            <card-fill size="2"></card-fill>
42 46
         </card-contents>
47
+        <card-title>
48
+            <h1>Druid thingy</h1>
49
+            <card-icon src="/icons/lorc/originals/svg/stag-head.svg"></card-icon>
50
+        </card-title>
43 51
     </card-front>
44 52
 </body>
45 53
 </html>

+ 1
- 2
generator/components/card-contents.html Bestand weergeven

@@ -1,8 +1,8 @@
1 1
 <template id="card-contents">
2 2
     <style>
3
-
4 3
         :host {
5 4
             padding: 6px;
5
+            padding-top: 4px;
6 6
             border-radius: 6px;
7 7
             background-color: white;
8 8
             border-color: inherit;
@@ -11,7 +11,6 @@
11 11
             flex: 1;
12 12
             font-size: inherit;
13 13
         }
14
-
15 14
     </style>
16 15
 
17 16
     <content></content>

+ 2
- 4
generator/components/card-description.html Bestand weergeven

@@ -1,7 +1,7 @@
1 1
 
2 2
 <template id="card-description">
3 3
     <style>
4
-        div {
4
+        :host {
5 5
             margin-top: 0.5em;
6 6
             margin-bottom: 0.0em;
7 7
             font-size: inherit;
@@ -28,9 +28,7 @@
28 28
         }
29 29
     </style>
30 30
 
31
-    <div>
32
-        <content></content>
33
-    </div>
31
+    <content></content>
34 32
 </template>
35 33
 
36 34
 <script>

+ 6
- 1
generator/components/card-front.html Bestand weergeven

@@ -19,10 +19,15 @@
19 19
             font-size: 8pt;
20 20
         }
21 21
 
22
-        ::content > card-title {
22
+        ::content > card-title:first-child {
23 23
             margin-top: -3px;
24 24
             margin-bottom: 3px;
25 25
         }
26
+
27
+        ::content > card-title:last-child {
28
+            margin-top: 3px;
29
+            margin-bottom: -3px;
30
+        }
26 31
     </style>
27 32
 
28 33
     <style type='text/css' id="color-style">

+ 3
- 4
generator/components/card-property.html Bestand weergeven

@@ -1,7 +1,7 @@
1 1
 
2 2
 <template id="card-property">
3 3
     <style>
4
-        div {
4
+        :host {
5 5
             /* Indenting everything EXCEPT the first line. */
6 6
             text-indent: -1em;
7 7
             margin-left: 1em;
@@ -23,9 +23,8 @@
23 23
         }
24 24
     </style>
25 25
 
26
-    <div>
27
-        <content></content>
28
-    </div>
26
+    <content></content>
27
+
29 28
 </template>
30 29
 
31 30
 <script>

+ 5
- 2
generator/components/card-rule.html Bestand weergeven

@@ -1,11 +1,14 @@
1 1
 
2 2
 <template id="card-rule">
3 3
     <style>
4
+        :host {
5
+            line-height: 0pt;
6
+            margin-top: 3px;
7
+            margin-bottom: 3px;
8
+        }
4 9
         #rule {
5 10
             width: 100%;
6 11
             height: 4px;
7
-            margin-top: 3px;
8
-            margin-bottom: 3px;
9 12
         }
10 13
     </style>
11 14
 

Laden…
Annuleren
Opslaan