Browse Source

:art: styling changes for image hovers

tags/0.9.0
j 4 years ago
parent
commit
7d2a4ab40e

+ 7
- 2
vue-theme/src/app.vue View File

@@ -36,8 +36,13 @@ html
36 36
             width: 100%
37 37
             margin: 0 0 3vh 0
38 38
             
39
-            :--headings
40
-                color: yellow
39
+            :--headings, a
40
+                color: $cia_red
41
+            img
42
+                transition: $transition ease-in
43
+                &:hover
44
+                    filter: grayscale(100%) brightness(85%)
45
+                    cursor: pointer
41 46
 
42 47
             > [class^="page--"]
43 48
                 background-color: lightblue

+ 7
- 3
vue-theme/src/components/card.vue View File

@@ -1,8 +1,9 @@
1 1
 <template lang="pug">
2 2
 .card(v-if="content")
3
-    router-link(:to="`/${type}`")
4
-        p.t-up {{type}}
5
-    .card--info(:class="{ 'wide': wide }")
3
+    header
4
+        router-link(:to="`/${type}`")
5
+            p.t-up {{type}}
6
+    article.card--info(:class="{ 'wide': wide }")
6 7
         router-link(:to="`/${type}/${content.slug}`")
7 8
             featured-image(:post="content")
8 9
         .f-col.w-max
@@ -28,6 +29,9 @@ export default {
28 29
     text-overflow: clip
29 30
     &--info
30 31
         justify-content: center
32
+    header
33
+        a
34
+            text-decoration: none
31 35
     img
32 36
         width: 100%
33 37
         height: auto

+ 0
- 3
vue-theme/src/components/featured-image.vue View File

@@ -27,9 +27,6 @@ export default {
27 27
         getThumbnailFromYt(url) {
28 28
             return ytThumbnail(url, 'medium')
29 29
         }
30
-    },
31
-    created() {
32
-        console.log(this.post)
33 30
     }
34 31
 }
35 32
 </script>

+ 10
- 3
vue-theme/src/pages/index.vue View File

@@ -10,17 +10,17 @@
10 10
 
11 11
         section
12 12
             ul
13
-                li.shadow(v-for="type in ['episodes', 'exhibitions', 'events', 'artists', 'posts']")
13
+                li.shadow(v-for="type in firstRow")
14 14
                     card(:content="firstPostOfType(type)" :type="type")
15 15
 
16 16
         section.max
17 17
             ul.w-max
18
-                li.shadow(v-for="post in [randomPostOfType('artists')]")
18
+                li.shadow(v-for="post in [randomPostOfType(secondRow)]")
19 19
                     card(v-if="post" :content="post" :type="`${post.type}s`" :wide="true")
20 20
 
21 21
         section
22 22
             ul.flipped
23
-                li.shadow(v-for="type in ['episodes', 'exhibitions', 'events', 'artists', 'artists']")
23
+                li.shadow(v-for="type in thirdRow")
24 24
                     .random--wrapper(v-for="post in [randomPostOfType(type)]")
25 25
                         card(:content="post" :type="type")
26 26
 </template>
@@ -34,6 +34,13 @@ import { convertTitleCase, postTypes } from '@/utils/helpers'
34 34
 export default {
35 35
     mixins: [postTypeGetters, scrollTop],
36 36
     components: { card },
37
+    data() { 
38
+        return {
39
+            firstRow: ['episodes', 'exhibitions', 'events', 'artists', 'posts'],
40
+            secondRow: 'artists', // This is only ONE post
41
+            thirdRow: ['episodes', 'exhibitions', 'events', 'artists', 'artists']
42
+        }
43
+    },
37 44
     created() {
38 45
         // console.log(wp)
39 46
         postTypes.forEach(type => {

+ 3
- 3
vue-theme/src/pages/list.vue View File

@@ -155,14 +155,14 @@ export default {
155 155
         ul
156 156
             img
157 157
                 max-width: 50%
158
-            li
159
-                
158
+
160 159
         .is-grid
161 160
             display: flex
162 161
             flex-direction: row
163 162
             flex-wrap: wrap
163
+            justify-content: space-between
164 164
             section
165
-                width: 33%
165
+                width: 32.5%
166 166
             ul
167 167
                 flex-wrap: wrap
168 168
                 list-style: none

+ 1
- 1
vue-theme/src/sss/variables.sss View File

@@ -1,6 +1,6 @@
1 1
 @import './_ratios.sss'
2 2
 
3
-$transition: 300ms
3
+$transition: 500ms
4 4
 
5 5
 $min-width: 20em
6 6
 $max-width: 77em

Loading…
Cancel
Save