diff --git a/index.html b/index.html index 7a89dc6d3..a19241aa6 100644 --- a/index.html +++ b/index.html @@ -69,7 +69,6 @@ - diff --git a/public/colors.css b/public/colors.css index e08c58f48..46b0d63b0 100644 --- a/public/colors.css +++ b/public/colors.css @@ -37,7 +37,7 @@ --color-fill-danger: #be7495; --color-fill-yellow: #ffe609; --color-fill-yellow-iconic: #ffff55; - --color-fill-gray: #9494b8; + --color-fill-gray: #9b9bb1; --color-fill-diff-red: #efdce4; --color-fill-diff-red-light: #f7eef2; --color-fill-success: #4fa877; @@ -48,6 +48,8 @@ --color-fill-merged: #ffeeff; --color-fill-selected: #ebebff; --color-fill-warning: #ffffe5; + --color-fill-counter: #dbdbff; + --color-fill-counter-emphasized: #dbdbff; } :root[data-theme="dark"] { @@ -86,10 +88,10 @@ --color-fill-separator: #24252d; --color-fill-primary: #ff55ff; --color-fill-primary-hover: #ff80ff; - --color-fill-danger: #4d1929; + --color-fill-danger: #aa5078; --color-fill-yellow: #ffe609; --color-fill-yellow-iconic: #ffff55; - --color-fill-gray: #9494b8; + --color-fill-gray: #9b9bb1; --color-fill-diff-red: #4d1929; --color-fill-diff-red-light: #2d060d; --color-fill-success: #4fa877; @@ -100,4 +102,6 @@ --color-fill-merged: #1a001a; --color-fill-selected: #16173d; --color-fill-warning: #191500; + --color-fill-counter: #393a46; + --color-fill-counter-emphasized: #232563; } diff --git a/public/index.css b/public/index.css index 730c28716..a490fde3c 100644 --- a/public/index.css +++ b/public/index.css @@ -39,12 +39,6 @@ body { scrollbar-color: var(--color-fill-separator) transparent; } -@media (max-width: 720px) { - body { - min-width: 0; - } -} - ::selection { background: var(--color-fill-yellow-iconic); color: var(--color-foreground-black); @@ -89,3 +83,28 @@ pre { font-family: var(--font-family-monospace); font-weight: var(--font-weight-regular); } + +.global-counter { + border-radius: var(--border-radius-tiny); + background-color: var(--color-fill-ghost); + color: var(--color-foreground-dim); + padding: 0 0.25rem; + display: block; + min-width: 1.25rem; + text-align: center; +} + +@media (max-width: 720px) { + body { + min-width: 0; + } + .global-hide-on-mobile { + display: none !important; + } +} + +@media (min-width: 721px) { + .global-hide-on-desktop { + display: none !important; + } +} diff --git a/public/layout.css b/public/layout.css deleted file mode 100644 index 31b358fd7..000000000 --- a/public/layout.css +++ /dev/null @@ -1,41 +0,0 @@ -.layout-centered { - height: 100%; - padding-top: 5rem; - padding-bottom: 24vh; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; -} - -.layout-mobile, -.layout-mobile-inline, -.layout-mobile-flex { - display: none !important; -} -.layout-desktop { - display: block !important; -} -.layout-desktop-inline { - display: inline !important; -} -.layout-desktop-flex { - display: flex !important; -} - -@media (max-width: 720px) { - .layout-mobile { - display: block !important; - } - .layout-mobile-inline { - display: inline !important; - } - .layout-mobile-flex { - display: flex !important; - } - .layout-desktop, - .layout-desktop-flex, - .layout-desktop-inline { - display: none !important; - } -} diff --git a/src/App.svelte b/src/App.svelte index 98dcf737c..de0dd1138 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -5,9 +5,7 @@ import * as httpd from "@app/lib/httpd"; import { unreachable } from "@app/lib/utils"; - import Footer from "./App/Footer.svelte"; import FullscreenModalPortal from "./App/FullscreenModalPortal.svelte"; - import Header from "./App/Header.svelte"; import Hotkeys from "./App/Hotkeys.svelte"; import LoadingBar from "./App/LoadingBar.svelte"; @@ -42,10 +40,12 @@ @@ -56,40 +56,36 @@ -
-
- {#if $activeRouteStore.resource === "booting"} +{#if $activeRouteStore.resource === "booting"} +
- {:else if $activeRouteStore.resource === "home"} - - {:else if $activeRouteStore.resource === "nodes"} - - {:else if $activeRouteStore.resource === "session"} - - {:else if $activeRouteStore.resource === "project.source"} - - {:else if $activeRouteStore.resource === "project.history"} - - {:else if $activeRouteStore.resource === "project.commit"} - - {:else if $activeRouteStore.resource === "project.issues"} - - {:else if $activeRouteStore.resource === "project.newIssue"} - - {:else if $activeRouteStore.resource === "project.issue"} - - {:else if $activeRouteStore.resource === "project.patches"} - - {:else if $activeRouteStore.resource === "project.patch"} - - {:else if $activeRouteStore.resource === "loadError"} - - {:else if $activeRouteStore.resource === "notFound"} - - {:else} - {unreachable($activeRouteStore)} - {/if} -
-
-
+{:else if $activeRouteStore.resource === "home"} + +{:else if $activeRouteStore.resource === "nodes"} + +{:else if $activeRouteStore.resource === "session"} + +{:else if $activeRouteStore.resource === "project.source"} + +{:else if $activeRouteStore.resource === "project.history"} + +{:else if $activeRouteStore.resource === "project.commit"} + +{:else if $activeRouteStore.resource === "project.issues"} + +{:else if $activeRouteStore.resource === "project.newIssue"} + +{:else if $activeRouteStore.resource === "project.issue"} + +{:else if $activeRouteStore.resource === "project.patches"} + +{:else if $activeRouteStore.resource === "project.patch"} + +{:else if $activeRouteStore.resource === "loadError"} + +{:else if $activeRouteStore.resource === "notFound"} + +{:else} + {unreachable($activeRouteStore)} +{/if} diff --git a/src/App/AppLayout.svelte b/src/App/AppLayout.svelte new file mode 100644 index 000000000..954b9de81 --- /dev/null +++ b/src/App/AppLayout.svelte @@ -0,0 +1,26 @@ + + + + +
+
+ +
+
+
+
+
+ +
+
+
diff --git a/src/App/Footer.svelte b/src/App/Footer.svelte index f5da2df49..3a4b6d0b7 100644 --- a/src/App/Footer.svelte +++ b/src/App/Footer.svelte @@ -45,7 +45,7 @@