Robert Carnecky 10 年之前
父節點
當前提交
6c5d96a976
共有 6 個文件被更改,包括 0 次插入1734 次删除
  1. 0
    101
      generator/css/card-size.css
  2. 0
    234
      generator/css/cards.css
  3. 0
    12
      generator/css/class-icons.css
  4. 0
    34
      generator/css/custom-icons.css
  5. 0
    1319
      generator/css/icons.css
  6. 0
    34
      generator/css/output.css

+ 0
- 101
generator/css/card-size.css 查看文件

@@ -1,101 +0,0 @@
1
-/*
2
-    Full page printing CSS
3
-    ======================
4
-
5
-    Since we want precisely specify the card sizes, we must not allow the user to scale the content to fit a sheet of paper.
6
-    We must also make sure the browser does not add randomly sized margins to the page.
7
-
8
-    Instead, we use absolute sizes for all content, such that it fills a sheet of paper:
9
-    1) Remove all page margins (using the @page CSS rule). The borders of the document will be outside of the printable area,
10
-       however, we will cluster all content around the center, so that we won't crop anything.
11
-    2) Fill the document with <page> elements which have an absolute size equal to the full area of the paper.
12
-    3) Fill each page with cards, arranged around the center of the page.
13
-*/
14
-
15
-
16
-/* Center all content within a page */
17
-.page {
18
-    display: flex;
19
-    align-content: center;
20
-    justify-content: center;
21
-    flex-direction: row;
22
-    flex-wrap: wrap;
23
-    page-break-after: always;
24
-    padding: 0;
25
-}
26
-
27
-/* A4 paper area */
28
-/* Chrome has problems with page sizes given in metric units. Make the paper area slightly smaller to work around this. */
29
-page[size="A4"] {
30
-    width:  210mm; /* full: 210.0mm */
31
-    height: 296mm; /* full: 297.0mm */
32
-}
33
-
34
-/* US letter area */
35
-page[size="Letter"] {
36
-    width:  8.5in;
37
-    height: 11.0in;
38
-}
39
-
40
-page[size="25x35"] {
41
-    width: 2.5in;
42
-    height: 3.5in;
43
-}
44
-
45
-/* Default card size */
46
-.card {
47
-    width:2.5in;
48
-    height:3.5in;
49
-}
50
-
51
-/* Bridge card size */
52
-.card-size-225x35 {
53
-    width:2.25in;
54
-    height:3.5in;
55
-}
56
-.card-size-225x35 .card-back-icon {
57
-    width: 1in;
58
-    height: 1in;
59
-}
60
-
61
-/* Poker / Magic card size */
62
-.card-size-25x35 {
63
-    width:2.5in;
64
-    height:3.5in;
65
-}
66
-.card-size-25x35 .card-back-icon {
67
-    width: 1in;
68
-    height: 1in;
69
-}
70
-
71
-/* Poker / Magic card size */
72
-.card-size-35x50 {
73
-    width:3.5in;
74
-    min-width:3.5in;
75
-    height:5.0in;
76
-}
77
-.card-size-35x50 .card-back-icon {
78
-    width: 1.5in;
79
-    height: 1.5in;
80
-}
81
-
82
-/* Landscape big card */
83
-.card-size-75x50 {
84
-    width:7.5in;
85
-    height:5.0in;
86
-}
87
-.card-size-75x50 .card-back-icon {
88
-    width: 2in;
89
-    height: 2in;
90
-}
91
-
92
-/* Card sizes that fill out the entire sheet of paper (minimal margins) */
93
-.page[size="A4"] .card-size-full3x3 {
94
-    width:69mm;
95
-    height:98mm;
96
-}
97
-
98
-.page[size="Letter"] .card-size-full3x3 {
99
-    width:71mm;
100
-    height:92mm;
101
-}

+ 0
- 234
generator/css/cards.css 查看文件

