Files
ad-ds-simple-file-server/app/web/styles.css
T
2026-10-03 09:44:29 +00:00

163 lines
10 KiB
CSS

:root {
font: 15px/1.4 Arial, Helvetica, sans-serif;
color: #111;
background: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
a { color: #0645ad; }
button, input, select { font: inherit; }
button, .button { display: inline-block; padding: .4rem .7rem; border: 1px solid #777; color: #111; background: #eee; cursor: pointer; text-decoration: none; white-space: nowrap; }
button.icon-button, .button.icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; min-height: 2.4rem; padding: .4rem; flex-shrink: 0; }
.action-icon { display: block; width: 20px; height: 20px; }
button:disabled { color: #777; cursor: wait; }
input, select { width: 100%; padding: .4rem; border: 1px solid #999; background: #fff; }
button:focus, input:focus, select:focus, a:focus { outline: 2px solid #0645ad; outline-offset: 1px; }
label { display: grid; gap: .2rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .25rem; font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
.muted { color: #666; }
.error { margin: 0; color: #900; }
.stack { display: grid; gap: .8rem; }
.login-view { padding: 2rem; }
.login-card { max-width: 28rem; margin: 4rem auto; }
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; display: flex; width: 220px; flex-direction: column; border-right: 1px solid #aaa; background: #eee; }
.brand { padding: 1rem; border-bottom: 1px solid #aaa; font-weight: bold; }
nav { display: grid; padding: .5rem; }
nav a { padding: .45rem .5rem; color: #111; text-decoration: none; }
nav a:hover { text-decoration: underline; }
nav a.active { font-weight: bold; background: #ddd; }
.sidebar-footer { display: grid; gap: .4rem; margin-top: auto; padding: 1rem; border-top: 1px solid #aaa; overflow-wrap: anywhere; }
.link-button { width: fit-content; padding: 0; border: 0; color: #0645ad; background: transparent; text-decoration: underline; }
.content { min-height: 100vh; margin-left: 220px; padding: 1.5rem 2rem 3rem; }
.mobile-header { display: none; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid #aaa; padding-bottom: .8rem; }
.page-head p { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.card, .panel { border: 1px solid #aaa; background: #fff; }
.card { padding: .75rem; }
.card .value { display: block; margin-top: .2rem; font-size: 1.3rem; font-weight: bold; }
.card .label { color: #555; }
.panel { margin-bottom: 1rem; padding: .8rem; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.panel-head h2 { margin: 0; }
.split { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(380px, 1.3fr); gap: 1rem; }
.filters { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); gap: .6rem; margin-bottom: 1rem; align-items: end; }
.filters .wide { grid-column: span 2; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; }
.timestamp { text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }
th, td { padding: .5rem; border-bottom: 1px solid #ccc; vertical-align: top; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.path { max-width: 460px; overflow-wrap: anywhere; font-family: monospace; }
.badge { display: inline-block; font-weight: bold; white-space: nowrap; }
.badge.error { color: #900; }
.badge.warn { color: #750; }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; }
.toolbar input { max-width: 340px; }
.row-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.select-row { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: .5rem; border: 0; border-bottom: 1px solid #ccc; background: #fff; text-align: left; }
.select-row.active { font-weight: bold; background: #eee; }
.select-row span:last-child { color: #555; font-size: .85rem; }
.empty { padding: 1rem 0; color: #666; }
progress { width: 100%; }
.usage-bar { min-width: 160px; }
.progress-large { margin: .7rem 0; }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.log { max-height: 370px; margin: 0; padding: .75rem; overflow: auto; border: 1px solid #aaa; background: #f5f5f5; font: .85rem/1.45 monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.check { display: flex; justify-content: space-between; padding: .5rem; border-bottom: 1px solid #ccc; }
.toast { position: fixed; right: 1rem; bottom: 1rem; max-width: 420px; padding: .7rem; border: 1px solid #777; background: #fff; }
.loading { padding: 2rem 0; color: #666; }
@media (max-width: 1000px) {
.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.filters { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
.split { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
.sidebar { display: none; z-index: 5; }
.sidebar.open { display: flex; }
.mobile-header { display: flex; gap: 1rem; padding: .6rem 1rem; border-bottom: 1px solid #aaa; }
.content { margin-left: 0; padding: 1rem; }
.cards, .filters, .check-list { grid-template-columns: 1fr; }
.filters .wide { grid-column: span 1; }
.page-head { display: block; }
}
/* Access administration uses the shared admin controls, colors and typography. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.access-message { padding: .7rem; margin-bottom: 1rem; border: 1px solid #aaa; }
.access-message.failure { color: #900; }
.access-workspace { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 1rem; align-items: start; }
.access-browser, .access-detail { min-width: 0; border: 1px solid #aaa; background: #fff; }
.access-browser { overflow: hidden; }
.access-browser-head { display: grid; gap: .7rem; padding: .8rem; }
.access-browser-head h2 { margin: 0; }
.access-browser-head button { width: 100%; }
.access-search, .access-status-filter { margin: 0 .8rem .65rem; }
.access-list { border-top: 1px solid #ccc; max-height: 60vh; overflow-y: auto; }
.access-list .access-list-item { grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: .5rem .7rem; white-space: normal; }
.access-list-item strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: inherit; }
.access-list-item small { color: #555; font-size: .85rem; font-weight: normal; text-align: right; }
.access-detail-head { display: flex; gap: 1rem; justify-content: space-between; align-items: start; padding: .8rem; }
.access-detail-head h2 { margin: 0 0 .3rem; overflow-wrap: anywhere; }
.access-detail-head p { color: #666; font-size: .9rem; margin: 0; max-width: 42rem; }
.access-section { padding: .8rem; }
.access-section + .access-section { border-top: 1px solid #ccc; }
.access-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.access-section-head h3 { margin: 0; }
.access-section-head p { font-size: .85rem; margin: .3rem 0 0; }
.access-matrix-head { display: grid; grid-template-columns: minmax(150px,1.3fr) repeat(4,minmax(0,1fr)); align-items: end; font-size: .85rem; color: #555; padding-bottom: .5rem; gap: .3rem; }
.access-matrix-head > span:not(:first-child) { text-align: center; }
.access-matrix-head b { display: block; font-size: .9rem; margin-bottom: .15rem; color: #111; }
.access-matrix-row { display: grid; grid-template-columns: minmax(150px,1.3fr) minmax(0,4fr); align-items: center; gap: .3rem; padding: .5rem 0; border-top: 1px solid #ccc; }
.access-matrix-row strong { overflow-wrap: anywhere; }
.access-matrix-row small { display: block; font-size: .85rem; color: #666; margin-top: .2rem; overflow-wrap: anywhere; }
.access-users { max-height: 28rem; overflow-y: auto; }
.access-level-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .3rem; }
.access-level-options button { padding: .4rem .25rem; }
.access-level-options button[aria-pressed="true"] { background: #ddd; border-color: #111; font-weight: bold; }
.access-level-number { font-size: 1rem; }
.access-level-caption { display: none; white-space: normal; }
.access-savebar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; border-top: 1px solid #aaa; padding: .8rem; }
.access-savebar > span { color: #666; font-size: .85rem; }
.access-savebar > div { display: flex; gap: .5rem; }
.access-filter-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(170px,.5fr); gap: .6rem; margin-bottom: .65rem; }
.access-empty { padding: .8rem; color: #666; font-size: .9rem; }
.access-empty h2 { color: #111; margin-bottom: .5rem; }
.access-empty p { margin: 0; }
.access-dialog { width: min(480px,calc(100vw - 2rem)); max-height: calc(100dvh - 3rem); border: 1px solid #aaa; padding: 1rem; color: #111; background: #fff; }
.access-dialog::backdrop { background: #0006; }
.access-dialog p { font-size: .9rem; }
.access-dialog-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
.access-danger { color: #900; }
@media (max-width: 1250px) {
.access-workspace { grid-template-columns: 220px minmax(0,1fr); gap: .8rem; }
.access-matrix-head { display: none; }
.access-matrix-row { grid-template-columns: 1fr; gap: .5rem; padding: .7rem 0; }
.access-level-caption { display: block; font-size: .75rem; margin-top: .2rem; }
}
@media (max-width: 950px) {
.access-workspace { grid-template-columns: 1fr; }
.access-browser-head { display: flex; align-items: center; justify-content: space-between; }
.access-browser-head button { width: auto; }
.access-list { max-height: 12rem; }
.access-detail-head { flex-wrap: wrap; }
}
@media (max-width: 500px) {
.access-filter-row { grid-template-columns: 1fr; }
.access-section-head { align-items: start; flex-wrap: wrap; gap: .6rem; }
.access-savebar { flex-direction: column; align-items: stretch; }
.access-savebar > div { justify-content: flex-end; }
.access-level-options { gap: .2rem; }
.access-level-options button { padding: .4rem .1rem; }
.access-level-caption { font-size: .72rem; }
}
.content:focus { outline: none; }