crobi 10 lat temu
rodzic
commit
c77b9e651d

+ 12
- 4
generator/components-test.html Wyświetl plik

16
             <card-icon src="/icons/lorc/originals/svg/book-cover.svg"></card-icon>
16
             <card-icon src="/icons/lorc/originals/svg/book-cover.svg"></card-icon>
17
         </card-title>
17
         </card-title>
18
         <card-contents>
18
         <card-contents>
19
-            <card-subtitle>Mage spell</card-subtitle>
19
+            <card-subtitle>1st level evocation</card-subtitle>
20
             <card-rule></card-rule>
20
             <card-rule></card-rule>
21
             <card-property><h4>Casting time</h4><p>1 action</p></card-property>
21
             <card-property><h4>Casting time</h4><p>1 action</p></card-property>
22
             <card-property><h4>Range</h4><p>Self (15ft cone)</p></card-property>
22
             <card-property><h4>Range</h4><p>Self (15ft cone)</p></card-property>
23
             <card-property><h4>Components</h4><p>V,S,Some obscure long named material</p></card-property>
23
             <card-property><h4>Components</h4><p>V,S,Some obscure long named material</p></card-property>
24
             <card-rule></card-rule>
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
             <card-fill size="2"></card-fill>
27
             <card-fill size="2"></card-fill>
27
             <card-section>At higher levels</card-section>
28
             <card-section>At higher levels</card-section>
28
             <card-description><p>+1d6 damage for each slot above 1st</p></card-description>
29
             <card-description><p>+1d6 damage for each slot above 1st</p></card-description>
32
     <card-front class="card-size-25x35" color="saddlebrown">
33
     <card-front class="card-size-25x35" color="saddlebrown">
33
         <card-title>
34
         <card-title>
34
             <h1>Brown bear</h1>
35
             <h1>Brown bear</h1>
35
-            <h2>1</h2>
36
+            <h2>2</h2>
36
             <card-icon src="/icons/lorc/originals/svg/pawprint.svg"></card-icon>
37
             <card-icon src="/icons/lorc/originals/svg/pawprint.svg"></card-icon>
37
         </card-title>
38
         </card-title>
38
         <card-contents>
39
         <card-contents>
39
             <card-subtitle>Medium beast</card-subtitle>
40
             <card-subtitle>Medium beast</card-subtitle>
40
             <card-rule></card-rule>
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
         </card-contents>
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
     </card-front>
51
     </card-front>
44
 </body>
52
 </body>
45
 </html>
53
 </html>

+ 1
- 2
generator/components/card-contents.html Wyświetl plik

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

+ 2
- 4
generator/components/card-description.html Wyświetl plik

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

+ 6
- 1
generator/components/card-front.html Wyświetl plik

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

+ 3
- 4
generator/components/card-property.html Wyświetl plik

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

+ 5
- 2
generator/components/card-rule.html Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz