styling
This commit is contained in:
24
ui/site/components/AppWindow.js
Normal file
24
ui/site/components/AppWindow.js
Normal file
@@ -0,0 +1,24 @@
|
||||
css(`
|
||||
app-window {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: var(--main);
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: none;
|
||||
}
|
||||
`)
|
||||
|
||||
export default class AppWindow extends HTMLElement {
|
||||
|
||||
open(app) {
|
||||
this.style.display = "block"
|
||||
}
|
||||
|
||||
close() {
|
||||
this.style.display = "none"
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define("app-window", AppWindow)
|
||||
Reference in New Issue
Block a user