planet.kde.org: Limit width of a HTML5 video element to width of container

Alexander Mezin mezin.alexander at gmail.com
Sat Jun 20 09:05:53 UTC 2015


Seems that reviewboard isn't configured for planet-kde-org,
so I'm sending the patch here.

Currently if a video is wider than the post container, its rightmost
part is cropped. This change should make it downscale instead.

Not sure if it's the right css file though.
---
 website/main.css | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/website/main.css b/website/main.css
index 99dce3f..f531002 100644
--- a/website/main.css
+++ b/website/main.css
@@ -171,3 +171,7 @@ blockquote{
 .table-condensed>thead>tr>th, .table-condensed>tbody>tr>th,
.table-condensed>tfoot>tr>th, .table-condensed>thead>tr>td,
.table-condensed>tbody>tr>td, .table-condensed>tfoot>tr>td{
     padding: 1px;
 }
+
+video {
+    max-width: 100%;
+}
-- 
2.4.4


More information about the kde-www mailing list