소스 검색

:art: making list pages minimum width | list pages when grid are 2 across on mobile

tags/0.9.0
J 4 년 전
부모
커밋
e2ecad72ba
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3
    2
      vue-theme/src/pages/list.vue

+ 3
- 2
vue-theme/src/pages/list.vue 파일 보기

@@ -1,6 +1,6 @@
1 1
 <template lang="pug">
2 2
 .page--list.f-col.between
3
-    article.f-grow
3
+    article.f-grow.w-max
4 4
 
5 5
         header.center.t-up
6 6
             .title.f-row
@@ -208,6 +208,7 @@ export default {
208 208
 @import '../sss/variables.sss'
209 209
 @import '../sss/theme.sss'
210 210
 .page--list article
211
+    min-width: 375px
211 212
     > header
212 213
         padding: 1em
213 214
         > h1
@@ -236,7 +237,7 @@ export default {
236 237
     .posts.is-grid
237 238
         width: 100%
238 239
         display: grid
239
-        grid-template-columns: repeat(1, 1fr)
240
+        grid-template-columns: repeat(2, 1fr)
240 241
         align-items: start
241 242
         /* This is important for how the grid lines up to the page */
242 243
         justify-content: right 

Loading…
취소
저장