diff --git a/app/app.css b/app/app.css index 9da8b63..7e9add5 100644 --- a/app/app.css +++ b/app/app.css @@ -1,9 +1,10 @@ /* OverBoard PDF app. Toolbar styles come from ../shared/toolbar.css (shared with the overlay). */ -:root { --desk: #e9e7e2; --ink: #111; --mute: #555; } +:root { --desk: #e9e7e2; --ink: #111; --mute: #555; --brand: #145da0; --brand-dark: #0f4a80; --brand-pale: #e3ecf5; --brand-tint: #d6e4f2; } /* --brand: OverBoard blue, the color of its boat icon */ * { box-sizing: border-box; } html { overflow-anchor: auto; } body { margin: 0; background: var(--desk); color: var(--ink); font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; } [hidden], #ink-bar[hidden] { display: none !important; } +body.start { background: var(--brand-pale); } /* ---------- start screen ---------- */ #ob-start { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; } @@ -11,21 +12,21 @@ body:not(.start) #ob-start { display: none; } .card { width: min(640px, 100%); background: #fff; border-radius: 16px; box-shadow: 0 2px 14px rgba(0,0,0,.15); padding: 28px; } .card h1 { margin: 0; font-size: 34px; line-height: 1.1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; } .card h1 .logo { width: 56px; height: 56px; flex: none; } -.card h1 span { background: #111; color: #ffd400; border-radius: 8px; padding: 0 8px; font-size: 26px; vertical-align: middle; } +.card h1 span { background: var(--brand); color: #fff; border-radius: 8px; padding: 0 8px; font-size: 26px; vertical-align: middle; } .lead { margin: 8px 0 18px; color: var(--mute); } -#ob-demo { display: block; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #111; color: #fff; text-decoration: none; font-size: 17px; } /* "New here? Try the demo" for teachers arriving from the apps hub */ -#ob-demo b { color: #ffd400; } -#ob-demo:hover, #ob-demo:focus-visible { background: #333; } +#ob-demo { display: block; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--brand); color: #fff; text-decoration: none; font-size: 17px; } /* "New here? Try the demo" for teachers arriving from the apps hub */ +#ob-demo b { color: #fff; } +#ob-demo:hover, #ob-demo:focus-visible { background: var(--brand-dark); } #ob-demo span { text-decoration: underline; text-underline-offset: 3px; } #ob-drop { display: grid; place-items: center; align-content: center; gap: 4px; min-height: 180px; border: 3px dashed #bbb; border-radius: 14px; cursor: pointer; text-align: center; padding: 16px; transition: background .15s, border-color .15s; } #ob-drop strong { font-size: 24px; } #ob-drop span { color: var(--mute); } -#ob-drop:hover, #ob-drop:focus, #ob-drop.over { background: #fffbe0; border-color: #e6b800; outline: none; } +#ob-drop:hover, #ob-drop:focus, #ob-drop.over { background: var(--brand-pale); border-color: var(--brand); outline: none; } #ob-msg { background: #e8f5e9; color: #1b5e20; border-radius: 10px; padding: 10px 12px; margin: 14px 0 0; } #ob-error { background: #ffebee; color: #b71c1c; border-radius: 10px; padding: 10px 12px; margin: 14px 0 0; } #ob-install { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; color: var(--mute); font-size: 14px; } #ob-install[hidden] { display: none; } -#ob-install button { flex: none; min-height: 52px; padding: 0 20px; border: 0; border-radius: 12px; background: #111; color: #ffd400; font: 700 16px Inter, system-ui, sans-serif; cursor: pointer; } +#ob-install button { flex: none; min-height: 52px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font: 700 16px Inter, system-ui, sans-serif; cursor: pointer; } #ob-recent h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin: 22px 0 8px; } #ob-recent ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; } /* long file names shorten with … instead of widening the card */ #ob-recent li { display: flex; gap: 8px; } @@ -33,14 +34,14 @@ body:not(.start) #ob-start { display: none; } #ob-recent .open { flex: 1; min-width: 0; text-align: left; background: #f1f0ec; padding: 6px 14px; overflow: hidden; } #ob-recent .open b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #ob-recent .open small { color: var(--mute); } -#ob-recent .open:hover { background: #e6e4dc; } +#ob-recent .open:hover { background: var(--brand-tint); } #ob-recent .forget { flex: none; width: 52px; background: transparent; color: var(--mute); font-size: 22px; } #ob-recent .forget:hover { background: #ffebee; color: #b71c1c; } /* blank notebooks: the paper buttons on the start screen and under a notebook's last page */ :is(#ob-blank, #ob-addpage) h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin: 18px 0 8px; } .ob-papers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; } .ob-papers button { display: grid; justify-items: center; gap: 6px; min-height: 52px; padding: 10px 4px; border: 0; border-radius: 12px; background: #f1f0ec; color: var(--ink); font: 600 15px Inter, system-ui, sans-serif; cursor: pointer; overflow-wrap: anywhere; } -.ob-papers button:hover, .ob-papers button:focus-visible { background: #e6e4dc; } +.ob-papers button:hover, .ob-papers button:focus-visible { background: var(--brand-tint); } .ob-papers button:disabled { opacity: .5; cursor: progress; } .ob-papers i { width: 46px; height: 60px; border-radius: 2px; box-shadow: 0 1px 4px rgba(0,0,0,.3); background: #fff; } .ob-papers [data-paper="lined"] i { background: linear-gradient(90deg, transparent 8px, #e57373 8px 9px, transparent 9px), repeating-linear-gradient(#fff 0 5px, #9ec5e8 5px 6px); } @@ -51,7 +52,7 @@ body.notebook #ob-pages { padding-bottom: 0; } #ob-addpage { width: min(560px, calc(100vw - 32px)); margin: 16px auto 50vh; padding: 4px 16px 16px; background: #fff; border-radius: 14px; box-shadow: 0 2px 14px rgba(0,0,0,.15); font-family: Inter, system-ui, sans-serif; } #ob-release { color: var(--mute); font-size: 12px; } /* the version number, so you can tell the newest app loaded */ .note { font-size: 13px; color: var(--mute); margin: 22px 0 0; } -.note a { color: #1565c0; } +.note a { color: var(--brand); } /* ---------- pages ---------- */ #ob-pages { position: relative; display: flex; flex-direction: column; align-items: safe center; gap: 16px; padding: 16px 0 50vh; min-width: max-content; touch-action: none; } @@ -129,9 +130,9 @@ body.start #ob-pages { display: none; } body.notebook #ob-embed .pdfonly, body:not(.notebook) #ob-embed .nbonly { display: none; } /* a blank notebook has no original PDF */ :is(#ob-embed, #ob-coverwarn) .row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; } :is(#ob-embed, #ob-coverwarn) .row button { min-height: 56px; min-width: 130px; border: 0; border-radius: 12px; font: 700 17px Inter, system-ui, sans-serif; cursor: pointer; background: #e6e4dc; color: #111; padding: 0 18px; } -:is(#ob-embed, #ob-coverwarn) .row button.go { background: #111; color: #ffd400; } +:is(#ob-embed, #ob-coverwarn) .row button.go { background: var(--brand); color: #fff; } -#ob-dropcover { position: fixed; inset: 0; z-index: 200; background: rgba(255, 212, 0, .25); border: 6px dashed #e6b800; display: grid; place-items: center; pointer-events: none; } -#ob-dropcover div { background: #111; color: #ffd400; font: 700 28px Inter, system-ui, sans-serif; padding: 16px 28px; border-radius: 14px; } +#ob-dropcover { position: fixed; inset: 0; z-index: 200; background: rgba(20, 93, 160, .2); border: 6px dashed var(--brand); display: grid; place-items: center; pointer-events: none; } +#ob-dropcover div { background: var(--brand); color: #fff; font: 700 28px Inter, system-ui, sans-serif; padding: 16px 28px; border-radius: 14px; } @media print { #ink-bar, #ink-show, #ob-toc, #ob-find { display: none !important; } } diff --git a/app/index.html b/app/index.html index 0d953f3..008101a 100644 --- a/app/index.html +++ b/app/index.html @@ -5,8 +5,8 @@ OverBoard PDF - - + + @@ -47,7 +47,7 @@

Open again

Your PDF and your ink stay in this browser on this computer. Nothing is uploaded. Have a Word file? In Word, choose File → Save as PDF, then drop the PDF here. Have an HTML worksheet? Drop it here to get a _board.html copy you can write on. -
About OverBoard · Board not working? · v49

+
About OverBoard · Board not working? · v50

@@ -104,7 +104,7 @@

Add a page:

- +
Ready
@@ -135,7 +135,8 @@

Add a page:

This class period only. Undo brings it back.

- +

Keep the ink inside a PDF file?Save this notebook as a PDF file?