Skip to content

Commit 5171641

Browse files
Merge pull request #86 from Mr-Sunglasses/main
2 parents dd43ccd + b7f0c37 commit 5171641

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

src/paste/templates/paste.html

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,19 @@
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);
@@ -198,7 +207,6 @@
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;
@@ -295,19 +303,15 @@
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 }}
@@ -329,12 +333,14 @@
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>

0 commit comments

Comments
 (0)