Welcome to mirror list, hosted at ThFree Co, Russian Federation.

prosemirror.scss « css - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 575c7033decdfbac1632b2cd7c7abed12cc77666 (plain)
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
112
113
114
115
116
117
118
119
/* Document rendering styles */

.ProseMirror {
	margin-top: 44px;
	height: 100%;
	position: relative;
	word-wrap: break-word;
	white-space: pre-wrap;
	-webkit-font-variant-ligatures: none;
	font-variant-ligatures: none;
	padding: 4px 8px 4px 14px;
	line-height: 150%;
	font-size: 14px;
	outline: none;
}

.ProseMirror p:first-child,
.ProseMirror h1:first-child,
.ProseMirror h2:first-child,
.ProseMirror h3:first-child,
.ProseMirror h4:first-child,
.ProseMirror h5:first-child,
.ProseMirror h6:first-child {
	margin-top: 10px;
}

.ProseMirror a {
	color: var(--color-primary);
	text-decoration: underline;
}

.ProseMirror p {
	margin-bottom: 1em;
	line-height: 150%;
}
.ProseMirror em {
	font-style: italic;
}

.ProseMirror h1 {
	font-size: 24px;
}
.ProseMirror h2 {
	font-size: 22px;
}
.ProseMirror h3 {
	font-size: 20px;
}
.ProseMirror h4 {
	font-size: 18px;
}
.ProseMirror h5 {
	font-size: 16px;
}
.ProseMirror h6 {
	font-size: 14px;
}
.ProseMirror h1,
.ProseMirror h2,
.ProseMirror h3,
.ProseMirror h4,
.ProseMirror h5,
.ProseMirror h6 {
	font-weight: 600;
	margin-top: 10px;
	margin-bottom: 20px;
}

.ProseMirror img {
	cursor: default;
	max-height: 50vh;
	max-width: 100%;
}

.ProseMirror-focused .ProseMirror-gapcursor {
	display: block;
}
/* Add space around the hr to make clicking it easier */

.ProseMirror hr {
	padding: 2px 10px;
	border: none;
	margin: 1em 0;
	width: 100%;
}

.ProseMirror hr:after {
	content: "";
	display: block;
	height: 1px;
	background-color: silver;
	line-height: 2px;
}

.ProseMirror pre {
	white-space: pre-wrap;
	background-color: var(--color-background-dark);
	border-radius: 5px;
	padding: 5px;
	padding-left: 11px;
}

.ProseMirror li {
	position: relative;
}

.ProseMirror ul, .ProseMirror ol {
	padding-left: 30px;
}

.ProseMirror ul li {
	list-style-type: disc;
}

.ProseMirror blockquote {
	padding-left: 1em;
	border-left: 3px solid var(--color-text-lighter);
	margin-left: 0; margin-right: 0;
}