Pārlūkot izejas kodu

adjust line clamp, hero image height

tags/0.9.0
Alej 4 gadus atpakaļ
vecāks
revīzija
b92192777f
1 mainītis faili ar 7 papildinājumiem un 4 dzēšanām
  1. 7
    4
      vue-theme/src/pages/index.vue

+ 7
- 4
vue-theme/src/pages/index.vue Parādīt failu

@@ -46,6 +46,8 @@ export default {
46 46
             firstRow: ['episode', 'exhibition', 'event', 'short', 'post'],
47 47
             secondRow: 'artist', // This is only ONE post
48 48
             thirdRow: ['object', 'technique', 'publication', 'center', 'guide'],
49
+            // ideal iteration
50
+            // thirdRow: ['object', 'talks', 'publication', 'center', 'guide'],
49 51
         }
50 52
     },
51 53
     async created() {
@@ -128,7 +130,7 @@ export default {
128 130
                     .featured-or-hero-image img
129 131
                         max-height: $max-card-img-height
130 132
                     p.excerpt
131
-                        -webkit-line-clamp: calc($card-line-clamp * 2)
133
+                        -webkit-line-clamp: $card-line-clamp
132 134
             &.max 
133 135
                 > ul
134 136
                     grid-template-columns: 
@@ -151,10 +153,11 @@ export default {
151 153
                         margin: 0
152 154
                         min-height: 10em
153 155
                         &:nth-of-type(2), &:nth-of-type(3), &:nth-of-type(4), &:nth-of-type(5)
154
-                            p.excerpt
155
-                                -webkit-line-clamp: $card-line-clamp
156
+                            /* p.excerpt
157
+                                -webkit-line-clamp: $card-line-clamp */
156 158
                             .featured-or-hero-image img
157
-                                max-height: calc($max-card-img-height / 2)
159
+                                /* max-height: calc($max-card-img-height / 2) */
160
+                                max-height: $max-card-img-height
158 161
                         /* n1 episode */
159 162
                         &:nth-of-type(1)
160 163
                             grid-column-start: 1

Notiek ielāde…
Atcelt
Saglabāt