File tree Expand file tree Collapse file tree 1 file changed +20
-14
lines changed Expand file tree Collapse file tree 1 file changed +20
-14
lines changed Original file line number Diff line number Diff line change 185
185
color: #bd93f9 !important;
186
186
}
187
187
188
+ /* Copy Buttons Container */
189
+ .copy-buttons-container {
190
+ position: absolute;
191
+ right: 20px;
192
+ top: 20px;
193
+ display: flex;
194
+ flex-direction: column;
195
+ gap: 10px;
196
+ z-index: 100;
197
+ }
198
+
188
199
/* Copy Button */
189
200
.copy-button {
190
- position: fixed;
191
- right: 7%;
192
201
padding: 12px 20px;
193
202
background-color: rgba(0, 255, 0, 0.2);
194
203
color: var(--terminal-green);
198
207
font-size: 18px;
199
208
outline: none;
200
209
transition: all 0.3s ease;
201
- z-index: 100;
202
210
display: flex;
203
211
align-items: center;
204
212
gap: 8px;
295
303
padding: 15px;
296
304
}
297
305
306
+ .copy-buttons-container {
307
+ right: 10px;
308
+ top: 10px;
309
+ }
310
+
298
311
.copy-button {
299
- right: 5%;
300
312
padding: 10px 15px;
301
313
font-size: 16px;
302
314
}
303
-
304
- .copy-button:nth-child(2) {
305
- top: 80px;
306
- }
307
-
308
- .copy-button:nth-child(3) {
309
- top: 135px;
310
- }
311
315
}
312
316
313
317
{{ pygments_css | safe }}
329
333
</ a >
330
334
< div style ="width: 50px; "> </ div >
331
335
</ div >
332
- < button id ="copyButton " class ="copy-button " onclick ="copyAllText() " style ="top: 90px; ">
336
+ < div class ="copy-buttons-container ">
337
+ < button id ="copyButton " class ="copy-button " onclick ="copyAllText() ">
333
338
< i class ="fas fa-copy "> </ i > COPY CODE
334
339
</ button >
335
- < button id ="copyLinkButton " class ="copy-button " onclick ="copyLink() " style =" top: 145px; " >
340
+ < button id ="copyLinkButton " class ="copy-button " onclick ="copyLink() ">
336
341
< i class ="fas fa-link "> </ i > COPY LINK
337
342
</ button >
343
+ </ div >
338
344
< div class ="code ">
339
345
{{ highlighted_code | safe }}
340
346
</ div >
You can’t perform that action at this time.
0 commit comments