diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-02-09 17:54:59 -0800 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-02-09 17:54:59 -0800 |
commit | c77998209f779dfccd86afeeafd43a7bbd886ff2 (patch) | |
tree | ff1b5fc33b1d5115f0f62eb4ea02848cdf468bc6 /core/css/header.scss | |
parent | e47d56ac36d0f1d3e47392a7d9688decf847e1bc (diff) | |
download | nextcloud-server-c77998209f779dfccd86afeeafd43a7bbd886ff2.tar.gz nextcloud-server-c77998209f779dfccd86afeeafd43a7bbd886ff2.zip |
Port user menu to Vue
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'core/css/header.scss')
-rw-r--r-- | core/css/header.scss | 136 |
1 files changed, 0 insertions, 136 deletions
diff --git a/core/css/header.scss b/core/css/header.scss index 10cd463c8ca..9db8c183c8d 100644 --- a/core/css/header.scss +++ b/core/css/header.scss @@ -130,61 +130,6 @@ -webkit-overflow-scrolling: touch; @include header-menu-height(); } - - /* Use by the settings right menu */ - &.settings-menu > ul { - padding: 4px; - display: flex; - flex-direction: column; - gap: 2px; - li { - a { - border-radius: 6px; - display: inline-flex; - align-items: center; - height: $header-menu-entry-height; - color: var(--color-main-text); - padding: 10px 12px; - box-sizing: border-box; - white-space: nowrap; - position: relative; - width: 100%; - &:hover, - &:focus { - background-color: var(--color-background-hover); - } - &:active, - &.active { - background-color: var(--color-primary-light); - } - &:focus-visible { - box-shadow: inset 0 0 0 2px var(--color-primary); - outline: none; - } - span { - display: inline-block; - padding-bottom: 0; - color: var(--color-main-text); - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - max-width: 110px; - } - .icon-loading-small { - margin-right: 10px; - background-size: 16px 16px; - } - img, - svg { - opacity: .7; - margin-right: 10px; - height: 16px; - width: 16px; - filter: var(--background-invert-if-dark); - } - } - } - } } .logo { display: inline-flex; @@ -284,86 +229,6 @@ text-overflow: ellipsis; } -/* USER MENU -----------------------------------------------------------------*/ -#settings { - display: inline-block; - height: 100%; - cursor: pointer; - flex: 0 0 auto; - - /* User menu on the right */ - #expand { - opacity: 1; /* override icon opacity */ - margin-right: 12px; - - &:hover, - &:focus, - &:active { - color: var(--color-primary-text); - - #expandDisplayName, - .avatardiv{ - border-radius: 50%; - border: 2px solid var(--color-primary-text); - margin: -2px; - } - .avatardiv{ - background-color: var(--color-primary-text); - } - #expandDisplayName { - opacity: 1; - } - } - - /* Profile picture in header */ - .avatardiv { - cursor: pointer; - height: 32px; - width: 32px; - - img { - opacity: 1; - cursor: pointer; - } - /* do not show display name when profile picture is present */ - &.avatardiv-shown + #expandDisplayName { - display: none; - } - } - - #expandDisplayName { - padding: 8px; - opacity: .6; - cursor: pointer; - - /* full opacity for gear icon if active */ - #body-settings & { - opacity: 1; - } - } - - /* show triangle below user menu if active */ - #body-settings &:before { - content: ' '; - height: 0; - width: 0; - position: absolute; - pointer-events: none; - bottom: 2px; - z-index: 100; - display: block; - width: 10px; - height: 5px; - border-radius: 3px; - background-color: var(--color-primary-text); - } - } - - #expanddiv:after { - right: 22px; - } -} - /* Skip navigation links – show only on keyboard focus */ #skip-actions { position: absolute; @@ -379,7 +244,6 @@ } } - /* Empty content messages in the header e.g. notifications, contacts menu, … */ header #emptycontent, header .emptycontent { |