From 8012dd39147712e9bd3fb81de78514571c5bb430 Mon Sep 17 00:00:00 2001 From: harukin Date: Fri, 23 Nov 2018 17:23:19 +0900 Subject: [PATCH] --- view/theme/plusfuture/css/style.css | 8 ++++---- view/theme/plusfuture/php/style.php | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/view/theme/plusfuture/css/style.css b/view/theme/plusfuture/css/style.css index 2460a71..9bd035c 100644 --- a/view/theme/plusfuture/css/style.css +++ b/view/theme/plusfuture/css/style.css @@ -2101,16 +2101,16 @@ a[title*="pawoo.net"]::after{ .toplevel_item{ width: calc(50% - 16px); margin: 8px; - margin-left: calc(calc(50% - $converse_width) / 2); - margin-right: calc(calc(50% - $converse_width) / 2); + margin-left: calc(calc(50% - $converse_widthn) / 2); + margin-right: calc(calc(50% - $converse_widthn) / 2); } } @media screen and (min-width: $converse_widths){ .toplevel_item{ width: calc(50% - 16px); margin: 8px; - margin-left: calc(calc(50% - $converse_width) / 2); - margin-right: calc(calc(50% - $converse_width) / 2); + margin-left: calc(calc(50% - $converse_widthn) / 2); + margin-right: calc(calc(50% - $converse_widthn) / 2); } } .toplevel_item:nth-child(2n){ diff --git a/view/theme/plusfuture/php/style.php b/view/theme/plusfuture/php/style.php index 931190e..1d39d69 100644 --- a/view/theme/plusfuture/php/style.php +++ b/view/theme/plusfuture/php/style.php @@ -103,8 +103,11 @@ if (! $shadow) $shadow = '0'; if (! $converse_width) $converse_width = ''; + $converse_widthn = $converse_width . "px"; if (! $converse_widths) - $converse_widths = ($converse_widths * 2); + $hoge = intval($converse_width); + $converse_widths = ($hoge * 2); + $converse_widths .= "px"; if(! $top_photo) $top_photo = '3rem'; if(! $reply_photo)