diff --git a/js/app/directives/iconpicker.js b/js/app/directives/iconpicker.js
index 0c885845..706b18ea 100644
--- a/js/app/directives/iconpicker.js
+++ b/js/app/directives/iconpicker.js
@@ -136,6 +136,7 @@
$('#iconPicker').dialog({
width: 800,
height: 380,
+ dialogClass: 'iconpicker-dialog',
close: function() {
$(this).dialog('destroy');
}
diff --git a/sass/app.scss b/sass/app.scss
index f064c217..3c1b511c 100644
--- a/sass/app.scss
+++ b/sass/app.scss
@@ -26,6 +26,7 @@
@import 'partials/popovermenu';
@import 'partials/tabs';
@import 'partials/pwgen';
+@import 'partials/icon-picker';
@import 'vaults';
@import 'credentials';
@import 'menu';
diff --git a/sass/credentials.scss b/sass/credentials.scss
index d5816e72..868589fd 100644
--- a/sass/credentials.scss
+++ b/sass/credentials.scss
@@ -674,29 +674,4 @@
color: rgb(0, 102, 255);
}
}
-}
-
-#iconPicker {
- .iconList {
- float: left;
- width: 60%;
- max-height: 310px;
- overflow: auto;
- .icon{
- img{
- cursor: pointer;
- }
- padding: 10px;
- cursor: pointer;
- float: left;
- }
- }
- .iconModifier {
- margin-left: 10px;
- float: right;
- width: calc(40% - 10px);
- }
- .iconSearch {
- width: 100%;
- }
-}
+}
\ No newline at end of file
diff --git a/sass/partials/icon-picker.scss b/sass/partials/icon-picker.scss
new file mode 100644
index 00000000..8ed9ac9b
--- /dev/null
+++ b/sass/partials/icon-picker.scss
@@ -0,0 +1,94 @@
+/**
+ * Nextcloud - passman
+ *
+ * @copyright Copyright (c) 2016, Felix NĂ¼sse (felix.nuesse@t-online.de)
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see