UNPKG

@crmackey/fernet

Version:

ypeScript implementation of Fernet symmetric encryption.

126 lines (108 loc) 1.85 kB
:root { font-family: Inter, Avenir, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px; font-weight: 400; color-scheme: light dark; color: rgba(255, 255, 255, 0.87); background-color: #242424; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; } a { font-weight: 500; color: #646cff; text-decoration: inherit; } a:hover { color: #535bf2; } body { margin: 0; display: flex; place-items: center; min-width: 320px; min-height: 100vh; } i { font-size: 90%; } h1 { font-size: 3.2em; line-height: 1.1; } input { line-height: 1.5rem; padding: .5rem; width: 100%; margin: 1rem 0 1rem 0; } textarea { height: 100px; width: 100%; padding: .5rem; margin: 1rem 0 1rem 0; overflow-y: auto; } .error { padding: 0.5rem; border: solid 1px red; background-color: rgba(255, 0, 0, 0.2); } .d-flex { display: flex; justify-content: space-between; } .expires { color: orange; } .expired { color: red; } button { border-radius: 8px; border: 1px solid transparent; padding: 0.6em 1.2em; font-size: 1em; font-weight: 500; font-family: inherit; background-color: #1a1a1a; cursor: pointer; transition: border-color 0.25s; margin: 1rem 0 1rem 0; } button:hover { border-color: #646cff; } button:focus, button:focus-visible { outline: 4px auto -webkit-focus-ring-color; } #decrypted { height: 50px; } .card { padding: 1.25rem 2em; width: 450px; } #app { max-width: 1280px; margin: 0 auto; padding: 1rem 2rem; text-align: center; } @media (prefers-color-scheme: light) { :root { color: #213547; background-color: #ffffff; } a:hover { color: #747bff; } button { background-color: #f9f9f9; } }