From 09223546a4d882a9dbfdbd95d551e48af7bee123 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 21 Apr 2017 16:40:45 +0200 Subject: [PATCH] Client Better design for video watch --- client/src/app/account/account.component.html | 4 + .../app/core/menu/menu-admin.component.scss | 1 + .../app/shared/search/search.component.html | 1 - .../video-watch/video-watch.component.html | 153 +++++++------- .../video-watch/video-watch.component.scss | 194 ++++++++++-------- client/src/sass/_variables.scss | 9 +- client/src/sass/application.scss | 6 +- 7 files changed, 213 insertions(+), 155 deletions(-) diff --git a/client/src/app/account/account.component.html b/client/src/app/account/account.component.html index 24bcdf947..c0995dad0 100644 --- a/client/src/app/account/account.component.html +++ b/client/src/app/account/account.component.html @@ -1,5 +1,6 @@

Account

+
Change password
@@ -7,7 +8,9 @@
+ +
Update my informations
@@ -15,3 +18,4 @@
+ diff --git a/client/src/app/core/menu/menu-admin.component.scss b/client/src/app/core/menu/menu-admin.component.scss index 487461224..04403950e 100644 --- a/client/src/app/core/menu/menu-admin.component.scss +++ b/client/src/app/core/menu/menu-admin.component.scss @@ -9,6 +9,7 @@ menu { height: 30px; color: #9cabb8; cursor: pointer; + transition: color 0.3s; &:hover, &:focus { text-decoration: none !important; diff --git a/client/src/app/shared/search/search.component.html b/client/src/app/shared/search/search.component.html index b03b977dc..c6c6ff6a8 100644 --- a/client/src/app/shared/search/search.component.html +++ b/client/src/app/shared/search/search.component.html @@ -1,4 +1,3 @@ -
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 }} -
-
- -
-
- - from - - {{ video.by }} - - - on {{ video.createdAt | date:'short' }} -
-
+
+
+ {{ video.name }}
-
-
- +
+ {{ video.views}} views +
+
- -
+
+ - + -
- +
+
+ + + More +
-
-
- +
+
+ -
- {{ video.views }} views + + {{ video.likes }} + +
+ +
+ + + + {{ video.dislikes }} + +
-
-
- Category: - {{ video.categoryLabel }} -
-
+
+
+
+ Published on {{ video.createdAt | date:'short' }} +
-
-
- Licence: - {{ video.licenceLabel }} +
+ {{ video.description }} +
-
-
-
- Language: - {{ video.languageLabel }} -
-
+
+
+ + Category: + + + {{ video.categoryLabel }} + +
-
-
-
Description
- {{ video.description }} +
+ + 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-views { + font-weight: bold; + font-size: 18px; + height: $video-watch-title-height; + line-height: $video-watch-title-height; + padding: 0 30px; - #video-name-actions { - - #video-name { - font-size: 20px; + .video-views { + text-align: right; } + } - .btn .glyphicon { - position: relative; - top: 2px; - } + .video-small-blocks { + height: 150px; + color: $video-watch-info-color; + border-color: $video-watch-border-color; + border-width: 1px 0px; + border-style: solid; - #rates { - display: inline-block; - margin-right: 20px; + .video-small-block { + height: $video-watch-info-height; + display: flex; + flex-direction: column; + justify-content: center; + text-align: center; - // Remove focus style - .btn:focus { - outline: 0; + a { + cursor: pointer; + transition: color 0.3s; + + &, &:hover { + color: inherit; + text-decoration:none; + } + + &: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; + .video-small-block-text { + font-size: 15px; + font-weight: bold; + } + } - &:hover, &:focus, &:active { - color: #333; - background-color: #fff; - border-color: #ccc; - box-shadow: none; - outline: 0; + .video-small-block:not(:last-child) { + border-width: 0 1px 0 0; + border-color: $video-watch-border-color; + border-style: solid; + } + + .video-small-block-author { + font-size: 15px; + font-weight: bold; + } + + .video-small-block-share, .video-small-block-more { + a.option { + display: block; + + .glyphicon { + display: block; } } } - #share, #more { + .video-small-block-more .video-small-block-dropdown { + position: relative; + + .dropdown-item .glyphicon { + margin-right: 5px; + } + } + + .video-small-block-rating { + + .video-small-block-like { + margin-bottom: 10px; + } + + .video-small-block-text { + vertical-align: top; + } + + .glyphicon { + font-size: 18px; + margin: 0 10px 0 0; + } + + .interactive { + cursor: pointer; + transition: color 0.3s; + + &.activated, &:hover { + color: #000; + } + } + } + } + + .video-details { + margin-top: 30px; + + .video-details-date-description { + padding-left: 30px; + + .video-details-date { + font-weight: bold; + margin-bottom: 30px; + } + } + + .video-details-attributes { font-weight: bold; - opacity: 0.85; - } + font-size: 12px; - #more-menu .dropdown-item .glyphicon { - margin-right: 5px; - } - } - - #video-by-date { - font-size: 13px; - opacity: 0.6; - - a { - color: black; - } - - #video-date:before { - content: '\002022'; - margin: 0 5px; - } - } - - #video-tags-views { - margin-top: 10px; - - a { - margin-right: 5px; - } - - #video-views { - font-weight: bold; - } - } - - #video-category { - margin-top: 10px; - - #category-label { - font-weight: bold; - } - } - - #video-licence #licence-label, #video-language #language-label { - font-weight: bold; - } - - #video-description { - margin-top: 10px; - - #description-label { - font-weight: bold; + .video-details-attribute-label { + color: $video-watch-info-color; + display: inline-block; + width: 60px; + margin-right: 5px; + } } } } diff --git a/client/src/sass/_variables.scss b/client/src/sass/_variables.scss index be57db304..1b91434ba 100644 --- a/client/src/sass/_variables.scss +++ b/client/src/sass/_variables.scss @@ -1,8 +1,15 @@ +$grey-color: #555; + $black-background: #1d2125; $grey-background: #f6f2f2; -$header-height: 60px; +$header-height: 65px; $header-border-color: #e9eff6; $video-miniature-title-color: #16a2b7; $video-miniature-other-infos: #686767; + +$video-watch-border-color: #eceef4; +$video-watch-title-height: 90px; +$video-watch-info-color: #8e909b; +$video-watch-info-height: 150px; diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index 25d79a0cb..d65cd8c64 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss @@ -13,6 +13,10 @@ input.readonly { border-radius: 0; } +.dropdown-menu { + border-radius: 0; +} + .glyphicon-black { color: black; } @@ -61,7 +65,7 @@ input.readonly { #peertube-title { background-color: #fff; - border-right: 2px solid $header-border-color; + border-right: 1px solid $header-border-color; font-size: 25px; line-height: $header-height; text-align: center;