@madie/madie-design-system 1.2.56 → 1.2.57

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.
@@ -1,200 +1,201 @@
1
- .control-group {
2
- border: solid 1px #9c9c9c;
3
- border-top-left-radius: 3px;
4
- border-top-right-radius: 3px;
5
- background-color: #ededed;
6
- padding-left: 4px;
7
- padding-right: 4px;
8
-
9
- .button-group > button {
10
- padding: 18px;
11
- border-radius: 0;
12
- height: 24px;
13
- width: 24px;
14
- }
15
- }
16
- /* Basic editor styles */
17
- .tiptap {
18
- border: solid 1px #9c9c9c;
19
- border-top: 0;
20
- border-bottom-left-radius: 3px;
21
- border-bottom-right-radius: 3px;
22
- padding-left: 4px;
23
- padding-right: 4px;
24
-
25
- :first-child {
26
- margin-top: 0;
27
- }
28
-
29
- /* List styles */
30
- ul,
31
- ol {
32
- padding: 0 1rem;
33
- margin: 1.25rem 1rem 1.25rem 0.4rem;
34
-
35
- li p {
36
- margin-top: 0.25em;
37
- margin-bottom: 0.25em;
1
+ .rich-text-editor {
2
+ .control-group {
3
+ border: solid 1px #9c9c9c;
4
+ border-top-left-radius: 3px;
5
+ border-top-right-radius: 3px;
6
+ background-color: #ededed;
7
+ padding-left: 4px;
8
+ padding-right: 4px;
9
+
10
+ .button-group > button {
11
+ padding: 18px;
12
+ border-radius: 0;
13
+ height: 24px;
14
+ width: 24px;
38
15
  }
39
16
  }
40
- //unorder
41
- ul {
42
- list-style: disc;
43
- li {
44
- margin-bottom: 5px;
45
- }
46
- li:before {
47
- margin-right: 10px;
48
- color: #000;
49
- text-align: center;
50
- display: inline-block;
17
+ /* Basic editor styles */
18
+ .ProseMirror {
19
+ border: solid 1px #9c9c9c;
20
+ border-top: 0;
21
+ border-bottom-left-radius: 3px;
22
+ border-bottom-right-radius: 3px;
23
+ padding-left: 4px;
24
+ padding-right: 4px;
25
+
26
+ :first-child {
27
+ margin-top: 0;
51
28
  }
52
- }
53
29
 
54
- //order
55
- ol {
56
- counter-reset: item;
57
- list-style: decimal;
30
+ /* List styles */
31
+ ul,
32
+ ol {
33
+ padding: 0 1rem;
34
+ margin: 1.25rem 1rem 1.25rem 0.4rem;
58
35
 
59
- li {
60
- counter-increment: item;
61
- margin-bottom: 5px;
36
+ li p {
37
+ margin-top: 0.25em;
38
+ margin-bottom: 0.25em;
39
+ }
40
+ }
41
+ //unorder
42
+ ul {
43
+ list-style: disc;
44
+ li {
45
+ margin-bottom: 5px;
46
+ }
47
+ li:before {
48
+ margin-right: 10px;
49
+ color: #000;
50
+ text-align: center;
51
+ display: inline-block;
52
+ }
62
53
  }
63
- }
64
-
65
- /* Heading styles */
66
- h1,
67
- h2,
68
- h3,
69
- h4,
70
- h5,
71
- h6 {
72
- line-height: 1.1;
73
- margin-top: 2.5rem;
74
- text-wrap: pretty;
75
- }
76
54
 
77
- h1,
78
- h2 {
79
- margin-top: 3.5rem;
80
- margin-bottom: 1.5rem;
81
- }
55
+ //order
56
+ ol {
57
+ counter-reset: item;
58
+ list-style: decimal;
59
+ li {
60
+ counter-increment: item;
61
+ margin-bottom: 5px;
62
+ }
63
+ }
82
64
 
83
- h1 {
84
- font-size: 1.4rem;
85
- }
65
+ /* Heading styles */
66
+ h1,
67
+ h2,
68
+ h3,
69
+ h4,
70
+ h5,
71
+ h6 {
72
+ line-height: 1.1;
73
+ margin-top: 2.5rem;
74
+ text-wrap: pretty;
75
+ }
86
76
 
87
- h2 {
88
- font-size: 1.2rem;
89
- }
77
+ h1,
78
+ h2 {
79
+ margin-top: 3.5rem;
80
+ margin-bottom: 1.5rem;
81
+ }
90
82
 
91
- h3 {
92
- font-size: 1.1rem;
93
- }
83
+ h1 {
84
+ font-size: 1.4rem;
85
+ }
94
86
 
95
- h4,
96
- h5,
97
- h6 {
98
- font-size: 1rem;
99
- }
87
+ h2 {
88
+ font-size: 1.2rem;
89
+ }
100
90
 
101
- /* Code and preformatted text styles */
102
- code {
103
- background-color: var(--purple-light);
104
- border-radius: 0.4rem;
105
- color: var(--black);
106
- font-size: 0.85rem;
107
- padding: 0.25em 0.3em;
108
- }
91
+ h3 {
92
+ font-size: 1.1rem;
93
+ }
109
94
 
110
- pre {
111
- background: var(--black);
112
- border-radius: 0.5rem;
113
- color: var(--white);
114
- font-family: "JetBrainsMono", monospace;
115
- margin: 1.5rem 0;
116
- padding: 0.75rem 1rem;
95
+ h4,
96
+ h5,
97
+ h6 {
98
+ font-size: 1rem;
99
+ }
117
100
 
101
+ /* Code and preformatted text styles */
118
102
  code {
119
- background: none;
120
- color: inherit;
121
- font-size: 0.8rem;
122
- padding: 0;
103
+ background-color: var(--purple-light);
104
+ border-radius: 0.4rem;
105
+ color: var(--black);
106
+ font-size: 0.85rem;
107
+ padding: 0.25em 0.3em;
123
108
  }
124
- }
125
109
 
126
- blockquote {
127
- border-left: 3px solid var(--gray-3);
128
- margin: 1.5rem 0;
129
- padding-left: 1rem;
130
- }
110
+ pre {
111
+ background: var(--black);
112
+ border-radius: 0.5rem;
113
+ color: var(--white);
114
+ font-family: "JetBrainsMono", monospace;
115
+ margin: 1.5rem 0;
116
+ padding: 0.75rem 1rem;
117
+
118
+ code {
119
+ background: none;
120
+ color: inherit;
121
+ font-size: 0.8rem;
122
+ padding: 0;
123
+ }
124
+ }
125
+
126
+ blockquote {
127
+ border-left: 3px solid var(--gray-3);
128
+ margin: 1.5rem 0;
129
+ padding-left: 1rem;
130
+ }
131
131
 
132
- hr {
133
- border: none;
134
- border-top: 1px solid var(--gray-2);
135
- margin: 2rem 0;
132
+ hr {
133
+ border: none;
134
+ border-top: 1px solid var(--gray-2);
135
+ margin: 2rem 0;
136
+ }
136
137
  }
137
- }
138
138
 
139
- /* Bubble menu */
140
- .bubble-menu {
141
- background-color: var(--white);
142
- border: 1px solid var(--gray-1);
143
- border-radius: 0.7rem;
144
- box-shadow: var(--shadow);
145
- display: flex;
146
- padding: 0.2rem;
139
+ /* Bubble menu */
140
+ .bubble-menu {
141
+ background-color: var(--white);
142
+ border: 1px solid var(--gray-1);
143
+ border-radius: 0.7rem;
144
+ box-shadow: var(--shadow);
145
+ display: flex;
146
+ padding: 0.2rem;
147
147
 
148
- button {
149
- background-color: unset;
148
+ button {
149
+ background-color: unset;
150
150
 
151
- &:hover {
152
- background-color: var(--gray-3);
153
- }
151
+ &:hover {
152
+ background-color: var(--gray-3);
153
+ }
154
154
 
155
- &.is-active {
156
- background-color: var(--purple);
155
+ &.is-active {
156
+ background-color: var(--purple);
157
157
 
158
- &:hover {
159
- background-color: var(--purple-contrast);
158
+ &:hover {
159
+ background-color: var(--purple-contrast);
160
+ }
160
161
  }
161
162
  }
162
163
  }
163
- }
164
164
 
165
- /* Floating menu */
166
- .floating-menu {
167
- display: flex;
168
- background-color: var(--gray-3);
169
- padding: 0.1rem;
170
- border-radius: 0.5rem;
165
+ /* Floating menu */
166
+ .floating-menu {
167
+ display: flex;
168
+ background-color: var(--gray-3);
169
+ padding: 0.1rem;
170
+ border-radius: 0.5rem;
171
171
 
172
- button {
173
- background-color: unset;
174
- padding: 0.275rem 0.425rem;
175
- border-radius: 0.3rem;
172
+ button {
173
+ background-color: unset;
174
+ padding: 0.275rem 0.425rem;
175
+ border-radius: 0.3rem;
176
176
 
177
- &:hover {
178
- background-color: var(--gray-3);
179
- }
177
+ &:hover {
178
+ background-color: var(--gray-3);
179
+ }
180
180
 
181
- &.is-active {
182
- background-color: var(--white);
183
- color: var(--purple);
181
+ &.is-active {
182
+ background-color: var(--white);
183
+ color: var(--purple);
184
184
 
185
- &:hover {
186
- color: var(--purple-contrast);
185
+ &:hover {
186
+ color: var(--purple-contrast);
187
+ }
187
188
  }
188
189
  }
189
190
  }
190
- }
191
191
 
192
- table {
193
- border: solid 1px #000;
194
- tr {
192
+ table {
195
193
  border: solid 1px #000;
196
- td {
194
+ tr {
197
195
  border: solid 1px #000;
196
+ td {
197
+ border: solid 1px #000;
198
+ }
198
199
  }
199
200
  }
200
201
  }