Merge pull request #627 from nextcloud/white-app-menu
Change app menu to white background with dark icons
This commit is contained in:
commit
3728479beb
|
@ -151,7 +151,7 @@
|
||||||
max-height: 85%;
|
max-height: 85%;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
background-color: rgba(0, 0, 0, .97);
|
background-color: rgba(255, 255, 255, .97);
|
||||||
box-shadow: 0 1px 10px rgba(50, 50, 50, .7);
|
box-shadow: 0 1px 10px rgba(50, 50, 50, .7);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
border-top-left-radius: 0;
|
border-top-left-radius: 0;
|
||||||
|
@ -171,7 +171,7 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
border-color: rgba(0, 0, 0, 0);
|
border-color: rgba(0, 0, 0, 0);
|
||||||
border-bottom-color: rgba(0, 0, 0, .97);
|
border-bottom-color: rgba(255, 255, 255, .97);
|
||||||
border-width: 10px;
|
border-width: 10px;
|
||||||
margin-left: -10px;
|
margin-left: -10px;
|
||||||
}
|
}
|
||||||
|
@ -204,25 +204,31 @@
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
width: 80px;
|
width: 80px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #fff;
|
color: #000;
|
||||||
white-space:nowrap;
|
white-space:nowrap;
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
text-overflow:ellipsis;
|
text-overflow:ellipsis;
|
||||||
}
|
}
|
||||||
/* icon opacity and hover effect */
|
/* icon opacity and hover effect */
|
||||||
#navigation a img,
|
#navigation a svg,
|
||||||
#navigation a span {
|
#navigation a span {
|
||||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
|
||||||
opacity: .7;
|
opacity: .5;
|
||||||
}
|
}
|
||||||
#navigation a:hover img,
|
#navigation a:hover svg,
|
||||||
#navigation a:focus img,
|
#navigation a:focus svg,
|
||||||
#navigation a:hover span,
|
#navigation a:hover span,
|
||||||
#navigation a:focus span,
|
#navigation a:focus span,
|
||||||
#navigation a.active img,
|
#navigation a.active svg,
|
||||||
#navigation a.active span {
|
#navigation a.active span,
|
||||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
|
#apps-management a:hover svg,
|
||||||
opacity: 1;
|
#apps-management a:focus svg,
|
||||||
|
#apps-management a.active svg,
|
||||||
|
#apps-management a:hover span,
|
||||||
|
#apps-management a:focus span,
|
||||||
|
#apps-management a.active span {
|
||||||
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
|
||||||
|
opacity: .75;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navigation .app-icon {
|
#navigation .app-icon {
|
||||||
|
@ -234,12 +240,15 @@
|
||||||
|
|
||||||
/* Apps management */
|
/* Apps management */
|
||||||
#apps-management {
|
#apps-management {
|
||||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
|
|
||||||
opacity: .6;
|
|
||||||
min-height: initial;
|
min-height: initial;
|
||||||
height: initial;
|
height: initial;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
#apps-management a svg,
|
||||||
|
#apps-management a span {
|
||||||
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
|
||||||
|
opacity: .3;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* loading feedback for apps */
|
/* loading feedback for apps */
|
||||||
|
@ -252,8 +261,8 @@
|
||||||
height: 32px;
|
height: 32px;
|
||||||
}
|
}
|
||||||
#navigation .app-loading .app-icon {
|
#navigation .app-loading .app-icon {
|
||||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=10)";
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
|
||||||
opacity: .1;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#apps {
|
#apps {
|
||||||
|
@ -351,8 +360,8 @@
|
||||||
height: 40px;
|
height: 40px;
|
||||||
color: #000;
|
color: #000;
|
||||||
padding: 4px 12px 0;
|
padding: 4px 12px 0;
|
||||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
|
||||||
opacity: .7;
|
opacity: .5;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
#expanddiv a img {
|
#expanddiv a img {
|
||||||
|
@ -363,8 +372,8 @@
|
||||||
#expanddiv a:focus,
|
#expanddiv a:focus,
|
||||||
#expanddiv a:active,
|
#expanddiv a:active,
|
||||||
#expanddiv a.active {
|
#expanddiv a.active {
|
||||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
|
||||||
opacity: 1;
|
opacity: .75;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* do not show display name when profile picture is present */
|
/* do not show display name when profile picture is present */
|
||||||
|
|
|
@ -113,7 +113,10 @@
|
||||||
<li data-id="<?php p($entry['id']); ?>">
|
<li data-id="<?php p($entry['id']); ?>">
|
||||||
<a href="<?php print_unescaped($entry['href']); ?>" tabindex="3"
|
<a href="<?php print_unescaped($entry['href']); ?>" tabindex="3"
|
||||||
<?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
|
<?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
|
||||||
<img class="app-icon" alt="" src="<?php print_unescaped($entry['icon']); ?>">
|
<svg width="32" height="32" viewBox="0 0 32 32">
|
||||||
|
<defs><filter id="invert"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0" /></filter></defs>
|
||||||
|
<image x="0" y="0" width="32" height="32" preserveAspectRatio="true" filter="url(#invert)" xlink:href="<?php print_unescaped($entry['icon']); ?>" class="app-icon"/>
|
||||||
|
</svg>
|
||||||
<div class="icon-loading-dark" style="display:none;"></div>
|
<div class="icon-loading-dark" style="display:none;"></div>
|
||||||
<span>
|
<span>
|
||||||
<?php p($entry['name']); ?>
|
<?php p($entry['name']); ?>
|
||||||
|
@ -128,7 +131,10 @@
|
||||||
<li id="apps-management">
|
<li id="apps-management">
|
||||||
<a href="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('settings.AppSettings.viewApps')); ?>" tabindex="4"
|
<a href="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('settings.AppSettings.viewApps')); ?>" tabindex="4"
|
||||||
<?php if( $_['appsmanagement_active'] ): ?> class="active"<?php endif; ?>>
|
<?php if( $_['appsmanagement_active'] ): ?> class="active"<?php endif; ?>>
|
||||||
<img class="app-icon" alt="" src="<?php print_unescaped(image_path('settings', 'apps.svg')); ?>">
|
<svg width="32" height="32" viewBox="0 0 32 32" class="app-icon">
|
||||||
|
<defs><filter id="invert"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0" /></filter></defs>
|
||||||
|
<image x="0" y="0" width="32" height="32" preserveAspectRatio="true" filter="url(#invert)" xlink:href="<?php print_unescaped(image_path('settings', 'apps.svg')); ?>"/>
|
||||||
|
</svg>
|
||||||
<div class="icon-loading-dark" style="display:none;"></div>
|
<div class="icon-loading-dark" style="display:none;"></div>
|
||||||
<span>
|
<span>
|
||||||
<?php p($l->t('Apps')); ?>
|
<?php p($l->t('Apps')); ?>
|
||||||
|
|
Loading…
Reference in New Issue