mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-30 23:36:34 +08:00
updated icon-picker style
Signed-off-by: fnuesse <felix.nuesse@t-online.de>
This commit is contained in:
parent
0751fbf2c6
commit
614556fb08
5 changed files with 105 additions and 29 deletions
|
|
@ -136,6 +136,7 @@
|
|||
$('#iconPicker').dialog({
|
||||
width: 800,
|
||||
height: 380,
|
||||
dialogClass: 'iconpicker-dialog',
|
||||
close: function() {
|
||||
$(this).dialog('destroy');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
@import 'partials/popovermenu';
|
||||
@import 'partials/tabs';
|
||||
@import 'partials/pwgen';
|
||||
@import 'partials/icon-picker';
|
||||
@import 'vaults';
|
||||
@import 'credentials';
|
||||
@import 'menu';
|
||||
|
|
|
|||
|
|
@ -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%;
|
||||
}
|
||||
}
|
||||
}
|
||||
94
sass/partials/icon-picker.scss
Normal file
94
sass/partials/icon-picker.scss
Normal file
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
.iconpicker-dialog{
|
||||
border-radius: var(--border-radius-large);
|
||||
box-shadow: 0 0 30px var(--color-box-shadow);
|
||||
.ui-dialog{
|
||||
border-radius: var(--border-radius-large);
|
||||
box-shadow: 0 0 30px var(--color-box-shadow);
|
||||
}
|
||||
.ui-widget-header {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.ui-icon-closethick {
|
||||
background-position: inherit;
|
||||
}
|
||||
|
||||
.ui-button .ui-icon {
|
||||
background-image: var(--icon-close-000);
|
||||
}
|
||||
|
||||
.ui-button-icon {border: none !important;}
|
||||
.ui-icon {border: none !important;}
|
||||
.ui-icon-closethick {border: none !important;}
|
||||
.ui-corner-all {border: none !important;}
|
||||
.ui-state-default {background: white !important;}
|
||||
.ui-button {background: white !important;}
|
||||
|
||||
}
|
||||
|
||||
#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%;
|
||||
}
|
||||
|
||||
.arrow {
|
||||
cursor: pointer;
|
||||
padding-left: 10px;
|
||||
width: 10px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.collapsible {
|
||||
cursor: pointer;
|
||||
padding-left: 10px;
|
||||
text-align: left;
|
||||
font-size: 15px;
|
||||
}
|
||||
.content {
|
||||
display: none;
|
||||
}
|
||||
.content_show {
|
||||
display: block;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -2,9 +2,14 @@
|
|||
<div style="display: none" id="iconPicker" title="{{ 'pick.icon' | translate }}">
|
||||
<div class="iconList">
|
||||
<div ng-repeat="(groupName, icons) in iconGroups">
|
||||
<h2 style="clear: both" id="{{groupName}}">{{groupName}}</h2>
|
||||
<div class="icon" ng-repeat="icon in icons" ng-click="selectIcon(icon)">
|
||||
<img ng-src="{{icon.url}}" height="32">
|
||||
<div ng-click="isCollapsed = !isCollapsed">
|
||||
<div class="icon-triangle-s arrow" ng-class="{ 'icon-triangle-e': isCollapsed , 'icon-triangle-s': !isCollapsed }"></div>
|
||||
<div class="collapsible" id="{{groupName}}">{{groupName}}</div>
|
||||
</div>
|
||||
<div ng-class="{ 'content': isCollapsed , 'content_show': !isCollapsed }">
|
||||
<div class="icon" ng-repeat="icon in icons" ng-click="selectIcon(icon)">
|
||||
<img ng-src="{{icon.url}}" height="32">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue