-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
193 lines (169 loc) · 3.52 KB
/
style.css
File metadata and controls
193 lines (169 loc) · 3.52 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
/* Basic Reset and Layout */
body {
font-family: 'Consolas', 'Monaco', monospace;
margin: 0;
padding: 0;
background-color: #1e1e1e;
color: #cccccc;
}
header {
background-color: #252526;
padding: 10px 20px;
border-bottom: 1px solid #000000;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
h1 {
font-size: 1.5em;
margin: 0;
color: #007acc;
}
.stats-bar, .controls {
display: flex;
align-items: center;
gap: 15px;
}
.stat-item strong {
color: #ffffff;
font-weight: bold;
}
/* Button Styling (Navigation) */
#prevBtn, #nextBtn {
background-color: #007acc;
color: white;
border: none;
padding: 8px 15px;
cursor: pointer;
font-size: 0.9em;
border-radius: 3px;
transition: background-color 0.2s;
}
#prevBtn:hover, #nextBtn:hover {
background-color: #005f99;
}
/* Clear Button Styling */
.clear-btn {
position: absolute;
top: 5px;
right: 5px;
background: #444;
color: #fff;
border: none;
padding: 2px 8px;
font-size: 0.8em;
cursor: pointer;
z-index: 10;
border-radius: 3px;
opacity: 0.7;
transition: opacity 0.2s;
}
.clear-btn:hover {
opacity: 1.0;
background: #555;
}
.editor-container {
height: calc(100vh - 58px);
display: flex;
}
.editor-panel {
flex: 1;
display: flex;
flex-direction: column;
border-right: 1px solid #000000;
position: relative;
overflow: hidden;
}
h2 {
background-color: #3c3c3c;
color: #ffffff;
padding: 5px 10px;
font-size: 1em;
margin: 0;
flex-shrink: 0;
}
/* INPUT WRAPPER STYLES (Increased Height to 200px) */
.input-wrapper {
display: flex;
width: 100%;
height: 200px; /* INCREASED SIZE */
flex-shrink: 0;
border-bottom: 1px solid #000000;
overflow: hidden;
}
/* STABLE INPUT TEXTAREA */
.paste-input {
flex-grow: 1;
height: 100%;
padding: 5px;
box-sizing: border-box;
border: none;
resize: none;
font-family: inherit;
font-size: 14px;
line-height: 18px;
background-color: #252526;
color: #cccccc;
outline: none;
overflow-y: scroll;
}
/* Line Numbers (Default for display panels) */
.line-numbers {
width: 40px;
flex-shrink: 0;
padding: 5px 5px 5px 0;
text-align: right;
color: #858585;
background-color: #252526;
font-size: 14px;
line-height: 18px;
white-space: pre;
user-select: none;
overflow-y: hidden;
}
/* Specific styling for Line Numbers in the Input Section */
.input-numbers {
background-color: #252526;
}
/* Code Editor Div (Display Panel) */
.code-wrapper {
display: flex;
flex-grow: 1;
position: relative;
overflow: hidden;
}
.code-editor {
flex-grow: 1;
overflow-y: scroll;
padding: 5px;
box-sizing: border-box;
font-size: 14px;
line-height: 18px;
white-space: pre;
font-family: inherit;
background-color: #1e1e1e;
outline: none;
cursor: default;
}
/* Diff Highlighting */
.code-editor span {
display: block;
width: 100%;
min-height: 18px;
}
.added {
background-color: #285435 !important; /* Green */
}
.removed {
background-color: #6a0000 !important; /* Red */
}
/* NEW: Active Change Highlight (Purple) */
.active-diff {
background-color: #58356E !important;
outline: 1px solid #BB86FC; /* Border for visibility */
}
.placeholder {
background-color: transparent !important;
color: transparent !important;
}