CreateKnowledgeModal.module.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. .body {
  2. display: flex;
  3. flex-direction: column;
  4. gap: 16px;
  5. padding: 4px 0;
  6. }
  7. .contextBlock {
  8. background: #f9fafb;
  9. border: 1px solid #e5e7eb;
  10. border-radius: 6px;
  11. padding: 10px 12px;
  12. }
  13. .expandToggle {
  14. font-size: 12px;
  15. color: #3b82f6;
  16. cursor: pointer;
  17. user-select: none;
  18. }
  19. .expandToggle:hover {
  20. text-decoration: underline;
  21. }
  22. .contextContent {
  23. margin-top: 8px;
  24. font-size: 12px;
  25. line-height: 1.6;
  26. white-space: pre-wrap;
  27. word-break: break-word;
  28. color: #6b7280;
  29. max-height: 200px;
  30. overflow-y: auto;
  31. }
  32. .field {
  33. display: flex;
  34. flex-direction: column;
  35. gap: 8px;
  36. }
  37. .label {
  38. font-size: 13px;
  39. font-weight: 500;
  40. color: #374151;
  41. }
  42. .required {
  43. color: #ef4444;
  44. }
  45. .typeList {
  46. display: flex;
  47. flex-wrap: wrap;
  48. gap: 10px;
  49. }
  50. .typeItem {
  51. display: flex;
  52. align-items: center;
  53. gap: 5px;
  54. font-size: 13px;
  55. color: #374151;
  56. cursor: pointer;
  57. user-select: none;
  58. }
  59. .textarea {
  60. width: 100%;
  61. border: 1px solid #d1d5db;
  62. border-radius: 6px;
  63. padding: 8px 12px;
  64. font-size: 14px;
  65. line-height: 1.6;
  66. resize: vertical;
  67. outline: none;
  68. font-family: inherit;
  69. color: #374151;
  70. box-sizing: border-box;
  71. }
  72. .textarea:focus {
  73. border-color: #3b82f6;
  74. }
  75. .textarea:disabled {
  76. background: #f9fafb;
  77. color: #9ca3af;
  78. }
  79. .footer {
  80. display: flex;
  81. justify-content: flex-end;
  82. gap: 10px;
  83. padding: 0 4px;
  84. }
  85. .cancelBtn {
  86. height: 36px;
  87. padding: 0 16px;
  88. border-radius: 6px;
  89. border: 1px solid #d1d5db;
  90. background: #fff;
  91. color: #374151;
  92. font-size: 14px;
  93. cursor: pointer;
  94. }
  95. .cancelBtn:hover:not(:disabled) {
  96. background: #f9fafb;
  97. }
  98. .cancelBtn:disabled {
  99. opacity: 0.5;
  100. cursor: not-allowed;
  101. }
  102. .submitBtn {
  103. height: 36px;
  104. padding: 0 20px;
  105. border-radius: 6px;
  106. border: none;
  107. background: #3b82f6;
  108. color: #fff;
  109. font-size: 14px;
  110. font-weight: 500;
  111. cursor: pointer;
  112. }
  113. .submitBtn:hover:not(:disabled) {
  114. background: #2563eb;
  115. }
  116. .submitBtn:disabled {
  117. opacity: 0.5;
  118. cursor: not-allowed;
  119. }