Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.