🧹 Cleanup css

Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
This commit is contained in:
Marco Nassabain 2021-03-20 20:46:04 +01:00 committed by Sean Molenaar
parent 7be636f26a
commit 31c4e2830a
2 changed files with 13 additions and 23 deletions

View File

@ -51,19 +51,6 @@
right: 0.5em;
}
.dropbtn {
background-color: #4CAF50;
color: white;
padding: 16px;
font-size: 16px;
border: none;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
position: absolute;
background-color: #f1f1f1;
@ -91,10 +78,6 @@
background-color: #ddd;
}
.dropdown:hover .dropbtn {
background-color: #3e8e41;
}
.compact-dropdown{
z-index: 1;
}
@ -116,6 +99,13 @@
font-weight: bold;
}
.right {
.dropdown-search-message {
margin-left: 2em;
font-size: 0.85em;
}
.share-status-icon {
margin-top: 1.1em;
margin-right: 1em;
float: right;
}

View File

@ -91,9 +91,9 @@
</li>
<li
class="util dropdown"
class="util"
news-stop-propagation>
<button class="icon-share share dropbtn"
<button class="icon-share share"
title="<?php p($l->t('Share')) ?>"
ng-click="Content.openDropdown(item.id)">
</button>
@ -135,11 +135,11 @@
</fieldset>
</form>
<div style="margin-left: 2em; font-size: 0.85em;"
<div class="dropdown-search-message"
ng-if="Share.userList.length === 0 && nameQuery && !App.loading.isLoading('user') && !Share.searchUsersFailed">
<?php p($l->t('No users found')) ?>
</div>
<div style="margin-left: 2em; font-size: 0.85em;"
<div class="dropdown-search-message"
ng-if="Share.userList.length === 0 && Share.searchUsersFailed">
<?php p($l->t('Error while searching for users')) ?>
</div>
@ -148,7 +148,7 @@
class="icon-category-installed pr-3"
ng-click="Share.shareItem(item.id, user.value.shareWith)">
{{ user.label }}
<span class="right" style="margin-top: 1.1em; margin-right: 1em"
<span class="share-status-icon"
ng-class="{'icon-loading-small': Share.isLoading(user.value.shareWith), 'icon-checkmark': Share.isStatus(item.id, user.value.shareWith, true), 'icon-close': Share.isStatus(item.id, user.value.shareWith, false)}">
</span>
</a>