From 2b3b76abb0c363d85ff5c831afd541a9c6982e76 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 7 Mar 2018 17:35:30 +0100 Subject: Use banner instead of modal for privacy concerns --- .../videos/+video-watch/video-watch.component.scss | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) (limited to 'client/src/app/videos/+video-watch/video-watch.component.scss') 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 11518633c..9fd89508a 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.scss +++ b/client/src/app/videos/+video-watch/video-watch.component.scss @@ -254,6 +254,59 @@ } } +// If the view is not expanded, take into account the menu +.privacy-concerns { + width: calc(100% - #{$menu-width}); +} + +:host-context(.expanded) { + .privacy-concerns { + width: 100%; + } +} + +.privacy-concerns { + position: fixed; + bottom: 0; + + padding: 5px 15px; + + display: flex; + align-items: center; + justify-content: flex-start; + background-color: rgba(0, 0, 0, 0.9); + color: #fff; + + .privacy-concerns-text { + margin: 0 5px; + } + + a { + @include disable-default-a-behaviour; + + color: $orange-color; + transition: color 0.3s; + + &:hover { + color: #fff; + } + } + + .privacy-concerns-okay { + background-color: $orange-color; + padding: 5px 8px 5px 7px; + margin-left: auto; + border-radius: 3px; + cursor: pointer; + transition: background-color 0.3s; + font-weight: $font-semibold; + + &:hover { + background-color: #000; + } + } +} + @media screen and (max-width: 1600px) { .video-bottom { @@ -294,6 +347,15 @@ .other-videos { display: none; } + + .privacy-concerns { + font-size: 12px; + padding: 2px 5px; + + .privacy-concerns-text { + margin: 0; + } + } } @media screen and (max-width: 600px) { @@ -311,6 +373,14 @@ } } } + + .privacy-concerns { + width: 100%; + + strong { + display: none; + } + } } @media screen and (max-width: 450px) { -- cgit v1.2.3