-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditor.css
More file actions
116 lines (99 loc) · 2.18 KB
/
Copy patheditor.css
File metadata and controls
116 lines (99 loc) · 2.18 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
/* Editing chrome. Everything here is inert until editor.js adds .mdview-editing. */
.mdview-toolbar {
position: fixed;
top: 16px;
right: 60px; /* clear of the theme toggle */
z-index: 20;
display: flex;
align-items: center;
gap: 8px;
}
.mdview-btn {
font: inherit;
font-size: 13px;
line-height: 1;
padding: 7px 12px;
border-radius: 6px;
border: 1px solid var(--color-border);
background: var(--color-btn-bg);
color: var(--color-fg);
cursor: pointer;
}
.mdview-btn:hover:not(:disabled) {
background: var(--color-btn-hover);
}
.mdview-btn:disabled {
opacity: 0.5;
cursor: default;
}
.mdview-status {
font-size: 12px;
color: var(--color-fg-muted);
}
.mdview-status-error {
color: #cf222e;
}
/* Split layout ------------------------------------------------------------ */
.mdview-split {
display: flex;
align-items: stretch;
height: 100vh;
}
.mdview-editor-pane {
flex: 1 1 50%;
min-width: 0;
border-right: 1px solid var(--color-border);
}
/* The preview keeps its own scrollbar and drops the centring it uses when it
is the whole page. */
.mdview-editing .container {
flex: 1 1 50%;
min-width: 0;
max-width: none;
margin: 0;
overflow-y: auto;
height: 100vh;
}
.mdview-editing body,
body.mdview-editing {
overflow: hidden;
}
/* Banner ------------------------------------------------------------------ */
.mdview-banner {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 30;
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
border-radius: 8px;
border: 1px solid var(--color-border);
background: var(--color-bg);
color: var(--color-fg);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
font-size: 13px;
}
@media (max-width: 800px) {
/* Side by side stops making sense; show the editor and keep the preview
reachable by scrolling. */
.mdview-split {
flex-direction: column;
height: auto;
}
.mdview-editor-pane {
flex: none;
height: 55vh;
border-right: none;
border-bottom: 1px solid var(--color-border);
}
.mdview-editing .container {
height: auto;
overflow-y: visible;
}
body.mdview-editing {
overflow: auto;
}
}