Files
q-edit/style.css
T
2025-09-05 04:13:22 -04:00

878 lines
14 KiB
CSS

@font-face {
font-family: "Lexend";
src: url("Lexend-Regular.ttf") format("truetype");
}
body {
font-family: "Lexend", sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
background-color: #0f1a2e;
color: #c9d2d9;
}
header {
background-color: #070d19;
color: #c9d2d9;
text-align: center;
padding: 1rem 0;
}
header h1 {
margin: 0;
}
main {
width: 95%;
margin: 20px auto;
padding: 20px;
background-color: #2d3749;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 25px;
}
section {
margin-bottom: 20px;
}
section h2 {
background-color: #070d19;
color: #c9d2d9;
padding: 10px;
margin-top: 0;
border-radius: 20px;
}
section h3 {
background-color: #070d19;
color: #c9d2d9;
padding: 5px;
margin-top: 0;
border-radius: 15px;
}
a {
color: #008fd5;
}
p,
table {
margin: 10px 0;
}
table {
width: 100%;
}
span {
vertical-align: middle;
}
th,
td {
text-align: left;
padding: 8px;
border: 1px solid #4c5154;
vertical-align: middle;
}
span.clickable-delete {
color: #008fd5;
cursor: pointer;
text-decoration: underline;
}
span.clickable-delete:hover {
color: tomato;
cursor: pointer;
text-decoration: underline;
}
span.clickable-metadata {
color: #008fd5;
cursor: pointer;
text-decoration: underline;
}
span.clickable-metadata:hover {
color: #ffaa00;
cursor: pointer;
text-decoration: underline;
}
th {
background-color: #0f1a2e;
}
tr:nth-child(odd) {
background-color: #3d4452;
}
footer {
text-align: center;
padding: 20px;
background-color: #070d19;
color: #c9d2d9;
position: fixed;
bottom: 0;
width: 100%;
}
button {
background-color: #008fd5;
color: #c9d2d9;
padding: 10px 10px;
border: none;
cursor: pointer;
border-radius: 15px;
vertical-align: middle;
}
select {
background-color: #008fd5;
color: #c9d2d9;
padding: 5px 5px;
border: none;
cursor: pointer;
border-radius: 10px;
vertical-align: middle;
}
img {
margin-right: 5px;
vertical-align: middle;
}
.filter-checkbox label {
margin-right: 20px;
}
.pagination-controls {
max-width: 100%;
overflow-x: auto;
white-space: nowrap;
display: block;
margin: 10px 0;
text-align: center;
color: #c9d2d9;
}
.pagination-controls a,
.pagination-controls span {
margin: 0 5px;
color: #008fd5;
cursor: pointer;
text-decoration: underline;
}
.pagination-controls a:hover {
color: #ffaa00;
}
.pagination-controls .current-page {
text-decoration: none;
font-weight: bold;
cursor: default;
color: #c9d2d9;
}
#volume-table td {
text-align: right;
font-family: monospace;
}
#menu-list {
text-align: center;
}
#search-button {
padding: 5px 10px;
border-radius: 10px;
margin-right: 10px;
}
#info-details,
#account-details,
#content-details p {
text-align: center;
}
/* Layout for sidebar + main content */
#app-shell {
display: flex;
gap: 16px;
position: relative; /* for reveal button positioning */
}
#sidebar {
width: 280px;
min-width: 220px;
max-width: 320px;
transition: width 0.2s ease-in-out;
overflow: hidden;
}
#main-pane {
flex: 1 1 auto;
min-width: 0; /* prevent overflow */
}
/* Collapsed state */
#app-shell.is-collapsed #sidebar {
width: 0;
min-width: 0;
border: 0;
}
#app-shell.is-collapsed #sidebar > * {
display: none;
}
/* Sidebar banner and tree basic styling */
.sidebar-banner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 8px;
}
.file-tree {
font-size: 14px;
}
.tree-line {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 2px 0;
}
.tree-toggle {
background: transparent;
border: none;
color: #c9d2d9;
cursor: pointer;
}
.tree-label {
flex: 1 1 auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tree-count {
opacity: 0.8;
}
.tree-children {
margin-left: 16px;
display: none;
}
.tree-children.expanded {
display: block;
}
/* Icon button minimal style for topbar */
.icon-button {
background: #008fd5;
color: #c9d2d9;
border: none;
border-radius: 10px;
padding: 6px 10px;
cursor: pointer;
}
.icon-button[aria-pressed="true"] {
background: #ffaa00;
color: #070d19;
}
/* Reveal button shown only when collapsed */
.sidebar-reveal {
position: absolute;
left: 8px;
top: 8px;
z-index: 2;
}
#user-info {
padding: 10px;
}
#user-details p,
#wallet-info h3,
#wallet-info p {
margin: 5px 0;
}
#user-avatar {
width: 100px;
height: 100px;
margin-top: 10px;
}
#login-prompt {
text-align: center;
}
/* Header auth area (name switcher) */
header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem;
text-align: left;
}
#auth-controls {
display: flex;
align-items: center;
gap: 10px;
}
.auth-button {
background-color: #1f6feb;
color: #fff;
border: none;
border-radius: 8px;
padding: 8px 12px;
font-size: 14px;
cursor: pointer;
}
.auth-button[disabled] {
opacity: 0.6;
cursor: not-allowed;
}
.name-switcher {
display: flex;
align-items: center;
gap: 8px;
}
.name-select {
background-color: #0f1a2e;
color: #c9d2d9;
border: 1px solid #4c5154;
border-radius: 8px;
padding: 6px 10px;
font-size: 14px;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
/* Non-blocking loading indicator (no dimming, no input blocking) */
#loading-overlay {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: none;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 6px;
padding: 10px 12px;
background: rgba(7, 13, 25, 0.7);
border-radius: 12px;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
z-index: 1000;
pointer-events: none; /* allow interacting with the app while loading */
}
.spinner-img {
width: 72px;
height: 72px;
animation: qdn-spin 1.1s linear infinite;
filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.35));
}
.spinner-label {
font-size: 12px;
opacity: 0.9;
}
@keyframes qdn-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* Improved image preview sizing */
img.preview-image {
max-height: 100px;
max-width: 100%;
height: auto;
width: auto;
object-fit: contain;
cursor: zoom-in;
}
/* Image viewer overlay */
#image-viewer-overlay {
position: fixed;
inset: 0;
display: none;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.9);
z-index: 1100;
}
#image-viewer-overlay img {
max-width: 95vw;
max-height: 95vh;
object-fit: contain;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
border-radius: 6px;
cursor: zoom-out;
}
#image-viewer-overlay .close-hint {
position: absolute;
bottom: 18px;
color: #c9d2d9;
font-size: 13px;
opacity: 0.8;
}
/* Identifier action icons */
.action-icon {
width: 15px;
height: 15px;
vertical-align: middle;
margin-left: 6px;
cursor: pointer;
filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.25));
}
.identifier-text {
margin-right: 4px;
}
/* Service filter chips */
.chips-container {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 6px;
}
.chip {
display: inline-flex;
align-items: center;
gap: 6px;
border: 1px solid #4c5154;
color: #c9d2d9;
background: #0f1a2e;
padding: 4px 10px;
border-radius: 999px;
cursor: pointer;
user-select: none;
font-size: 13px;
}
.chip .count {
background: #1f6feb;
color: #fff;
border-radius: 999px;
padding: 0 6px;
font-size: 12px;
line-height: 18px;
}
.chip.selected {
border-color: #1f6feb;
background: #12345a;
}
/* Compact jump-to-page controls */
.jump-to-page {
display: inline-flex;
align-items: center;
gap: 6px;
margin-left: 10px;
}
.jump-to-page input[type="number"] {
width: 80px;
padding: 2px 6px;
}
.jump-to-page button {
padding: 2px 8px;
}
/* Bulk-delete mode visibility rules */
.bulk-select {
display: none;
vertical-align: middle;
margin-right: 6px;
}
body.bulk-mode .bulk-select {
display: inline-block;
}
body.bulk-mode .clickable-delete {
display: none;
}
th .select-all-label {
margin-left: 6px;
font-weight: 500;
font-size: 12px;
}
/* === App shell layout === */
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 8px 12px;
border-bottom: 1px solid #22314d;
background: #0b1426;
}
.topbar-left {
display: flex;
align-items: center;
gap: 8px;
}
.topbar-right {
display: flex;
align-items: center;
gap: 8px;
}
/* Publish dropdown */
.publish-menu {
position: relative;
}
.publish-dropdown {
position: absolute;
right: 0;
top: calc(100% + 4px);
background: #0b1426;
border: 1px solid #22314d;
border-radius: 8px;
padding: 6px;
min-width: 180px;
display: none;
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
z-index: 3;
}
.publish-menu.open .publish-dropdown {
display: block;
}
.publish-item {
display: block;
width: 100%;
background: transparent;
color: #c9d2d9;
text-align: left;
padding: 6px 8px;
border: 1px solid transparent;
border-radius: 6px;
cursor: pointer;
}
.publish-item:hover {
background: #182746;
border-color: #2a3a5d;
}
.app-title {
font-weight: 650;
letter-spacing: 0.2px;
font-size: 18px;
}
.icon-button {
background: transparent;
border: 1px solid transparent;
color: #c9d2d9;
cursor: pointer;
padding: 4px 8px;
border-radius: 8px;
}
.icon-button:hover {
background: #182746;
border-color: #2a3a5d;
}
/* Deleted toggle (trash icon) */
.deleted-toggle {
position: relative;
}
/* When hideDeleted is ON (aria-pressed=true), show a slash overlay */
.deleted-toggle[aria-pressed="true"]::after {
content: "";
position: absolute;
left: 6px;
right: 6px;
top: 50%;
height: 2px;
background: #ff5d5d;
transform: rotate(-25deg);
box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
pointer-events: none;
}
/* Prefer highlight when showing deleted (pressed=false) */
.deleted-toggle[aria-pressed="false"] {
background: #182746;
border-color: #2a3a5d;
}
/* Cancel generic pressed highlight for this specific button */
.deleted-toggle[aria-pressed="true"] {
background: transparent !important;
color: #c9d2d9;
border-color: transparent;
}
/* Layout for sidebar + main */
#app-shell {
display: flex;
min-height: calc(100vh - 48px);
}
#sidebar {
width: 280px;
border-right: 1px solid #22314d;
padding: 8px;
box-sizing: border-box;
overflow: auto;
}
#main-pane {
flex: 1;
padding: 12px;
overflow: auto;
}
.sidebar-banner {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 8px;
}
.sidebar-context,
.sidebar-exit {
font-size: 12px;
padding: 4px 8px;
border-radius: 8px;
border: 1px solid #2a3a5d;
background: #101c34;
color: #c9d2d9;
}
.sidebar-context[disabled] {
opacity: 0.85;
}
/* File tree */
.file-tree {
list-style: none;
margin: 0;
padding: 0;
}
.tree-node {
margin: 2px 0;
}
.tree-line {
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
padding: 4px 6px;
border-radius: 8px;
}
.tree-line:hover {
background: #162645;
}
.tree-toggle {
width: 16px;
height: 16px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid #2a3a5d;
border-radius: 4px;
background: #0f1a2e;
color: #9fb3c8;
font-size: 11px;
}
.tree-label {
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.tree-count {
font-size: 11px;
opacity: 0.8;
}
.tree-children {
margin-left: 16px;
padding-left: 8px;
border-left: 1px dashed #2a3a5d;
display: none;
}
.tree-children.expanded {
display: block;
}
.viewer-panel {
border: 1px solid #22314d;
border-radius: 12px;
padding: 8px;
background: #0b1426;
margin-bottom: 12px;
}
/* Hide legacy chips area when tree is present */
#service-chips-container {
display: none !important;
}
/* Preview page */
.preview-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 8px;
}
.preview-title {
font-weight: 600;
opacity: 0.9;
}
/* Global media controls (header) */
.media-controls {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 0 8px;
border-left: 1px solid #22314d;
margin-right: 8px;
}
.media-title {
max-width: 240px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
opacity: 0.9;
font-size: 12px;
}
/* Active pagination styling */
.pagination-controls .is-active {
font-weight: 700;
text-decoration: underline;
}
.pagination-controls [aria-disabled="true"] {
opacity: 0.5;
cursor: not-allowed;
}
/* === Search page === */
.search-form {
display: flex;
flex-wrap: wrap;
gap: 8px 12px;
align-items: flex-end;
margin-bottom: 10px;
padding: 8px;
border: 1px solid #22314d;
border-radius: 12px;
background: #0b1426;
}
.search-form .form-row {
display: flex;
flex-direction: column;
gap: 4px;
}
.search-form .form-row.small {
flex-direction: row;
align-items: center;
gap: 12px;
}
.search-form label {
font-size: 12px;
opacity: 0.9;
}
.search-form input[type="text"],
.search-form select {
background: #0f1a2e;
color: #c9d2d9;
border: 1px solid #2a3a5d;
border-radius: 8px;
padding: 6px 8px;
min-width: 220px;
}
.search-summary {
margin: 6px 0 10px 0;
opacity: 0.9;
}
.search-results table {
width: 100%;
}
.search-results .open-preview {
cursor: pointer;
color: #008fd5;
text-decoration: underline;
}
.search-results .open-preview:hover {
color: #ffaa00;
}
.search-more {
margin: 8px 0;
}
/* Compose page */
#compose-page .compose-form .form-row {
display: flex;
flex-direction: column;
gap: 4px;
margin-bottom: 10px;
}
#compose-page input[type="text"],
#compose-page textarea {
background: #0f1a2e;
color: #c9d2d9;
border: 1px solid #2a3a5d;
border-radius: 8px;
padding: 8px;
}
#compose-page .metadata-summary {
font-size: 12px;
opacity: 0.8;
margin-left: 8px;
}