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 185185 color: #bd93f9 !important;
186186}
187187
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+
188199/* Copy Button */
189200.copy-button {
190- position: fixed;
191- right: 7%;
192201 padding: 12px 20px;
193202 background-color: rgba(0, 255, 0, 0.2);
194203 color: var(--terminal-green);
198207 font-size: 18px;
199208 outline: none;
200209 transition: all 0.3s ease;
201- z-index: 100;
202210 display: flex;
203211 align-items: center;
204212 gap: 8px;
295303 padding: 15px;
296304 }
297305
306+ .copy-buttons-container {
307+ right: 10px;
308+ top: 10px;
309+ }
310+
298311 .copy-button {
299- right: 5%;
300312 padding: 10px 15px;
301313 font-size: 16px;
302314 }
303-
304- .copy-button:nth-child(2) {
305- top: 80px;
306- }
307-
308- .copy-button:nth-child(3) {
309- top: 135px;
310- }
311315}
312316
313317{{ pygments_css | safe }}
329333 </ a >
330334 < div style ="width: 50px; "> </ div >
331335 </ 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() ">
333338 < i class ="fas fa-copy "> </ i > COPY CODE
334339 </ button >
335- < button id ="copyLinkButton " class ="copy-button " onclick ="copyLink() " style =" top: 145px; " >
340+ < button id ="copyLinkButton " class ="copy-button " onclick ="copyLink() ">
336341 < i class ="fas fa-link "> </ i > COPY LINK
337342 </ button >
343+ </ div >
338344 < div class ="code ">
339345 {{ highlighted_code | safe }}
340346 </ div >
You can’t perform that action at this time.
0 commit comments