From 9a60a69f228dfc8ce4a25a81dfb5d59e39ca626c Mon Sep 17 00:00:00 2001 From: Ruben Date: Thu, 15 Sep 2016 11:57:44 +0100 Subject: [PATCH] Formatting --- www/faces.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/www/faces.php b/www/faces.php index 40c7bb0..085e3ba 100644 --- a/www/faces.php +++ b/www/faces.php @@ -8,6 +8,7 @@ $hitRepo = $em->getRepository(\EmotionHero\Models\Hit::class); /* @var $currentHit \EmotionHero\Models\Hit */ $currentHit = $hitRepo->findOneBy(['hasImage'=>true], ['id'=>'DESC']); + $printEmoBlocks = function($emotion, $feature, $steps = 6) use($em) { foreach(range(0, 100, 100/($steps-1)) as $i) { /* @var $hitRepo EmotionHero\Models\HitRepository */ @@ -72,6 +73,7 @@ position:relative; .emo{ text-align:center; + float:left; } .brows{ @@ -82,14 +84,26 @@ position:relative; } .current{ -width:200px; +/*width:200px;*/ margin:0 auto; +text-align:center; +} +.current img{ + width:200px; +} +dd, dt{ + float:left;width:80px; } img.curImg{ position:absolute; left:0; mix-blend-mode:difference; } + + svg{ + width:400px; + float:left; + } @@ -164,7 +178,6 @@ echo <<< EOSVG EOSVG; -print_r($currentHit->getPoints()->getAsArray()); ?> \ No newline at end of file