Skip to content

Instantly share code, notes, and snippets.

@pandanote-info
Last active September 5, 2017 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pandanote-info/71cf14ee30a7de16f5cfc8ef24269a91 to your computer and use it in GitHub Desktop.
Save pandanote-info/71cf14ee30a7de16f5cfc8ef24269a91 to your computer and use it in GitHub Desktop.
YARPPをカスタマイズしてみた。
--- styles_thumbnails.css.php.ORG 2017-08-30 23:21:57.909532177 +0900
+++ styles_thumbnails.css.php 2017-08-31 07:34:47.572041369 +0900
@@ -8,7 +8,7 @@
$width = (isset($_GET['width'])) ? (int) $_GET['width'] : 120;
$margin = 5;
$width_with_margins = ($margin * 2) + $width;
-$height_with_text = $height + 50;
+$height_with_text = $height + 180;
$extra_margin = 7;
header('Content-Type: text/css');
@@ -35,7 +35,7 @@
}
.yarpp-thumbnails-horizontal .yarpp-thumbnail-title {
font-size: 1em;
- max-height: 2.8em;
+ /* max-height: 2.8em; */
line-height: 1.4em;
margin: <?php echo $extra_margin; ?>px;
margin-top: 0px;
@@ -51,3 +51,7 @@
min-height: <?php echo $height; ?>px;
min-width: <?php echo $width; ?>px;
}
+
+span.yarpp-thumbnail-title {
+ color: #1E3E8A;
+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment