From 3eeeb87fe62fab3e48455f53c8a725b49878b9b3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 1 May 2017 18:05:28 +0200 Subject: Client: try to be responsive --- .../videos/video-watch/video-watch.component.html | 16 +++---- .../videos/video-watch/video-watch.component.scss | 53 ++++++++++++++++++++++ 2 files changed, 61 insertions(+), 8 deletions(-) (limited to 'client/src/app/videos') diff --git a/client/src/app/videos/video-watch/video-watch.component.html b/client/src/app/videos/video-watch/video-watch.component.html index 5e758401e..13f6719bb 100644 --- a/client/src/app/videos/video-watch/video-watch.component.html +++ b/client/src/app/videos/video-watch/video-watch.component.html @@ -30,30 +30,30 @@
-
+
{{ video.name }}
-
+
{{ video.views}} views
-
+ -
+ -
+ -
+
-
+
Published on {{ video.createdAt | date:'short' }}
@@ -130,7 +130,7 @@
-
+
Category: diff --git a/client/src/app/videos/video-watch/video-watch.component.scss b/client/src/app/videos/video-watch/video-watch.component.scss index 8d8454cfd..767a3ed4e 100644 --- a/client/src/app/videos/video-watch/video-watch.component.scss +++ b/client/src/app/videos/video-watch/video-watch.component.scss @@ -47,6 +47,7 @@ // Keep a symmetry with the video name padding-right: $video-watch-info-padding-left } + } .video-small-blocks { @@ -66,6 +67,9 @@ a { cursor: pointer; transition: color 0.3s; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; &, &:hover { color: inherit; @@ -181,4 +185,53 @@ } } } + + @media screen and (max-width: 400px) { + .video-name-views { + font-size: 16px !important; + } + } + + @media screen and (max-width: 800px) { + .video-name-views { + .video-name { + padding-left: 5px; + padding-right: 0px; + } + + .video-views { + padding-left: 0px; + padding-right: 5px; + } + } + + .video-small-blocks { + a, .video-small-block-text { + font-size: 13px !important; + } + + .glyphicon { + font-size: 18px !important; + } + + .video-small-block-author { + padding-left: 10px; + } + } + + .video-details { + .video-details-date-description { + padding-left: 10px; + font-size: 13px !important; + } + + .video-details-attributes { + font-size: 11px !important; + + .video-details-attribute-label { + width: 50px; + } + } + } + } } -- cgit v1.2.3