-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(admin): app selector now working again
- Loading branch information
1 parent
2383162
commit cbe23ac
Showing
6 changed files
with
119 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/admin/src/components/ui/AppSelector/app-selector-css.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import {html} from 'lit-element'; | ||
export default html`<style>:host .wrapper ul.apps .app{border-radius:var(--border-radius)}.gradient-main{background:linear-gradient(to bottom right, var(--color-main-alt, #b155ba), var(--color-main, var(--color-purple, #693a91)))}.gradient-orange{background:linear-gradient(to bottom right, #FF9B54, #C95A54)}.gradient-red{background:linear-gradient(to bottom right, #FF5554, #C92954)}.gradient-green{background:linear-gradient(to bottom right, #84D59A, #00BED0)}.gradient-blue{background:linear-gradient(to bottom right, #008CBA, #6146C8)}.gradient-white{background:linear-gradient(to bottom right, var(--color-main-soft), #cacadf)}.gradient-gold{background:linear-gradient(to bottom right, #f1e35f, #da9124)}:host .wrapper ul.apps .app zen-icon{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}:host{position:absolute;top:0;left:0;width:100%;height:100%}:root{--gradient-main: linear-gradient(to bottom right, var(--color-main-alt, #b155ba), var(--color-main, var(--color-purple, #693a91)));--gradient-orange: linear-gradient(to bottom right, #FF9B54, #C95A54);--gradient-red: linear-gradient(to bottom right, #FF5554, #C92954);--gradient-green: linear-gradient(to bottom right, #84D59A, #00BED0);--gradient-blue: linear-gradient(to bottom right, #008CBA, #6146C8);--gradient-white: linear-gradient(to bottom right, var(--color-main-soft), #cacadf);--gradient-gold: linear-gradient(to bottom right, #f1e35f, #da9124)}@keyframes fade-up{from{opacity:0;transform:translateY(2rem)}to{opacity:1;transform:none}}:host{position:fixed;background-color:var(--color-white);text-align:center;transition:all 0.35s;z-index:-1;opacity:0;transform:translateY(1rem)}:host zen-icon[type="cross"]{position:absolute;right:var(--size-small);top:var(--size-small);animation-delay:0.1s}:host h1{display:inline-block;margin-top:calc(2.5 * var(--size-tiny))}:host h1,:host zen-icon[type="cross"],:host zen-input,:host ul.apps li,:host span.not-found{opacity:0;animation-name:fade-up;animation-fill-mode:forwards;animation-duration:0.35s;animation-timing-function:ease-out}:host span.not-found{display:inline-block;animation-duration:0.2s;color:var(--color-grey-500)}:host .wrapper{max-width:60rem;margin:auto}:host .wrapper zen-input{margin-top:var(--size-small);margin-bottom:var(--size-main);animation-delay:0.12s}:host .wrapper ul.apps{display:grid;grid-template-columns:repeat(6, 1fr);grid-gap:var(--size-small);list-style:none;padding:0}:host .wrapper ul.apps a{width:100%;display:block}:host .wrapper ul.apps .app{display:block;position:relative}:host .wrapper ul.apps .app:before{display:block;content:'';padding-bottom:100%}:host .wrapper ul.apps .app zen-icon{width:60%;height:60%;transition:all calc(var(--transition-time) / 2)}:host .wrapper ul.apps .app:hover zen-icon{transform:translate(-50%, -50%) scale(1.2)}:host-context([open]){z-index:999;opacity:1;transform:none} | ||
export default html`<style>:host .wrapper ul.apps a small{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}:host{position:absolute;top:0;left:0;width:100%;height:100%}:host .wrapper ul.apps a{padding-top:var(--size-tiny);padding-bottom:var(--size-tiny)}:host .wrapper ul.apps a ui-app-icon{width:var(--size-main);height:var(--size-main)}@keyframes fade-up{from{opacity:0;transform:translateY(2rem)}to{opacity:1;transform:none}}:host{position:fixed;background-color:var(--color-white);text-align:center;transition:all 0.35s;z-index:-1;opacity:0;transform:translateY(1rem)}:host zen-icon[type="cross"]{position:absolute;right:var(--size-small);top:var(--size-small);animation-delay:0.1s;cursor:pointer}:host h1{display:inline-block;margin-top:calc(2.5 * var(--size-tiny))}:host h1,:host zen-icon[type="cross"],:host zen-input,:host ul.apps li,:host span.not-found{opacity:0;animation-name:fade-up;animation-fill-mode:forwards;animation-duration:0.35s;animation-timing-function:ease-out}:host span.not-found{display:inline-block;animation-duration:0.2s;color:var(--color-grey-500)}:host .wrapper{max-width:60rem;margin:auto}:host .wrapper zen-input{margin-top:var(--size-small);margin-bottom:var(--size-main);animation-delay:0.12s}:host .wrapper ul.apps{display:grid;grid-template-columns:repeat(6, 1fr);grid-gap:var(--size-small);list-style:none;padding:0}:host .wrapper ul.apps li{overflow:hidden}:host .wrapper ul.apps a{display:block;text-decoration:none}:host .wrapper ul.apps a ui-app-icon{transition:all calc(var(--transition-time) / 2)}:host .wrapper ul.apps a:hover ui-app-icon{transform:scale(1.1)}:host .wrapper ul.apps a small{display:block}:host-context([open]){z-index:999;opacity:1;transform:none} | ||
</style>`; |
176 changes: 88 additions & 88 deletions
176
packages/admin/src/components/ui/AppSelector/app-selector.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,105 +1,105 @@ | ||
@import 'zen-css/import'; | ||
@import 'zen-css/classes/gradients'; | ||
|
||
@keyframes fade-up { | ||
from { | ||
opacity: 0; | ||
transform: translateY(2rem); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: none; | ||
} | ||
from { | ||
opacity: 0; | ||
transform: translateY(2rem); | ||
} | ||
|
||
to { | ||
opacity: 1; | ||
transform: none; | ||
} | ||
} | ||
|
||
:host { | ||
@extend %cover; | ||
position: fixed; | ||
background-color: var(--color-white); | ||
text-align: center; | ||
transition: all 0.35s; | ||
|
||
// Closed | ||
z-index: -1; | ||
@extend %cover; | ||
position: fixed; | ||
background-color: var(--color-white); | ||
text-align: center; | ||
transition: all 0.35s; | ||
|
||
// Closed | ||
z-index: -1; | ||
opacity: 0; | ||
transform: translateY(1rem); | ||
|
||
zen-icon[type="cross"] { | ||
position: absolute; | ||
right: var(--size-small); | ||
top: var(--size-small); | ||
animation-delay: 0.1s; | ||
cursor: pointer; | ||
} | ||
|
||
h1 { | ||
display: inline-block; | ||
margin-top: calc(2.5 * var(--size-tiny)); | ||
} | ||
|
||
h1, | ||
zen-icon[type="cross"], | ||
zen-input, | ||
ul.apps li, | ||
span.not-found { | ||
opacity: 0; | ||
transform: translateY(1rem); | ||
|
||
zen-icon[type="cross"] { | ||
position: absolute; | ||
right: var(--size-small); | ||
top: var(--size-small); | ||
animation-delay: 0.1s; | ||
} | ||
|
||
h1 { | ||
display: inline-block; | ||
margin-top: calc(2.5 * var(--size-tiny)); | ||
animation-name: fade-up; | ||
animation-fill-mode: forwards; | ||
animation-duration: 0.35s; | ||
animation-timing-function: ease-out; | ||
} | ||
|
||
span.not-found { | ||
display: inline-block; | ||
animation-duration: 0.2s; | ||
color: var(--color-grey-500); | ||
} | ||
|
||
.wrapper { | ||
max-width: 60rem; | ||
margin: auto; | ||
|
||
zen-input { | ||
margin-top: var(--size-small); | ||
margin-bottom: var(--size-main); | ||
animation-delay: 0.12s; | ||
} | ||
|
||
h1, zen-icon[type="cross"], zen-input, ul.apps li, span.not-found { | ||
opacity: 0; | ||
animation-name: fade-up; | ||
animation-fill-mode: forwards; | ||
animation-duration: 0.35s; | ||
animation-timing-function: ease-out; | ||
} | ||
|
||
span.not-found { | ||
display: inline-block; | ||
animation-duration: 0.2s; | ||
color: var(--color-grey-500); | ||
} | ||
|
||
.wrapper { | ||
max-width: 60rem; | ||
margin: auto; | ||
|
||
zen-input { | ||
margin-top: var(--size-small); | ||
margin-bottom: var(--size-main); | ||
animation-delay: 0.12s; | ||
ul.apps { | ||
display: grid; | ||
grid-template-columns: repeat(6, 1fr); | ||
grid-gap: var(--size-small); | ||
list-style: none; | ||
padding: 0; | ||
|
||
li { | ||
overflow: hidden; | ||
} | ||
|
||
a { | ||
display: block; | ||
text-decoration: none; | ||
@extend %padding-v-tiny; | ||
|
||
ui-app-icon { | ||
@extend %size-main; | ||
transition: all calc(var(--transition-time) / 2); | ||
} | ||
|
||
ul.apps { | ||
display: grid; | ||
grid-template-columns: repeat(6, 1fr); | ||
grid-gap: var(--size-small); | ||
list-style: none; | ||
padding: 0; | ||
|
||
a { | ||
width: 100%; | ||
display: block; | ||
} | ||
.app { | ||
display: block; | ||
position: relative; | ||
@extend %rounded; | ||
|
||
&:before { | ||
display: block; | ||
content: ''; | ||
padding-bottom: 100%; | ||
} | ||
|
||
zen-icon { | ||
@extend %center; | ||
width: 60%; | ||
height: 60%; | ||
transition: all calc(var(--transition-time) / 2); | ||
} | ||
|
||
&:hover zen-icon { | ||
transform: translate(-50%, -50%) scale(1.2); | ||
} | ||
} | ||
&:hover ui-app-icon { | ||
transform: scale(1.1); | ||
} | ||
small { | ||
display: block; | ||
@extend %ellipsis; | ||
} | ||
} | ||
} | ||
|
||
} | ||
} | ||
|
||
:host-context([open]) { | ||
z-index: 999; | ||
opacity: 1; | ||
transform: none; | ||
z-index: 999; | ||
opacity: 1; | ||
transform: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters