Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

1.7 KB
Raw Blame
<!doctype html>
<meta charset="utf-8">
<title>bento/home</title>
<link rel="icon" href="../icons/icon.svg">
<link rel="stylesheet" href="ui.css">
<!-- Blocking, and before the body: stamps the theme so the FIRST paint is right. -->
<script src="theme.js"></script>
<style>
  /* The one-time offer on a ⌘S nothing covers (background.js claimOrOffer):
   * which file, what saying yes means, two answers. A popup window. */
  body { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; min-height: 100vh;
    box-sizing: border-box }
  h1 { font-size: 16px; margin: 0; line-height: 1.3 }
  .file { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px;
    background: var(--hover); min-width: 0 }
  .file b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
  .file small { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; direction: ltr; unicode-bidi: isolate; text-align: start }
  .lead { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.45 }
  .actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: auto; flex-wrap: wrap }
  .actions .link { margin-inline-end: auto }
  .status { font-size: 12px; color: var(--dim); margin: 0; min-height: 1.2em }
</style>
<h1 id="title"></h1>
<div class="file"><b id="name"></b><small id="path"></small></div>
<p class="lead" id="lead"></p>
<p class="status" id="status"></p>
<div class="actions">
  <button class="btn link" id="onlyFile" hidden></button>
  <button class="btn" id="once" data-i18n="fgOnce"></button>
  <button class="btn primary" id="choose"></button>
</div>
<script type="module" src="filegrant-window.js"></script>