From 70594156fda6f6418e385344ab5fb320edc545de Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Sat, 9 May 2020 02:17:10 +0200 Subject: [PATCH] Restored old release tile layout. --- assets/components/tile/release.vue | 308 +++++++++++++---------------- 1 file changed, 142 insertions(+), 166 deletions(-) diff --git a/assets/components/tile/release.vue b/assets/components/tile/release.vue index 83644369..379604ca 100644 --- a/assets/components/tile/release.vue +++ b/assets/components/tile/release.vue @@ -1,152 +1,151 @@ @@ -166,15 +165,6 @@ export default { type: String, default: null, }, - index: { - type: Number, - default: null, - }, - }, - data() { - return { - isUpcoming: this.isAfter(this.release.date, new Date()), - }; }, computed: { sfw, @@ -186,38 +176,23 @@ export default { @import 'theme'; .tile { - width: 100%; - position: relative; - background: var(--background); - box-shadow: 0 0 3px var(--shadow-weak); - - &::before { - content: ''; - display: inline-block; - padding: 45%; - } -} - -.scene { - width: 100%; - height: 100%; + background: $background; display: flex; flex-direction: column; box-sizing: border-box; - position: absolute; - top: 0; - left: 0; + padding: 0 0 .5rem 0; overflow: hidden; + box-shadow: 0 0 3px $shadow-weak; + height: 100%; } .poster { - flex-grow: 1; - height: 0; position: relative; + margin: 0 0 .5rem 0; } .covers { - background: var(--profile); + background: $profile; display: flex; .cover { @@ -227,15 +202,16 @@ export default { .thumbnail { width: 100%; - height: 100%; + height: 14rem; display: flex; justify-content: center; align-items: center; object-fit: cover; background-position: center; background-size: cover; - background-color: var(--darken-hint); - color: var(--shadow); + background-color: $shadow-hint; + color: $shadow; + text-shadow: 1px 1px 0 $highlight; } .row { @@ -262,10 +238,10 @@ export default { .site, .date { - color: var(--text-light); + color: $text-contrast; display: flex; align-items: center; - background: var(--darken); + background: $shadow; position: relative; font-size: .8rem; padding: .25rem; @@ -275,7 +251,7 @@ export default { .date { &.upcoming:before { content: ''; - background: var(--primary); + background: $primary; width: .5rem; display: inline-block; position: absolute; @@ -295,14 +271,14 @@ export default { .site-link { display: flex; - color: var(--text-light); + color: $text-contrast; text-decoration: none; } .info { display: flex; flex-direction: column; - padding: .5rem 0; + flex-grow: 1; } .link { @@ -311,7 +287,7 @@ export default { .title { margin: 0 .25rem .25rem 0; - color: var(--text); + color: $text; max-height: 2.75rem; font-size: 1rem; line-height: 1.5; @@ -359,26 +335,26 @@ export default { text-decoration: none; &:hover { - color: var(--primary); + color: $primary; } } .actor-link { - color: var(--link); + color: $link; } .tag-link { - color: var(--shadow); + color: $shadow; display: inline-block; padding: .25rem; font-size: .75rem; font-weight: bold; text-decoration: none; line-height: 1; - border: solid 1px var(--shadow-hint); + border: solid 1px $shadow-hint; &:hover { - color: var(--primary); + color: $primary; } }