diff --git a/src/assets/scss/_helpers.scss b/src/assets/scss/_helpers.scss index 03bb5b4..fbc2059 100644 --- a/src/assets/scss/_helpers.scss +++ b/src/assets/scss/_helpers.scss @@ -67,6 +67,13 @@ } } +@mixin subsurface($shadowStrength: 0) { + @include surface($shadowStrength); + + background-color: var(--subsurface); + color: var(--on-subsurface); +} + // --- Responsivity --- @mixin mobile-le { diff --git a/src/assets/scss/_vars.scss b/src/assets/scss/_vars.scss index 20edabf..7258ed2 100644 --- a/src/assets/scss/_vars.scss +++ b/src/assets/scss/_vars.scss @@ -45,6 +45,12 @@ $onSurface: $onLight; $surfaceDarkMode: darken($backgroundDarkMode, 4.5%); $onSurfaceDarkMode: $onDark; +// Subsurface +$subsurface: darken($surface, 3%); +$onSubsurface: $onLight; +$subsurfaceDarkMode: darken($surfaceDarkMode, 3%); +$onSubsurfaceDarkMode: $onDark; + // Input $input: darken($surface, 5%); diff --git a/src/assets/scss/base.scss b/src/assets/scss/base.scss index 51303bb..eb318d1 100644 --- a/src/assets/scss/base.scss +++ b/src/assets/scss/base.scss @@ -28,6 +28,10 @@ --surface: #{$surface}; --on-surface: #{$onSurface}; + // Subsurface + --subsurface: #{$subsurface}; + --on-subsurface: #{$onSubsurface}; + // Input --input: #{$input}; --on-input: #{$onInput}; @@ -79,6 +83,10 @@ --surface: #{$surfaceDarkMode}; --on-surface: #{$onSurfaceDarkMode}; + // Subsurface + --subsurface: #{$subsurfaceDarkMode}; + --on-subsurface: #{$onSubsurfaceDarkMode}; + // Input --input: #{$inputDarkMode}; --on-input: #{$onInputDarkMode}; diff --git a/src/assets/scss/panel.scss b/src/assets/scss/panel.scss index a7cd489..e6de525 100644 --- a/src/assets/scss/panel.scss +++ b/src/assets/scss/panel.scss @@ -8,6 +8,9 @@ border-radius: 5px; @include surface; + .panel { + @include subsurface; + } p { margin: 16px 8px; diff --git a/src/assets/views/components/Pagination.svelte b/src/assets/views/components/Pagination.svelte index c484bff..3354c85 100644 --- a/src/assets/views/components/Pagination.svelte +++ b/src/assets/views/components/Pagination.svelte @@ -12,17 +12,54 @@ $: paginationObj = pagination ? Pagination.deserialize(pagination) : null; + + {#if paginationObj && (paginationObj.hasPrevious() || paginationObj.hasNext())}