@@ -1,234 +0,0 @@
1
-.card {
2
-    border: 2mm solid;
3
-    border-radius: 4px;
4
-    box-sizing: border-box;
5
-    position: relative;
6
-    display: flex;
7
-    flex-direction: column;
8
-    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
9
-    font-size: 8pt;
10
-}
11
-
12
-.card-content-container {
13
-    padding:2mm;
14
-    padding-top:1mm;
15
-    border-radius: 2mm;
16
-    margin-top:0px;
17
-    background-color: white;
18
-    border-color: inherit;
19
-    display: flex;
20
-    flex-direction: column;
21
-    flex: 1;
22
-    font-size: inherit;
23
-}
24
-
25
-.card-back {
26
-    background-color: white;
27
-    border-radius: 4mm;
28
-    border-color: inherit;
29
-    margin: 3mm;
30
-    flex: 1;
31
-    display: flex;
32
-}
33
-
34
-.card-back-inner {
35
-    margin: 3mm;
36
-    border: 1mm solid;
37
-    border-color: inherit;
38
-    border-radius: 4mm;
39
-    flex: 1;
40
-    display: flex;
41
-    flex-direction: row;
42
-    flex-wrap: wrap;
43
-    justify-content: center;
44
-    align-items: center;
45
-}
46
-
47
-.card-back-icon {
48
-    width: 1in;
49
-    height: 1in;
50
-    border: 4mm solid;
51
-    border-color: inherit;
52
-    border-radius: 4mm;
53
-    background-repeat: no-repeat;
54
-    background-size: contain;
55
-}
56
-
57
-.card-title-icon {
58
-    width: 12mm;
59
-    height: 12mm;
60
-    background-repeat: no-repeat;
61
-    background-size: contain;
62
-    background-color: inherit;
63
-    border-color: inherit;
64
-}
65
-.card-title-icon-container {
66
-    position: absolute;
67
-    right: -1mm;
68
-    top: -1mm;
69
-    border: 1mm solid;
70
-    border-radius: 1mm;
71
-    background-color: inherit;
72
-    border-color: inherit;
73
-}
74
-
75
-.card-title-inlineicon {
76
-    width: 7mm;
77
-    height: 7mm;
78
-    background-repeat: no-repeat;
79
-    background-size: contain;
80
-    background-color: inherit;
81
-    border-color: inherit;
82
-}
83
-.card-title-inlineicon-container {
84
-    position: absolute;
85
-    right: -1mm;
86
-    top: -1mm;
87
-    border: 1mm solid;
88
-    border-radius: 1mm;
89
-    background-color: inherit;
90
-    border-color: inherit;
91
-}
92
-
93
-.card-title {
94
-    height: 8mm;
95
-    padding-left: 2mm;
96
-    font-family: Lora, 'Calisto MT', 'Bookman Old Style', Bookman, 'Goudy Old Style', Garamond, 'Hoefler Text', 'Bitstream Charter', Georgia, serif;
97
-    font-variant: small-caps;
98
-    font-weight: bold;
99
-    background-color: inherit;
100
-    color: white;
101
-}
102
-.card-title-16 {
103
-    font-size: 16pt;
104
-    line-height: 6.5mm;
105
-}
106
-.card-title-15 {
107
-    font-size: 15pt;
108
-    line-height: 6.5mm;
109
-}
110
-.card-title-14 {
111
-    font-size: 14pt;
112
-    line-height: 6.5mm;
113
-}
114
-.card-title-13 {
115
-    font-size: 13pt;
116
-    line-height: 7mm;
117
-}
118
-.card-title-12 {
119
-    font-size: 12pt;
120
-    line-height: 7mm;
121
-}
122
-.card-title-11 {
123
-    font-size: 11pt;
124
-    line-height: 7.5mm;
125
-}
126
-.card-title-10 {
127
-    font-size: 10pt;
128
-    line-height: 7.5mm;
129
-}
130
-.card-subtitle {
131
-    height: 18px;
132
-    line-height: 18px;
133
-    margin-bottom: 0.0em;
134
-    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
135
-    font-size: 10pt;
136
-    font-style: italic;
137
-}
138
-
139
-.card-property-line {
140
-    text-indent: -1em;
141
-    margin-left: 1em;
142
-    font-size: inherit;
143
-    color: black;
144
-}
145
-
146
-.card-property-name {
147
-    display: inline;
148
-    font-size: inherit;
149
-}
150
-.card-property-text {
151
-    display: inline;
152
-}
153
-
154
-.card-section {
155
-    border-bottom: 1px solid;
156
-    font-size: 10pt;
157
-    font-variant: small-caps;
158
-    font-weight: normal;
159
-    letter-spacing: 1px;
160
-    margin: 0;
161
-    border-color: inherit;
162
-}
163
-
164
-.card-section + .card-element {
165
-    margin-top: 0.3em;
166
-}
167
-
168
-.card-p {
169
-
170
-}
171
-
172
-.card-fill {flex:1;}
173
-
174
-.card-description-line {
175
-    margin-top: 0.5em;
176
-    margin-bottom: 0.0em;
177
-    font-size: inherit;
178
-    color: black;
179
-}
180
-.card-description-name {
181
-    display: inline;
182
-    font-size: inherit;
183
-    font-style: italic;
184
-}
185
-.card-description-name::after {
186
-    content: ".";
187
-}
188
-.card-description-text {
189
-    display: inline;
190
-}
191
-
192
-.card-ruler {
193
-    width: 100%;
194
-    height: 1.0mm;
195
-    margin-top: 0.3em;
196
-    margin-bottom: 0.3em;
197
-}
198
-
199
-.card-box {
200
-    display: inline;
201
-    height: 10mm;
202
-    width: 10mm;
203
-    margin-right: 0.3em;
204
-}
205
-
206
-.card-stats {
207
-    width: 100%
208
-}
209
-
210
-.card-stats-header {
211
-    text-align: center;
212
-    padding: 0;
213
-    width: 16.6%;
214
-}
215
-
216
-.card-stats-cell {
217
-    text-align: center;
218
-    padding: 0;
219
-}
220
-
221
-.card-bullet-line {
222
-    font-size: inherit;
223
-    color: black;
224
-    padding-left: 16px;
225
-    padding-bottom: 0;
226
-    margin-bottom: 0;
227
-    margin-top: 0;
228
-}
229
-
230
-.card-bullet {
231
-    margin-bottom: 0;
232
-    margin-top: 0;
233
-    font-size: inherit;
234
-}

