global.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. }
  5. .pd-page {
  6. width: 100vw;
  7. height: 100vh;
  8. display: flex;
  9. flex-direction: column;
  10. overflow: hidden;
  11. }
  12. /* TopBar styles start */
  13. .pd-top-bar {
  14. width: 100vw;
  15. padding: 0.75rem 0.75rem 0 0.75rem;
  16. display: flex;
  17. justify-content: space-between;
  18. box-sizing: border-box;
  19. flex-shrink: 0;
  20. }
  21. .pd-top-bar .pd-top-bar-mode-switcher {
  22. border: 1px solid #ced4da;
  23. border-radius: 0.375rem;
  24. box-sizing: border-box;
  25. }
  26. .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn {
  27. box-sizing: border-box;
  28. padding: 6px 12px;
  29. background-color: #fff;
  30. color: #212529;
  31. border: none;
  32. cursor: pointer;
  33. }
  34. .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn.active {
  35. background-color: #0d6efd;
  36. color: #fff;
  37. }
  38. .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn:first-child {
  39. border-top-left-radius: 0.375rem;
  40. border-bottom-left-radius: 0.375rem;
  41. }
  42. .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn:last-child {
  43. border-top-right-radius: 0.375rem;
  44. border-bottom-right-radius: 0.375rem;
  45. }
  46. .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn:nth-child(2) {
  47. padding: 6px 10px;
  48. border-left: 1px solid #ced4da;
  49. border-right: 1px solid #ced4da;
  50. }
  51. /* TopBar styles end */
  52. /* Editor styles start */
  53. .pd-editor {
  54. width: 100vw;
  55. padding: 0.75rem;
  56. display: flex;
  57. justify-content: space-between;
  58. box-sizing: border-box;
  59. overflow: hidden;
  60. flex-shrink: 0;
  61. flex-grow: 1;
  62. }
  63. .pd-editor .pd-edit-view,
  64. .pd-editor .pd-read-view {
  65. height: 100%;
  66. border: 1px solid #ced4da;
  67. border-radius: 0.375rem;
  68. box-sizing: border-box;
  69. padding: 0.75rem;
  70. color: #212529;
  71. overflow: auto;
  72. flex-shrink: 0;
  73. flex-basis: 0;
  74. flex-grow: 1;
  75. }
  76. .pd-editor .pd-edit-view textarea {
  77. width: 100%;
  78. min-height: 100%;
  79. display: block;
  80. box-sizing: border-box;
  81. border-radius: 0.375rem;
  82. border: none;
  83. resize: none;
  84. outline: none;
  85. }
  86. .pd-editor.pd-mode-both .pd-edit-view {
  87. margin-right: 0.375rem;
  88. }
  89. .pd-editor.pd-mode-both .pd-read-view {
  90. margin-left: 0.375rem;
  91. }
  92. /* Editor styles end */