Changeset 2177066
- Timestamp:
- 10/21/2019 04:02:07 PM (6 years ago)
- Location:
- slide/trunk
- Files:
-
- 5 edited
-
common.css (modified) (4 diffs)
-
index.css (modified) (4 diffs)
-
index.php (modified) (1 diff)
-
readme.md (modified) (1 diff)
-
template.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
slide/trunk/common.css
r2175862 r2177066 1 1 .wp-block-slide-slide { 2 2 box-sizing: border-box; 3 line-height: 1.3;3 line-height: 1.3; 4 4 } 5 5 … … 95 95 96 96 .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; 100 100 } 101 101 102 102 .wp-block-quote.is-style-large cite, 103 103 .wp-block-quote.is-style-large .wp-block-quote__citation { 104 font-size: 1em;104 font-size: 1em; 105 105 } 106 106 107 107 .wp-block-gallery .blocks-gallery-item { 108 margin: 0; 109 margin-right: .5em; 108 margin: 0 .5em .5em 0; 110 109 } 111 110 … … 114 113 .wp-block-gallery .blocks-gallery-image, 115 114 .wp-block-gallery .blocks-gallery-item { 116 width: calc((100% - .5em)/2);115 width: calc((100% - .5em)/2); 117 116 } 118 117 … … 128 127 font-size: inherit; 129 128 } 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 42 42 float: right; 43 43 margin-left: 1em; 44 } 45 46 .wp-block[data-align=wide] { 47 max-width: none; 44 48 } 45 49 … … 78 82 overflow: hidden; 79 83 outline: 1px dashed currentColor; 84 } 85 86 .has-child-selected .wp-block-slide-slide__body { 87 overflow: visible; 80 88 } 81 89 … … 133 141 } 134 142 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 135 151 .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; 138 154 } 139 155 … … 155 171 .editor-styles-wrapper div[data-type="core/list"] ul { 156 172 padding-left: 1em; 157 margin-left: inherit;173 margin-left: inherit; 158 174 } 159 175 -
slide/trunk/index.php
r2176212 r2177066 5 5 * Plugin URI: https://wordpress.org/plugins/slide/ 6 6 * Description: Allows you to create presentations with the block editor. 7 * Version: 0.0.1 27 * Version: 0.0.13 8 8 * Author: Ella van Durpe 9 9 * Author URI: https://ellavandurpe.com -
slide/trunk/readme.md
r2176212 r2177066 6 6 Requires PHP: 5.6 7 7 Tested up to: 5.3 8 Stable tag: 0.0.1 28 Stable tag: 0.0.13 9 9 License: GPL-2.0-or-later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
slide/trunk/template.php
r2176212 r2177066 69 69 70 70 section.wp-block-slide-slide { 71 top: auto !important; 72 display: flex !important; 73 justify-content: center; 74 flex-direction: column; 71 75 padding-top: <?php echo get_post_meta( get_the_ID(), 'presentation-vertical-padding', true ) ?: '0.2em'; ?> !important; 72 76 padding-bottom: <?php echo get_post_meta( get_the_ID(), 'presentation-vertical-padding', true ) ?: '0.2em'; ?> !important; … … 77 81 .reveal .slides { 78 82 text-align: inherit; 83 justify-content: center; 84 display: flex; 85 flex-direction: column; 79 86 } 80 87 … … 109 116 max-height: 100vh; 110 117 } 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 } 111 123 </style> 112 124 <style> … … 138 150 } ); 139 151 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'; 141 154 } ); 142 155 document.querySelectorAll( '.wp-block-media-text' ).forEach( ( element ) => { 143 156 const percentage = parseInt( element.style.gridTemplateColumns, 10 ); 144 145 element.classList.remove( 'is-image-fill' )146 157 147 158 if ( percentage === 50 ) { … … 156 167 Reveal.addEventListener( 'resize', function( event ) { 157 168 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'; 159 171 } ); 160 172 } );
Note: See TracChangeset
for help on using the changeset viewer.