summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-09-28 11:55:25 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-09-28 11:55:25 +0200
commit7fb329294958beab28a2cbd8370d5733de8ec4d0 (patch)
treeb164a49cd8babf6212791e2e5a51838c5331f796
parentc1795b0611875b309ad099e285fdfd54dad91804 (diff)
downloadnextcloud-server-7fb329294958beab28a2cbd8370d5733de8ec4d0.tar.gz
nextcloud-server-7fb329294958beab28a2cbd8370d5733de8ec4d0.zip
Popover to css guidelines
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r--settings/css/settings.scss52
-rw-r--r--settings/js/users/users.js3
-rw-r--r--settings/templates/users/part.userlist.php2
3 files changed, 19 insertions, 38 deletions
diff --git a/settings/css/settings.scss b/settings/css/settings.scss
index 1ba3c76bfed..9ef7052e95e 100644
--- a/settings/css/settings.scss
+++ b/settings/css/settings.scss
@@ -576,42 +576,6 @@ span.usersLastLoginTooltip {
.groupsListContainer.hidden {
display: none;
}
- .bubble {
- z-index: 1;
- right: -6px;
- top: auto;
- &:after {
- right: 5px;
- }
- }
- .popovermenu {
- a.menuitem {
- height: 20px;
- margin: 0;
- padding: 0;
- line-height: initial;
- }
- margin-top: 4px;
- border-top-right-radius: 3px;
- right: 3px;
- opacity: 0;
- display: block;
- visibility: hidden;
- transition: opacity 0.1s, visibility 0.1s;
- }
- tr.active .popovermenu {
- opacity: 1;
- visibility: visible;
- }
- .popovermenu > ul.userActionsMenu {
- right: 15px;
- a {
- margin: 5px 0;
- span:last-child {
- margin-left: 5px;
- }
- }
- }
}
/* because of accessibility the name cell is <th> - therefore we enforce the black color */
@@ -646,10 +610,24 @@ tr:hover > td {
td.userActions {
width: 25px;
text-align: center;
+ position: relative;
.action {
position: relative;
top: 3px;
}
+ .toggleUserActions {
+ border: none;
+ background-color: rgba(0, 0, 0, 0);
+ width: 34px;
+ height: 34px;
+ margin: 0;
+ opacity: 0.5;
+ &:hover,
+ &:focus {
+ background-color: transparent;
+ opacity: 1;
+ }
+ }
}
tr.active td.userActions .action {
@@ -694,7 +672,7 @@ select {
&.quota-user {
width: 10em;
height: 34px;
- z-index: 150;
+ z-index: 50;
position: relative;
}
+ progress.quota-user-progress {
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index f0ba433e862..4a4faf13ec7 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -955,9 +955,12 @@ $(document).ready(function () {
if ($tr.is('.active')) {
$tr.removeClass('active');
+ menudiv.removeClass('open');
return;
}
$('#userlist tr.active').removeClass('active');
+ $('#userlist .popovermenu').removeClass('open');
+ menudiv.addClass('open');
menudiv.find('.action-togglestate').empty();
if ($tr.data('userEnabled')) {
$('.action-togglestate', $td).html('<span class="icon icon-close"></span><span>' + t('settings', 'Disable') + '</span>');
diff --git a/settings/templates/users/part.userlist.php b/settings/templates/users/part.userlist.php
index e626a0c537d..146e35d11ac 100644
--- a/settings/templates/users/part.userlist.php
+++ b/settings/templates/users/part.userlist.php
@@ -65,7 +65,7 @@
<td class="userBackend"></td>
<td class="lastLogin"></td>
<td class="userActions"><span></span>
- <div class="popovermenu bubble open menu">
+ <div class="popovermenu bubble menu">
<ul class="userActionsMenu">
<li>
<a href="#" class="menuitem action-togglestate permanent" data-action="togglestate"></a>