-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
100 lines (86 loc) · 2.41 KB
/
Copy pathstyles.css
File metadata and controls
100 lines (86 loc) · 2.41 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
/* Code Import Plugin Styles */
.code-import-container {
margin: var(--size-4-4) 0;
}
.code-import-block {
border-radius: var(--radius-s);
overflow: hidden;
border: 1px solid var(--background-modifier-border);
}
/* Header hidden by default, shown via body class */
.code-import-header {
display: none;
justify-content: space-between;
align-items: center;
padding: var(--size-2-3) var(--size-4-3);
background-color: var(--background-secondary);
border-bottom: 1px solid var(--background-modifier-border);
font-size: var(--font-smallest);
}
body.code-import-show-filename .code-import-header {
display: flex;
}
.code-import-filename {
font-family: var(--font-monospace);
color: var(--text-muted);
}
.code-import-line-info {
font-family: var(--font-monospace);
color: var(--text-faint);
font-size: var(--font-smaller);
}
/* Reset code block styles inside our wrapper */
.code-import-block pre {
margin: 0;
border: none;
border-radius: 0;
}
/* Default: no wrap, horizontal scroll */
.code-import-container .code-import-block pre,
.code-import-container .code-import-block pre code {
white-space: pre;
overflow-x: auto;
}
/* Wrap code option (uses body class for instant toggle) */
body.code-import-wrap-enabled .code-import-container .code-import-block pre,
body.code-import-wrap-enabled .code-import-container .code-import-block pre code {
white-space: pre-wrap;
word-wrap: break-word;
overflow-wrap: break-word;
word-break: break-all;
overflow-x: visible;
}
/* Error state */
.code-import-error {
margin: var(--size-4-4) 0;
padding: var(--size-4-3);
border-radius: var(--radius-s);
background-color: var(--background-modifier-error);
border: 1px solid var(--text-error);
}
.code-import-error-header {
font-weight: var(--font-semibold);
color: var(--text-error);
margin-bottom: var(--size-4-2);
}
.code-import-error-details {
color: var(--text-normal);
margin-bottom: var(--size-4-2);
}
.code-import-error-source {
font-family: var(--font-monospace);
font-size: var(--font-smallest);
color: var(--text-muted);
background-color: var(--background-primary);
padding: var(--size-2-3) var(--size-4-2);
border-radius: var(--radius-s);
}
/* Loading state */
.code-import-loading {
margin: var(--size-4-4) 0;
padding: var(--size-4-3);
border-radius: var(--radius-s);
background-color: var(--background-secondary);
color: var(--text-muted);
font-style: italic;
}