Explorar el Código

:art: unsetting width in list pages

tags/0.9.0
J hace 4 años
padre
commit
d04d5e4ac9
Se han modificado 1 ficheros con 27 adiciones y 26 borrados
  1. 27
    26
      vue-theme/src/pages/list.vue

+ 27
- 26
vue-theme/src/pages/list.vue Ver fichero

15
             )
15
             )
16
 
16
 
17
         ul.posts.f-col(v-if="posts && loaded" :class="{ 'is-grid': grid }")
17
         ul.posts.f-col(v-if="posts && loaded" :class="{ 'is-grid': grid }")
18
-            li(v-for="(post, i) in posts" :key="post.slug").post.w-max
18
+            li(v-for="(post, i) in posts" :key="post.slug").post
19
                 card(:content="post" :type="type" :wide="isWide")
19
                 card(:content="post" :type="type" :wide="isWide")
20
         
20
         
21
         //- Important: Do NOT remove this! Required for intersection observer
21
         //- Important: Do NOT remove this! Required for intersection observer
229
 // prettier-ignore
229
 // prettier-ignore
230
 @import '../sss/variables.sss'
230
 @import '../sss/variables.sss'
231
 @import '../sss/theme.sss'
231
 @import '../sss/theme.sss'
232
-.page--list
233
-    article
234
-        > header
235
-            padding: 1em
236
-            > h1
237
-                margin: 0
238
-            > .content
239
-                padding: 0
240
-                width: 100%
241
-        > footer
242
-            padding: $ms-0
243
-        /* posts not grid list */
244
-        .posts
245
-            list-style: none
246
-            grid-gap: $ms-0
247
-            &.is-grid
248
-                flex-direction: row
249
-                flex-wrap: wrap
250
-                justify-content: space-between
251
-                section
252
-                    width: 32.5%
253
-                ul
254
-                    flex-wrap: wrap
255
-                    img
256
-                        max-width: 100%
232
+.page--list article
233
+    > header
234
+        padding: 1em
235
+        > h1
236
+            margin: 0
237
+        > .content
238
+            padding: 0
239
+            width: 100%
240
+    > footer
241
+        padding: $ms-0
242
+
243
+    /* posts not grid list */
244
+    .posts
245
+        list-style: none
246
+        grid-gap: $ms-0
247
+        .post
248
+            width: 100%
249
+    .posts.is-grid
250
+        width: 100%
251
+        flex-direction: row
252
+        flex-wrap: wrap
253
+        justify-content: space-between
254
+        .post
255
+            width: unset
256
+            img
257
+                max-width: 100%
257
 
258
 
258
 @media (min-width: $medium)
259
 @media (min-width: $medium)
259
     .page--list.f-col
260
     .page--list.f-col

Loading…
Cancelar
Guardar