Nenhuma descrição
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

card-size.css 2.4KB

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