mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
Added a new favicon/icon Add more checks before uploading a paste, changed alert to use the showNotification function Added password modal for private pastes instead of using alert Fix a paste page navigation in dashboard Improve auth css
481 lines
9.2 KiB
CSS
481 lines
9.2 KiB
CSS
body {
|
|
background-color: var(--neutral-950);
|
|
color: var(--neutral-100);
|
|
}
|
|
|
|
.main-container {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: stretch;
|
|
margin-top: 2rem;
|
|
min-height: 400px;
|
|
padding: 20px;
|
|
gap: 25px;
|
|
}
|
|
|
|
.account-info,
|
|
.paste-list {
|
|
width: 48%;
|
|
border-radius: 8px;
|
|
padding: 25px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
|
|
background-color: var(--neutral-900);
|
|
border: 1px solid var(--neutral-700);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.paste-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.account-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.account-info:hover,
|
|
.paste-list:hover {
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
|
|
border-color: var(--neutral-700);
|
|
}
|
|
|
|
.account-info h1,
|
|
.paste-list h1 {
|
|
margin-bottom: 25px;
|
|
color: var(--neutral-100);
|
|
text-align: center;
|
|
font-size: 1.8rem;
|
|
border-bottom: 2px solid var(--neutral-700);
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.account-info p {
|
|
margin: 12px 0;
|
|
padding: 8px;
|
|
border-bottom: 1px solid var(--neutral-800);
|
|
font-size: 1.05rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
color: var(--neutral-300);
|
|
}
|
|
|
|
.paste-information {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
padding: 10px 0;
|
|
border-bottom: 2px solid var(--neutral-700);
|
|
font-weight: bold;
|
|
margin-bottom: 15px;
|
|
color: var(--neutral-300);
|
|
}
|
|
|
|
#pastes {
|
|
list-style-type: none;
|
|
width: 100%;
|
|
max-height: 90%;
|
|
overflow-y: auto;
|
|
padding: 0;
|
|
border-radius: 4px;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--neutral-700) var(--neutral-900);
|
|
border: none;
|
|
}
|
|
|
|
#pastes li {
|
|
margin: 0.75rem 0;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
#pastes li:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
#pastes li a {
|
|
display: grid;
|
|
grid-template-columns: 2fr 1fr 1fr;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem 0.75rem;
|
|
background-color: var(--neutral-800);
|
|
color: var(--neutral-50);
|
|
text-decoration: none;
|
|
transition: all 0.3s ease;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--neutral-700);
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
#pastes li a:hover {
|
|
background-color: var(--neutral-750);
|
|
border-color: var(--neutral-600);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
#pastes li a p {
|
|
margin: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#paste-title {
|
|
font-weight: 500;
|
|
color: var(--neutral-100);
|
|
}
|
|
|
|
#paste-date {
|
|
color: var(--neutral-300);
|
|
font-size: 0.9rem;
|
|
text-align: center;
|
|
overflow: hidden !important;
|
|
text-overflow: clip !important;
|
|
white-space: nowrap !important;
|
|
max-width: 80px;
|
|
text-align: left;
|
|
margin-right: -70px !important;
|
|
}
|
|
|
|
#paste-syntax {
|
|
color: var(--neutral-300);
|
|
font-size: 0.9rem;
|
|
text-align: right;
|
|
}
|
|
|
|
|
|
|
|
.paste-actions {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-top: auto;
|
|
padding-top: 15px;
|
|
border-top: 1px solid var(--neutral-800);
|
|
}
|
|
|
|
.paste-actions button {
|
|
background-color: var(--neutral-700);
|
|
color: var(--neutral-50);
|
|
border: none;
|
|
border-radius: 6px;
|
|
padding: 8px 15px;
|
|
margin: 0 10px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.paste-actions button:hover {
|
|
background-color: var(--neutral-600);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.paste-actions button:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.paste-actions button:disabled {
|
|
background-color: var(--neutral-800);
|
|
color: var(--neutral-500);
|
|
cursor: not-allowed;
|
|
opacity: 0.7;
|
|
box-shadow: none;
|
|
transform: none;
|
|
}
|
|
|
|
#paste-pages {
|
|
margin: 0 15px;
|
|
font-weight: bold;
|
|
min-width: 40px;
|
|
text-align: center;
|
|
color: var(--neutral-300);
|
|
}
|
|
|
|
#pastes::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
#pastes::-webkit-scrollbar-track {
|
|
background: var(--neutral-900);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
#pastes::-webkit-scrollbar-thumb {
|
|
background-color: var(--neutral-700);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
#pastes::-webkit-scrollbar-thumb:hover {
|
|
background-color: var(--neutral-600);
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.main-container {
|
|
padding: 15px;
|
|
}
|
|
|
|
.account-info,
|
|
.paste-list {
|
|
padding: 20px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.main-container {
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.account-info,
|
|
.paste-list {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 576px) {
|
|
.main-container {
|
|
padding: 10px;
|
|
}
|
|
|
|
.account-info,
|
|
.paste-list {
|
|
padding: 15px;
|
|
}
|
|
|
|
.account-info h1,
|
|
.paste-list h1 {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
#pastes li {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
#pastes li span {
|
|
margin-top: 5px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
}
|
|
|
|
.logout-modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 2000;
|
|
}
|
|
|
|
.logout-modal-box {
|
|
background: var(--neutral-900);
|
|
color: var(--neutral-100);
|
|
padding: 2rem 2.5rem;
|
|
border-radius: 10px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
|
|
text-align: center;
|
|
min-width: 300px;
|
|
max-width: 90vw;
|
|
}
|
|
|
|
.logout-modal-box h2 {
|
|
margin-bottom: 1rem;
|
|
font-size: 1.4rem;
|
|
color: var(--neutral-50);
|
|
}
|
|
|
|
.logout-modal-box p {
|
|
margin-bottom: 2rem;
|
|
color: var(--neutral-300);
|
|
}
|
|
|
|
.logout-modal-box button {
|
|
margin: 0 0.5rem;
|
|
padding: 0.7rem 1.5rem;
|
|
border-radius: 6px;
|
|
font-weight: 600;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
#confirm-logout {
|
|
background: #e74c3c;
|
|
color: #fff;
|
|
}
|
|
|
|
#confirm-logout:hover {
|
|
background: #c0392b;
|
|
}
|
|
|
|
#cancel-logout {
|
|
background: var(--neutral-700);
|
|
color: #fff;
|
|
}
|
|
|
|
#cancel-logout:hover {
|
|
background: var(--neutral-600);
|
|
}
|
|
|
|
#logout-button {
|
|
background-color: var(--neutral-700);
|
|
color: var(--neutral-50);
|
|
border: none;
|
|
border-radius: 6px;
|
|
padding: 10px 24px;
|
|
margin-top: auto;
|
|
font-size: 1.08rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
#logout-button:hover {
|
|
background-color: var(--neutral-600);
|
|
color: var(--neutral-10);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
|
|
}
|
|
|
|
#logout-button:active {
|
|
background-color: var(--neutral-800);
|
|
color: var(--neutral-200);
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
#delete-account-button {
|
|
background-color: #e74c3c;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 6px;
|
|
padding: 10px 24px;
|
|
font-size: 1.08rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
letter-spacing: 0.5px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
#delete-account-button:hover {
|
|
background-color: #c0392b;
|
|
color: #fff;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
|
|
}
|
|
|
|
#delete-account-button:active {
|
|
background-color: #a93226;
|
|
color: #fff;
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.delete-modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 2100;
|
|
}
|
|
|
|
.delete-modal-box {
|
|
background: var(--neutral-900);
|
|
color: var(--neutral-100);
|
|
padding: 2rem 2.5rem;
|
|
border-radius: 10px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
|
|
text-align: center;
|
|
min-width: 320px;
|
|
max-width: 95vw;
|
|
}
|
|
|
|
.delete-modal-box h2 {
|
|
margin-bottom: 1rem;
|
|
font-size: 1.4rem;
|
|
color: #e74c3c;
|
|
}
|
|
|
|
.delete-modal-box p {
|
|
margin-bottom: 1.2rem;
|
|
color: var(--neutral-300);
|
|
}
|
|
|
|
.delete-modal-box input {
|
|
margin-bottom: 0.7rem;
|
|
width: 90%;
|
|
padding: 8px;
|
|
border-radius: 5px;
|
|
border: 1px solid var(--neutral-700);
|
|
background: var(--neutral-800);
|
|
color: var(--neutral-100);
|
|
font-size: 1rem;
|
|
outline: none;
|
|
transition: border 0.2s;
|
|
}
|
|
|
|
.delete-modal-box input:focus {
|
|
border: 1.5px solid #e74c3c;
|
|
}
|
|
|
|
.delete-modal-box button {
|
|
margin: 0 0.5rem;
|
|
padding: 0.7rem 1.5rem;
|
|
border-radius: 6px;
|
|
font-weight: 600;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
#confirm-delete-account {
|
|
background: #e74c3c;
|
|
color: #fff;
|
|
}
|
|
|
|
#confirm-delete-account:hover {
|
|
background: #c0392b;
|
|
}
|
|
|
|
#confirm-delete-account:disabled {
|
|
background: var(--neutral-800);
|
|
color: var(--neutral-500);
|
|
cursor: not-allowed;
|
|
opacity: 0.7;
|
|
box-shadow: none;
|
|
transform: none;
|
|
}
|
|
|
|
#cancel-delete-account {
|
|
background: var(--neutral-700);
|
|
color: #fff;
|
|
}
|
|
|
|
#cancel-delete-account:hover {
|
|
background: var(--neutral-600);
|
|
}
|
|
|
|
#delete-error {
|
|
color: #e74c3c;
|
|
font-size: 1rem;
|
|
margin-top: 1rem;
|
|
} |