Files
ad-ds-simple-file-server/app/web/styles.css
T

102 lines
6.0 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 { padding: .4rem .7rem; border: 1px solid #777; color: #111; background: #eee; cursor: pointer; }
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; }
.shares-view { display: flex; height: calc(100vh - 4.5rem); height: calc(100dvh - 4.5rem); min-height: 0; flex-direction: column; }
.shares-split { min-height: 0; flex: 1; }
.shares-split > .panel { display: flex; min-height: 0; margin-bottom: 0; flex-direction: column; }
.shares-split .list { min-height: 0; flex: 1; overflow-y: auto; }
.shares-split #tree-panel { display: flex; height: 100%; min-height: 0; flex-direction: column; }
.shares-split .tree { min-height: 0; max-height: none; flex: 1; overflow-y: auto; }
.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; }
.list { margin: 0; padding: 0; list-style: none; }
.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; }
.tree { max-height: 65vh; overflow: auto; }
.tree details { margin-left: 1rem; padding-left: .5rem; border-left: 1px solid #bbb; }
.tree > details { margin-left: 0; border-left: 0; }
.tree summary, .tree .leaf { padding: .2rem 0; }
.tree .leaf { margin-left: 1.5rem; }
.tree .kind { display: inline-block; min-width: 4.5rem; color: #555; }
.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; }
.shares-split { grid-template-rows: repeat(2, minmax(0, 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; }
}