Skip to content

Commit ccc93d3

Browse files
sashasasha
authored andcommitted
animated collections
1 parent 7aa32fd commit ccc93d3

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

src/assets/documents.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@
8787
border-radius: 0;
8888
}
8989

90+
.collection-link {
91+
transition: all .1s ease-out;
92+
color: $dark;
93+
}
94+
95+
.collection-link:hover {
96+
color: $warning;
97+
transition: all .1s ease-out;
98+
}
99+
90100
.fab-container {
91101
padding: 1em;
92102
padding-top: 5px;

src/components/documents.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<h3 style="margin-top: 0;">Your Collections: </h3>
88
<button @click="newCollection" class="button warning full-width">New Collection</button>
99
</div>
10-
<div @click="filterBy(collection)" class="collection" v-for="collection in collections" :key="collection.key">
10+
<a @click="filterBy(collection)" class="collection collection-link" v-for="collection in collections" :key="collection.key">
1111
<hr class="collection-rule">
1212
<div class="fab-container">
13-
<h5>{{collection.name}}</h5>
13+
<h5>{{collection.name}}</h5>
1414
</div>
15-
</div>
15+
</a>
1616

1717

1818
</div>

0 commit comments

Comments
 (0)