mirror of
https://github.com/pyscript/pyscript.git
synced 2026-04-01 11:00:20 -04:00
Docked auto py-terminal (#1284)
This commit is contained in:
committed by
GitHub
parent
716254e655
commit
e10d055453
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user