-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyles.css
More file actions
151 lines (129 loc) · 2.81 KB
/
styles.css
File metadata and controls
151 lines (129 loc) · 2.81 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
.canvas-note-preview-container {
padding: 20px;
height: 100%;
overflow-y: auto;
}
.canvas-note-preview-empty {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
color: var(--text-muted);
font-size: 14px;
}
.canvas-note-preview-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 1px solid var(--background-modifier-border);
flex-wrap: wrap;
gap: 10px;
}
.canvas-note-preview-header h3 {
margin: 0;
font-size: 18px;
flex: 1;
min-width: 150px;
}
.canvas-note-preview-buttons {
display: flex;
gap: 8px;
align-items: center;
}
.canvas-note-preview-toggle-btn,
.canvas-note-preview-open-btn {
padding: 4px 12px;
font-size: 12px;
background: var(--interactive-accent);
color: var(--text-on-accent);
border: none;
border-radius: 4px;
cursor: pointer;
transition: background 0.2s;
}
.canvas-note-preview-toggle-btn:hover,
.canvas-note-preview-open-btn:hover {
background: var(--interactive-accent-hover);
}
.canvas-note-preview-save-status {
font-size: 11px;
padding: 2px 8px;
border-radius: 3px;
margin-left: 8px;
}
.save-status-saved {
color: var(--color-green);
background: rgba(var(--color-green-rgb), 0.15);
}
.save-status-saving {
color: var(--text-muted);
background: var(--background-modifier-border);
}
.save-status-unsaved {
color: var(--text-warning);
background: var(--background-modifier-error-hover);
}
.save-status-error {
color: var(--text-error);
background: var(--background-modifier-error);
}
.canvas-note-preview-content {
font-size: 14px;
line-height: 1.6;
}
.canvas-note-preview-content h1,
.canvas-note-preview-content h2,
.canvas-note-preview-content h3 {
margin-top: 1.5em;
margin-bottom: 0.5em;
}
.canvas-note-preview-content p {
margin-bottom: 1em;
}
.canvas-note-preview-content ul,
.canvas-note-preview-content ol {
margin-left: 1.5em;
margin-bottom: 1em;
}
.canvas-note-preview-content code {
background: var(--code-background);
padding: 2px 4px;
border-radius: 3px;
font-family: var(--font-monospace);
}
.canvas-note-preview-content pre {
background: var(--code-background);
padding: 10px;
border-radius: 5px;
overflow-x: auto;
}
/* 編輯器樣式 */
.canvas-note-preview-editor {
height: calc(100vh - 200px);
min-height: 400px;
}
.canvas-note-preview-editor.is-hidden {
display: none;
}
.canvas-note-preview-content.is-hidden {
display: none;
}
.canvas-note-preview-textarea {
width: 100%;
height: 100%;
padding: 15px;
font-family: var(--font-monospace);
font-size: 14px;
line-height: 1.6;
border: 1px solid var(--background-modifier-border);
border-radius: 5px;
background: var(--background-primary);
color: var(--text-normal);
resize: vertical;
outline: none;
}
.canvas-note-preview-textarea:focus {
border-color: var(--interactive-accent);
}