Selaa lähdekoodia

Merge branch 'master' of ssh://gitea.yvvas.com:4022/craft-in-america/vue-wp

tags/0.9.0
J 4 vuotta sitten
vanhempi
commit
51706582ed

+ 2
- 1
vue-theme/editor-style.css Näytä tiedosto

@@ -19,7 +19,7 @@
19 19
 .wp-block[data-align='wide'] {
20 20
     max-width: 1080px;
21 21
 }
22
- 
22
+
23 23
 /* Editor Width of "full-wide" blocks */
24 24
 .wp-block[data-align='full'] {
25 25
     max-width: none;
@@ -28,6 +28,7 @@
28 28
 body {
29 29
     font-family: Questrial, sans-serif;
30 30
     color: #0d0d0d;
31
+    font-size:15.2px;
31 32
 }
32 33
 
33 34
 p{

+ 6
- 2
vue-theme/src/components/sidebars/sidebar.vue Näytä tiedosto

@@ -32,12 +32,16 @@ aside.sidebar
32 32
         //- single layout Events sidebar
33 33
         .shadow(v-if="type === 'event'")
34 34
             exhibitions-sidebar
35
-        //- single layout Post sidebar
35
+        //- single layout type.post sidebar
36 36
         .shadow(v-if="type === 'post'")
37 37
             exhibitions-sidebar
38 38
         .shadow(v-if="type === 'post'")
39 39
             events-sidebar
40
-
40
+        //- single layout page sidebar
41
+        .shadow(v-if="type === 'page'")
42
+            events-sidebar
43
+        .shadow(v-if="type === 'page'")
44
+            exhibitions-sidebar
41 45
 
42 46
 </template>
43 47
 

+ 7
- 0
vue-theme/src/pages/mixin-post-types.js Näytä tiedosto

@@ -59,6 +59,13 @@ const heroUtils = {
59 59
             // json.text = post && post.excerpt ? post.excerpt : post.title
60 60
             // json.text = post.title
61 61
             json.text = post && post.content ? post.content : post.title
62
+            
63
+            if (post.type === 'page' && post.slug === 'center') {
64
+                json.text = post.title
65
+            }
66
+
67
+
68
+
62 69
             return json
63 70
         },
64 71
         _clearHero(store) {

+ 10
- 7
vue-theme/src/pages/single.vue Näytä tiedosto

@@ -261,7 +261,7 @@ export default {
261 261
             position: relative
262 262
             width: 100% 
263 263
             padding-bottom: 56.25%
264
-            margin-bottom: $ms-7 
264
+            margin-bottom: 7em
265 265
             &__wrapper
266 266
                 display: contents
267 267
             /* TBD if kept- edit ot test */
@@ -269,18 +269,21 @@ export default {
269 269
                 position: absolute
270 270
                 top: 100%
271 271
 
272
+        /* iframe container 16:9 */
272 273
         [class^="iframe-container"]
273 274
             position: relative
274
-            width: 100% 
275
-        /* iframe container 16:9 */
276
-        .iframe-container 
277 275
             padding-bottom: 56.25% 
276
+            /* width: 100%  */
278 277
         /* iframe container portrait */
279 278
         .iframe-container-v
280 279
             height: 100%
281 280
             padding-bottom: 125%
282 281
         iframe 
282
+            position: absolute
283
+            top: 0 
284
+            left: 0
283 285
             width: 100% 
286
+            height: 100%
284 287
 
285 288
         /* separator styles */
286 289
         * hr
@@ -310,10 +313,7 @@ export default {
310 313
 
311 314
         breadcrumb
312 315
             h5
313
-                /* color: yellow */
314 316
                 color: $cia_red
315
-                /* font-weight: 400 */
316
-                /* padding: $ms--6 0 */
317 317
         
318 318
         //- end of article icon
319 319
         footer
@@ -329,4 +329,7 @@ export default {
329 329
             margin: 0 0.65em 0 0
330 330
         &.f-col
331 331
             flex-direction: row
332
+            .wp-block-embed, .is-type-video
333
+                margin-bottom: $ms-9 
334
+
332 335
 </style>

Loading…
Peruuta
Tallenna