-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathtiptap.css
More file actions
111 lines (93 loc) · 1.7 KB
/
tiptap.css
File metadata and controls
111 lines (93 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
.tiptap {
min-height: var(--tiptap-editor-height, 10rem);
padding: 0.5rem 0.75rem;
}
.tiptap--rendered {
min-height: inherit;
}
.tiptap img {
cursor: pointer;
display: block;
height: auto;
max-width: 100%;
border-radius: 0.25rem;
margin: 0.5rem 0 2rem;
padding: 0.5rem;
}
.tiptap:focus,
.tiptap:focus-visible {
outline-width: 2px !important;
outline-offset: -2px !important;
}
@media (hover: hover) and (pointer: fine) {
.tiptap img:hover {
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
}
.tiptap:not(.tiptap--rendered) [href] {
cursor: text;
}
.tiptap pre code {
display: block;
padding: 0.75rem;
}
.tiptap code {
font-size: 85%;
}
.tiptap :not(pre) code {
padding: 0.2em 0.4em;
}
.tiptap pre,
.tiptap code {
background-color: var(--highlight-a11y-color-background);
border-radius: 0.25rem;
}
.tiptap blockquote::before {
--icon-size: 2rem;
color: var(--artwork-minor-blue-france);
content: "";
margin-bottom: 0.5rem;
background-color: currentColor;
display: inline-block;
height: var(--icon-size);
mask-image: url("@gouvfr/dsfr/dist/icons/editor/fr--quote-line.svg");
mask-size: 100% 100%;
width: var(--icon-size);
}
/* Update DSFR ol ::marker styles:
Nested <ol>
1.
1.1
1.1.1
1.2
2.
<ol> nested in <ul>
-
1.
2.
1.
2.
-
*/
.tiptap {
ol,
ul {
counter-reset: section;
}
ol li {
--ol-content: counters(section, ".") ". ";
counter-increment: section;
}
ul > li > ol li {
--ol-content: counter(section) ". ";
counter-increment: section;
}
}
.tiptap blockquote p {
font-size: 1.25rem;
font-weight: 700;
line-height: 2rem;
}
.tiptap li > p {
margin-bottom: 0.25em;
}