Refactor navbar implementation: replace navbar.js with main.js, update HTML references, and enhance button styles. Add author username to paste retrieval response and implement clipboard notification feature.

### Copilot Generated Commit Message
This commit is contained in:
whoswhip
2025-05-19 02:11:24 -04:00
parent 704d7149fc
commit 1382fb9f07
12 changed files with 189 additions and 23 deletions
+11 -1
View File
@@ -80,10 +80,20 @@ button {
background-color: var(--neutral-800);
color: var(--neutral-50);
cursor: pointer;
transition: background-color 0.3s;
transition: background-color 0.2s;
font-size: 1rem;
}
button:hover {
background-color: var(--neutral-700);
border-color: var(--neutral-600);
}
button:active {
background-color: var(--neutral-600);
border-color: var(--neutral-500);
}
.hljs {
padding: 1rem;
border-radius: 6px;
+47 -1
View File
@@ -7,7 +7,7 @@
}
:root {
--neutral-50: #fafafa;
--neutral-50: #fafafa;
--neutral-100: #f5f5f5;
--neutral-200: #e5e5e5;
--neutral-300: #d4d4d4;
@@ -128,6 +128,7 @@ select:hover {
outline: none;
border: 1px solid var(--neutral-600);
}
select:focus {
outline: none;
border: 1px solid var(--neutral-600);
@@ -136,3 +137,48 @@ select:focus {
#syntax {
padding-left: 14rem;
}
#syntax-label {
margin-bottom: -2.3rem;
margin-top: 1.1rem;
z-index: 2;
align-self: flex-start;
margin-left: 1rem;
pointer-events: none;
}
@media screen and (max-width: 800px) {
.main-container {
width: 90%;
}
.create-form textarea {
max-height: 100%;
}
#syntax-label {
margin-bottom: 0.5rem;
margin-top: 0.5rem;
margin-left: 0;
text-align: center;
align-self: center;
max-width: 12rem;
overflow: hidden;
white-space: nowrap;
/*
possible style, just not good for small screens on desktop for some reason
margin-left: 6.7rem;
max-width: 12rem;
overflow: hidden;
white-space: nowrap;
margin-bottom: -1.9rem;
*/
}
#syntax {
padding-left: 0.7rem;
}
}