FPSMS-frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

129 line
2.6 KiB

  1. /* Root styles */
  2. :not(.tiptap-error) .tiptap {
  3. padding-left: 15px;
  4. padding-right: 15px;
  5. background-color: transparent;
  6. border-radius: 8px;
  7. border-style: solid;
  8. border-width: 1px;
  9. overflow: hidden;
  10. border-color: #e0e0e0;
  11. /* palette.neutral[200] */
  12. transition: border-color 0.3s, box-shadow 0.3s;
  13. /* Assuming muiTheme.transitions.create(["border-color", "box-shadow"]) translates to 0.3s for both */
  14. }
  15. .tiptap-error {
  16. background-color: transparent;
  17. border-radius: 8px;
  18. border-style: solid;
  19. border-width: 1px;
  20. overflow: hidden;
  21. /* palette.neutral[200] */
  22. transition: border-color 0.3s, box-shadow 0.3s;
  23. border-color: #F04438;
  24. /* palette.primary.main */
  25. box-shadow: #F04438 0 0 0 2px;
  26. /* palette.primary.main */
  27. }
  28. .tiptap:hover {
  29. background-color: #f5f5f5;
  30. /* palette.action.hover */
  31. }
  32. .tiptap::before {
  33. display: none;
  34. }
  35. .tiptap::after {
  36. display: none;
  37. }
  38. :not(.tiptap-error)>.tiptap:focus {
  39. background-color: transparent;
  40. border-color: #8dba00;
  41. /* palette.primary.main */
  42. box-shadow: #8dba00 0 0 0 2px;
  43. /* palette.primary.main */
  44. }
  45. .ProseMirror:focus {
  46. outline: none;
  47. }
  48. /* Basic editor styles */
  49. .tiptap {
  50. :first-child {
  51. margin-top: 0;
  52. }
  53. /* Table-specific styling */
  54. table {
  55. border-collapse: collapse;
  56. margin: 0;
  57. overflow: hidden;
  58. table-layout: fixed;
  59. width: 100%;
  60. td,
  61. th {
  62. border: 1px solid #000000;
  63. box-sizing: border-box;
  64. min-width: 1em;
  65. padding: 6px 8px;
  66. position: relative;
  67. vertical-align: top;
  68. >* {
  69. margin-bottom: 0;
  70. }
  71. }
  72. th {
  73. background-color: #939393;
  74. font-weight: bold;
  75. text-align: left;
  76. }
  77. .selectedCell:after {
  78. background: rgba(180, 180, 180, 0.467);
  79. content: "";
  80. left: 0;
  81. right: 0;
  82. top: 0;
  83. bottom: 0;
  84. pointer-events: none;
  85. position: absolute;
  86. z-index: 2;
  87. }
  88. .column-resize-handle {
  89. background-color: #d000ff;
  90. bottom: -2px;
  91. pointer-events: none;
  92. position: absolute;
  93. right: -2px;
  94. top: 0;
  95. width: 4px;
  96. }
  97. }
  98. .tableWrapper {
  99. margin: 1.5rem 0;
  100. overflow-x: auto;
  101. }
  102. &.resize-cursor {
  103. cursor: ew-resize;
  104. cursor: col-resize;
  105. }
  106. }
  107. /* Input styles */
  108. /* .tiptap-input {
  109. fontSize: 14px;
  110. font-weight: 500;
  111. line-height: 12px;
  112. } */