From 09223546a4d882a9dbfdbd95d551e48af7bee123 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 21 Apr 2017 16:40:45 +0200 Subject: Client Better design for video watch --- .../videos/video-watch/video-watch.component.html | 153 ++++++++++--------- .../videos/video-watch/video-watch.component.scss | 166 +++++++++++++-------- 2 files changed, 181 insertions(+), 138 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 ed26b513e..989de0de4 100644 --- a/client/src/app/videos/video-watch/video-watch.component.html +++ b/client/src/app/videos/video-watch/video-watch.component.html @@ -31,52 +31,36 @@
-
-
-
-
- {{ video.name }} -
-
+
+
+ {{ video.name }} +
-
-
- - from - - {{ video.by }} - - - on {{ video.createdAt | date:'short' }} -
-
+
+ {{ video.views}} views
+
-
-
- - - -
+
+ - + -
- +
+
+ + + More +
-
-
- +
+
+ -
- {{ video.views }} views -
-
+ + {{ video.likes }} + +
-
-
- Category: - {{ video.categoryLabel }} -
-
+
+ -
-
- Licence: - {{ video.licenceLabel }} + + {{ video.dislikes }} + +
-
-
- Language: - {{ video.languageLabel }} +
+
+
+ Published on {{ video.createdAt | date:'short' }} +
+ +
+ {{ video.description }} +
-
-
-
-
Description
- {{ video.description }} +
+
+ + Category: + + + {{ video.categoryLabel }} + +
+ +
+ + Licence: + + + {{ video.licenceLabel }} + +
+ +
+ + Language: + + + {{ video.languageLabel }} + +
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 92192221f..cd9d71fb4 100644 --- a/client/src/app/videos/video-watch/video-watch.component.scss +++ b/client/src/app/videos/video-watch/video-watch.component.scss @@ -32,102 +32,136 @@ } #video-info { - border-top: 1px solid rgba(0, 0, 0, 0.1); - margin-top: 10px; - padding-top: 5px; - - #video-name-actions { - - #video-name { - font-size: 20px; - } + .video-name-views { + font-weight: bold; + font-size: 18px; + height: $video-watch-title-height; + line-height: $video-watch-title-height; + padding: 0 30px; - .btn .glyphicon { - position: relative; - top: 2px; + .video-views { + text-align: right; } + } - #rates { - display: inline-block; - margin-right: 20px; + .video-small-blocks { + height: 150px; + color: $video-watch-info-color; + border-color: $video-watch-border-color; + border-width: 1px 0px; + border-style: solid; + + .video-small-block { + height: $video-watch-info-height; + display: flex; + flex-direction: column; + justify-content: center; + text-align: center; + + a { + cursor: pointer; + transition: color 0.3s; + + &, &:hover { + color: inherit; + text-decoration:none; + } - // Remove focus style - .btn:focus { - outline: 0; + &:hover { + color: #000 !important; + } } - .activated-btn { - color: #333; - background-color: #e6e6e6; - border-color: #8c8c8c; + .option .glyphicon { + font-size: 22px; + color: inherit; + opacity: 0.9; + margin-bottom: 10px; } - .not-interactive-btn { - cursor: default; - - &:hover, &:focus, &:active { - color: #333; - background-color: #fff; - border-color: #ccc; - box-shadow: none; - outline: 0; - } + .video-small-block-text { + font-size: 15px; + font-weight: bold; } } - #share, #more { - font-weight: bold; - opacity: 0.85; + .video-small-block:not(:last-child) { + border-width: 0 1px 0 0; + border-color: $video-watch-border-color; + border-style: solid; } - #more-menu .dropdown-item .glyphicon { - margin-right: 5px; + .video-small-block-author { + font-size: 15px; + font-weight: bold; } - } - #video-by-date { - font-size: 13px; - opacity: 0.6; + .video-small-block-share, .video-small-block-more { + a.option { + display: block; - a { - color: black; + .glyphicon { + display: block; + } + } } - #video-date:before { - content: '\002022'; - margin: 0 5px; + .video-small-block-more .video-small-block-dropdown { + position: relative; + + .dropdown-item .glyphicon { + margin-right: 5px; + } } - } - #video-tags-views { - margin-top: 10px; + .video-small-block-rating { - a { - margin-right: 5px; - } + .video-small-block-like { + margin-bottom: 10px; + } - #video-views { - font-weight: bold; - } - } + .video-small-block-text { + vertical-align: top; + } - #video-category { - margin-top: 10px; + .glyphicon { + font-size: 18px; + margin: 0 10px 0 0; + } - #category-label { - font-weight: bold; + .interactive { + cursor: pointer; + transition: color 0.3s; + + &.activated, &:hover { + color: #000; + } + } } } - #video-licence #licence-label, #video-language #language-label { - font-weight: bold; - } + .video-details { + margin-top: 30px; - #video-description { - margin-top: 10px; + .video-details-date-description { + padding-left: 30px; - #description-label { + .video-details-date { + font-weight: bold; + margin-bottom: 30px; + } + } + + .video-details-attributes { font-weight: bold; + font-size: 12px; + + .video-details-attribute-label { + color: $video-watch-info-color; + display: inline-block; + width: 60px; + margin-right: 5px; + } } } } -- cgit v1.2.3