[mod] accordion
This commit is contained in:
parent
65703442de
commit
a005b42424
3 changed files with 44 additions and 23 deletions
|
@ -1,4 +1,5 @@
|
||||||
@import url("../codicon@0.0.40/codicon.css");
|
@import url("../codicon@0.0.40/codicon.css");
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
color-scheme: light dark;
|
color-scheme: light dark;
|
||||||
}
|
}
|
||||||
|
@ -6,12 +7,14 @@
|
||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: #e4e4e4;
|
background: #e4e4e4;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-wrap {
|
.page-wrap {
|
||||||
background: white;
|
background: white;
|
||||||
height: calc(100vh - 10px);
|
height: calc(100vh - 10px);
|
||||||
|
@ -23,28 +26,45 @@ body {
|
||||||
gap: 1px;
|
gap: 1px;
|
||||||
|
|
||||||
|
|
||||||
.navbar * {
|
.navbar * {
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
details {
|
||||||
|
padding:2px;
|
||||||
|
padding-left: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open] {
|
||||||
|
flex-grow: 1;
|
||||||
|
overflow:hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
summary {
|
||||||
|
/* class: bg-info; */
|
||||||
|
--bs-bg-opacity: 1;
|
||||||
|
background-color: rgba(var(--bs-info-rgb), var(--bs-bg-opacity)) !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Set editor dimensions */
|
/* Set editor dimensions */
|
||||||
#editor {
|
#editor {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height:75cqh;
|
height: 75cqh;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Stretch editor to fit inside its containing div */
|
/* Stretch editor to fit inside its containing div */
|
||||||
.cm-editor {
|
.cm-editor {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
grid-template-columns: 100%;
|
grid-template-columns: 100%;
|
||||||
grid-template-rows: auto;
|
grid-template-rows: auto;
|
||||||
> * {
|
|
||||||
|
>* {
|
||||||
grid-column: 1 / -1 !important;
|
grid-column: 1 / -1 !important;
|
||||||
grid-row: auto !important;
|
grid-row: auto !important;
|
||||||
}
|
}
|
||||||
|
@ -59,21 +79,21 @@ body {
|
||||||
.page-sidebar {
|
.page-sidebar {
|
||||||
grid-column: 1 / 2;
|
grid-column: 1 / 2;
|
||||||
grid-row: 2 / 4;
|
grid-row: 2 / 4;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-nav {
|
.page-nav {
|
||||||
grid-column: 2 / 3;
|
grid-column: 2 / 3;
|
||||||
background: red;
|
background: red;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-main {
|
.page-main {
|
||||||
grid-column: 2 / 3;
|
grid-column: 2 / 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-footer {
|
.page-footer {
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
background: #ffecb3;
|
background: #ffecb3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -98,8 +98,8 @@
|
||||||
|
|
||||||
<aside class="page-sidebar">
|
<aside class="page-sidebar">
|
||||||
|
|
||||||
<details id="workspacePanel" open="open" style="padding:5px;">
|
<details id="workspacePanel" open="open" >
|
||||||
<summary class="bg-info">Workspace <b>0</b></summary>
|
<summary class='bg-info'>Workspace <b>0</b></summary>
|
||||||
<select id="load">
|
<select id="load">
|
||||||
<option selected value="">load..</option>
|
<option selected value="">load..</option>
|
||||||
<optgroup label="XQuery3">
|
<optgroup label="XQuery3">
|
||||||
|
@ -130,13 +130,13 @@
|
||||||
</ul>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details id="symPanel" style="padding:5px;">
|
<details id="symPanel">
|
||||||
<summary class="bg-info">OutLine <b>0</b></summary>
|
<summary >OutLine <b>0</b></summary>
|
||||||
<json-list id="symList" style="display:block; overflow:scroll; height: 10em;"></json-list>
|
<json-list id="symList" ></json-list>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details id="msgPanel" style="padding:5px;">
|
<details id="msgPanel" >
|
||||||
<summary class="bg-info">Messages <b>0</b></summary>
|
<summary >Messages <b>0</b></summary>
|
||||||
<div id="msg">(msgs)<i class='codicon codicon-symbol-method'></i></div>
|
<div id="msg">(msgs)<i class='codicon codicon-symbol-method'></i></div>
|
||||||
</details>
|
</details>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
|
@ -34,6 +34,7 @@ class ListComponent extends HTMLElement {
|
||||||
/* Render the list items #data */
|
/* Render the list items #data */
|
||||||
render() {
|
render() {
|
||||||
const list = document.createElement('ul');
|
const list = document.createElement('ul');
|
||||||
|
list.style="max-height:80cqh;overflow: scroll;";
|
||||||
const shad=this.#shadow;
|
const shad=this.#shadow;
|
||||||
this.#data.forEach((item, index) => {
|
this.#data.forEach((item, index) => {
|
||||||
const listItem = document.createElement('li');
|
const listItem = document.createElement('li');
|
||||||
|
|
Loading…
Add table
Reference in a new issue