Skip to content

Commit

Permalink
Improvements of captions
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelienpierre committed Sep 27, 2021
1 parent 4996fdc commit d895b4d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
15 changes: 4 additions & 11 deletions css/pg-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@

.gallery figure {
margin-bottom: 10px;
break-after: column;
}

.wp-caption-text {
white-space: normal;
display: block;
break-inside: avoid;
}

.gallery figure.gallery-item a {
Expand Down Expand Up @@ -157,7 +152,7 @@ html {
}

.pg-exhibition {
padding: 4em 1em;
padding: 2em 1em;
}

.pg-carousel header {
Expand Down Expand Up @@ -216,10 +211,8 @@ html {
}

.pg-exhibition .gallery .wp-caption-text {
display: block;
text-align: right;
line-height: 2;
margin-top: 1em;
}

.pg-exhibition .gallery {
Expand Down Expand Up @@ -309,14 +302,14 @@ html {
.pg-no_caption.look-box .pg-exhibition,
.pg-no_caption.look-box-bright .pg-exhibition,
.pg-no_caption.look-box-dark .pg-exhibition {
padding: 5em 2em;
padding: 2em 2em;
}

.pg-show_caption.look-classic .pg-exhibition,
.pg-show_caption.look-box .pg-exhibition,
.pg-show_caption.look-box-bright .pg-exhibition,
.pg-show_caption.look-box-dark .pg-exhibition {
padding: 6em 2em;
padding: 3em 2em;
}

.pg-exhibition-wrapper .look-modern .gallery .gallery-icon {
Expand Down
2 changes: 1 addition & 1 deletion css/pg-style.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions photographers-galleries.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Plugin Name: Photographers galleries
* Plugin URI: https://wordpress.org/plugins/photographers-galleries/
* Description: Enhance your galleries with HTML5, metadata, dynamic galleries and add a lightweight carousel to display a sequence of pictures without distractions.
* Version: 1.0.6
* Version: 1.0.7
* Author: Aurélien PIERRE
* Author URI: https://photo.aurelienpierre.com
* Text Domain: photographers-galleries
Expand Down Expand Up @@ -42,8 +42,8 @@
add_action('wp_enqueue_scripts', 'register_pg_styles', 10 );

function register_pg_styles() {
wp_register_style('pg-css', plugin_dir_url( __FILE__ ).'css/pg-style.min.css', array(), '1.0.6');
wp_register_script('pg-js', plugin_dir_url( __FILE__ ).'js/pg-script.min.js', array(), '1.0.6', true);
wp_register_style('pg-css', plugin_dir_url( __FILE__ ).'css/pg-style.min.css', array(), '1.0.7');
wp_register_script('pg-js', plugin_dir_url( __FILE__ ).'js/pg-script.min.js', array(), '1.0.7', true);
}

// this parses the post content with a regex for clever on-demand loading, so it needs to come very late
Expand Down
9 changes: 9 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,15 @@ Using native WordPress galleries, Photographers Galleries need to overwrite them

== Changelog ==

= 1.0.7 =

Improvements of captions:

- Remove unnecessary CSS rules,
- Reduce vertical margins for exhibitions to free more display real estate on mobile,
- Prevent column breaking between image and caption in figure for thumbnails galleries,
- Let captions flow for carousels.

= 1.0.6 =

Improvements for touch and small devices:
Expand Down

0 comments on commit d895b4d

Please sign in to comment.