-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.css
More file actions
92 lines (80 loc) · 1.33 KB
/
example.css
File metadata and controls
92 lines (80 loc) · 1.33 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
body {
font-family: Arial, sans-serif;
background: #f7f7f7;
margin: 0;
padding: 40px;
}
.editor-toolbar {
background: #fff;
border: 1px solid #ccc;
border-bottom: none;
padding: 8px;
display: flex;
gap: 8px;
border-radius: 6px 6px 0 0;
}
.editor-toolbar button {
background: #f0f0f0;
border: 1px solid #bbb;
border-radius: 4px;
padding: 6px 12px;
cursor: pointer;
font-size: 16px;
transition: background 0.2s;
}
#highlight-color {
width: 32px;
height: 33px;
margin: 0;
}
.editor-toolbar button.active {
background: #d0eaff;
border-color: #3399ff;
}
.richtext-editor {
background: #fff;
border: 1px solid #ccc;
min-height: 180px;
padding: 12px;
border-radius: 0 0 6px 6px;
outline: none;
font-size: 16px;
line-height: 1.6;
margin-bottom: 20px;
}
.bold {
font-weight: bold;
}
.italic {
font-style: italic;
}
.underline {
text-decoration: underline;
}
.strikethrough {
text-decoration: line-through;
}
.highlight {
background-color: var(--highlight);
}
/* Base line container so each line is its own row */
.line {
display: block;
width: 100%;
}
/* Alignment classes for line formatting */
.align-left {
display: inline-block;
width: 100%;
text-align: left;
}
.align-center {
display: inline-block;
width: 100%;
text-align: center;
}
.align-right {
display: inline-block;
width: 100%;
text-align: right;
}