Files
filebrowser/frontend/src/css/workspace.css
T

966 lines
18 KiB
CSS

/* Lightweight workspace: system fonts, solid surfaces, no blur or filter layers. */
.document-viewer {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
min-height: 320px;
color: var(--textSecondary);
background: var(--background);
overflow: hidden;
}
.document-tools {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 10px;
padding: 12px;
background: var(--surfacePrimary);
border-bottom: 1px solid var(--borderPrimary);
}
.document-tools label {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
}
.document-tools input {
width: 82px;
padding: 6px;
background: var(--background);
color: var(--textSecondary);
border: 1px solid var(--borderPrimary);
border-radius: 6px;
}
.document-tools select {
width: auto;
margin: 0;
}
.document-stage {
flex: 1;
min-height: 0;
overflow: auto;
padding: 16px;
text-align: center;
}
.document-stage canvas {
max-width: 100%;
height: auto;
}
.dicom-viewer {
min-height: 0;
}
#previewer .preview.document-preview {
position: absolute;
top: 4em;
bottom: 0;
width: 100%;
height: auto;
}
.dicom-viewer .document-tools {
flex-shrink: 0;
}
.dicom-viewer .document-stage {
display: flex;
align-items: center;
justify-content: center;
min-width: 0;
overflow: hidden;
}
.dicom-viewer .document-stage canvas {
display: block;
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
object-fit: scale-down;
}
.file-info.card.floating {
width: min(1080px, calc(100vw - 32px));
max-width: calc(100vw - 32px);
max-height: calc(100vh - 24px);
display: flex;
flex-direction: column;
}
.file-info .card-content {
min-height: 0;
overflow: auto;
}
.file-info .card-title,
.file-info .card-action {
flex-shrink: 0;
}
.file-info h3 {
margin: 20px 0 12px;
font-size: 15px;
}
.file-info table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}
.file-info th,
.file-info td {
padding: 9px 12px;
border-bottom: 1px solid var(--divider);
text-align: start;
vertical-align: top;
overflow-wrap: anywhere;
}
.file-info th {
width: 38%;
word-break: normal;
overflow-wrap: normal;
font-weight: 500;
color: var(--textSecondary);
}
.file-info td {
color: var(--textPrimary);
}
.file-info .dicom-tag {
display: block;
font-size: 11px;
opacity: 0.7;
margin-top: 4px;
}
.file-info input {
width: 100%;
}
.file-info .metadata-encoding {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 12px;
}
.file-info .metadata-encoding select {
width: auto;
margin: 0;
}
.file-info details {
margin-top: 20px;
}
.file-info summary {
cursor: pointer;
}
.document-error {
padding: 16px;
overflow-wrap: anywhere;
}
.public-document {
height: 75vh;
min-height: 420px;
}
#share.card.share-listing {
width: min(800px, calc(100vw - 32px));
}
#share .share-dialog-table {
min-width: 600px;
}
#share .share-dialog-table th:first-child {
width: 40%;
}
#share .share-dialog-table th:last-child {
width: 138px;
}
#share .share-dialog-table th,
#share .share-dialog-table td {
padding: 10px;
}
#share .share-dialog-table .share-link-name {
font-size: 13px;
font-weight: 500;
}
#share.share-listing .card-content {
max-height: 60vh;
overflow-y: auto;
}
.share-option {
display: grid;
gap: 12px;
padding: 14px;
border: 1px solid var(--borderPrimary);
border-radius: 10px;
background: var(--background);
}
.share-option-toggle {
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
color: var(--textSecondary);
}
.share-option-toggle input {
width: 18px;
height: 18px;
margin: 0;
accent-color: var(--blue);
}
.share-expiration-fields {
display: grid;
grid-template-columns: minmax(80px, 1fr) minmax(110px, 2fr);
gap: 10px;
}
.share-expiration-fields .input {
width: 100%;
min-width: 0;
margin: 0;
}
.shares-table-wrap {
overflow-x: auto;
}
.card-content .shares-table {
table-layout: fixed;
min-width: 780px;
width: 100%;
margin: 0;
border-collapse: collapse;
}
.shares-table th,
.shares-table td {
padding: 12px 14px;
text-align: start;
vertical-align: middle;
border-bottom: 1px solid var(--borderPrimary);
overflow-wrap: anywhere;
}
.shares-table th {
font-size: 12px;
color: var(--textPrimary);
font-weight: 500;
}
.shares-table th:first-child {
width: 40%;
}
.shares-table th:last-child {
width: 154px;
}
.shares-table td {
font-size: 13px;
}
.shares-table tbody tr:last-child td {
border-bottom: 0;
}
.shares-table .share-link-actions {
margin: 0;
}
.shares-table .share-link-actions .action {
width: 34px;
height: 34px;
flex-basis: 34px;
}
.shares-table .managed-share-key {
font-size: 11px;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
}
.share-download-actions {
display: flex;
flex-direction: column;
gap: 12px;
padding: 20px;
}
.share__box__element .share-download-primary {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
min-height: 48px;
padding: 12px 18px;
border-radius: 10px;
font-weight: 600;
background: var(--blue);
color: var(--surfacePrimary);
text-decoration: none;
}
.share__box__element .share-download-primary i {
display: block;
margin: 0;
font-size: 24px;
}
.share__box__element .share-download-primary:hover {
background: var(--dark-blue);
}
.dashboard .row.share-management > .column {
width: 100%;
min-width: 0;
}
.share-management .card {
min-width: 0;
}
.managed-shares {
display: grid;
gap: 14px;
}
.managed-share {
min-width: 0;
padding: 18px;
border: 1px solid var(--borderPrimary);
border-radius: 12px;
background: var(--background);
}
.managed-share-heading {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 18px;
}
.managed-share-file {
flex: 1;
min-width: 0;
}
.managed-share-path {
display: block;
color: var(--textSecondary);
font-weight: 600;
overflow-wrap: anywhere;
word-break: break-word;
}
.managed-share-key {
display: block;
color: var(--textPrimary);
font-size: 12px;
margin-top: 6px;
overflow-wrap: anywhere;
word-break: break-word;
}
.managed-share .share-link-actions {
flex: 0 0 auto;
margin-top: 0;
}
.managed-share-meta {
display: flex;
flex-wrap: wrap;
gap: 14px 32px;
margin: 18px 0 0;
padding-top: 14px;
border-top: 1px solid var(--borderPrimary);
}
.managed-share-meta > div {
min-width: 0;
max-width: 100%;
}
.managed-share-meta dt {
font-size: 11px;
color: var(--textPrimary);
margin-bottom: 3px;
}
.managed-share-meta dd {
margin: 0;
color: var(--textSecondary);
overflow-wrap: anywhere;
word-break: break-word;
}
.managed-share-meta i {
font-size: 16px;
vertical-align: middle;
}
@media (max-width: 480px) {
.managed-share {
padding: 14px;
}
.managed-share-heading {
flex-wrap: wrap;
}
.managed-share-file {
flex-basis: 100%;
}
.managed-share .share-link-actions {
margin-inline-start: auto;
}
}
.user-record-id {
display: block;
color: var(--textPrimary);
font-size: 11px;
}
.without-sidebar main {
width: auto;
max-width: 1200px;
margin: 0 auto 24px;
padding-inline: 24px;
}
.without-sidebar .menu-button {
display: none;
}
.sidebar-profile {
display: inline-flex;
flex-direction: column;
min-width: 0;
max-width: calc(100% - 38px);
}
.sidebar-profile strong,
.sidebar-profile small {
overflow: hidden;
text-overflow: ellipsis;
}
.sidebar-profile small {
color: var(--textPrimary);
font-weight: 400;
font-size: 11px;
}
nav .disk-usage {
margin: 28px 4px 12px;
padding: 14px;
border: 1px solid var(--borderPrimary);
border-radius: 12px;
background: var(--background);
}
.disk-usage-heading {
display: flex;
justify-content: space-between;
font-size: 12px;
color: var(--textSecondary);
}
.disk-usage progress {
display: block;
width: 100%;
height: 6px;
margin: 10px 0;
border: 0;
border-radius: 8px;
overflow: hidden;
background: var(--borderPrimary);
accent-color: var(--blue);
}
.disk-usage progress::-webkit-progress-bar {
background: var(--borderPrimary);
}
.disk-usage progress::-webkit-progress-value {
background: var(--blue);
border-radius: 8px;
}
.disk-usage progress::-moz-progress-bar {
background: var(--blue);
border-radius: 8px;
}
.disk-usage small {
display: block;
font-size: 11px;
color: var(--textPrimary);
}
.profile-summary {
display: flex;
flex-direction: column;
gap: 4px;
padding-bottom: 20px;
margin-bottom: 20px;
border-bottom: 1px solid var(--divider);
overflow-wrap: anywhere;
}
.profile-summary strong {
font-size: 20px;
color: var(--textSecondary);
}
#share.card {
width: min(620px, calc(100vw - 32px));
max-width: calc(100vw - 32px);
}
#share .card-content {
padding: 20px;
}
.share-links {
display: grid;
gap: 12px;
}
.share-link-card {
padding: 14px;
border: 1px solid var(--borderPrimary);
border-radius: 10px;
background: var(--background);
}
.share-link-details {
min-width: 0;
}
.share-link-name {
display: block;
overflow-wrap: anywhere;
color: var(--textSecondary);
font-weight: 600;
}
.share-link-details small {
display: flex;
align-items: center;
gap: 6px;
margin-top: 7px;
color: var(--textPrimary);
}
.share-link-details small i {
font-size: 16px;
}
.share-link-actions {
display: flex;
justify-content: flex-end;
gap: 6px;
margin-top: 8px;
}
.share-link-actions .action {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 40px;
border: 1px solid var(--borderPrimary);
border-radius: 8px;
width: 40px;
height: 40px;
padding: 0;
line-height: 1;
}
.share-link-actions .action i {
position: static;
display: block;
transform: none;
margin: 0;
padding: 0;
font-size: 22px;
line-height: 1;
}
.share-advanced {
margin-top: 20px;
border-top: 1px solid var(--borderPrimary);
}
.share-advanced summary {
padding: 16px 0 0;
cursor: pointer;
color: var(--textSecondary);
font-weight: 600;
}
.share-advanced-content {
display: grid;
gap: 12px;
padding-top: 18px;
}
#share .share-advanced .input-group {
margin: 0 0 8px;
}
.share-link-actions .action:hover {
background: var(--hover);
}
.share-link-actions .share-link-delete {
color: var(--red);
}
.share-link-actions .action:disabled {
opacity: 0.4;
cursor: default;
}
.share__box__info {
max-width: 560px;
}
.share__box__center svg {
max-width: min(240px, 100%);
height: auto;
padding: 12px;
background: white;
border-radius: 10px;
}
.share__box__icon i {
font-size: 80px;
}
:root {
--blue: #3563e9;
--dark-blue: #244bc2;
--background: #f4f6fa;
--surfacePrimary: #fff;
--surfaceSecondary: #edf1f8;
--textPrimary: #64718a;
--textSecondary: #202b40;
--borderPrimary: #e2e7f0;
--borderSecondary: #c9d2e3;
--divider: #e9edf4;
--hover: #edf2ff;
--action: #53617a;
--iconPrimary: #5375da;
--workspace-radius: 12px;
}
:root.dark {
--blue: #88a7ff;
--dark-blue: #6c92f2;
--background: #10151f;
--surfacePrimary: #19212f;
--surfaceSecondary: #242f42;
--textPrimary: #a0adc3;
--textSecondary: #e7edf8;
--borderPrimary: #2a3549;
--borderSecondary: #44516a;
--divider: #2a3549;
--hover: #273650;
--action: #b1bed5;
--iconPrimary: #9bb8ff;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
}
button,
input,
select,
textarea {
font: inherit;
}
button,
a,
input,
select,
textarea {
-webkit-tap-highlight-color: transparent;
}
:focus-visible {
outline: 2px solid var(--blue);
outline-offset: 3px;
}
header {
box-shadow: none;
padding-inline: 18px;
border-bottom: 1px solid var(--borderPrimary);
}
header img {
width: 30px;
height: 30px;
}
.workspace-brand {
display: flex;
align-items: center;
gap: 10px;
min-width: 13em;
font-size: 16px;
font-weight: 650;
letter-spacing: -0.4px;
}
.workspace-brand i {
padding: 7px;
border-radius: 9px;
background: var(--hover);
color: var(--blue);
font-size: 22px;
}
.workspace-overview {
display: flex;
align-items: center;
justify-content: space-between;
margin: 8px 0 24px;
}
.workspace-overview h1 {
font-size: 28px;
line-height: 1.2;
margin: 6px 0 0;
letter-spacing: -0.8px;
font-weight: 600;
}
.workspace-count {
border: 1px solid var(--borderPrimary);
border-radius: 20px;
padding: 5px 12px;
color: var(--textPrimary);
font-size: 12px;
}
.share__box {
border: 1px solid var(--borderPrimary);
border-radius: 12px;
box-shadow: none;
}
header .action {
border-radius: 9px;
}
header .action:hover,
nav .action:hover {
background: var(--hover);
}
nav {
padding: 22px 12px 12px;
border-inline-end: 1px solid var(--borderPrimary);
background: var(--surfacePrimary);
}
nav .action {
border-radius: 9px;
padding: 11px 14px;
font-size: 14px;
margin-block: 3px;
text-align: start;
}
nav .action i {
font-size: 21px;
margin-inline-end: 10px;
}
nav > div {
border-top: 0;
margin-top: 18px;
}
nav > .action:first-of-type {
background: var(--surfaceSecondary);
font-weight: 600;
}
nav #logout {
margin-top: 26px;
}
nav .credits {
font-size: 11px;
color: var(--textPrimary);
}
main {
margin: 0 24px 24px auto;
width: calc(100% - 19em);
}
.breadcrumbs {
height: 64px;
font-size: 13px;
border: 0;
}
.breadcrumbs a {
border-radius: 6px;
}
#listing.list {
border: 1px solid var(--borderPrimary);
border-radius: var(--workspace-radius);
overflow: hidden;
background: var(--surfacePrimary);
}
main #listing.list {
min-height: 0;
}
#listing.list .item {
padding: 11px 16px;
min-height: 58px;
border: 0;
border-bottom: 1px solid var(--divider);
}
#listing.list .item:last-child {
border-bottom: 0;
}
#listing .item .name {
color: var(--textSecondary);
font-weight: 500;
}
#listing .item .size,
#listing .item .modified {
font-size: 12px;
font-variant-numeric: tabular-nums;
}
#listing .item[aria-selected="true"] .name {
color: inherit;
}
#listing .item:hover {
background: var(--hover);
}
#listing.mosaic .item {
border: 1px solid var(--borderPrimary);
border-radius: var(--workspace-radius);
padding: 16px;
box-shadow: none;
}
#listing.mosaic .item:hover {
box-shadow: none !important;
border-color: var(--blue);
}
#listing.mosaic .item i {
font-size: 42px;
}
@supports (content-visibility: auto) {
#listing.list .item {
content-visibility: auto;
contain-intrinsic-size: auto 58px;
}
}
.card {
border: 1px solid var(--borderPrimary);
border-radius: var(--workspace-radius);
box-shadow: none;
overflow: hidden;
}
.card-title {
padding: 20px 24px;
border-bottom: 1px solid var(--divider);
}
.card-title h2 {
font-size: 18px;
font-weight: 600;
letter-spacing: -0.3px;
}
.card-content {
padding: 20px 24px;
}
.card-action {
border-top: 1px solid var(--divider);
padding: 12px 20px;
}
.card.floating {
box-shadow: 0 16px 56px #0003;
}
.input,
input[type="text"],
input[type="password"],
select {
border-radius: 8px;
border: 1px solid var(--borderSecondary);
background: var(--surfacePrimary);
color: var(--textSecondary);
}
.input:focus,
input:focus,
select:focus {
border-color: var(--blue);
}
.button {
border-radius: 8px;
text-transform: none;
font-weight: 600;
letter-spacing: 0;
}
.button:disabled {
opacity: 0.5;
cursor: wait;
}
.share-key-field {
display: flex;
align-items: center;
margin-top: 8px;
border: 1px solid var(--borderSecondary);
border-radius: 8px;
overflow: hidden;
}
.share-key-field span {
padding: 10px 12px;
color: var(--textPrimary);
background: var(--surfaceSecondary);
}
.share-key-field .input {
border: 0;
min-width: 0;
width: 100%;
}
.field-hint {
font-size: 12px;
color: var(--textPrimary);
line-height: 1.5;
}
.sso-welcome {
margin: 8vh auto 40px;
padding: 42px 32px;
width: calc(100% - 32px);
max-width: 440px;
text-align: center;
background: var(--surfacePrimary);
border: 1px solid var(--borderPrimary);
border-radius: 20px;
}
.sso-symbol {
display: flex;
width: 64px;
height: 64px;
margin: 0 auto 24px;
align-items: center;
justify-content: center;
border-radius: 18px;
background: var(--hover);
color: var(--blue);
}
.sso-symbol i {
font-size: 34px;
}
.eyebrow {
color: var(--textPrimary);
font-size: 10px;
letter-spacing: 2px;
font-weight: 600;
}
.sso-welcome h1 {
font-size: 32px;
margin: 8px 0 12px;
letter-spacing: -1px;
color: var(--textSecondary);
}
.sso-welcome p {
color: var(--textPrimary);
margin-bottom: 28px;
}
.sso-signin {
display: flex;
width: 100%;
justify-content: center;
align-items: center;
gap: 10px;
padding: 13px;
background: #3563e9;
color: white;
border: 0;
}
.sso-welcome small {
display: block;
margin-top: 24px;
font-size: 11px;
color: var(--textPrimary);
}
@media (min-width: 737px) and (max-width: 1024px) {
nav {
width: 13em;
}
main {
width: calc(100% - 16em);
margin-inline-end: 18px;
}
}
@media (max-width: 736px) {
header {
padding-inline: 8px;
}
header .menu-button {
order: -1;
}
.workspace-brand {
min-width: 0;
font-size: 14px;
}
.workspace-brand i {
display: none;
}
.workspace-overview {
margin: 6px 0 18px;
}
.workspace-overview h1 {
font-size: 24px;
}
main {
width: calc(100% - 24px);
margin: 0 12px 16px;
}
nav {
padding: 16px 12px;
}
.breadcrumbs {
height: 52px;
}
#listing.list .item {
padding: 10px 12px;
min-height: 56px;
}
#listing.mosaic .item {
padding: 12px;
}
.card.floating {
width: calc(100% - 24px);
max-height: calc(100vh - 32px);
overflow: auto;
}
.sso-welcome {
margin: 4vh auto;
padding: 32px 24px;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}