Procházet zdrojové kódy

styling embedded iframe responsive behaviour

tags/0.9.0
Alej před 4 roky
rodič
revize
509260f088
1 změnil soubory, kde provedl 10 přidání a 7 odebrání
  1. 10
    7
      vue-theme/src/pages/single.vue

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

@@ -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>

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