rob-revisited/ide/ui/css/api-platform.css

93 lines
8.3 KiB
CSS

/* The API Platform window (ide/ui/js/api-platform.js) */
.ap-view { height: 100%; display: flex; flex-direction: column; min-height: 0; font-size: 12.5px; background: var(--bg); }
.ap-view.ap-max { position: fixed; inset: 0; z-index: 900; }
.ap-tabs { display: flex; align-items: center; gap: 2px; padding: 3px 6px 0; border-bottom: 1px solid var(--border-2); flex: none; }
.ap-tab { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-2); cursor: pointer; }
.ap-tab.on { color: var(--text); border-bottom-color: var(--accent); }
.ap-tab:hover { background: var(--hover); }
.ap-spacer { flex: 1; }
.ap-ver { color: var(--text-3); font-size: 11px; font-family: var(--mono); }
.ap-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
.ap-hint { color: var(--text-2); padding: 8px 12px; }
.ap-empty { padding: 30px; text-align: center; color: var(--text-2); }
.ap-cols { display: grid; grid-template-columns: 250px 1fr; flex: 1; min-height: 0; }
.ap-side { border-right: 1px solid var(--border-2); overflow: auto; padding: 6px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.ap-filter { height: 25px; }
.ap-class { display: flex; align-items: center; gap: 6px; padding: 3px 6px; cursor: pointer; border-radius: 3px; }
.ap-class:hover { background: var(--hover); }
.ap-class.on { background: var(--selection); }
.ap-cname { font-weight: 500; }
.ap-sub { color: var(--text-2); font-size: 11.5px; margin-left: 6px; }
.ap-kind { margin-left: auto; color: var(--text-3); font-size: 10.5px; text-transform: uppercase; }
.ap-badge { font-size: 9.5px; padding: 0 4px; border-radius: 3px; border: 1px solid var(--border-2); color: var(--text-3); flex: none; }
.ap-badge.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.ap-main { padding: 6px 12px 14px; overflow: auto; min-height: 0; flex: 1; }
.ap-main.full { padding-top: 6px; }
.ap-head { display: flex; align-items: center; gap: 8px; padding: 4px 0 6px; flex-wrap: wrap; }
.ap-head .btn.small, .ap-resbar .btn.small, .ap-op .btn.small, .ap-rows .btn.small { height: 23px; padding: 0 9px; font-size: 12px; }
.ap-resbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-bottom: 4px; }
.ap-chip { border: 1px solid var(--border-2); background: none; color: var(--text-2); border-radius: 11px; padding: 2px 10px; cursor: pointer; font-family: var(--mono); font-size: 11.5px; }
.ap-chip.on { border-color: var(--accent); color: var(--text); }
.ap-section { margin: 12px 0 6px; font-weight: 600; color: var(--text-2); text-transform: uppercase; font-size: 10.5px; letter-spacing: .04em; border-bottom: 1px solid var(--border-2); padding-bottom: 2px; }
.ap-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 14px; }
.ap-form.col { grid-template-columns: 1fr; min-width: 360px; }
.ap-f { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-f.wide { grid-column: 1 / -1; }
.ap-fl { color: var(--text-2); font-size: 11.5px; }
.ap-f .input { height: 25px; width: 100%; box-sizing: border-box; }
.ap-f select.input, .ap-type { height: 26px; padding: 0 6px; line-height: 24px; }
.ap-expr { padding: 3px 6px; background: var(--panel-2); border-radius: 3px; color: var(--yellow); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-checks { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ap-check { display: inline-flex; align-items: center; gap: 4px; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 25px; padding: 1px 4px; border: 1px solid var(--border-2); border-radius: 4px; background: var(--panel); }
.ap-tag { display: inline-flex; align-items: center; gap: 3px; padding: 0 3px 0 6px; border-radius: 9px; background: var(--selection); font-family: var(--mono); font-size: 11.5px; }
.ap-tag.f { background: var(--panel-2); border: 1px solid var(--accent); }
.ap-tag button { border: 0; background: none; color: var(--text-2); cursor: pointer; padding: 0 3px; }
.ap-add { border: 0; background: none; color: var(--text); width: 80px; outline: none; }
.ap-addf { border: 1px dashed var(--border-2); background: none; color: var(--text-2); border-radius: 9px; cursor: pointer; padding: 0 7px; }
.ap-rows { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.ap-row { display: flex; gap: 4px; }
.ap-row .input { width: 150px; }
.ap-x, .ap-fold { border: 0; background: none; color: var(--text-2); cursor: pointer; padding: 2px 4px; }
.ap-x:hover, .ap-fold:hover { color: var(--text); }
.ap-ops { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; align-items: flex-start; }
.ap-op { border: 1px solid var(--border-2); border-radius: 4px; padding: 3px 8px; width: 100%; box-sizing: border-box; }
.ap-op.dflt { display: flex; gap: 8px; align-items: center; opacity: .8; }
.ap-ophead { display: flex; align-items: center; gap: 8px; }
.ap-op .ap-form { padding: 6px 0 4px 24px; }
.ap-type { width: 140px; }
.ap-lock { color: var(--yellow); display: inline-flex; }
.ap-method { font-family: var(--mono); font-size: 10.5px; font-weight: 700; padding: 0 5px; border-radius: 3px; background: var(--panel-2); color: var(--text-2); min-width: 44px; text-align: center; display: inline-block; }
.ap-method.m-GET { color: var(--green); } .ap-method.m-POST { color: var(--yellow); } .ap-method.m-PUT, .ap-method.m-PATCH { color: var(--accent); } .ap-method.m-DELETE { color: var(--red); }
.ap-actions { display: flex; gap: 8px; margin-top: 14px; }
.ap-gridbox { overflow: auto; flex: 1; min-height: 120px; border: 1px solid var(--border-2); border-radius: 4px; }
.ap-grid { border-collapse: collapse; width: 100%; font-size: 12px; }
.ap-grid th { position: sticky; top: 0; background: var(--panel-2); text-align: left; padding: 3px 8px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--border-2); white-space: nowrap; z-index: 1; }
.ap-grid td { padding: 2px 8px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
.ap-grid tr:hover td { background: var(--hover); }
.ap-pn { font-family: var(--mono); font-weight: 500; cursor: pointer; white-space: nowrap; }
.ap-pn i { margin-right: 3px; color: var(--yellow); }
.ap-pt { color: var(--text-2); white-space: nowrap; font-size: 11.5px; }
.ap-c { text-align: center; }
.ap-gh { text-align: center !important; }
.ap-rw { display: flex; gap: 2px; justify-content: center; margin-top: 2px; }
.ap-rw button { border: 1px solid var(--border-2); background: none; color: var(--text-3); width: 18px; height: 16px; font-size: 10px; border-radius: 3px; cursor: pointer; padding: 0; }
.ap-rw button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.ap-cell { height: 22px; width: 150px; } .ap-cell.narrow { width: 80px; }
.ap-filters .ap-chips { border: 0; background: none; padding: 0; min-height: 0; min-width: 190px; }
.ap-filter-all { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 11.5px; }
.ap-state { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border-2); }
.ap-state a { cursor: pointer; color: var(--accent); font-family: var(--mono); }
.ap-route { cursor: pointer; }
.ap-ok { color: var(--green); font-weight: 700; } .ap-ko { color: var(--red); font-weight: 700; }
.ap-req { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.ap-tag2 { font-size: 9.5px; text-transform: uppercase; padding: 0 5px; border-radius: 3px; background: var(--yellow); color: #000; flex: none; white-space: nowrap; }
.ap-tag2.new, .ap-tag2.create { background: var(--green); color: #fff; }
.ap-tag2.unchanged, .ap-tag2.keep, .ap-tag2.forget { background: var(--panel-2); color: var(--text-2); }
.ap-tag2.conflict, .ap-tag2.delete { background: var(--red); color: #fff; }
.ap-out { width: 100%; height: 60vh; font-family: var(--mono); font-size: 12px; box-sizing: border-box; }
.ap-preview { display: grid; grid-template-columns: 260px 1fr; gap: 10px; height: 62vh; min-height: 300px; }
.ap-side2 { overflow: auto; border-right: 1px solid var(--border-2); padding-right: 6px; }
.ap-file { display: flex; gap: 6px; align-items: center; padding: 4px 6px; cursor: pointer; border-radius: 3px; font-family: var(--mono); font-size: 12px; word-break: break-all; }
.ap-file.on { background: var(--selection); }
.ap-diff { min-height: 0; border: 1px solid var(--border-2); }