Procházet zdrojové kódy

:art: tweaking logs | adjusting some styling on single

tags/0.9.0
J před 4 roky
rodič
revize
b58e600860
2 změnil soubory, kde provedl 21 přidání a 27 odebrání
  1. 11
    15
      vue-theme/src/pages/list.vue
  2. 10
    12
      vue-theme/src/pages/single.vue

+ 11
- 15
vue-theme/src/pages/list.vue Zobrazit soubor

@@ -18,12 +18,12 @@
18 18
             section(v-for="(post, i) in posts" :key="post.slug").shadow.post
19 19
                 card(:content="post" :type="type" :wide="type == 'exhibition' && i > 1 || type == 'event' && i > 1 ")
20 20
 
21
-        footer
21
+        footer(v-if="loadingFetched || showMeta")
22 22
             p(v-if="loadingFetched") loading more {{ type }} ...
23 23
             p {{ `${type} count: ${Object.values(posts).length}` }}
24 24
             p {{ `show sidebar: ${sidebar}` }}
25
-                    
26
-    //- sidebar(v-if="sidebar" :type="`${type}`" layout="list")
25
+
26
+    sidebar(v-if="sidebar" :type="`${type}`" layout="list")
27 27
     
28 28
 </template>
29 29
 
@@ -47,6 +47,7 @@ export default {
47 47
     mixins: [postTypeGetters, scrollTop, heroUtils],
48 48
     data() {
49 49
         return {
50
+            showMeta: false,
50 51
             page: 0,
51 52
             perPage: 15,
52 53
             keepFetching: true,
@@ -84,7 +85,7 @@ export default {
84 85
             if(!type) return console.error(`type: ${type} not found...`)
85 86
             if(!this.keepFetching) return console.warn('nothing left to fetch...')
86 87
 
87
-            console.warn(`loading more ${type} posts...`)
88
+            console.warn(`loading page ${this.page} of ${type} posts: ${this.page * this.perPage} through ${this.perPage}`)
88 89
             this.loadingFetched = true
89 90
             this.page++
90 91
             await this.getPosts()
@@ -185,9 +186,6 @@ export default {
185 186
         // This only fires navigating from
186 187
         // a list page, to another list page
187 188
         type(newType, oldType){
188
-            console.log('old:', oldType)
189
-            console.log('new:', newType)
190
-            
191 189
             if(!postTypes.includes(newType)) return console.warn('type not found...')
192 190
             this.clearAndInitPostList()
193 191
             this.setIntersectionLoader()
@@ -218,28 +216,26 @@ export default {
218 216
             > .content
219 217
                 padding: 0
220 218
                 width: 100%
219
+        > footer
220
+            background-color:white
221
+            padding: $ms-0
221 222
         /* posts not grid list */
222
-        ul
223
-            img
224
-                max-width: 50%
223
+        ul img
224
+            max-width: 50%
225 225
 
226 226
         .is-grid
227 227
             display: flex
228 228
             flex-direction: row
229 229
             flex-wrap: wrap
230 230
             justify-content: space-between
231
-            /* extra padding required? */
232
-            /* padding: $ms-0 */
233
-            /* background-color: white */
234 231
             section
235 232
                 width: 32.5%
236
-                /* 4 column grid see how dense this becomes */
237
-                /* width: 24% */
238 233
             ul
239 234
                 flex-wrap: wrap
240 235
                 list-style: none
241 236
                 img
242 237
                     max-width: 100%
238
+
243 239
 @media (min-width: $medium)
244 240
     .page--list.f-col
245 241
         flex-direction: row

+ 10
- 12
vue-theme/src/pages/single.vue Zobrazit soubor

@@ -240,7 +240,6 @@ export default {
240 240
 @import '../sss/variables.sss'
241 241
 @import '../sss/theme.sss'
242 242
 .page--single
243
-    /* background-color: $cia_white2 */
244 243
     article
245 244
         background-color: white
246 245
         padding: $ms-0
@@ -285,17 +284,16 @@ export default {
285 284
             margin: $ms-2 auto
286 285
             outline-style: auto
287 286
 
288
-            &.is-style-default
289
-                height: 1px
290
-                width: 15vw
291
-
292
-            &.is-style-wide
293
-                height: 1px
294
-                width: 50vw
295
-        
296
-            &.is-style-dots
297
-                outline-style: none
298
-                font-weight: bolder
287
+            &.is-style
288
+                &-default
289
+                    height: 1px
290
+                    width: 15vw
291
+                &-wide
292
+                    height: 1px
293
+                    width: 50vw
294
+                &-dots
295
+                    outline-style: none
296
+                    font-weight: bolder
299 297
 
300 298
         breadcrumb
301 299
             h5

Načítá se…
Zrušit
Uložit