chg: [layout:icon] Added icon effect
parent
9dc27f4cc8
commit
7cfc23ffba
|
@ -1,7 +1,9 @@
|
|||
<div class="container-fluid">
|
||||
<div class="left-navbar">
|
||||
<a class="navbar-brand d-sm-block d-none" href="<?= $baseurl ?>">
|
||||
<?= $this->Html->image('cerebrate-icon.svg', ['alt' => 'Cerebrate', 'height' => 50]) ?>
|
||||
<div class="composed-app-icon-container">
|
||||
<span class="app-icon w-100 h-100" title="<?= __('Cerebrate') ?>"></span>
|
||||
</div>
|
||||
</a>
|
||||
<button class="navbar-toggler d-sm-none" type="button" data-toggle="collapse" data-target="#app-sidebar" aria-controls="app-sidebar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
|
|
|
@ -479,3 +479,38 @@ header.navbar-light.top-navbar .header-breadcrumb .header-breadcrumb-item > a:ho
|
|||
filter: invert(0) drop-shadow(0px 0px 3px #000);
|
||||
}
|
||||
|
||||
.composed-app-icon-container {
|
||||
height: 50px;
|
||||
width: 51px;
|
||||
position: relative;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.navbar-light .composed-app-icon-container > .app-icon {
|
||||
background-color: black;
|
||||
}
|
||||
.navbar-dark .composed-app-icon-container > .app-icon {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.composed-app-icon-container > .app-icon {
|
||||
display: inline-block;
|
||||
mask-image: url(/img/icon-composition/sheet-all.svg), url(/img/icon-composition/z.svg);
|
||||
mask-position: 0 0, 2.4px 26px;
|
||||
mask-repeat: no-repeat;
|
||||
mask-size: contain, cover;
|
||||
mask-composite: source-out;
|
||||
-webkit-mask-image: url(/img/icon-composition/sheet-all.svg), url(/img/icon-composition/z.svg);
|
||||
-webkit-mask-position: 0 0, 2.4px 26px;
|
||||
-webkit-mask-repeat: no-repeat;
|
||||
-webkit-mask-size: contain, cover;
|
||||
-webkit-mask-composite: source-out;
|
||||
transition-timing-function: ease-out;
|
||||
transition-duration: 0.2s;
|
||||
transition-property: -webkit-mask-position;
|
||||
}
|
||||
|
||||
.composed-app-icon-container > .app-icon:hover {
|
||||
mask-position: 0 0, 2.4px 23.5px;
|
||||
-webkit-mask-position: 0 0, 2.4px 23.5px;
|
||||
}
|
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 127 KiB |
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 145 KiB |
Loading…
Reference in New Issue