-
- ${this.selected.tracks ? '' : html`
` }
-
-
+
-
+
+
+ ${this.selected?.tracks ? '' : html`
` }
+
+
+
`
}
static styles = css`
:host {
- display: flex;
- flex-direction: column;
- height: 100vh;
-
- }
-
- main {
flex-grow: 1;
display: grid;
grid-template-columns: 0.7fr 1fr;
gap: 0.5em;
+ height: 100%;
}
.tracks {
@@ -161,7 +147,6 @@ class AudioView extends LitElement {
}
}
-
mm-audio-player {
transition: opacity 0.125s 0.125s ease-in-out;
}
diff --git a/src/views/fourohfour.js b/src/views/fourohfour.js
index 9ef7bbb..085ece5 100644
--- a/src/views/fourohfour.js
+++ b/src/views/fourohfour.js
@@ -1,8 +1,5 @@
import { LitElement, html, css } from 'lit'
-import '../components/Header.js'
-import '../components/Footer.js'
-
class FourOhFour extends LitElement {
static properties = {}
@@ -12,34 +9,22 @@ class FourOhFour extends LitElement {
render() {
return html`
-
-
-
404
The page you're looking for cannot be found
-
-
-
`
}
static styles = css`
:host {
- display: grid;
- grid-template-rows: auto 1fr auto;
- gap: 0.5em;
- height: 100vh;
- }
-
- main {
display: flex;
+ flex-grow: 1;
flex-direction: column;
padding: 0em 0em 10em;
text-align: center;
justify-content: center;
}
- main > * {
+ :host > * {
margin: 0.25em;
}
`
diff --git a/src/views/home.js b/src/views/home.js
index 69d809d..44e639c 100644
--- a/src/views/home.js
+++ b/src/views/home.js
@@ -36,15 +36,14 @@ class Home extends LitElement {
static styles = [ css`${unsafeCSS(MainCSS)}`, css`
:host {
- --margin: 0.75em;
display: block;
display: flex;
flex-direction: column;
- height: calc(100vh - calc(var(--margin) * 2));
background-image: url('/images/home-bg.png');
background-size: cover;
background-position: center;
- margin: var(--margin);
+ border: 0.75em white solid;
+ height: 100%;
}
div {
diff --git a/src/views/images.js b/src/views/images.js
index 0aaa218..7f59a36 100644
--- a/src/views/images.js
+++ b/src/views/images.js
@@ -4,8 +4,6 @@ import Router from '../api/Router.js'
import MainCSS from '../assets/styles/main.scss?inline'
-import '../components/Header.js'
-import '../components/Footer.js'
import '../components/HorizontalScroller.js'
import '../components/VerticalCard.js'
import '../components/ImageViewer.js'
@@ -47,8 +45,6 @@ class ImageView extends LitElement {
render() {
return html`
-
-
@@ -58,17 +54,15 @@ class ImageView extends LitElement {
`) })}
-
-
`
}
static styles = [ css`${unsafeCSS(MainCSS)}`, css`
:host {
+ flex-grow: 1;
display: grid;
- grid-template-rows: min-content 1fr min-content;
- gap: 0.25em;
- height: 100vh;
+ grid-template-rows: 1fr auto;
+ gap: 0.5em;
}
mm-hscroller {
@@ -80,12 +74,6 @@ class ImageView extends LitElement {
--color: var(--green-400, lime);
}
- main {
- display: grid;
- grid-template-rows: 1fr auto;
- gap: 0.5em;
- }
-
.image {
position: relative;
inline-margin: auto;
diff --git a/src/views/videos.js b/src/views/videos.js
index 4a3d685..78c9e45 100644
--- a/src/views/videos.js
+++ b/src/views/videos.js
@@ -4,8 +4,6 @@ import { Task } from '@lit-labs/task'
import MainCSS from '../assets/styles/main.scss?inline'
// components
-import '../components/Header.js'
-import '../components/Footer.js'
import '../components/VerticalCard.js'
import '../components/VideoPlayer.js'
import '../components/HorizontalScroller.js'
@@ -43,8 +41,6 @@ class VideoView extends LitElement {
render() {
return html`
-
-