flotilla/src/app.css

358 lines
6 KiB
CSS
Raw Normal View History

2025-03-04 18:47:58 +00:00
@import "@welshman/editor/index.css";
2024-08-05 21:45:16 +00:00
@tailwind base;
@tailwind components;
@tailwind utilities;
2025-02-01 01:09:46 +00:00
/* Fonts */
2024-08-06 20:04:13 +00:00
@font-face {
font-family: "Satoshis";
font-style: normal;
font-weight: 400;
src:
local(""),
url("/fonts/Satoshi Symbol.ttf") format("truetype");
}
@font-face {
font-family: "Lato";
font-style: normal;
font-weight: 400;
src:
local(""),
url("/fonts/Lato-Regular.ttf") format("truetype");
}
@font-face {
font-family: "Lato";
font-style: bold;
font-weight: 600;
src:
local(""),
url("/fonts/Lato-Bold.ttf") format("truetype");
}
@font-face {
font-family: "Lato";
font-style: italic;
font-weight: 400;
src:
local(""),
url("/fonts/Italic.ttf") format("truetype");
}
2025-02-01 01:09:46 +00:00
/* root */
2024-08-06 20:04:13 +00:00
:root {
font-family: Lato;
2024-09-25 22:01:40 +00:00
--base-100: oklch(var(--b1));
--base-200: oklch(var(--b2));
--base-300: oklch(var(--b3));
--base-content: oklch(var(--bc));
--primary: oklch(var(--p));
2025-01-03 00:12:46 +00:00
--primary-content: oklch(var(--pc));
2024-09-25 22:01:40 +00:00
--secondary: oklch(var(--s));
2025-01-03 00:12:46 +00:00
--secondary-content: oklch(var(--sc));
2024-09-25 22:01:40 +00:00
}
2025-02-01 01:40:14 +00:00
:root,
2025-02-01 01:09:46 +00:00
body,
html {
@apply bg-base-300;
}
2025-02-01 01:40:14 +00:00
/* ios */
.sait {
padding-top: env(safe-area-inset-top);
}
.sair {
padding-right: env(safe-area-inset-right);
}
.saib {
padding-bottom: env(safe-area-inset-bottom);
}
.sail {
padding-left: env(safe-area-inset-left);
}
.saix {
@apply sail sair;
}
.saiy {
@apply sait saib;
}
.sai {
@apply saiy saix;
}
.top-sai {
top: env(safe-area-inset-top);
}
.right-sai {
right: env(safe-area-inset-right);
}
.bottom-sai {
bottom: env(safe-area-inset-bottom);
}
.left-sai {
left: env(safe-area-inset-left);
}
2025-02-01 01:09:46 +00:00
/* utilities */
2024-10-08 18:39:16 +00:00
.bg-alt,
2024-10-09 23:11:23 +00:00
.bg-alt .bg-alt .bg-alt,
.hover\:bg-alt:hover,
.bg-alt .bg-alt .hover\:bg-alt:hover,
.bg-alt .bg-alt.hover\:bg-alt:hover {
@apply bg-base-100 text-base-content transition-colors;
2024-08-08 21:02:46 +00:00
}
2024-10-08 18:39:16 +00:00
.bg-alt .bg-alt,
2024-10-09 23:11:23 +00:00
.bg-alt .bg-alt .bg-alt .bg-alt,
.bg-alt .hover\:bg-alt:hover,
.bg-alt .bg-alt .bg-alt .hover\:bg-alt:hover,
.bg-alt.hover\:bg-alt:hover,
.bg-alt .bg-alt .bg-alt.hover\:bg-alt:hover {
@apply bg-base-300 text-base-content transition-colors;
2024-08-23 23:54:05 +00:00
}
2024-10-03 18:49:52 +00:00
.card2 {
2024-11-15 23:16:06 +00:00
@apply rounded-box p-6 text-base-content;
2024-10-03 18:49:52 +00:00
}
.card2.card2-sm {
@apply p-4 text-base-content;
2024-08-23 23:54:05 +00:00
}
2024-08-08 21:02:46 +00:00
.column {
@apply flex flex-col;
}
2024-08-14 21:52:00 +00:00
.center {
2024-08-16 17:50:38 +00:00
@apply flex items-center justify-center;
2024-08-14 21:52:00 +00:00
}
.row-2 {
@apply flex items-center gap-2;
}
.row-3 {
@apply flex items-center gap-3;
}
.row-4 {
@apply flex items-center gap-4;
}
.col-2 {
@apply flex flex-col gap-2;
}
.col-3 {
@apply flex flex-col gap-3;
}
.col-4 {
@apply flex flex-col gap-4;
}
2024-10-29 20:20:59 +00:00
.col-8 {
@apply flex flex-col gap-8;
}
2024-11-15 23:16:06 +00:00
.badge {
2024-11-16 16:04:09 +00:00
@apply justify-start overflow-hidden text-ellipsis whitespace-nowrap;
2024-11-15 23:16:06 +00:00
}
2024-10-14 19:55:08 +00:00
.ellipsize {
2024-10-15 19:02:11 +00:00
@apply overflow-hidden text-ellipsis;
2024-10-14 19:55:08 +00:00
}
2025-01-14 23:58:38 +00:00
[data-tip]::before {
@apply ellipsize;
}
2025-01-16 16:41:20 +00:00
@media (max-width: 639px) {
[data-tip]::before {
display: none;
}
}
2024-10-21 22:06:59 +00:00
.content-padding-x {
@apply px-4 sm:px-8 md:px-12;
}
.content-padding-t {
@apply pt-4 sm:pt-8 md:pt-12;
}
.content-padding-b {
@apply pb-4 sm:pb-8 md:pb-12;
}
.content-padding-y {
@apply content-padding-t content-padding-b;
}
.content-sizing {
@apply m-auto w-full max-w-3xl;
}
2024-08-14 21:52:00 +00:00
.content {
2024-10-21 22:06:59 +00:00
@apply content-sizing content-padding-x content-padding-y;
2024-08-14 21:52:00 +00:00
}
2024-08-08 21:02:46 +00:00
.heading {
2024-08-16 17:50:38 +00:00
@apply text-center text-2xl;
2024-08-08 21:02:46 +00:00
}
.subheading {
2024-08-16 17:50:38 +00:00
@apply text-center text-xl;
2024-08-08 21:02:46 +00:00
}
2024-08-09 23:22:09 +00:00
2024-08-14 21:52:00 +00:00
.superheading {
2024-08-16 17:50:38 +00:00
@apply text-center text-4xl;
2024-08-14 21:52:00 +00:00
}
2024-08-09 23:22:09 +00:00
.link {
2024-08-16 17:50:38 +00:00
@apply cursor-pointer text-primary underline;
2024-08-09 23:22:09 +00:00
}
.input input::placeholder {
opacity: 0.5;
}
2024-08-15 21:30:55 +00:00
.shadow-top-xl {
@apply shadow-[0_20px_25px_-5px_rgb(0,0,0,0.1)_0_8px_10px_-6px_rgb(0,0,0,0.1)];
}
2024-08-19 21:22:16 +00:00
2024-08-22 23:16:35 +00:00
/* tiptap */
2024-09-23 20:58:01 +00:00
.input-editor,
.chat-editor,
.note-editor {
@apply -m-1 min-h-12 p-1;
2024-09-12 23:56:33 +00:00
}
2025-01-29 00:23:19 +00:00
.tiptap {
--tiptap-object-bg: var(--base-100);
--tiptap-object-fg: var(--base-content);
--tiptap-active-bg: var(--primary);
--tiptap-active-fg: var(--primary-content);
2024-09-12 23:56:33 +00:00
}
2025-01-29 00:23:19 +00:00
.tiptap-suggestions {
--tiptap-object-bg: var(--base-100);
--tiptap-object-fg: var(--base-content);
--tiptap-active-bg: var(--base-300);
--tiptap-active-fg: var(--base-content);
2024-09-12 23:56:33 +00:00
}
2025-01-29 00:23:19 +00:00
.tiptap {
@apply max-h-[350px] overflow-y-auto p-2 px-4;
2024-08-22 23:16:35 +00:00
}
2025-01-29 00:23:19 +00:00
.tiptap p.is-editor-empty:first-child::before {
opacity: 40%;
2024-09-23 20:10:15 +00:00
}
2025-01-29 00:23:19 +00:00
.chat-editor .tiptap {
@apply rounded-box bg-base-300 pr-12;
2024-08-22 23:16:35 +00:00
}
2025-01-29 00:23:19 +00:00
.note-editor .tiptap {
--tiptap-object-bg: var(--base-200);
@apply input input-bordered h-auto min-h-32 rounded-box p-[.65rem] pb-6;
2024-08-19 21:22:16 +00:00
}
2025-01-29 00:23:19 +00:00
.input-editor .tiptap {
--tiptap-object-bg: var(--base-200);
@apply input input-bordered h-auto p-[.65rem];
2024-08-19 21:22:16 +00:00
}
2024-08-20 20:20:45 +00:00
2025-01-29 00:23:19 +00:00
/* link-content, based on tiptap */
2024-09-12 23:56:33 +00:00
2025-01-29 00:23:19 +00:00
.link-content {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
border-radius: 3px;
padding: 0 0.25rem;
background-color: var(--base-100);
color: var(--base-content);
2024-10-31 16:07:18 +00:00
}
2024-09-12 23:56:33 +00:00
/* date input */
2025-01-29 01:43:26 +00:00
.picker {
--date-picker-foreground: var(--base-content);
--date-picker-background: var(--base-300);
--date-picker-highlight-border: var(--primary);
--date-picker-selected-color: var(--primary-content);
--date-picker-selected-background: var(--primary);
}
2024-09-12 23:56:33 +00:00
.date-time-field {
2025-01-29 01:43:26 +00:00
@apply input input-bordered rounded-lg px-0;
2024-09-12 23:56:33 +00:00
}
2025-01-29 01:43:26 +00:00
2024-09-12 23:56:33 +00:00
.date-time-field input {
2025-01-29 01:43:26 +00:00
@apply !h-full !w-full !rounded-lg !border-none !bg-inherit !px-4 !text-inherit;
2024-09-12 23:56:33 +00:00
}
2024-09-25 22:01:40 +00:00
/* emoji picker */
emoji-picker {
--background: var(--base-100);
--border-color: var(--base-100);
--border-radius: var(--rounded-box);
--button-active-background: var(--base-content);
--button-hover-background: var(--base-content);
--indicator-color: var(--base-content);
--input-border-color: var(--base-100);
--input-font-color: var(--base-content);
--outline-color: var(--base-100);
}
2025-02-14 23:59:20 +00:00
/* progress */
progress[value]::-webkit-progress-value {
transition: width 0.5s;
}
/* content width for fixed elements */
.cw {
@apply w-full md:w-[calc(100%-18.5rem)];
}
/* chat view */
.chat__page-bar {
@apply cw !fixed top-0;
}
.chat__messages {
@apply cw fixed top-12 flex h-[calc(100%-10rem)] flex-col-reverse overflow-y-auto overflow-x-hidden md:h-[calc(100%-6rem)];
}
.chat__compose {
@apply cw fixed bottom-14 md:bottom-0;
}
.chat__scroll-down {
@apply fixed bottom-28 right-4 md:bottom-16;
}