From f1ac63488c0050fec1c4d713d74db4f4ea944395 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 15 Apr 2021 13:43:50 +0200 Subject: Refactor menu css --- client/src/app/+login/login.component.scss | 13 +- .../src/app/header/search-typeahead.component.scss | 3 +- client/src/app/menu/menu.component.html | 39 ++-- client/src/app/menu/menu.component.scss | 225 +++++++++------------ .../video-thumbnail.component.scss | 122 +++++------ .../video-miniature.component.html | 10 +- .../video-miniature.component.scss | 16 +- 7 files changed, 194 insertions(+), 234 deletions(-) (limited to 'client') diff --git a/client/src/app/+login/login.component.scss b/client/src/app/+login/login.component.scss index f605cbb7a..eddaff542 100644 --- a/client/src/app/+login/login.component.scss +++ b/client/src/app/+login/login.component.scss @@ -21,13 +21,6 @@ input[type=email] { } } -.modal-footer.inputs { - .action-button.action-button-cancel { - width: auto !important; - display: inline-block; - } -} - @media screen and (max-width: #{map-get($container-max-widths, sm)}) { .modal-body { #forgot-password-email { @@ -35,10 +28,8 @@ input[type=email] { } } - .modal-footer.inputs { - .action-button.action-button-cancel { - display: none; - } + .modal-footer .grey-button { + display: none; } } diff --git a/client/src/app/header/search-typeahead.component.scss b/client/src/app/header/search-typeahead.component.scss index a60aa38d6..c754a99d1 100644 --- a/client/src/app/header/search-typeahead.component.scss +++ b/client/src/app/header/search-typeahead.component.scss @@ -5,6 +5,7 @@ #search-video { @include peertube-input-text($search-input-width); + padding-left: 10px; padding-right: 40px; // For the search icon font-size: 14px; @@ -14,7 +15,7 @@ } } -.icon.icon-search { +.icon-search { @include icon(25px); height: 18px; diff --git a/client/src/app/menu/menu.component.html b/client/src/app/menu/menu.component.html index a0777660f..df5c7971d 100644 --- a/client/src/app/menu/menu.component.html +++ b/client/src/app/menu/menu.component.html @@ -40,9 +40,10 @@ - - + (click)="onActiveLinkScrollToAnchor(settingsSensitiveContentPolicy)" + > + + Sensitive: {{ nsfwPolicy }} @@ -72,17 +73,17 @@
- + My account - + My library - + Administration @@ -90,29 +91,29 @@
- - + Login + Create an account
IN MY LIBRARY
- + Videos - + Playlists - + Subscriptions - + History @@ -122,22 +123,22 @@
ON {{instanceName}}
- + Discover - + Trending - + Recently added - + Local videos @@ -146,18 +147,18 @@