Skip to content

Commit

Permalink
Finish the logo table changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nylen committed Mar 13, 2020
1 parent f48304d commit 935e049
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
8 changes: 4 additions & 4 deletions wp-content/mu-plugins/logo-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
function cp_logo_link_html( $dir, $entry, $format_key, $link_text ) {
$dir_url = site_url( "/$dir" );
return (
'<a href="' . esc_attr(
$dir_url . '/' . $entry['formats'][ $format_key ]
) . '">'
'<a href="' . esc_attr( $dir_url . $entry['formats'][ $format_key ]) . '">'
. esc_html( $link_text )
. '</a>'
);
Expand Down Expand Up @@ -40,7 +38,9 @@ function cp_logo_list_shortcode( $atts ) {
background-position: center;
\"></div></div></a>\n";
$html .= "</td><td class=\"cp-logo-info\">\n";
$html .= esc_html( $entry['description'] ) . "<br>\n";
$html .= "<div class=\"cp-logo-description\">";
$html .= esc_html( $entry['description'] );
$html .= "</div>\n";
$html .= "Formats: ";
$html .= cp_logo_link_html( $dir, $entry, 'svg', 'SVG' );
$html .= " | PNG: ";
Expand Down
2 changes: 1 addition & 1 deletion wp-content/themes/classicpress-susty-child/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Stylesheet version (cache buster)
*/
function cp_susty_get_asset_version() {
return '20200312.03';
return '20200312';
}


Expand Down
21 changes: 19 additions & 2 deletions wp-content/themes/classicpress-susty-child/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1392,10 +1392,20 @@ label select {
}


/* LOGO TABLE (https://www.classicpress.net/brand-guidelines/) */
/* LOGO TABLES (https://www.classicpress.net/brand-guidelines/) */

table.cp-logo-descriptions td.cp-logo-image {
width: 210px;
text-align: right;
vertical-align: middle;
}

table.cp-logo-descriptions td.cp-logo-description {
vertical-align: middle;
padding-left: 1em;
}

table.cp-logo-list {
max-width: 600px;
border-spacing: 0 6px;
}

Expand Down Expand Up @@ -1425,6 +1435,13 @@ table.cp-logo-list .cp-logo-preview .cp-logo-thumbnail {

table.cp-logo-list .cp-logo-info {
padding-left: 1em;
width: 100%;
}

table.cp-logo-list .cp-logo-description {
font-size: 108%;
font-weight: bold;
margin-bottom: 0.3em;
}


Expand Down

0 comments on commit 935e049

Please sign in to comment.