1
0

privatebin.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /**
  2. * PrivateBin
  3. *
  4. * Cascading style sheets for bootstrap 5 template.
  5. *
  6. * @link https://github.com/PrivateBin/PrivateBin
  7. * @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
  8. * @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
  9. */
  10. @import url("../common.css");
  11. .hidden {
  12. display: none !important;
  13. }
  14. .opacity-05-1-hover {
  15. opacity: 0.5;
  16. transition: all 0.15s ease;
  17. }
  18. .opacity-05-1-hover:hover {
  19. opacity: 1;
  20. }
  21. .dropdown-menu {
  22. --bs-dropdown-min-width: 23rem;
  23. }
  24. pre {
  25. margin-bottom: 0;
  26. }
  27. [data-bs-theme=light] pre, [data-bs-theme=light] .card {
  28. background-color: RGBA(var(--bs-light-rgb), var(--bs-bg-opacity, 1));
  29. }
  30. li.L0, li.L1, li.L2, li.L3, li.L4, li.L5, li.L6, li.L7, li.L8, li.L9 {
  31. color: revert !important;
  32. list-style-type: decimal !important;
  33. }
  34. [data-bs-theme=dark] li.L1, [data-bs-theme=dark] li.L3, [data-bs-theme=dark] li.L5,
  35. [data-bs-theme=dark] li.L7, [data-bs-theme=dark] li.L9 {
  36. background-color: var(--bs-gray-dark) !important;
  37. }
  38. .text-right button {
  39. float: right;
  40. }
  41. html[dir="rtl"] #deletelink, html[dir="rtl"] #qrcodemodalClose {
  42. float: left;
  43. }
  44. #prettyprint {
  45. padding-right: 30px;
  46. }
  47. #sendbutton svg {
  48. transform: translateY(1.5px);
  49. }
  50. /* Markdown rendering */
  51. #plaintext {
  52. max-width: 1050px;
  53. margin: 2rem auto 5rem;
  54. padding: 0 1.5rem;
  55. font-size: 16px;
  56. line-height: 1.7;
  57. }
  58. #plaintext h1 {
  59. margin: 0 0 1.75rem;
  60. padding-bottom: 0.65rem;
  61. border-bottom: 2px solid var(--bs-border-color);
  62. font-size: 2.25rem;
  63. }
  64. #plaintext h2 {
  65. margin: 2.75rem 0 1.25rem;
  66. padding-bottom: 0.4rem;
  67. border-bottom: 1px solid var(--bs-border-color);
  68. font-size: 1.65rem;
  69. }
  70. #plaintext h3 {
  71. margin: 2rem 0 1rem;
  72. font-size: 1.3rem;
  73. }
  74. #plaintext p {
  75. margin-bottom: 1.15rem;
  76. }
  77. #plaintext pre {
  78. margin: 1rem 0 1.5rem;
  79. padding: 1rem 1.2rem;
  80. overflow-x: auto;
  81. background: var(--bs-tertiary-bg);
  82. border: 1px solid var(--bs-border-color);
  83. border-radius: 0.5rem;
  84. box-shadow: inset 3px 0 0 var(--bs-primary);
  85. line-height: 1.55;
  86. }
  87. #plaintext pre code {
  88. padding: 0;
  89. color: var(--bs-body-color);
  90. background: transparent;
  91. white-space: pre;
  92. }
  93. #plaintext :not(pre) > code {
  94. padding: 0.15em 0.4em;
  95. color: var(--bs-body-color);
  96. background: var(--bs-tertiary-bg);
  97. border: 1px solid var(--bs-border-color);
  98. border-radius: 0.3rem;
  99. }
  100. #plaintext ul,
  101. #plaintext ol {
  102. margin-bottom: 1.25rem;
  103. }
  104. #plaintext blockquote {
  105. padding: 0.5rem 1rem;
  106. color: var(--bs-secondary-color);
  107. border-left: 4px solid var(--bs-primary);
  108. }
  109. #plaintext table {
  110. width: 100%;
  111. margin: 1.5rem 0;
  112. }
  113. @media (max-width: 768px) {
  114. #plaintext {
  115. margin-top: 1rem;
  116. padding: 0 1rem;
  117. font-size: 15px;
  118. }
  119. }