Docked auto py-terminal (#1284)

This commit is contained in:
Andrea Giammarchi
2023-03-20 11:22:16 +01:00
committed by GitHub
parent 716254e655
commit e10d055453
5 changed files with 99 additions and 23 deletions

View File

@@ -330,3 +330,20 @@ textarea {
.py-terminal-hidden {
display: none;
}
/* avoid changing the page layout when the terminal is docked and hidden */
html:has(py-terminal[docked]:not(py-terminal[docked].py-terminal-hidden)) {
padding-bottom: 40vh;
}
py-terminal[docked] {
position: fixed;
bottom: 0;
width: 100vw;
max-height: 40vh;
overflow: auto;
}
py-terminal[docked] .py-terminal {
margin: 0;
}