Data Publisher CSS changed

Icon color green

The publication library file structure has changed in version 5.1.1. If you are using one of the Code Manager publication styles (or copied the styles into your WordPress theme), the responsive icons will be shown in its original green color instead of the color defined in the Code Manager.

Please delete the related Code Manager blocks from your Code Manager repository and download the updated code blocks to change the icon back to its correct color:

Or use the following CSS to change the color of your icons manually:

Old icon styling

table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child::before, 
table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child::before {
	background-color: #23282d !important;

New icon styling

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before, 
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
	background-color: #23282d !important; /* black icon */

The example above can be used for Code Manager style: WP-Data-Access-Data-Publisher-Color-Black

Use the follow CSS for the other Code Manager styles:

WP-Data-Access-Data-Publisher-Color-Greenbackground-color: #719b25 !important;
WP-Data-Access-Data-Publisher-Color-Redbackground-color: #d1675a !important;
WP-Data-Access-Data-Publisher-Color-Boyzbackground-color: #096484 !important;
WP-Data-Access-Data-Publisher-Color-Barbiesbackground-color: #ff1493 !important;

Insufficient icon padding

Updates for the following code blocks are available if the space between the responsive icon and column text is insufficient:

Global styling no longer available in free version

Global publication styling was removed from the free version. My apologies if you have been using this features as a free user. It is not my intention to swap features from the free to the premium version, but this improvement is necessary to keep the plugin clean and improve maintainability (the plugin size was reduced by >30% since version 4.3).

In return I have added some new styles for free and premium users which are available directly from the Data Publisher. See: Data Publisher > Publication styling > Styling

Peter Schulz is a lecturer in information technology at the HAN university of applied sciences. He is an experienced programmer with more than 25 years experience in Oracle databases and tools. Peter is the developer of WordPress plugin WP Data Access.

Leave a Reply

Your email address will not be published.