+ 0
- 12
generator/css/class-icons.css 查看文件

@@ -1,12 +0,0 @@
1
-.icon-class-barbarian { background-image: url(../img/classes/barbarian.png);}
2
-.icon-class-bard { background-image: url(../img/classes/bard.png);}
3
-.icon-class-cleric { background-image: url(../img/classes/cleric.png);}
4
-.icon-class-druid { background-image: url(../img/classes/druid.png);}
5
-.icon-class-fighter { background-image: url(../img/classes/fighter.png);}
6
-.icon-class-monk { background-image: url(../img/classes/monk.png);}
7
-.icon-class-paladin { background-image: url(../img/classes/paladin.png);}
8
-.icon-class-ranger { background-image: url(../img/classes/ranger.png);}
9
-.icon-class-rogue { background-image: url(../img/classes/rogue.png);}
10
-.icon-class-sorcerer { background-image: url(../img/classes/sorcerer.png);}
11
-.icon-class-warlock { background-image: url(../img/classes/warlock.png);}
12
-.icon-class-wizard { background-image: url(../img/classes/wizard.png);}

+ 0
- 34
generator/css/custom-icons.css 查看文件

@@ -1,34 +0,0 @@
1
-.icon-custom-armor-light { background-image: url(../img/leather-vest.png);}
2
-.icon-custom-armor-medium { background-image: url(../img/lamellar.png);}
3
-.icon-custom-armor-heavy { background-image: url(../img/breastplate.png);}
4
-.icon-custom-shield { background-image: url(../img/round-shield.png);}
5
-
6
-.icon-custom-potion { background-image: url(../img/drink-me.png);}
7
-.icon-custom-light { background-image: url(../img/candle-flame.png);}
8
-.icon-custom-flask { background-image: url(../img/fizzing-flask.png);}
9
-.icon-custom-vial { background-image: url(../img/chemical-drop.png);}
10
-.icon-custom-poison { background-image: url(../img/poison-bottle.png);}
11
-.icon-custom-trap { background-image: url(../img/wolf-trap.png);}
12
-.icon-custom-item { background-image: url(../img/knapsack.png);}
13
-.icon-custom-wand { background-image: url(../img/crystal-wand.png);}
14
-.icon-custom-swords { background-image: url(../img/crossed-swords.png);}
15
-.icon-custom-arrows { background-image: url(../img/target-arrows.png);}
16
-.icon-custom-swordarrow { background-image: url(../img/mixed-swords.png);}
17
-
18
-.icon-custom-spell { background-image: url(../img/white-book.png);}
19
-.icon-custom-spell-0 { background-image: url(../img/white-book-0.png);}
20
-.icon-custom-spell-1 { background-image: url(../img/white-book-1.png);}
21
-.icon-custom-spell-2 { background-image: url(../img/white-book-2.png);}
22
-.icon-custom-spell-3 { background-image: url(../img/white-book-3.png);}
23
-.icon-custom-spell-4 { background-image: url(../img/white-book-4.png);}
24
-.icon-custom-spell-5 { background-image: url(../img/white-book-5.png);}
25
-.icon-custom-spell-6 { background-image: url(../img/white-book-6.png);}
26
-.icon-custom-spell-7 { background-image: url(../img/white-book-7.png);}
27
-.icon-custom-spell-8 { background-image: url(../img/white-book-8.png);}
28
-.icon-custom-spell-9 { background-image: url(../img/white-book-9.png);}
29
-.icon-custom-spell-holy { background-image: url(../img/white-book-cd.png);}
30
-.icon-custom-spell-runes { background-image: url(../img/book-cover.png);}
31
-
32
-.icon-custom-class-arcane { background-image: url(../img/robe.png);}
33
-.icon-custom-class-cleric { background-image: url(../img/holy-symbol.png);}
34
-.icon-custom-class-rogue { background-image: url(../img/cloak-dagger.png);}

+ 0
- 1319
generator/css/icons.css
文件差異過大導致無法顯示
查看文件


+ 0
- 34
generator/css/output.css 查看文件

@@ -1,34 +0,0 @@
1
-.page-background {
2
-  background: rgb(204,204,204); 
3
-}
4
-
5
-body {
6
-    display: flex;
7
-    justify-content:center;
8
-    align-content:center;
9
-}
10
-
11
-.page-preview {
12
-    background: white;
13
-    margin: 0 auto;
14
-    margin-bottom: 16px;
15
-    box-shadow: 0 0 8px rgba(0,0,0,0.5);
16
-}
17
-
18
-@media print {
19
-  .page-preview {
20
-    margin: 0;
21
-    padding: 0;
22
-    border: 0;
23
-    box-shadow: 0;
24
-    background-color: white;
25
-  }
26
-  .page-background {
27
-    margin: 0;
28
-    padding: 0;
29
-    border: 0;
30
-    box-shadow: 0;
31
-    /* Set the background to gray to visualize the page size in the print preview */
32
-    background-color: gray;
33
-  }
34
-}

Loading…
取消
儲存