From 2accfdd8ecd092de7e8c71fbd1235e139ad29832 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 29 Dec 2021 12:14:06 +0100 Subject: Refactor admin plugins --- client/src/sass/application.scss | 35 ----------------------------------- client/src/sass/bootstrap.scss | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 35 deletions(-) (limited to 'client/src/sass') diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index 87a21543d..9f64f7426 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss @@ -261,28 +261,6 @@ my-input-toggle-hidden ::ng-deep input { display: flex; align-items: center; margin-bottom: 30px; - - .admin-sub-nav a { - @include disable-default-a-behaviour; - - font-size: 16px; - color: pvar(--mainForegroundColor); - padding: 5px 15px; - border-radius: 0.25rem; - font-weight: $font-semibold; - opacity: 0.6; - - &.active { - background-color: pvar(--submenuBackgroundColor); - } - - &.active, - &:hover, - &:active, - &:focus { - opacity: 1; - } - } } // In tables, don't have a hover different background @@ -402,19 +380,6 @@ ngx-loading-bar { .admin-sub-header { flex-direction: column; - - .admin-sub-nav { - display: block; - overflow-x: auto; - white-space: nowrap; - height: 50px; - padding: 10px 0; - width: 100%; - - a { - @include margin-left(5px); - } - } } my-markdown-textarea { diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss index 4e88d9706..b6aeb8ca2 100644 --- a/client/src/sass/bootstrap.scss +++ b/client/src/sass/bootstrap.scss @@ -334,6 +334,34 @@ ngb-tooltip-window { } } +.btn-group { + font-weight: $font-semibold; + + .active { + @include orange-button; + } + + :not(.active) { + @include grey-button; + } + + > * { + @include peertube-button-link; + + box-shadow: none !important; + + &:not(:first-child) { + border-top-left-radius: 0 !important; + border-bottom-left-radius: 0 !important; + } + + &:not(:last-child) { + border-top-right-radius: 0 !important; + border-bottom-right-radius: 0 !important; + } + } +} + // input box-shadow on focus .form-control { font-size: 15px; -- cgit v1.2.3