Skip to content

Commit

Permalink
new webtools gui
Browse files Browse the repository at this point in the history
  • Loading branch information
penguinify committed Jan 1, 2024
1 parent fbe374f commit 9fcc4d1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
2 changes: 2 additions & 0 deletions src/modules/moduleapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export function new_iframe(UI: UIManager, section: HTMLElement, link: string, id
about:blank`,
})


var dont_push = false

iframe.addEventListener('load', () => {
Expand Down Expand Up @@ -98,6 +99,7 @@ export function new_iframe(UI: UIManager, section: HTMLElement, link: string, id
window_blank.document.body.appendChild(iframe_blank)
}


return iframe
}

Expand Down
22 changes: 7 additions & 15 deletions src/modules/modules/webtools/console.ts.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,11 @@
border-radius: 15px;
height: 70%;
align-items: end;
justify-content: center;
text-align: left;
margin-bottom: 2%;
}

.cac__console__topbar {
width: 100%;
height: 8%;
background-color: @theme;
border-radius: 15px 15px 0 0;
justify-self: flex-start;
display: flex;
align-items: center;
justify-content: space-between;
}

.cac__console__output {
width: 100%;
height: 92%;
Expand Down Expand Up @@ -82,16 +72,17 @@
}

.cac__console__input {
width: 100%;
width: 96%;
height: 9%;
margin-bottom: 1%;
background-color: @secondary6;
border-radius: 15px;
border: none;
margin-right: 2%;
outline: none;
color: @text;
font-size: 1vw;
padding-left: 2%;
align-self: flex-end;
font-family: 'Roboto Mono', monospace !important;
resize: none;
overflow: auto;
Expand All @@ -106,16 +97,17 @@
align-self: flex-start;
justify-content: space-between;
display: flex;
width: 95%;
width: 96%;
margin-left: 2%;
margin-top: 1%;
border-radius: 10px;
background-color: @theme;
height: 7%;
flex-direction: row;
}

.cac__console__menubar__item {
height: 100%;
background-color: @theme;
border-radius: 10px;
display: flex;
align-items: center;
Expand Down
4 changes: 4 additions & 0 deletions src/static/iframe.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
z-index: 10000000000000000000000000000000000000000000000000000000000000000000000000000000000;
}

.cac__iframe__detached {
position: fixed;
}

.cac__iframe__svg {
background-color: transparent;
fill: @text;
Expand Down

0 comments on commit 9fcc4d1

Please sign in to comment.