Stili inline spostati in css (quelli che si può)

Signed-off-by: Riccardo Di Dato <r.didato@asdynamics.it>
This commit is contained in:
Riccardo Di Dato
2017-07-13 19:34:18 +02:00
parent 73af2b0c75
commit cbd0910d0e
2 changed files with 2 additions and 2 deletions
@@ -15,7 +15,7 @@ class MediaLocalVideo extends MediaRenderer{
$loaderSize = self::$SIZES[self::SIZE_BIG];
return '<div style="position:relative;" class="videoContainerForImageAppend"><img class="poster" src="'.GUIHandler::getBaseUrl().'/images/loading.gif" style="width:'.$loaderSize["width"].'px;height:'.$loaderSize["height"].'px;background-color:black;position:absolute;top:0;left:0;" />'.
return '<div style="position:relative;" class="videoContainerForImageAppend"><img class="poster" src="'.GUIHandler::getBaseUrl().'/images/loading.gif" style="width:'.$loaderSize["width"].'px;height:'.$loaderSize["height"].'px;" />'.
'<video class="localVideo" width="'.$size["width"].'" preload="auto" controls style="visibility:hidden;">'.
'<source src="'.$this->getVideoLink($size).'" type=\'video/'.$this->getExtension().'; codecs="avc1.4D401E, mp4a.40.2"\'>'.
'</video></div>';
+1 -1
View File
@@ -124,7 +124,7 @@ body{font-family:lato, arial;}
.secondaryNews .newsImage img{width:10vw;}
.secondaryNews .newsImage iframe{width:10vw;height:5.6vw;}
.secondaryNews .newsImage video.localVideo{max-width:100%;}
.secondaryNews .newsImage .videoContainerForImageAppend img{width:100%;heigth:100%;}
.secondaryNews .newsImage .videoContainerForImageAppend img.poster{max-width:100%;max-heigth:100%;background-color:black;position:absolute;top:0;left:0;}
.secondaryNews .newsTitle{display:inline-block;box-sizing:border-box;width:83vw;padding:10px 5px;vertical-align:middle;color:black;font-size:9pt}
.grigliaContainer{margin:auto;width:90vw;text-align:center;z-index:1;padding:10px 0;}