diff --git a/src/lib/components/MainLayout.svelte b/src/lib/components/MainLayout.svelte new file mode 100644 index 000000000..0e71ea24f --- /dev/null +++ b/src/lib/components/MainLayout.svelte @@ -0,0 +1,243 @@ + + +
+ + +
+ +
+ + + + diff --git a/src/lib/components/OrgMenu.svelte b/src/lib/components/OrgMenu.svelte new file mode 100644 index 000000000..b538e6f1a --- /dev/null +++ b/src/lib/components/OrgMenu.svelte @@ -0,0 +1,86 @@ + + +
+
+
+ MuckRock's avatar +
+

{name}

+ +
+
+ +
+
+ + diff --git a/src/lib/components/common/Button.svelte b/src/lib/components/common/Button.svelte index 2b621ee70..dc9cc0d09 100644 --- a/src/lib/components/common/Button.svelte +++ b/src/lib/components/common/Button.svelte @@ -64,6 +64,12 @@ background: var(--blue-1, #eef3f9); } + @media (hover: none) { + .ghost:hover { + background: transparent; + } + } + button:disabled, .disabled { opacity: 0.5; diff --git a/src/lib/components/common/Logo.svelte b/src/lib/components/common/Logo.svelte new file mode 100644 index 000000000..1ccabdb0c --- /dev/null +++ b/src/lib/components/common/Logo.svelte @@ -0,0 +1,34 @@ + + + + + + diff --git a/src/lib/components/documents/DocumentListItem.svelte b/src/lib/components/documents/DocumentListItem.svelte index 4bd0d4ed0..f514189f6 100644 --- a/src/lib/components/documents/DocumentListItem.svelte +++ b/src/lib/components/documents/DocumentListItem.svelte @@ -95,6 +95,7 @@ It's deliberately minimal and can be wrapped in other components to add addition gap: 0.25rem; flex: 1 0 0; align-self: stretch; + min-width: 0; } h4 { @@ -122,7 +123,7 @@ It's deliberately minimal and can be wrapped in other components to add addition overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - max-width: 100ch; + max-width: 100%; } .actions { diff --git a/src/lib/components/stories/Logo.stories.svelte b/src/lib/components/stories/Logo.stories.svelte new file mode 100644 index 000000000..bca05293a --- /dev/null +++ b/src/lib/components/stories/Logo.stories.svelte @@ -0,0 +1,14 @@ + + + diff --git a/src/lib/components/stories/MainLayout.stories.svelte b/src/lib/components/stories/MainLayout.stories.svelte new file mode 100644 index 000000000..9284096b4 --- /dev/null +++ b/src/lib/components/stories/MainLayout.stories.svelte @@ -0,0 +1,66 @@ + + + + + + + + + + + + + diff --git a/src/lib/components/stories/OrgMenu.stories.svelte b/src/lib/components/stories/OrgMenu.stories.svelte new file mode 100644 index 000000000..28aecbb30 --- /dev/null +++ b/src/lib/components/stories/OrgMenu.stories.svelte @@ -0,0 +1,14 @@ + + + + + diff --git a/src/style/kit.css b/src/style/kit.css index a8d6a9448..b77a10ebc 100644 --- a/src/style/kit.css +++ b/src/style/kit.css @@ -71,18 +71,25 @@ Updated variables and styles for new SvelteKit routes html, body { + margin: 0; font-family: var(--font-sans), sans-serif; line-height: 1.25; } /* reset */ +* { + box-sizing: border-box; +} + h1, h2, h3, h4, h5, h6, -p { +p, +ul, +ol { margin: 0; }