-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
88 lines (74 loc) · 1.64 KB
/
index.css
File metadata and controls
88 lines (74 loc) · 1.64 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
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Global Styles ensuring Electron behaves like a desktop app */
body, html {
background: transparent !important;
user-select: none; /* Prevent text selection mostly */
-webkit-user-select: none;
}
/* Allow selection in editor */
.editor-content {
user-select: text;
-webkit-user-select: text;
}
/* Utility for text truncation fade */
.mask-linear-fade {
mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
-webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}
/* Editor bullet and checkbox styling - inherit text color */
.editor-content ul {
list-style: disc;
padding-left: 1.5rem;
margin: 0.5rem 0;
}
.editor-content ul li::marker {
color: currentColor;
}
.editor-content input[type="checkbox"] {
accent-color: currentColor;
width: 14px;
height: 14px;
cursor: pointer;
}
/* Heading styles in editor */
.editor-content h1 {
font-size: 1.5rem;
font-weight: 700;
margin: 0.5rem 0;
}
.editor-content h2 {
font-size: 1.25rem;
font-weight: 600;
margin: 0.5rem 0;
}
.editor-content p {
margin: 0.25rem 0;
}
/* Ensure bullet list items inherit proper styling */
.editor-content ul li {
font-size: inherit;
font-weight: inherit;
}
/* Ordered list styling */
.editor-content ol {
list-style: decimal;
padding-left: 1.5rem;
margin: 0.5rem 0;
}
.editor-content ol li::marker {
color: currentColor;
}
.editor-content ol li {
font-size: inherit;
font-weight: inherit;
}
/* Horizontal rule styling */
.editor-content hr {
border: none;
height: 1px;
background: currentColor;
opacity: 0.3;
margin: 1rem 0;
}