⚡ NEW: Changeset/ - High Quality

Changeset 2175862


Ignore:
Timestamp:
10/18/2019 08:44:44 PM (6 years ago)
Author:
iseulde
Message:

v0.0.11

Location:
slide/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • slide/trunk/common.css

    r2175652 r2175862  
    88}
    99
     10.wp-block-slide-slide p,
     11.wp-block-slide-slide ol,
     12.wp-block-slide-slide ul,
     13.wp-block-slide-slide figure,
     14.wp-block-slide-slide blockquote,
     15.wp-block-slide-slide pre,
     16.wp-block-slide-slide .wp-block-code {
     17    margin-top: 0;
     18    margin-bottom: .5em;
     19    margin-left: 0;
     20    margin-right: 0;
     21}
     22
     23.wp-block-slide-slide .wp-block-image {
     24    /* Overridden in the editor... */
     25    margin-bottom: .5em !important;
     26}
     27
     28.wp-block-slide-slide figure {
     29    position: relative;
     30}
     31
     32.wp-block-slide-slide figure img {
     33    margin: 0;
     34    display: block;
     35}
     36
    1037.wp-block-slide-slide h1,
    1138.wp-block-slide-slide h2,
     
    1441.wp-block-slide-slide h5,
    1542.wp-block-slide-slide h6 {
    16     line-height: 1.2;
    17     word-wrap: break-word;
    1843    font-style: normal;
     44    font-weight: normal;
     45    margin-top: 0;
     46    margin-bottom: .5em;
     47    margin-left: 0;
     48    margin-right: 0;
    1949}
    2050
     
    2454
    2555.wp-block-slide-slide h2 {
    26     font-size: 1.6em;
     56    font-size: 2em;
    2757}
    2858
    2959.wp-block-slide-slide h3 {
    30     font-size: 1.3em;
     60    font-size: 1.5em;
    3161}
    3262
    3363.wp-block-slide-slide h4 {
     64    font-size: 1.25em;
     65}
     66
     67.wp-block-slide-slide h5 {
    3468    font-size: 1em;
    3569}
    3670
    37 .wp-block-slide-slide p {
    38     margin: 20px 0;
     71.wp-block-slide-slide h6 {
     72    font-size: 0.8em;
    3973}
     74
     75.wp-block-slide-slide figcaption,
     76.wp-block-slide-slide blockquote > cite,
     77.wp-block-slide-slide .wp-block-quote__citation,
     78.wp-block-gallery .blocks-gallery-item figcaption {
     79    font-size: 0.8em;
     80}
     81
     82.wp-block-slide-slide blockquote.is-style-default {
     83    padding-left: 1em;
     84    border-left: .2em solid currentColor;
     85}
     86
     87.wp-block-slide-slide blockquote.is-style-large {
     88    padding: 1em;
     89    margin: 0 0 .5em;
     90}
     91
     92.wp-block-slide-slide .wp-block-quote__citation {
     93    font-style: italic;
     94}
     95
     96.wp-block-quote.is-style-large p {
     97    font-size: 2em;
     98    font-style: italic;
     99    line-height: 1.6;
     100}
     101
     102.wp-block-quote.is-style-large cite,
     103.wp-block-quote.is-style-large .wp-block-quote__citation {
     104    font-size: 1em;
     105}
     106
     107.wp-block-gallery .blocks-gallery-item {
     108    margin: 0;
     109    margin-right: .5em;
     110}
     111
     112.blocks-gallery-grid .blocks-gallery-image,
     113.blocks-gallery-grid .blocks-gallery-item,
     114.wp-block-gallery .blocks-gallery-image,
     115.wp-block-gallery .blocks-gallery-item {
     116    width: calc((100% - .5em)/2);
     117}
     118
     119.wp-block-slide-slide .wp-block-code .block-editor-plain-text {
     120    font-size: inherit;
     121    background: inherit;
     122    display: block;
     123    color: inherit;
     124    font-family: monospace;
     125}
     126
     127.wp-block-button__link {
     128    font-size: inherit;
     129}
  • slide/trunk/index.css

    r2175652 r2175862  
    132132    margin-bottom: 0;
    133133}
     134
     135.editor-styles-wrapper .wp-block-slide-slide [data-block] {
     136    margin-top: 0;
     137    margin-bottom: 0;
     138}
     139
     140.wp-block-slide-slide h1,
     141.wp-block-slide-slide h2,
     142.wp-block-slide-slide h3,
     143.wp-block-slide-slide h4,
     144.wp-block-slide-slide h5,
     145.wp-block-slide-slide h6 {
     146    color: inherit;
     147}
     148
     149.wp-block-slide-slide p {
     150    font-size: inherit;
     151    line-height: inherit;
     152}
     153
     154.editor-styles-wrapper div[data-type="core/list"] ol,
     155.editor-styles-wrapper div[data-type="core/list"] ul {
     156    padding-left: 1em;
     157    margin-left: inherit;
     158}
     159
     160.wp-block-slide-slide ul,
     161.wp-block-slide-slide ol {
     162    padding-left: 1em;
     163}
     164
     165.wp-block-slide-slide li {
     166    margin-bottom: initial;
     167}
     168
     169.wp-block-slide-slide ul {
     170    list-style-type: disc;
     171}
     172
     173.wp-block-slide-slide ol {
     174    list-style-type: decimal;
     175}
     176
     177.wp-block-slide-slide ul ul,
     178.wp-block-slide-slide ol ul {
     179    list-style-type: circle;
     180}
     181
     182.wp-block-table table {
     183    border-collapse: unset;
     184}
  • slide/trunk/index.php

    r2175652 r2175862  
    55 * Plugin URI:  https://wordpress.org/plugins/slide/
    66 * Description: Allows you to create presentations with the block editor.
    7  * Version:     0.0.10
     7 * Version:     0.0.11
    88 * Author:      Ella van Durpe
    99 * Author URI:  https://ellavandurpe.com
     
    3838} );
    3939
    40 add_action( 'enqueue_block_editor_assets', function() {
    41     if ( ! is_admin() || get_post_type() !== 'presentation' ) {
     40add_action( 'admin_enqueue_scripts', function() {
     41    if ( get_post_type() !== 'presentation' ) {
    4242        return;
    4343    }
     
    6666
    6767    wp_enqueue_style(
    68         'slide-common',
    69         plugins_url( 'common.css', __FILE__ ),
    70         array(),
    71         filemtime( dirname( __FILE__ ) . '/common.css' )
    72     );
    73 
    74     wp_enqueue_style(
    7568        'slide',
    7669        plugins_url( 'index.css', __FILE__ ),
     
    7871        filemtime( dirname( __FILE__ ) . '/index.css' )
    7972    );
    80 } );
     73
     74    wp_deregister_style( 'wp-block-library-theme' );
     75    wp_register_style(
     76        'wp-block-library-theme',
     77        plugins_url( 'common.css', __FILE__ ),
     78        array(),
     79        filemtime( dirname( __FILE__ ) . '/common.css' )
     80    );
     81}, 99999 );
     82
     83add_action( 'wp_enqueue_scripts', function() {
     84    wp_deregister_style( 'wp-block-library-theme' );
     85    wp_register_style(
     86        'wp-block-library-theme',
     87        plugins_url( 'common.css', __FILE__ ),
     88        array(),
     89        filemtime( dirname( __FILE__ ) . '/common.css' )
     90    );
     91}, 99999 );
    8192
    8293add_action( 'init', function() {
     
    188199}
    189200
     201add_filter( 'block_editor_settings', function( $settings ) {
     202    $settings['styles'] = array();
     203    return $settings;
     204}, 99999 );
     205
    190206add_action( 'admin_bar_menu', function ( $wp_admin_bar ) {
    191207    if ( ! is_singular( 'presentation' ) ) {
  • slide/trunk/readme.md

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

    r2175652 r2175862  
    1414                display: none;
    1515            }
    16         }
    17 
    18         .wp-block-image, figure {
    19             margin: 0;
    2016        }
    2117
     
    9591        }
    9692
    97         .wp-block-slide-slide section figure img {
    98             margin: 0;
    99             display: block;
     93        .wp-block-media-text {
     94            display: flex;
     95        }
     96
     97        .wp-block-media-text__media,
     98        .wp-block-media-text__content {
     99            flex-basis: 50%;
    100100        }
    101101    </style>
Note: See TracChangeset for help on using the changeset viewer.