regen-report.css 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. #markup {
  2. display: flex;
  3. justify-content: center;
  4. }
  5. #markuparea {
  6. width: 95%;
  7. height: 100%;
  8. resize: vertical;
  9. }
  10. /*https://stackoverflow.com/questions/90178/make-a-div-fill-the-height-of-the-remaining-screen-space*/
  11. #previewdiv {
  12. font-family: timesnewroman;
  13. background-color: #383838;
  14. color: #aaa;
  15. font-size: 12pt;
  16. margin:0;
  17. height: 70vh;
  18. overflow: scroll;
  19. }
  20. .preview span {
  21. position: absolute;
  22. font-size: 12px;
  23. user-select: none;
  24. }
  25. /* Контейнер страницы */
  26. .preview .page-container {
  27. padding: 16px;
  28. }
  29. /* Разделитель */
  30. .preview hr {
  31. width: 50%;
  32. }
  33. /* Все страницы */
  34. .preview .page {
  35. background-position:2cm 1cm;
  36. background-size: 18.5cm 28.2cm;
  37. box-sizing: border-box;
  38. width: 21cm;
  39. height: 29.7cm;
  40. padding: 2cm 1.5cm 0cm 3cm;
  41. background-repeat:no-repeat;
  42. position: relative;
  43. margin: auto;
  44. overflow: hidden;
  45. color:#333333;
  46. background-color:#ddd;
  47. }
  48. /* Страницы с большой рамкой */
  49. .preview .page.big {
  50. background-image: url(/img/regen/bigframe.gif);
  51. }
  52. /* Страницы с маленькой рамкой */
  53. .preview .page.small {
  54. background-image: url(/img/regen/smallframe.gif);
  55. }
  56. /* Страницы без рамки */
  57. #previewdiv .page.tpage,
  58. #previewdiv .page.apage {
  59. padding: 2cm
  60. }
  61. /* Заголовок (по центру) */
  62. .preview .page .title {
  63. text-align:center;
  64. text-align-last:center;
  65. text-indent:0cm;
  66. }
  67. /* Текст по правому краю */
  68. .preview .page .r {
  69. text-align:right;
  70. text-align-last:right;
  71. text-indent:0cm;
  72. }
  73. /* Обычный текст */
  74. .preview .page p {
  75. line-height: 1.5;
  76. padding: 0;
  77. margin: 0;
  78. text-align:justify;
  79. text-align-last:left;
  80. text-indent:1.25cm;
  81. }
  82. /* Заголовок таблицы */
  83. .preview .page .tt {
  84. text-indent:0;
  85. }
  86. /* Изображение */
  87. .preview img {
  88. max-width: 12cm;
  89. margin:0.5cm auto 0.25cm auto;
  90. display:block;
  91. border:1px solid #000;
  92. }
  93. /* Таблицы */
  94. table, tr, td, th {border: 1px solid; border-collapse: collapse;}
  95. table {width:100%;}
  96. td {padding: 0 0.3cm;vertical-align:top;}
  97. th {text-align:center !important;font-weight:normal}
  98. /* Текст в рамках */
  99. .preview .iz::after {content: "Изм.";}
  100. .preview .ls::after,
  101. .preview .pl::after {content: "Лист";}
  102. .preview .nd::after {content: "№ докум.";}
  103. .preview .pd::after {content: "Подпись";}
  104. .preview .dt::after {content: "Дата";}
  105. .preview .rz::after {content: "Разраб.";}
  106. .preview .lt::after {content: "Лит.";}
  107. .preview .al::after {content: "Листов";}
  108. .preview .pr::after {content: "Провер.";}
  109. .preview .nc::after {content: "Н. Контр.";}
  110. .preview .ut::after {content: "Утверд.";}
  111. .preview .page.big .co {left:9.2cm; bottom: 3.5cm; right:0.6cm;font-size:22px;text-align:center;}
  112. .preview .page.big .iz {left:2.1cm;bottom:3.1cm;}
  113. .preview .page.big .ls {left:3.15cm;bottom:3.1cm;}
  114. .preview .page.big .nd {left:4.7cm;bottom:3.1cm;}
  115. .preview .page.big .pd {left:6.6cm;bottom:3.1cm;}
  116. .preview .page.big .dt {left:8.24cm;bottom:3.1cm;}
  117. .preview .page.big .rz {left:2.15cm;bottom:2.6cm;}
  118. .preview .page.big .sr {left:4.13cm; bottom:2.6cm;}
  119. .preview .page.big .lt {left:15.6cm;bottom:2.6cm;}
  120. .preview .page.big .pl {left:17.1cm;bottom:2.6cm;}
  121. .preview .page.big .al {left:18.8cm;bottom:2.6cm;}
  122. .preview .page.big .pr {left:2.15cm;bottom:2.1cm;}
  123. .preview .page.big .st {left:4.13cm; bottom:2.1cm;}
  124. .preview .page.big .cp {left:16.71cm;right:2.9cm;bottom:2.1cm;text-align:center;}
  125. .preview .page.big .pc {left:18.1cm;right:0.6cm;bottom:2.1cm;text-align:center;}
  126. .preview .page.big .nm {left:9.1cm;bottom:1.6cm;right:5.85cm;font-size:16px;text-align:center;}
  127. .preview .page.big .gr {left:15.25cm;right:0.6cm;bottom:1cm;text-align:center;font-size:20px;}
  128. .preview .page.big .nc {left:2.15cm;bottom:1.1cm;}
  129. .preview .page.big .ut {left:2.15cm;bottom:0.6cm;}
  130. .preview .page.small .iz {left:2.15cm;bottom:0.6cm;}
  131. .preview .page.small .ls {left:3.15cm;bottom:0.6cm;}
  132. .preview .page.small .nd {left:4.61cm;bottom:0.6cm;}
  133. .preview .page.small .pd {left:6.6cm;bottom:0.6cm;}
  134. .preview .page.small .dt {left:8.25cm;bottom:0.6cm;}
  135. .preview .page.small .co {left:9.1cm;bottom:1.0cm;right:1.5cm;font-size:22px;text-align:center;}
  136. .preview .page.small .pl {left:19.55cm;bottom:1.55cm;}
  137. .preview .page.small .cp {left:19.5cm;bottom:0.90cm;right:0.5cm;text-align:center;}
  138. .opt {display:block;text-align:center !important;font-size:18px;color:white;font-family:sans;margin: 8px 0px;user-select:none;}
  139. .opt:hover {color:#005BFF;}
  140. @media print {
  141. #tabs,
  142. #printReportButton,
  143. nav,
  144. #printpreview hr {
  145. display: none;
  146. }
  147. #printpreview .page-container {
  148. padding: 0;
  149. }
  150. #printpreview .page {
  151. background-color:#fff;
  152. color:#000
  153. }
  154. }