custom.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. html, body.crt {
  2. height: auto;
  3. width: auto;
  4. min-height: 100vh;
  5. min-width: 100vw;
  6. max-width: 100vw;
  7. }
  8. p > img {
  9. max-width: 95%;
  10. max-height: 95%;
  11. display: block;
  12. position: relative;
  13. margin-left: auto;
  14. margin-right: auto;
  15. padding: 1%;
  16. }
  17. p > a {
  18. overflow-wrap: break-word;
  19. }
  20. .crt::after {
  21. animation: vm-flicker 10s infinite;
  22. animation-delay: 5s;
  23. }
  24. body *, .lead, .display-3 {
  25. line-height: 20px;
  26. font-size: 22px;
  27. }
  28. pre {
  29. padding-left: 15px;
  30. background-color: #272822;
  31. }
  32. pre > code {
  33. line-height: 18px;
  34. font-size: 20px;
  35. color: #bbb;
  36. width: 100%;
  37. }
  38. .bootstra-enable-cursor *, body.bootstra-enable-cursor {
  39. cursor:text!important;
  40. }
  41. .bootstra-enable-cursor .nav-link *, .bootstra-enable-cursor a {
  42. cursor:pointer!important;
  43. }
  44. .card-body > a {
  45. white-space: nowrap;
  46. overflow:hidden;
  47. text-overflow: ellipsis;
  48. max-width: 100%;
  49. }
  50. .print-btn {
  51. float: right;
  52. margin-top: -20px;
  53. }
  54. @page {
  55. size: A4;
  56. margin-top: 2cm;
  57. }
  58. @media print{
  59. body {
  60. background-color: white;
  61. color: black;
  62. }
  63. .crt::before {
  64. animation: none;
  65. background: none;
  66. }
  67. .crt::after {
  68. animation: none;
  69. background: none;
  70. }
  71. a, a:hover {
  72. text-decoration: none;
  73. }
  74. a, h1, h2, h3, h4, h5, pre, pre > code {
  75. background-color: white;
  76. color: black;
  77. }
  78. h1, .btn {
  79. display: none;
  80. }
  81. h2, h3 {
  82. border-style: solid;
  83. border-width: 2px;
  84. border-color: black;
  85. }
  86. h2 {
  87. padding-top: 2px;
  88. padding-bottom: 2px;
  89. }
  90. h2, h3, h4, h5 {
  91. break-after: avoid;
  92. }
  93. p, ul, li {
  94. break-inside: avoid;
  95. break-before: avoid;
  96. }
  97. }