mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
Split code into classes to make the codebase look cleaner
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
This commit is contained in:
@@ -1,38 +1,45 @@
|
||||
body, html {
|
||||
body,
|
||||
html {
|
||||
height: 100%;
|
||||
min-height: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.main-container {
|
||||
max-width: 600px;
|
||||
margin: 2.5rem auto;
|
||||
padding: 1.5rem 1.5rem 2.5rem 1.5rem;
|
||||
background-color: var(--neutral-900);
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 20px rgba(0,0,0,0.18);
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.user-header {
|
||||
text-align: center;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.user-header h1 {
|
||||
font-size: 2.1rem;
|
||||
font-weight: 700;
|
||||
color: var(--neutral-50);
|
||||
margin: 0 0 0.2rem 0;
|
||||
}
|
||||
|
||||
.user-header p {
|
||||
color: var(--neutral-400);
|
||||
font-size: 1rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.user-pastes-section {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.archive-information {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr 1fr;
|
||||
@@ -46,9 +53,11 @@ body, html {
|
||||
border-bottom: 2px solid var(--neutral-700);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.archive-information p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.archive-list {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
@@ -60,24 +69,30 @@ body, html {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--neutral-700) var(--neutral-900);
|
||||
}
|
||||
|
||||
.archive-list::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
}
|
||||
|
||||
.archive-list::-webkit-scrollbar-track {
|
||||
background: var(--neutral-900);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.archive-list::-webkit-scrollbar-thumb {
|
||||
background-color: var(--neutral-700);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.archive-list li {
|
||||
margin: 0.75rem 0;
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.archive-list li:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.archive-list li a {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr 1fr;
|
||||
@@ -91,41 +106,50 @@ body, html {
|
||||
border: 1px solid var(--neutral-700);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.archive-list li a:hover {
|
||||
background-color: var(--neutral-750);
|
||||
border-color: var(--neutral-600);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.archive-list li a p {
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.archive-list li a p:nth-child(2) {
|
||||
padding-left: 1rem;
|
||||
text-align: center;
|
||||
}
|
||||
.archive-list li a p:nth-child(3){
|
||||
|
||||
.archive-list li a p:nth-child(3) {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#archive-title {
|
||||
font-weight: 500;
|
||||
color: var(--neutral-100);
|
||||
}
|
||||
|
||||
#archive-date {
|
||||
color: var(--neutral-300);
|
||||
font-size: 0.9rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#archive-syntax {
|
||||
color: var(--neutral-300);
|
||||
font-size: 0.9rem;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.user-pastes-throbber {
|
||||
margin: 1.5rem auto;
|
||||
}
|
||||
|
||||
.pastes-actions {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@@ -138,11 +162,13 @@ body, html {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.pastes-actions span {
|
||||
color: var(--neutral-300);
|
||||
font-size: 1.1rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.main-container {
|
||||
max-width: 98vw;
|
||||
@@ -150,29 +176,40 @@ body, html {
|
||||
padding: 0.5rem;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.archive-list li a p:last-child {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.archive-information,
|
||||
.archive-list li a {
|
||||
grid-template-columns: 3fr 2fr;
|
||||
}
|
||||
|
||||
#archive-syntax {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.archive-information p:last-child {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.main-container {
|
||||
padding: 1rem;
|
||||
margin: 1rem;
|
||||
}
|
||||
|
||||
.user-header h1 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.archive-list {
|
||||
max-height: 60vh;
|
||||
}
|
||||
}
|
||||
|
||||
#next-button-svg {
|
||||
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"/></svg>');
|
||||
color: white;
|
||||
|
||||
Reference in New Issue
Block a user