global.css 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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. justify-content: center;
  18. }
  19. /* Global form styles start */
  20. input,
  21. textarea {
  22. width: 100%;
  23. display: block;
  24. box-sizing: border-box;
  25. border-radius: 0.375rem;
  26. border: 1px solid #ced4da;
  27. font-size: 14px;
  28. outline: none;
  29. }
  30. input {
  31. height: 38px;
  32. line-height: 30px;
  33. padding: 4px 0.375rem;
  34. }
  35. textarea {
  36. height: 100%;
  37. padding: 0.375rem;
  38. resize: none;
  39. }
  40. button {
  41. box-sizing: border-box;
  42. padding: 6px 12px;
  43. background-color: #fff;
  44. line-height: 16px;
  45. color: #212529;
  46. cursor: pointer;
  47. font-size: 14px;
  48. border: 1px solid #ced4da;
  49. border-radius: 0.375rem;
  50. }
  51. /* Global form styles end */
  52. /* Loading styles start */
  53. /* Loading spin from https://loading.io/css/ */
  54. .pd-loading-cover {
  55. position: fixed;
  56. top: 0;
  57. left: 0;
  58. right: 0;
  59. bottom: 0;
  60. background-color: rgba(0, 0, 0, 0.6);
  61. z-index: 9;
  62. display: flex;
  63. align-items: center;
  64. justify-content: center;
  65. }
  66. .pd-loading-cover .pd-loading-spin {
  67. display: inline-block;
  68. transform: translateZ(1px);
  69. }
  70. .pd-loading-cover .pd-loading-spin .pd-loading-spin-inner {
  71. display: inline-block;
  72. width: 64px;
  73. height: 64px;
  74. margin: 8px;
  75. border-radius: 50%;
  76. background: #fff;
  77. animation: pd-loading-spin 5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  78. }
  79. @keyframes pd-loading-spin {
  80. 0%,
  81. 100% {
  82. animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
  83. }
  84. 0% {
  85. transform: rotateY(0deg);
  86. }
  87. 50% {
  88. transform: rotateY(1800deg);
  89. animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
  90. }
  91. 100% {
  92. transform: rotateY(3600deg);
  93. }
  94. }
  95. /* Loading styles end */
  96. /* Login frame styles start */
  97. .pd-login-frame {
  98. width: 375px;
  99. margin-top: 16px;
  100. box-sizing: border-box;
  101. padding: 16px;
  102. color: #212529;
  103. display: flex;
  104. flex-direction: column;
  105. }
  106. .pd-login-frame .pd-login-input {
  107. margin-bottom: 8px;
  108. }
  109. .pd-login-frame .pd-login-input.error {
  110. border-color: #dc3545;
  111. }
  112. .pd-login-frame .pd-login-input-label {
  113. margin-bottom: 4px;
  114. font-size: 14px;
  115. }
  116. .pd-login-frame .pd-login-btn {
  117. background-color: #0d6efd;
  118. margin-top: 8px;
  119. height: 38px;
  120. color: #fff;
  121. }
  122. /* Login frame styles end */
  123. /* TopBar styles start */
  124. .pd-top-bar {
  125. width: 100%;
  126. display: flex;
  127. margin-bottom: 0.75rem;
  128. justify-content: space-between;
  129. box-sizing: border-box;
  130. flex-shrink: 0;
  131. }
  132. .pd-top-bar .pd-top-bar-mode-switcher {
  133. border: 1px solid #ced4da;
  134. border-radius: 0.375rem;
  135. box-sizing: border-box;
  136. font-size: 14px;
  137. }
  138. .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn {
  139. border: none;
  140. }
  141. .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn.active {
  142. background-color: #0d6efd;
  143. color: #fff;
  144. }
  145. .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn.disabled {
  146. background-color: #e9ecef;
  147. color: #212529;
  148. cursor: not-allowed;
  149. pointer-events: none;
  150. }
  151. .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn:first-child {
  152. border-top-right-radius: 0;
  153. border-bottom-right-radius: 0;
  154. }
  155. .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn:last-child {
  156. border-top-left-radius: 0;
  157. border-bottom-left-radius: 0;
  158. }
  159. .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn:nth-child(2) {
  160. padding: 6px 10px;
  161. border-left: 1px solid #ced4da;
  162. border-right: 1px solid #ced4da;
  163. border-radius: 0;
  164. }
  165. .pd-top-bar .pd-top-bar-tool-icons {
  166. height: 30px;
  167. line-height: 28px;
  168. box-sizing: border-box;
  169. padding: 0 8px;
  170. border: 1px solid #ced4da;
  171. border-radius: 0.375rem;
  172. }
  173. .pd-top-bar .pd-top-bar-tool-icons i.bi {
  174. margin-right: 16px;
  175. font-size: 16px;
  176. cursor: pointer;
  177. height: 16px;
  178. width: 16px;
  179. }
  180. .pd-top-bar .pd-top-bar-tool-icons i.bi::before {
  181. line-height: unset;
  182. }
  183. .pd-top-bar .pd-top-bar-tool-icons i.bi:hover {
  184. color: #0d6efd;
  185. }
  186. .pd-top-bar .pd-top-bar-tool-icons i.bi:last-child {
  187. margin-right: 0;
  188. }
  189. /* TopBar styles end */
  190. /* Editor styles start */
  191. .pd-editor {
  192. width: 100%;
  193. display: flex;
  194. justify-content: space-between;
  195. box-sizing: border-box;
  196. overflow: hidden;
  197. flex-shrink: 0;
  198. flex-grow: 1;
  199. }
  200. .pd-editor .pd-edit-view,
  201. .pd-editor .pd-read-view {
  202. height: calc(
  203. 100vh - 0.75rem * 3 - 30px
  204. ); /* Exact height to prevent flex height expansion */
  205. border: 1px solid #ced4da;
  206. border-radius: 0.375rem;
  207. box-sizing: border-box;
  208. color: #212529;
  209. overflow: auto;
  210. flex-shrink: 0;
  211. flex-basis: 0;
  212. flex-grow: 1;
  213. }
  214. .pd-editor .pd-edit-view textarea {
  215. border: none;
  216. }
  217. .pd-editor .pd-edit-view textarea::-webkit-scrollbar,
  218. .pd-editor .pd-read-view::-webkit-scrollbar {
  219. width: 8px;
  220. }
  221. .pd-editor .pd-edit-view textarea::-webkit-scrollbar-track,
  222. .pd-editor .pd-read-view::-webkit-scrollbar-track {
  223. background-color: transparent;
  224. }
  225. .pd-editor .pd-edit-view textarea::-webkit-scrollbar-thumb,
  226. .pd-editor .pd-read-view::-webkit-scrollbar-thumb {
  227. background-color: #d6dee1;
  228. border-radius: 8px;
  229. }
  230. .pd-editor .pd-edit-view textarea::-webkit-scrollbar-thumb:hover,
  231. .pd-editor .pd-read-view::-webkit-scrollbar-thumb:hover {
  232. background-color: #a8bbbf;
  233. }
  234. .pd-editor .pd-read-view {
  235. padding: 0.375rem;
  236. }
  237. .pd-editor.pd-mode-both .pd-edit-view {
  238. margin-right: 0.375rem;
  239. }
  240. .pd-editor.pd-mode-both .pd-read-view {
  241. margin-left: 0.375rem;
  242. }
  243. .pd-editor.pd-mode-edit .pd-read-view {
  244. display: none;
  245. }
  246. .pd-editor.pd-mode-read .pd-edit-view {
  247. display: none;
  248. }
  249. /* Editor styles end */