main.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /**
  2. * This file is part of HTML2print.
  3. *
  4. * HTML2print is free software: you can redistribute it and/or modify it under the
  5. * terms of the GNU Affero General Public License as published by the Free
  6. * Software Foundation, either version 3 of the License, or (at your option) any
  7. * later version.
  8. *
  9. * HTML2print is distributed in the hope that it will be useful, but WITHOUT ANY
  10. * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  11. * PARTICULAR PURPOSE. See the GNU Affero General Public License for more
  12. * details.
  13. *
  14. * You should have received a copy of the GNU Affero General Public License along
  15. * with HTML2print. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. /**
  18. * The less CSS is splitted accross different files for a better organisation.
  19. *
  20. * This is the main less css file that defines custom values and requires all
  21. * the the neccessary dependencies.
  22. */
  23. /**
  24. * THE CODE BELOW IS REQUIRED TO MAKE HTML2PRINT WORK.
  25. */
  26. @function mm2pt($mm){
  27. @return $mm*2.8346pt;
  28. }
  29. /**
  30. * Defines and loads the rules that set the geometry of the page and its
  31. * representation on screen. This is the core of html2print.
  32. *
  33. * Customize the variables to your needs.
  34. */
  35. /* the geometry of the page */
  36. $page-width: mm2pt(90);
  37. $page-height: mm2pt(150);
  38. /* the size of the crop marks based on scribus defaults */
  39. $crop-size: mm2pt(12);
  40. /* the size of bleed */
  41. $bleed: mm2pt(5);
  42. /* loads the core file */
  43. // @import "html2print.scss";
  44. /**
  45. * THE CODE BELOW IS NOT REQUIRED TO MAKE HTML2PRINT WORK, ALTHOUGH IT PROVES
  46. * USEFUL IN MANY SITUATIONS.
  47. *
  48. * YOU ARE ENCOURAGED TO CUSTOMIZE IT TO YOU NEEDS.
  49. */
  50. /**
  51. * Defines and generate helper css rules to absolutly position elements on a
  52. * grid.
  53. *
  54. * Customize the variables to your needs.
  55. */
  56. $col-number: 9;
  57. $col-gutter: mm2pt(3);
  58. //$row-number: 13;
  59. $row-number: 12;
  60. $row-gutter: mm2pt(4);
  61. $grid-color: rgba(255, 0, 0, 0.25);
  62. $baseline-grid-color: rgba(0, 255, 255, 0.15);
  63. /* Loads the rules for using grids */
  64. // @import "grid.scss";
  65. /**
  66. * Loads the rules to outline the main blocs
  67. */
  68. // @import "debug.scss";
  69. /**
  70. * Loads a few less helpers
  71. */
  72. // @import "mixins.scss";
  73. /**
  74. * Defines and loads the rules that set the base layout of the document
  75. * (header, body, footer)
  76. *
  77. * Customize the variables to your needs.
  78. */
  79. // FIXME: make a case for single page layouts
  80. $page-margin-inside: mm2pt(13);
  81. $page-margin-outside: mm2pt(8);
  82. $page-margin-top: mm2pt(8);
  83. $page-margin-bottom: mm2pt(22);
  84. // @import "layout.scss";
  85. /**
  86. * Loads your own styles.
  87. *
  88. * Customize the file/path to you needs.
  89. */
  90. /*@import '/vendors/reset-css/reset.css';*/
  91. /*@import "../vendors/normalize.css/normalize.css";*/
  92. /*@import "../vendors/normalize-opentype.css/normalize-opentype.css";*/
  93. // @import "fonts.scss";
  94. // @import "colors.scss";
  95. $line-height: mm2pt(4);
  96. // @import "styles.scss";
  97. @import "html2print.scss";
  98. @import "grid.scss";
  99. @import "debug.scss";
  100. @import "mixins.scss";
  101. @import "layout.scss";
  102. @import "fonts.scss";
  103. @import "colors.scss";
  104. @import "styles.scss";
  105. /*@import "export.scss";*/