-
-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathstyle.css
154 lines (131 loc) · 2.99 KB
/
style.css
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
152
153
154
body {
font-family: sans-serif;
margin: 0;
padding: 0;
}
.container {
display: flex; /* Default to horizontal layout for desktop */
height: 100vh;
}
.input-panel, .output-panel {
flex: 1;
padding: 20px;
box-sizing: border-box;
overflow: auto; /* Enable scrolling if content overflows */
}
.output-panel {
border-left: 1px solid #ccc; /* Separator for desktop layout */
display: flex;
flex-direction: column;
}
/* Mobile layout adjustments (vertical) */
@media (max-width: 768px) {
.container {
flex-direction: column; /* Vertical layout for mobile */
}
.output-panel {
border-left: none; /* Remove separator on mobile */
border-top: 1px solid #ccc; /* Separator for mobile layout */
}
}
.tab-selector {
margin-bottom: 10px;
}
.tab-content {
padding: 10px;
border: 1px solid #ddd;
margin-bottom: 10px;
}
.tab-content.hidden {
display: none;
}
.controls label {
display: block;
margin-top: 10px;
}
.controls input[type="text"],
.controls input[type="number"],
.controls input[type="file"] {
width: calc(100% - 10px);
padding: 5px;
margin-bottom: 10px;
box-sizing: border-box;
}
.file-inputs button {
margin-right: 10px;
}
.editor-container {
border: 1px solid #ccc;
display: flex;
overflow: auto; /* Allow editor to scroll */
}
.line-numbers {
background-color: #f0f0f0;
padding: 10px;
text-align: right;
white-space: nowrap;
user-select: none;
}
.editor {
flex: 1;
padding: 10px;
outline: none;
white-space: pre-wrap; /* Important for contenteditable to respect line breaks */
overflow-wrap: break-word;
tab-size: 4; /* Set tab size */
}
.pdf-viewer-controls {
margin-bottom: 10px;
display: flex;
align-items: center;
}
.pdf-viewer-controls button,
.pdf-viewer-controls input {
margin-right: 10px;
}
.pdf-viewer {
border: 1px solid #ccc;
padding: 10px;
overflow-x: hidden; /* Prevent horizontal scrollbar in viewer */
overflow-y: auto; /* Allow vertical scrolling for pages */
height: 70vh; /* Adjust height as needed */
}
.pdf-viewer svg {
width: 100%; /* Make SVG fill viewer width */
margin-bottom: 10px; /* Spacing between pages */
display: block; /* Prevent inline spacing */
}
.sidebar {
width: 200px; /* Adjust sidebar width */
border-left: 1px solid #ccc;
padding: 10px;
box-sizing: border-box;
overflow-y: auto; /* Scrollable sidebar */
}
.sidebar-modes button {
display: block;
width: 100%;
padding: 5px;
margin-bottom: 5px;
text-align: left;
background-color: #eee;
border: none;
cursor: pointer;
}
.sidebar-modes button.active {
background-color: #ddd;
}
.sidebar-content {
padding: 10px;
border: 1px solid #ddd;
margin-top: 10px;
}
.sidebar-content.hidden {
display: none;
}
#minimap-view svg {
width: 80%; /* Smaller SVGs for minimap */
margin-bottom: 5px;
display: block;
border: 1px solid #eee;
}