Преглед на файлове

:art: fixing list article card margin | more card image fixes

tags/0.9.0
J преди 4 години
родител
ревизия
00d940108f
променени са 2 файла, в които са добавени 5 реда и са изтрити 4 реда
  1. 2
    0
      vue-theme/src/components/card.vue
  2. 3
    4
      vue-theme/src/pages/list.vue

+ 2
- 0
vue-theme/src/components/card.vue Целия файл

53
             object-position: 0% 30%
53
             object-position: 0% 30%
54
             max-height: calc($max-card-img-height / 3)
54
             max-height: calc($max-card-img-height / 3)
55
             overflow-y: clip
55
             overflow-y: clip
56
+            width: 100%
56
     header a
57
     header a
57
         font-size: $ms--2
58
         font-size: $ms--2
58
         text-decoration: none
59
         text-decoration: none
97
         &--info 
98
         &--info 
98
             .featured-or-hero-image img
99
             .featured-or-hero-image img
99
                 max-height: $max-card-img-height
100
                 max-height: $max-card-img-height
101
+                
100
         .wide
102
         .wide
101
             padding: 0
103
             padding: 0
102
             flex-direction: row
104
             flex-direction: row

+ 3
- 4
vue-theme/src/pages/list.vue Целия файл

254
         align-items: start
254
         align-items: start
255
         /* This is important for how the grid lines up to the page */
255
         /* This is important for how the grid lines up to the page */
256
         justify-content: right 
256
         justify-content: right 
257
-        .post
258
-            img
259
-                max-width: 100%
257
+        .post img
258
+            width: 100%
260
 
259
 
261
 @media (min-width: $medium)
260
 @media (min-width: $medium)
262
     .page--list
261
     .page--list
263
         &.f-col
262
         &.f-col
264
             flex-direction: row
263
             flex-direction: row
265
-        article
264
+        > article
266
             margin: 0 $ms--2 0 0
265
             margin: 0 $ms--2 0 0
267
 </style>
266
 </style>

Loading…
Отказ
Запис