Tweaked scene and actor tile design, tags grid breakpoints.

This commit is contained in:
DebaucheryLibrarian 2021-10-31 00:31:18 +02:00
parent b764fdec85
commit d1e05915b5
5 changed files with 116 additions and 50 deletions

View File

@ -214,7 +214,7 @@ export default {
display: inline-block; display: inline-block;
position: relative; position: relative;
box-shadow: 0 0 3px var(--darken-weak); box-shadow: 0 0 3px var(--darken-weak);
background: var(--background); background: var(--info);
overflow: hidden; overflow: hidden;
&::before { &::before {
@ -237,12 +237,8 @@ export default {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
color: var(--text); color: var(--text-light);
text-decoration: none; text-decoration: none;
&:hover {
color: var(--primary);
}
} }
.handle { .handle {
@ -253,7 +249,8 @@ export default {
box-shadow: 0 0 3px var(--shadow); box-shadow: 0 0 3px var(--shadow);
.name { .name {
padding: .5rem; padding: .25rem .5rem;
font-size: .9rem;
} }
.alias { .alias {

View File

@ -233,22 +233,27 @@ export default {
height: 100%; height: 100%;
box-shadow: 0 0 3px var(--darken-weak); box-shadow: 0 0 3px var(--darken-weak);
/*
&.new .poster::after { &.new .poster::after {
content: ''; content: 'new';
position: absolute; position: absolute;
top: 0; display: flex;
left: 0; align-items: center;
width: 1rem; justify-content: center;
height: 1rem; bottom: 0;
right: .5rem;
width: 2rem;
box-sizing: border-box; box-sizing: border-box;
margin: .25rem; padding: .1rem 0 .05rem 0;
border-radius: 0 0 .5rem 0; border-radius: .25rem .25rem 0 0;
color: var(--primary); background: var(--info);
font-size: 1rem; color: var(--text-light);
font-size: .7rem;
font-weight: bold; font-weight: bold;
line-height: 1; line-height: 1;
text-shadow: 0 0 2px var(--darken-weak); box-shadow: 0 0 3px var(--shadow);
} }
*/
&:hover .unstashed, &:hover .unstashed,
&:hover .unstash { &:hover .unstash {
@ -323,12 +328,12 @@ export default {
align-items: center; align-items: center;
box-sizing: border-box; box-sizing: border-box;
padding: 0 .5rem; padding: 0 .5rem;
margin: 0 0 .1rem 0;
} }
.info { .info {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start;
flex-grow: 1; flex-grow: 1;
overflow: hidden; overflow: hidden;
} }
@ -340,7 +345,7 @@ export default {
.title { .title {
margin: 0; margin: 0;
color: var(--text); color: var(--text);
font-size: 1rem; font-size: .9rem;
line-height: 1.5; line-height: 1.5;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -366,8 +371,9 @@ export default {
} }
.actor-link { .actor-link {
color: var(--link); color: var(--text);
text-decoration: none; text-decoration: none;
font-size: .9rem;
&:hover { &:hover {
color: var(--primary); color: var(--primary);
@ -375,7 +381,7 @@ export default {
} }
.labels { .labels {
padding: 0 .5rem 1.5rem .5rem; padding: 0 .5rem 1.25rem .5rem;
max-height: .5rem; max-height: .5rem;
overflow-y: hidden; overflow-y: hidden;
font-size: 0; font-size: 0;
@ -406,11 +412,11 @@ export default {
} }
.tag-link { .tag-link {
background: var(--background); background: var(--shadow-touch);
color: var(--shadow); color: var(--shadow);
display: inline-block; display: inline-block;
padding: .25rem .5rem; padding: .25rem .5rem;
border: solid 1px var(--shadow-hint); margin: 0 1px 0 0;
font-size: .75rem; font-size: .75rem;
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
@ -422,7 +428,7 @@ export default {
} }
.details-wide { .details-wide {
margin: 0 0 .5rem 0; margin: 0 0 .4rem 0;
} }
.details-compact { .details-compact {
@ -474,15 +480,18 @@ export default {
display: none; display: none;
} }
/*
.tile.new .poster::after { .tile.new .poster::after {
bottom: 0; top: 0;
top: auto; right: .25rem;
margin: .1rem .25rem; bottom: auto;
border-radius: 0 0 .25rem .25rem;
padding: .05rem 0 .1rem 0;
} }
*/
.stash { .stash {
left: 0; left: 0;
right: auto;
padding: .25rem .5rem .5rem .25rem; padding: .25rem .5rem .5rem .25rem;
} }
} }

View File

@ -57,10 +57,7 @@
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
class="date" class="date"
><Icon >{{ formatDate(release.date, 'MMMM D, YYYY', release.datePrecision) }}</a>
v-if="release.url"
icon="share2"
/>{{ formatDate(release.date, 'MMMM D, YYYY', release.datePrecision) }}</a>
<a <a
v-else v-else
@ -91,27 +88,22 @@ export default {
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
z-index: 1;
white-space: nowrap; white-space: nowrap;
background: var(--profile); background: var(--info);
font-size: 0; font-size: 0;
font-weight: bold; font-weight: bold;
.favicon { .favicon {
width: 2rem; width: 2rem;
box-sizing: border-box; box-sizing: border-box;
padding: .5rem; padding: .4rem .5rem;
} }
/*
&.new .date::before { &.new .date::before {
content: ''; content: '★';
width: .5rem; margin: 0 .5rem 0 0;
height: .5rem;
border-radius: 50%;
margin: 0 .25rem 0 0;
background: var(--primary);
} }
*/
} }
.site, .site,
@ -120,7 +112,7 @@ export default {
align-items: center; align-items: center;
position: relative; position: relative;
font-size: .8rem; font-size: .8rem;
padding: .5rem; padding: .4rem .5rem;
color: var(--text-light); color: var(--text-light);
text-decoration: none; text-decoration: none;

View File

@ -212,7 +212,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import 'theme'; @import 'breakpoints';
.tags { .tags {
display: flex; display: flex;
@ -244,22 +244,81 @@ export default {
margin: 0 0 .25rem 0; margin: 0 0 .25rem 0;
} }
@media(max-width: $breakpoint3) { @media(max-width: $breakpoint-mega) {
.tiles { .tiles {
grid-template-columns: repeat(auto-fill, minmax(18rem, .5fr)); grid-template-columns: repeat(auto-fill, minmax(17.75rem, .5fr));
} }
::v-deep(.poster),
::v-deep(.blank) {
height: 12rem;
}
}
@media(max-width: $breakpoint-kilo) {
.tiles {
grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
grid-gap: .5rem;
}
::v-deep(.poster),
::v-deep(.blank) {
height: 14rem;
}
} }
@media(max-width: $breakpoint) { @media(max-width: $breakpoint) {
.tiles { .tiles {
grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
grid-gap: .5rem; grid-gap: .5rem;
} }
::v-deep(.poster),
::v-deep(.blank) {
height: 11rem;
}
} }
@media(max-width: $breakpoint0) { @media(max-width: $breakpoint-small) {
::v-deep(.poster),
::v-deep(.blank) {
height: 10rem;
}
}
@media(max-width: $breakpoint-micro) {
.tiles { .tiles {
grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
} }
::v-deep(.poster),
::v-deep(.blank) {
height: 7.5rem;
}
}
@media(max-width: $breakpoint-mini) {
.tiles {
grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
}
::v-deep(.poster),
::v-deep(.blank) {
height: 12rem;
}
}
@media(max-width: $breakpoint-nano) {
::v-deep(.poster),
::v-deep(.blank) {
height: 10rem;
}
}
@media(max-width: $breakpoint-pico) {
::v-deep(.poster),
::v-deep(.blank) {
height: 8rem;
}
} }
</style> </style>

View File

@ -5,10 +5,17 @@ $breakpoint3: 1200px;
$breakpoint4: 1500px; $breakpoint4: 1500px;
:root { :root {
--primary: #c63971;
--primary-strong: #f90071;
--primary-faded: #ffcce4;
/*
--primary: #f04288;
--primary: #ff6c88; --primary: #ff6c88;
--primary-strong: #ff4166; --primary-strong: #ff4166;
--primary-faded: #ffdfee; --primary-faded: #ffdfee;
/*
--primary: #f28; --primary: #f28;
--primary-strong: #f90071; --primary-strong: #f90071;
--primary-faded: #ffcce4; --primary-faded: #ffcce4;
@ -39,6 +46,8 @@ $breakpoint4: 1500px;
--logo-shadow: drop-shadow(1px 0 0 $shadow-weak) drop-shadow(-1px 0 0 $shadow-weak) drop-shadow(0 1px 0 $shadow-weak) drop-shadow(0 -1px 0 $shadow-weak); --logo-shadow: drop-shadow(1px 0 0 $shadow-weak) drop-shadow(-1px 0 0 $shadow-weak) drop-shadow(0 1px 0 $shadow-weak) drop-shadow(0 -1px 0 $shadow-weak);
--logo-highlight: drop-shadow(0 0 1px $highlight); --logo-highlight: drop-shadow(0 0 1px $highlight);
--info: #361723;
--male: #0af; --male: #0af;
--female: #f0a; --female: #f0a;