global.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. }
  5. .pd-page {
  6. width: 100vw;
  7. height: 100vh;
  8. padding: 0.75rem;
  9. display: flex;
  10. flex-direction: column;
  11. box-sizing: border-box;
  12. overflow: hidden;
  13. }
  14. .pd-page.pd-page-centered {
  15. display: flex;
  16. align-items: center;
  17. }
  18. /* Global form styles start */
  19. input,
  20. textarea {
  21. width: 100%;
  22. display: block;
  23. box-sizing: border-box;
  24. border-radius: 0.375rem;
  25. border: 1px solid #ced4da;
  26. font-size: 1rem;
  27. outline: none;
  28. }
  29. input {
  30. height: 38px;
  31. line-height: 30px;
  32. padding: 4px 0.375rem;
  33. }
  34. textarea {
  35. height: 100%;
  36. padding: 0.375rem;
  37. resize: none;
  38. }
  39. button {
  40. box-sizing: border-box;
  41. padding: 6px 12px;
  42. background-color: #fff;
  43. line-height: 16px;
  44. color: #212529;
  45. cursor: pointer;
  46. font-size: 1rem;
  47. border: 1px solid #ced4da;
  48. border-radius: 0.375rem;
  49. }
  50. /* Global form styles end */
  51. /* Login frame styles start */
  52. .pd-login-frame {
  53. width: 375px;
  54. margin-top: 16px;
  55. border: 1px solid #ced4da;
  56. border-radius: 0.375rem;
  57. box-sizing: border-box;
  58. padding: 16px;
  59. font-size: 1rem;
  60. color: #212529;
  61. display: flex;
  62. flex-direction: column;
  63. }
  64. .pd-login-frame .pd-login-input {
  65. margin-bottom: 8px;
  66. }
  67. .pd-login-frame .pd-login-input-label {
  68. margin-bottom: 4px;
  69. }
  70. .pd-login-frame .pd-login-btn {
  71. margin-top: 8px;
  72. height: 38px;
  73. }
  74. /* Login frame styles end */
  75. /* TopBar styles start */
  76. .pd-top-bar {
  77. width: 100%;
  78. display: flex;
  79. margin-bottom: 0.75rem;
  80. justify-content: space-between;
  81. box-sizing: border-box;
  82. flex-shrink: 0;
  83. }
  84. .pd-top-bar .pd-top-bar-mode-switcher {
  85. border: 1px solid #ced4da;
  86. border-radius: 0.375rem;
  87. box-sizing: border-box;
  88. font-size: 1rem;
  89. }
  90. .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn {
  91. border: none;
  92. }
  93. .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn.active {
  94. background-color: #0d6efd;
  95. color: #fff;
  96. }
  97. .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn.disabled {
  98. background-color: #e9ecef;
  99. color: #212529;
  100. cursor: not-allowed;
  101. pointer-events: none;
  102. }
  103. .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn:first-child {
  104. border-top-right-radius: 0;
  105. border-bottom-right-radius: 0;
  106. }
  107. .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn:last-child {
  108. border-top-left-radius: 0;
  109. border-bottom-left-radius: 0;
  110. }
  111. .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn:nth-child(2) {
  112. padding: 6px 10px;
  113. border-left: 1px solid #ced4da;
  114. border-right: 1px solid #ced4da;
  115. border-radius: 0;
  116. }
  117. .pd-top-bar .pd-top-bar-tool-icons {
  118. height: 28px;
  119. line-height: 26px;
  120. box-sizing: border-box;
  121. padding: 0 8px;
  122. border: 1px solid #ced4da;
  123. border-radius: 0.375rem;
  124. }
  125. .pd-top-bar .pd-top-bar-tool-icons i.bi {
  126. margin-right: 16px;
  127. font-size: 16px;
  128. cursor: pointer;
  129. }
  130. .pd-top-bar .pd-top-bar-tool-icons i.bi:hover {
  131. color: #0d6efd;
  132. }
  133. .pd-top-bar .pd-top-bar-tool-icons i.bi:last-child {
  134. margin-right: 0;
  135. }
  136. /* TopBar styles end */
  137. /* Editor styles start */
  138. .pd-editor {
  139. width: 100%;
  140. display: flex;
  141. justify-content: space-between;
  142. box-sizing: border-box;
  143. overflow: hidden;
  144. flex-shrink: 0;
  145. flex-grow: 1;
  146. }
  147. .pd-editor .pd-edit-view,
  148. .pd-editor .pd-read-view {
  149. height: calc(
  150. 100vh - 0.75rem * 3 - 28px
  151. ); /* Exact height to prevent flex height expansion */
  152. border: 1px solid #ced4da;
  153. border-radius: 0.375rem;
  154. box-sizing: border-box;
  155. color: #212529;
  156. overflow: auto;
  157. flex-shrink: 0;
  158. flex-basis: 0;
  159. flex-grow: 1;
  160. }
  161. .pd-editor .pd-edit-view textarea {
  162. border: none;
  163. }
  164. .pd-editor .pd-edit-view textarea::-webkit-scrollbar,
  165. .pd-editor .pd-read-view::-webkit-scrollbar {
  166. width: 8px;
  167. }
  168. .pd-editor .pd-edit-view textarea::-webkit-scrollbar-track,
  169. .pd-editor .pd-read-view::-webkit-scrollbar-track {
  170. background-color: transparent;
  171. }
  172. .pd-editor .pd-edit-view textarea::-webkit-scrollbar-thumb,
  173. .pd-editor .pd-read-view::-webkit-scrollbar-thumb {
  174. background-color: #d6dee1;
  175. border-radius: 8px;
  176. }
  177. .pd-editor .pd-edit-view textarea::-webkit-scrollbar-thumb:hover,
  178. .pd-editor .pd-read-view::-webkit-scrollbar-thumb:hover {
  179. background-color: #a8bbbf;
  180. }
  181. .pd-editor .pd-read-view {
  182. padding: 0.375rem;
  183. }
  184. .pd-editor.pd-mode-both .pd-edit-view {
  185. margin-right: 0.375rem;
  186. }
  187. .pd-editor.pd-mode-both .pd-read-view {
  188. margin-left: 0.375rem;
  189. }
  190. .pd-editor.pd-mode-edit .pd-read-view {
  191. display: none;
  192. }
  193. .pd-editor.pd-mode-read .pd-edit-view {
  194. display: none;
  195. }
  196. /* Editor styles end */