summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-09-05 22:17:32 +0200
committerGitHub <noreply@github.com>2018-09-05 22:17:32 +0200
commit99edbac06cccb3386984bb9c6c396c44360f1644 (patch)
tree6ed742f015c14cb4b2061a8609503592882d48c3
parent0899f2cbc43b05005dc045db001c41e199192f67 (diff)
parent0c758dbe5b014715dd5adde625f5d3b4da3528cd (diff)
downloadnextcloud-server-99edbac06cccb3386984bb9c6c396c44360f1644.tar.gz
nextcloud-server-99edbac06cccb3386984bb9c6c396c44360f1644.zip
Merge pull request #11054 from nextcloud/fix-size-of-icons-in-menus-inside-apps-when-shown-as-images
Fix size of icons in menus inside apps when shown as images
-rw-r--r--core/css/apps.scss21
1 files changed, 21 insertions, 0 deletions
diff --git a/core/css/apps.scss b/core/css/apps.scss
index 3a56d72ecd1..913e445f5bf 100644
--- a/core/css/apps.scss
+++ b/core/css/apps.scss
@@ -1043,6 +1043,27 @@ $popovericon-size: 16px;
}
}
+/* "app-*" descendants use border-box sizing, so the height of the icon must be
+ * set to the height of the item (as well as its width to make it squared). */
+#content[class*='app-'] {
+ .bubble,
+ .app-navigation-entry-menu,
+ .popovermenu {
+ li {
+ > button,
+ > a,
+ > .menuitem {
+ /* DEPRECATED! old img in popover fallback
+ * TODO: to remove */
+ > img {
+ width: $popoveritem-height;
+ height: $popoveritem-height;
+ }
+ }
+ }
+ }
+}
+
/* CONTENT LIST ------------------------------------------------------------ */
.app-content-list {
width: 300px;