-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsection-editor.scss
More file actions
107 lines (93 loc) · 1.77 KB
/
section-editor.scss
File metadata and controls
107 lines (93 loc) · 1.77 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
.section-editor {
display: flex;
flex-direction: column;
height: 100%;
}
.section-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 20px;
border-bottom: 1px solid var(--border);
background: var(--surface);
gap: 12px;
}
.section-heading-row {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
min-width: 0;
}
.heading-prefix {
font-size: 16px;
font-weight: 700;
color: var(--text-muted);
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
flex-shrink: 0;
}
.heading-input {
font-size: 18px;
font-weight: 600;
border: none;
background: transparent;
color: var(--text-primary);
padding: 4px 8px;
border-radius: 4px;
flex: 1;
min-width: 0;
&:hover {
background: var(--hover);
}
&:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
background: var(--hover);
}
}
.section-nav-buttons {
display: flex;
gap: 6px;
flex-shrink: 0;
}
.section-body {
flex: 1;
overflow: hidden;
}
.editor-host {
height: 100%;
:host ::ng-deep .cm-editor {
height: 100%;
}
}
/* Structured editing mode */
.structured-content {
display: flex;
flex-direction: column;
gap: 12px;
padding: 16px 20px;
height: 100%;
overflow-y: auto;
}
.text-block {
width: 100%;
min-height: 60px;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--surface);
color: var(--text-primary);
font-size: 13px;
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
line-height: 1.6;
resize: vertical;
&:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-ring);
}
&::placeholder {
color: var(--text-muted);
font-style: italic;
}
}