summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-20 20:46:04 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 23:17:31 +0200
commit31c4e2830ade156def01186da564b532ca96b5e9 (patch)
treec294422a52bbe093150c31335ede84e3dd258c89
parent7be636f26a4cd2857035d7d07cdf111c442566b5 (diff)
🧹 Cleanup css
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
-rw-r--r--css/app.css26
-rw-r--r--templates/part.content.php10
2 files changed, 13 insertions, 23 deletions
diff --git a/css/app.css b/css/app.css
index 8d05e36e2..6e0124139 100644
--- a/css/app.css
+++ b/css/app.css
@@ -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;
}
diff --git a/templates/part.content.php b/templates/part.content.php
index cf6c71970..6a93c537f 100644
--- a/templates/part.content.php
+++ b/templates/part.content.php
@@ -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>