forked from DebaucheryLibrarian/traxxx
Improved network sites expand/collapse layout. Left-aligned tag header.
This commit is contained in:
@@ -67,33 +67,34 @@
|
||||
class="logo"
|
||||
>
|
||||
</a>
|
||||
|
||||
<span
|
||||
v-show="expanded"
|
||||
class="expand collapse-header noselect"
|
||||
@click="expanded = false"
|
||||
><Icon icon="arrow-up3" /></span>
|
||||
</div>
|
||||
|
||||
<div class="content-inner">
|
||||
<Sites
|
||||
v-if="sites.length"
|
||||
:sites="sites"
|
||||
class="compact"
|
||||
:class="{ expanded }"
|
||||
/>
|
||||
<template v-if="sites.length">
|
||||
<span
|
||||
v-show="expanded"
|
||||
class="expand collapse-header noselect"
|
||||
@click="expanded = false"
|
||||
><Icon icon="arrow-up3" /></span>
|
||||
|
||||
<span
|
||||
v-show="!expanded"
|
||||
class="expand expand-header noselect"
|
||||
@click="expanded = true"
|
||||
><Icon icon="arrow-down3" /></span>
|
||||
<Sites
|
||||
:sites="sites"
|
||||
class="compact"
|
||||
:class="{ expanded }"
|
||||
/>
|
||||
|
||||
<span
|
||||
v-show="expanded"
|
||||
class="expand expand-header noselect"
|
||||
@click="expanded = false"
|
||||
><Icon icon="arrow-up3" /></span>
|
||||
<span
|
||||
v-show="!expanded"
|
||||
class="expand expand-header noselect"
|
||||
@click="expanded = true"
|
||||
><Icon icon="arrow-down3" /></span>
|
||||
|
||||
<span
|
||||
v-show="expanded"
|
||||
class="expand expand-header noselect"
|
||||
@click="expanded = false"
|
||||
><Icon icon="arrow-up3" /></span>
|
||||
</template>
|
||||
|
||||
<Releases :releases="releases" />
|
||||
</div>
|
||||
@@ -264,23 +265,21 @@ export default {
|
||||
|
||||
.collapse-header {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
display: none;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 0;
|
||||
background: $profile;
|
||||
color: $highlight;
|
||||
|
||||
.icon {
|
||||
width: 100%;
|
||||
fill: $highlight;
|
||||
padding: .5rem 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&:hover .icon {
|
||||
background: $highlight-hint;
|
||||
color: $text-contrast;
|
||||
|
||||
.icon {
|
||||
fill: $text-contrast;
|
||||
}
|
||||
fill: $text-contrast;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -304,7 +303,8 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
.expand-header {
|
||||
.expand-header,
|
||||
.collapse-header {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
|
||||
@@ -76,4 +76,16 @@ export default {
|
||||
/* vertical grid-gap not compatible with bottom padding on scrolling containers */
|
||||
margin: 0 0 1rem 0;
|
||||
}
|
||||
|
||||
@media(max-width: $breakpoint3) {
|
||||
.sites.expanded .tiles {
|
||||
grid-template-columns: repeat(auto-fit, minmax(12rem, .5fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width: $breakpoint0) {
|
||||
.sites.expanded .tiles {
|
||||
grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -55,7 +55,6 @@ export default {
|
||||
.photos {
|
||||
background: $profile;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 0 1rem;
|
||||
overflow: hidden;
|
||||
|
||||
|
||||
@@ -136,7 +136,6 @@ export default {
|
||||
background: $profile;
|
||||
color: $text-contrast;
|
||||
display: none;
|
||||
justify-content: center;
|
||||
padding: .5rem 1rem;
|
||||
|
||||
.title {
|
||||
|
||||
Reference in New Issue
Block a user