Files
WaifuBoard/views/styles/home.css
itsskaiya 04f37218de Updated headless browser to support dynamic sites
Removed tabs and moved over to pages
Updated the rendering system
Fixed multiple pages not loading on scroll and re-rending or not rendering anything or just page 1.
Fixed the search bar not taking in spaces for each query
Updated how extensions are made
Updated how extensions are loaded
2025-11-21 11:48:07 -05:00

576 lines
10 KiB
CSS

:root {
--bg-base: #09090b;
--bg-sidebar: #101012;
--bg-surface: #18181b;
--bg-surface-hover: #27272a;
--accent: #8b5cf6;
--accent-glow: rgba(139, 92, 246, 0.3);
--accent-gradient: linear-gradient(135deg, #8b5cf6, #6366f1);
--text-primary: #f4f4f5;
--text-secondary: #a1a1aa;
--text-tertiary: #52525b;
--border: #27272a;
--border-hover: #3f3f46;
--radius-md: 8px;
--radius-lg: 16px;
--radius-full: 9999px;
--sidebar-width-collapsed: 72px;
--sidebar-width-expanded: 240px;
--header-height: 70px;
}
* {
box-sizing: border-box;
outline: none;
scrollbar-width: thin;
scrollbar-color: var(--border) transparent;
}
body {
margin: 0;
padding: 0;
background-color: var(--bg-base);
color: var(--text-primary);
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
height: 100vh;
display: flex;
overflow: hidden;
}
.sidebar {
width: var(--sidebar-width-collapsed);
background: var(--bg-sidebar);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
padding: 1.5rem 0.75rem;
gap: 0.5rem;
transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
z-index: 50;
flex-shrink: 0;
}
.sidebar:hover {
width: var(--sidebar-width-expanded);
}
.main-wrapper {
flex: 1;
display: flex;
flex-direction: column;
height: 100%;
position: relative;
}
.brand-logo {
height: 48px;
display: flex;
align-items: center;
padding: 0 0.5rem;
margin-bottom: 2rem;
overflow: hidden;
color: var(--text-primary);
font-weight: 800;
font-size: 1.25rem;
letter-spacing: -0.5px;
cursor: default;
}
.brand-icon {
min-width: 32px;
height: 32px;
background: var(--accent-gradient);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.9rem;
margin-right: 1rem;
box-shadow: 0 0 15px var(--accent-glow);
color: white;
}
.nav-button {
display: flex;
align-items: center;
padding: 0.85rem;
border-radius: var(--radius-md);
color: var(--text-secondary);
background: transparent;
border: 1px solid transparent;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
overflow: hidden;
position: relative;
}
.nav-button:hover {
background: var(--bg-surface);
color: var(--text-primary);
}
.nav-button.active {
background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), transparent);
border-left: 3px solid var(--accent);
color: var(--accent);
}
.nav-button svg {
min-width: 24px;
width: 24px;
height: 24px;
margin-right: 1rem;
}
a, a:visited, a:hover, a:active {
text-decoration: none;
}
.nav-button span {
opacity: 0;
transform: translateX(-10px);
transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sidebar:hover .nav-button span {
opacity: 1;
transform: translateX(0);
}
.top-header {
height: var(--header-height);
display: flex;
align-items: center;
justify-content: center;
padding: 0 2rem;
position: sticky;
top: 0;
z-index: 40;
}
.search-box {
display: contents;
}
#search-input {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-full);
padding: 0.5rem 1rem;
color: var(--text-primary);
width: 350px;
transition: 0.2s;
font-size: 0.9rem;
}
#search-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-glow);
}
.content-view {
flex: 1;
overflow-y: auto;
padding: 0 2rem 2rem 2rem;
}
.page {
max-width: 1600px;
margin: 0 auto;
animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
#source-list {
display: flex;
gap: 1rem;
overflow-x: auto;
padding-bottom: 1rem;
scrollbar-width: none;
align-items: center;
flex-direction: row;
}
#source-list::-webkit-scrollbar {
display: none;
}
.source-button {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
display: flex;
align-items: center;
gap: 1rem;
padding: 0.75rem 1rem;
min-width: 200px;
width: auto;
height: auto;
cursor: pointer;
transition: all 0.2s;
position: relative;
overflow: hidden;
text-align: left;
}
.source-button:hover {
background: var(--bg-surface-hover);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
color: var(--text-primary);
}
.source-button.active {
border-color: var(--accent);
background: linear-gradient(to right, rgba(139, 92, 246, 0.05), transparent);
color: var(--text-primary);
}
.source-button img,
.source-button .brand-icon {
width: 32px;
height: 32px;
border-radius: 6px;
object-fit: cover;
flex-shrink: 0;
}
.source-text-wrapper {
display: flex;
flex-direction: column;
justify-content: center;
overflow: hidden;
line-height: 1.3;
}
.source-name {
font-weight: 600;
color: var(--text-primary);
font-size: 0.95rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.source-url {
font-size: 0.75rem;
color: var(--text-tertiary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.gallery-masonry {
column-count: 2;
column-gap: 1rem;
}
@media (min-width: 768px) {
.gallery-masonry {
column-count: 3;
}
}
@media (min-width: 1024px) {
.gallery-masonry {
column-count: 4;
}
}
@media (min-width: 1400px) {
.gallery-masonry {
column-count: 5;
}
}
.image-entry {
margin-bottom: 1rem;
border-radius: var(--radius-md);
overflow: hidden;
position: relative;
background: var(--bg-surface);
break-inside: avoid;
transition: transform 0.2s;
cursor: zoom-in;
display: inline-block;
width: 100%;
}
.image-entry:hover {
transform: scale(1.02);
z-index: 2;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.image-entry img {
width: 100%;
height: auto;
display: block;
opacity: 0;
transition: opacity 0.3s;
}
.image-entry img.loaded {
opacity: 1;
}
.image-entry img:not(.loaded) {
opacity: 1;
}
.image-buttons {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 2rem 1rem 1rem 1rem;
background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
display: flex;
justify-content: flex-end;
gap: 0.5rem;
opacity: 0;
transition: 0.2s;
top: auto;
right: auto;
flex-direction: row;
}
.image-entry:hover .image-buttons {
opacity: 1;
}
.image-buttons button {
width: 32px;
height: 32px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
display: flex;
align-items: center;
justify-content: center;
backdrop-filter: blur(4px);
cursor: pointer;
transition: 0.2s;
padding: 0;
}
.image-buttons button:hover {
background: var(--accent);
border-color: var(--accent);
}
.image-buttons button svg {
width: 16px;
height: 16px;
}
.settings-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}
.settings-card {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 1.5rem;
}
.settings-card h3 {
margin-top: 0;
font-size: 1.1rem;
margin-bottom: 1rem;
color: var(--text-primary);
}
fieldset {
border: none;
padding: 0;
margin: 0;
}
label {
display: flex;
align-items: center;
gap: 1rem;
padding: 0.75rem;
border: 1px solid var(--border);
border-radius: var(--radius-md);
cursor: pointer;
margin-bottom: 0.5rem;
transition: 0.2s;
}
label:hover {
background: var(--bg-surface-hover);
}
input[type="radio"] {
accent-color: var(--accent);
margin-top: 4px;
width: 1.2em;
height: 1.2em;
}
.hidden {
display: none !important;
}
.loading-state {
text-align: center;
padding: 4rem;
color: var(--text-tertiary);
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}
#tag-info-modal {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(8px);
z-index: 100;
display: flex;
align-items: center;
justify-content: center;
}
#tag-info-modal.hidden {
display: none;
}
#tag-info-modal>div {
background: var(--bg-surface);
border: 1px solid var(--border);
padding: 2rem;
border-radius: var(--radius-lg);
width: 90%;
max-width: 500px;
position: relative;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
#tag-info-close-button {
position: absolute;
top: 1rem;
right: 1rem;
background: none;
border: none;
color: var(--text-tertiary);
cursor: pointer;
}
.tag-cloud {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 1rem;
}
#tag-info-content span {
background: var(--bg-surface-hover);
border: 1px solid var(--border);
color: var(--text-secondary);
padding: 4px 10px;
border-radius: 20px;
font-size: 0.8rem;
}
.toast {
position: fixed;
bottom: 2rem;
right: 2rem;
background: var(--bg-sidebar);
border: 1px solid var(--border);
border-left: 4px solid var(--accent);
padding: 1rem 1.5rem;
border-radius: var(--radius-md);
color: var(--text-primary);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
z-index: 1000;
transform: translateY(20px);
opacity: 0;
pointer-events: none;
transition: 0.3s;
}
.toast:not(.hidden) {
transform: translateY(0);
opacity: 1;
pointer-events: all;
}
#message-bar:not(.hidden) {
transform: translateY(0);
opacity: 1;
pointer-events: all;
}