diff --git a/assets/components/actors/actor.vue b/assets/components/actors/actor.vue index 07daa773..5a7d2161 100644 --- a/assets/components/actors/actor.vue +++ b/assets/components/actors/actor.vue @@ -283,10 +283,19 @@
- + class="scroll-light" + > + + + + + + diff --git a/assets/components/entities/entity.vue b/assets/components/entities/entity.vue index ea752bfe..31bdb59c 100644 --- a/assets/components/entities/entity.vue +++ b/assets/components/entities/entity.vue @@ -47,73 +47,20 @@
-
-
-
- + + + + + + +
@@ -250,117 +180,4 @@ export default { .logo-parent { object-position: 100% 50%; } - -.children-container { - background: var(--profile); -} - -.children { - display: flex; - box-sizing: border-box; - padding: 1rem; - border-bottom: solid 1px var(--darken-hint); - overflow-x: auto; - scroll-behavior: smooth; - scrollbar-width: none; - - .tile { - width: 15rem; - margin: 0 1rem 0 0; - } - - &.expanded { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); - grid-gap: 1rem; - - .tile { - width: 100%; - } - } - - &::-webkit-scrollbar { - display: none; - } -} - -.expand { - .icon { - fill: var(--lighten); - } - - &:hover { - background: var(--lighten-hint); - - .icon { - fill: var(--text-light); - } - } -} - -.scroll-container { - position: relative; - padding: 0 1rem 0 0; - - &.expanded { - padding: 0; - - .scroll { - display: none; - } - } -} - -.scroll { - height: 100%; - display: flex; - align-items: center; - box-sizing: border-box; - position: absolute; - top: 0; - bottom: 0; - - &.scroll-start , - &.scroll-end { - /* use over v-show so button stays visible while still hovered */ - display: none; - - .icon { - fill: var(--lighten-weak); - } - } - - .icon { - fill: var(--lighten); - } - - &:hover { - display: flex; - cursor: pointer; - - &:not(.scroll-start):not(.scroll-end) { - .icon { - fill: var(--text-light); - } - } - } -} - -.scroll-left { - left: 0; - padding: 1rem 2rem 1rem 1rem; - background: linear-gradient(to right, var(--profile) 50%, transparent); -} - -.scroll-right { - right: 0; - padding: 1rem 1rem 1rem 2rem; - background: linear-gradient(to left, var(--profile) 50%, transparent); -} - -@media(max-width: $breakpoint) { - .scroll { - display: none; - } -} diff --git a/assets/components/expand/expand.vue b/assets/components/expand/expand.vue new file mode 100644 index 00000000..c721561d --- /dev/null +++ b/assets/components/expand/expand.vue @@ -0,0 +1,63 @@ + + + + + diff --git a/assets/components/header/filter-bar.vue b/assets/components/header/filter-bar.vue index 95bc821c..6c70cfdd 100644 --- a/assets/components/header/filter-bar.vue +++ b/assets/components/header/filter-bar.vue @@ -20,11 +20,6 @@ >New - - import { mapState } from 'vuex'; import Filters from './filters.vue'; -import Pagination from '../pagination/pagination.vue'; function filter(state) { return state.ui.filter; @@ -85,7 +79,6 @@ async function setBatch(newBatch) { export default { components: { Filters, - Pagination, }, props: { fetchReleases: { @@ -141,7 +134,6 @@ export default { .sort { display: flex; align-items: center; - margin: 0 0 -1px 0; } .filters-block { @@ -160,6 +152,7 @@ export default { display: inline-block; padding: .75rem 1rem 1rem 1rem; border: none; + position: relative; font-size: .8rem; font-weight: bold; text-decoration: none; @@ -175,6 +168,17 @@ export default { color: var(--primary); background: var(--background-soft); border-color: var(--crease); + + &::after { + /* hide grey border for tab effect, negative margin shows grey crease on mobile */ + content: ''; + width: 100%; + height: 2px; + background: var(--background-soft); + position: absolute; + left: 0; + bottom: -1px; + } } } diff --git a/assets/components/header/filters.vue b/assets/components/header/filters.vue index b0a78a6c..ce32bb00 100644 --- a/assets/components/header/filters.vue +++ b/assets/components/header/filters.vue @@ -1,17 +1,17 @@