crobi 10 gadus atpakaļ
vecāks
revīzija
0e7ecb46db
3 mainītis faili ar 38 papildinājumiem un 11 dzēšanām
  1. 16
    0
      generator/css/card-size.css
  2. 16
    10
      generator/css/cards.css
  3. 6
    1
      generator/js/cards.js

+ 16
- 0
generator/css/card-size.css Parādīt failu

@@ -54,6 +54,10 @@ page[size="Letter"] {
54 54
     min-width:2.25in;
55 55
     height:3.5in;
56 56
 }
57
+.card-size-225x35 .card-back-icon {
58
+    width: 1in;
59
+    height: 1in;
60
+}
57 61
 
58 62
 /* Poker / Magic card size */
59 63
 .card-size-25x35 {
@@ -61,6 +65,10 @@ page[size="Letter"] {
61 65
     min-width:2.5in;
62 66
     height:3.5in;
63 67
 }
68
+.card-size-25x35 .card-back-icon {
69
+    width: 1in;
70
+    height: 1in;
71
+}
64 72
 
65 73
 /* Poker / Magic card size */
66 74
 .card-size-35x50 {
@@ -68,6 +76,10 @@ page[size="Letter"] {
68 76
     min-width:3.5in;
69 77
     height:5.0in;
70 78
 }
79
+.card-size-35x50 .card-back-icon {
80
+    width: 1.5in;
81
+    height: 1.5in;
82
+}
71 83
 
72 84
 /* Landscape big card */
73 85
 .card-size-75x50 {
@@ -75,6 +87,10 @@ page[size="Letter"] {
75 87
     min-width:7.5in;
76 88
     height:5.0in;
77 89
 }
90
+.card-size-75x50 .card-back-icon {
91
+    width: 2in;
92
+    height: 2in;
93
+}
78 94
 
79 95
 .page[size="A4"] .card-size-full3x3 {
80 96
     width:69mm;

+ 16
- 10
generator/css/cards.css Parādīt failu

@@ -26,13 +26,13 @@
26 26
     background-color: white;
27 27
     border-radius: 4mm;
28 28
     border-color: inherit;
29
-    margin: 2mm;
29
+    margin: 1mm;
30 30
     flex: 1;
31 31
     display: flex;
32 32
 }
33 33
 
34 34
 .card-back-inner {
35
-    margin: 2mm;
35
+    margin: 3mm;
36 36
     border: 1mm solid;
37 37
     border-color: inherit;
38 38
     border-radius: 4mm;
@@ -45,8 +45,8 @@
45 45
 }
46 46
 
47 47
 .card-back-icon {
48
-    width: 30mm;
49
-    height: 30mm;
48
+    width: 1in;
49
+    height: 1in;
50 50
     border: 4mm solid;
51 51
     border-color: inherit;
52 52
     border-radius: 4mm;
@@ -130,7 +130,7 @@
130 130
 .card-subtitle {
131 131
     height: 18px;
132 132
     line-height: 18px;
133
-    margin-bottom: 1mm;
133
+    margin-bottom: 0.0em;
134 134
     font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
135 135
     font-size: 10pt;
136 136
     font-style: italic;
@@ -163,13 +163,15 @@
163 163
 }
164 164
 
165 165
 .card-p {
166
-    margin-top: 0.0em;
167
-    margin-bottom: 0.5em;
168
-    font-size: inherit;
166
+
169 167
 }
170 168
 
171 169
 .card-fill {flex:1;}
172 170
 
171
+.card-ruler + .card-description-line {
172
+    margin-top: 0.5em;
173
+}
174
+
173 175
 .card-description-line {
174 176
     margin-bottom: 0.5em;
175 177
     font-size: inherit;
@@ -178,6 +180,10 @@
178 180
 .card-description-name {
179 181
     display: inline;
180 182
     font-size: inherit;
183
+    font-style: italic;
184
+}
185
+.card-description-name::after {
186
+    content: ".";
181 187
 }
182 188
 .card-description-text {
183 189
     display: inline;
@@ -186,8 +192,8 @@
186 192
 .card-ruler {
187 193
     width: 100%;
188 194
     height: 1.0mm;
189
-    margin-top: 0.5em;
190
-    margin-bottom: 0.2em;
195
+    margin-top: 0.3em;
196
+    margin-bottom: 0.3em;
191 197
 }
192 198
 
193 199
 .card-bullet-line {

+ 6
- 1
generator/js/cards.js Parādīt failu

@@ -137,6 +137,10 @@ function card_element_unknown(params, card_data, options) {
137 137
     return '<div>Unknown element: ' + params.join('<br />') + '</div>';
138 138
 }
139 139
 
140
+function card_element_empty(params, card_data, options) {
141
+    return '';
142
+}
143
+
140 144
 var card_element_generators = {
141 145
     subtitle: card_element_subtitle,
142 146
     property: card_element_property,
@@ -146,7 +150,8 @@ var card_element_generators = {
146 150
     text: card_element_text,
147 151
     bullet: card_element_bullet,
148 152
     fill: card_element_fill,
149
-    section: card_element_section
153
+    section: card_element_section,
154
+    disabled: card_element_empty
150 155
 };
151 156
 
152 157
 // ============================================================================

Notiek ielāde…
Atcelt
Saglabāt