Plugin Directory

Changeset 2177066


Ignore:
Timestamp:
10/21/2019 04:02:07 PM (6 years ago)
Author:
iseulde
Message:

v0.0.13

Location:
slide/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • slide/trunk/common.css

    r2175862 r2177066  
    11.wp-block-slide-slide {
    22    box-sizing: border-box;
    3     line-height: 1.3;
     3    line-height: 1.3;
    44}
    55
     
    9595
    9696.wp-block-quote.is-style-large p {
    97     font-size: 2em;
    98     font-style: italic;
    99     line-height: 1.6;
     97    font-size: 2em;
     98    font-style: italic;
     99    line-height: 1.6;
    100100}
    101101
    102102.wp-block-quote.is-style-large cite,
    103103.wp-block-quote.is-style-large .wp-block-quote__citation {
    104     font-size: 1em;
     104    font-size: 1em;
    105105}
    106106
    107107.wp-block-gallery .blocks-gallery-item {
    108     margin: 0;
    109     margin-right: .5em;
     108    margin: 0 .5em .5em 0;
    110109}
    111110
     
    114113.wp-block-gallery .blocks-gallery-image,
    115114.wp-block-gallery .blocks-gallery-item {
    116     width: calc((100% - .5em)/2);
     115    width: calc((100% - .5em)/2);
    117116}
    118117
     
    128127    font-size: inherit;
    129128}
     129
     130.wp-block-slide-slide iframe {
     131    border: none;
     132}
     133
     134.wp-block-media-text.is-image-fill figure > img {
     135    position: static;
     136    width: 100%;
     137    height: auto;
     138    margin: 0;
     139    overflow: auto;
     140    clip: auto;
     141}
     142
     143.has-small-font-size {
     144    font-size: 0.8em !important;
     145}
     146
     147.has-normal-font-size {
     148    font-size: inherit !important;
     149}
     150
     151.has-medium-font-size {
     152    font-size: 1.25em !important;
     153}
     154
     155.has-large-font-size {
     156    font-size: 1.5em !important;
     157}
     158
     159.has-huge-font-size {
     160    font-size: 2em !important;
     161}
  • slide/trunk/index.css

    r2175862 r2177066  
    4242    float: right;
    4343    margin-left: 1em;
     44}
     45
     46.wp-block[data-align=wide] {
     47    max-width: none;
    4448}
    4549
     
    7882    overflow: hidden;
    7983    outline: 1px dashed currentColor;
     84}
     85
     86.has-child-selected .wp-block-slide-slide__body {
     87    overflow: visible;
    8088}
    8189
     
    133141}
    134142
     143.wp-block-slide-slide > div > div > .block-list-appender {
     144    height: auto;
     145    position: absolute;
     146    right: 0;
     147    margin: 0;
     148    left: 0;
     149}
     150
    135151.editor-styles-wrapper .wp-block-slide-slide [data-block] {
    136     margin-top: 0;
    137     margin-bottom: 0;
     152    margin-top: 0;
     153    margin-bottom: 0;
    138154}
    139155
     
    155171.editor-styles-wrapper div[data-type="core/list"] ul {
    156172    padding-left: 1em;
    157     margin-left: inherit;
     173    margin-left: inherit;
    158174}
    159175
  • slide/trunk/index.php

    r2176212 r2177066  
    55 * Plugin URI:  https://wordpress.org/plugins/slide/
    66 * Description: Allows you to create presentations with the block editor.
    7  * Version:     0.0.12
     7 * Version:     0.0.13
    88 * Author:      Ella van Durpe
    99 * Author URI:  https://ellavandurpe.com
  • slide/trunk/readme.md

    r2176212 r2177066  
    66    Requires PHP:      5.6
    77    Tested up to:      5.3
    8     Stable tag:        0.0.12
     8    Stable tag:        0.0.13
    99    License:           GPL-2.0-or-later
    1010    License URI:       http://www.gnu.org/licenses/gpl-2.0.html
  • slide/trunk/template.php

    r2176212 r2177066  
    6969
    7070        section.wp-block-slide-slide {
     71            top: auto !important;
     72            display: flex !important;
     73            justify-content: center;
     74            flex-direction: column;
    7175            padding-top: <?php echo get_post_meta( get_the_ID(), 'presentation-vertical-padding', true ) ?: '0.2em'; ?> !important;
    7276            padding-bottom: <?php echo get_post_meta( get_the_ID(), 'presentation-vertical-padding', true ) ?: '0.2em'; ?> !important;
     
    7781        .reveal .slides {
    7882            text-align: inherit;
     83            justify-content: center;
     84            display: flex;
     85            flex-direction: column;
    7986        }
    8087
     
    109116            max-height: 100vh;
    110117        }
     118
     119        .reveal .slides > section,
     120        .reveal .slides > section > section {
     121            padding: <?php echo get_post_meta( get_the_ID(), 'presentation-vertical-padding', true ) ?: '0.2em'; ?> 0;
     122        }
    111123    </style>
    112124    <style>
     
    138150        } );
    139151        document.querySelectorAll( '.alignfull' ).forEach( ( element ) => {
    140             element.style.transform = `translate(-50%, 0) scale(${ 1 / Reveal.getScale() })`;
     152            element.style.width = 100 / Reveal.getScale() + 'vw';
     153            element.style.maxHeight = 84 / Reveal.getScale() + 'vh';
    141154        } );
    142155        document.querySelectorAll( '.wp-block-media-text' ).forEach( ( element ) => {
    143156            const percentage = parseInt( element.style.gridTemplateColumns, 10 );
    144 
    145             element.classList.remove( 'is-image-fill' )
    146157
    147158            if ( percentage === 50 ) {
     
    156167        Reveal.addEventListener( 'resize', function( event ) {
    157168            document.querySelectorAll( '.alignfull' ).forEach( ( element ) => {
    158                 element.style.transform = `translate(-50%, 0) scale(${ 1 / event.scale })`;
     169                element.style.width = 100 / event.scale + 'vw';
     170                element.style.maxHeight = 84 / event.scale + 'vh';
    159171            } );
    160172        } );
Note: See TracChangeset for help on using the changeset viewer.