@rimori/react-client 0.4.9-next.2 → 0.4.9-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/style.scss CHANGED
@@ -7,130 +7,106 @@ dialog::backdrop {
7
7
  background: transparent;
8
8
  }
9
9
 
10
+ /* Tiptap editor content styles */
10
11
  .tiptap {
11
- padding-top: 5px;
12
- padding-left: 7px;
13
- /* min-height: 300px; */
14
-
15
- &:focus-visible {
16
- outline: none;
17
- }
18
-
19
- h1,
20
- h2,
21
- h3,
22
- h4,
23
- h5,
24
- h6 {
25
- @apply font-bold;
26
- margin-bottom: 1rem;
27
- }
12
+ @apply focus:outline-none;
28
13
 
29
14
  h1 {
30
- @apply text-4xl;
15
+ @apply text-4xl font-bold mt-6 mb-3 first:mt-0;
31
16
  }
32
17
 
33
18
  h2 {
34
- @apply text-3xl;
19
+ @apply text-3xl font-semibold mt-5 mb-2 first:mt-0;
35
20
  }
36
21
 
37
22
  h3 {
38
- @apply text-2xl;
23
+ @apply text-2xl font-semibold mt-4 mb-2 first:mt-0;
39
24
  }
40
25
 
41
- h4 {
42
- @apply text-xl;
26
+ blockquote {
27
+ @apply border-l-4 border-primary/30 pl-4 py-1 my-3 text-muted-foreground italic;
43
28
  }
44
29
 
45
- h5 {
46
- @apply text-lg;
30
+ pre {
31
+ @apply bg-muted rounded-lg p-4 my-3 overflow-x-auto text-sm font-mono;
47
32
  }
48
33
 
49
- h6 {
50
- @apply text-base;
34
+ code {
35
+ @apply bg-muted px-1.5 py-0.5 rounded text-sm font-mono;
51
36
  }
52
37
 
53
- p {
54
- @apply mb-4;
38
+ pre code {
39
+ @apply bg-transparent p-0;
55
40
  }
56
41
 
57
- a {
58
- @apply text-blue-600 hover:text-blue-800;
59
- text-decoration: none;
42
+ hr {
43
+ @apply border-border my-6;
60
44
  }
61
45
 
62
- a:hover {
63
- @apply underline;
46
+ a {
47
+ @apply text-primary underline underline-offset-2;
64
48
  }
65
49
 
66
- ul {
67
- @apply list-disc pl-8;
50
+ /* Basic editor styles */
51
+ :first-child {
52
+ margin-top: 0;
53
+ }
68
54
 
69
- li > p {
70
- @apply mb-1;
71
- }
55
+ li {
56
+ @apply mb-1;
72
57
  }
73
58
 
74
- ol {
75
- @apply list-decimal pl-7;
59
+ ul {
60
+ @apply list-disc list-inside dark:text-white pl-3 [&_p]:inline m-0;
76
61
 
77
- li > p {
78
- @apply mb-1;
62
+ p {
63
+ @apply m-0;
79
64
  }
80
- }
81
65
 
82
- blockquote {
83
- @apply border-l-4 pl-4 italic text-gray-600 my-4;
84
- border-color: #ccc;
66
+ li {
67
+ @apply m-0;
68
+ }
85
69
  }
86
70
 
87
- code {
88
- font-family: monospace;
89
- }
71
+ ol {
72
+ @apply list-decimal pl-7 m-0;
90
73
 
91
- pre {
92
- @apply bg-gray-800 text-gray-500 p-4 rounded-lg overflow-x-auto;
93
- font-family: monospace;
94
- white-space: pre-wrap;
95
- word-wrap: break-word;
96
- }
74
+ p {
75
+ @apply m-0;
76
+ }
97
77
 
98
- img {
99
- @apply max-w-full h-auto rounded-lg my-4;
78
+ li {
79
+ @apply m-0;
80
+ }
100
81
  }
101
82
 
83
+ /* Table-specific styling */
102
84
  table {
103
- @apply table-auto w-full border-collapse mb-4;
104
- }
105
-
106
- th,
107
- td {
108
- @apply border px-4 py-2 text-left;
109
- }
85
+ @apply border-collapse m-0 overflow-hidden w-full mb-1;
110
86
 
111
- th {
112
- @apply bg-gray-500 font-semibold;
113
- }
87
+ td,
88
+ th {
89
+ @apply dark:border-gray-700 border;
90
+ @apply mb-0 align-baseline pl-1.5;
114
91
 
115
- tr:nth-child(even) {
116
- @apply bg-gray-400;
117
- }
118
-
119
- @media (max-width: 768px) {
120
- h1 {
121
- @apply text-3xl;
92
+ p {
93
+ @apply mb-0;
94
+ }
122
95
  }
123
96
 
124
- h2 {
125
- @apply text-2xl;
97
+ th {
98
+ /* @apply bg-gray-500; */
99
+ @apply font-bold text-left;
126
100
  }
101
+ }
127
102
 
128
- p {
129
- @apply text-base;
130
- }
103
+ .tableWrapper {
104
+ margin: 1.5rem 0;
105
+ @apply overflow-x-auto;
106
+ }
131
107
 
132
- img {
133
- @apply max-w-full;
134
- }
108
+ &.resize-cursor {
109
+ @apply cursor-ew-resize;
110
+ cursor: col-resize;
135
111
  }
136
112
  }