167 lines
3.5 KiB
CSS
167 lines
3.5 KiB
CSS
/* Author: Ward Truyen
|
|
* Version: 1.1.0
|
|
*/
|
|
|
|
.wterminal-background {
|
|
z-index: 9995;
|
|
position: fixed;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0px;
|
|
left: 0px;
|
|
color: black;
|
|
line-height: normal;
|
|
visibility: hidden;
|
|
background: unset;
|
|
transition: all 0.2s ease-out 0s;
|
|
}
|
|
|
|
.wterminal-background .wterminal-container{
|
|
position: relative;
|
|
margin: 0px auto;
|
|
width: 70%;
|
|
border: 1px solid #888;
|
|
border-top: 0px solid grey;
|
|
border-bottom-left-radius: 4px;
|
|
border-bottom-right-radius: 4px;
|
|
padding: 0px 4px 4px 4px;
|
|
background: linear-gradient(24deg, rgba(209,211,196,1) 20%, rgba(221,221,221,1) 50%, rgba(221,221,221,1) 70%, rgba(190,199,207,1) 90%);
|
|
box-shadow: 3px 3px 3px black;
|
|
text-align: left;
|
|
margin-top: -50%;
|
|
}
|
|
|
|
.wterminal-container pre {
|
|
color: unset;
|
|
border: 2px solid #a0a0a0d0;
|
|
min-height: 20em;
|
|
max-height: 20em;
|
|
margin: 0px 0px 2px;
|
|
padding: 2px 4px 6px 4px;
|
|
background-color: #F0F0F0;
|
|
overflow-y: scroll;
|
|
font-family: Monospace, Incosolata, Courier;
|
|
font-size: 12px;
|
|
line-height: 1.08;
|
|
width: unset;
|
|
}
|
|
|
|
.wterminal-output u{
|
|
/* adds a nice fat blue underline to titles */
|
|
text-decoration-color: #8cb4ff;
|
|
text-decoration-thickness: .15rem;
|
|
text-underline-offset: .1em;
|
|
}
|
|
|
|
.wterminal-input {
|
|
padding: 1px 2px;
|
|
margin: 0px;
|
|
background-color: #F0F0F0;
|
|
color: black;
|
|
border: 1px solid #ccc;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.wterminal-input:hover{
|
|
background-color: #DDD;
|
|
}
|
|
|
|
.wterminal-container input[type="submit"]:hover,
|
|
.wterminal-container button:hover{
|
|
background-color: #DDD;
|
|
cursor: pointer;
|
|
}
|
|
.wterminal-container input, .wterminal-container label{
|
|
line-height: unset;
|
|
display: unset;
|
|
/* width: unset; */
|
|
height: unset;
|
|
margin: 0;
|
|
margin-left: 2px;
|
|
}
|
|
.wterminal-container input[type="submit"],
|
|
.wterminal-container button{
|
|
width: unset;
|
|
height: unset;
|
|
margin: 0;
|
|
margin-left: 2px;
|
|
padding: 1px 4px;
|
|
color: black;
|
|
background-color: #eee;
|
|
border: 1px solid #aaa;
|
|
border-radius: 3px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.wterminal-background.wterminal-visible{
|
|
background-color: #0000008F;
|
|
backdrop-filter: blur(4px);
|
|
visibility: visible;
|
|
transition: background-color .1s ease-out 0s, backdrop-filter .1s ease-out 0s;
|
|
}
|
|
|
|
.wterminal-visible .wterminal-container{
|
|
margin-top: 0px;
|
|
transition: margin-top .2s ease-out 0s;
|
|
}
|
|
|
|
.wterminal-container form{
|
|
margin-left: 2px;
|
|
}
|
|
|
|
/* Width */
|
|
@media screen and (max-width: 480px) {
|
|
.wterminal-input{
|
|
width: 40%;
|
|
}
|
|
}
|
|
@media screen and (min-width: 480px) and (max-width: 720px) {
|
|
.wterminal-input{
|
|
width: 50%;
|
|
}
|
|
}
|
|
@media screen and (min-width: 720px) and (max-width: 1080px) {
|
|
.wterminal-input{
|
|
width: 60%;
|
|
}
|
|
}
|
|
@media screen and (min-width: 1080px) {
|
|
.wterminal-input{
|
|
width: 70%;
|
|
}
|
|
}
|
|
|
|
/* Height */
|
|
@media screen and (min-height: 512px) and (max-height: 1024px) {
|
|
.wterminal-background .wterminal-container .wterminal-output{
|
|
min-height: 32em;
|
|
max-height: 32em;
|
|
}
|
|
}
|
|
@media screen and (min-height: 1024px) and (max-height: 1536px) {
|
|
.wterminal-background .wterminal-container .wterminal-output{
|
|
min-height: 48em;
|
|
max-height: 48em;
|
|
}
|
|
}
|
|
@media screen and (min-height: 1536px) {
|
|
.wterminal-background .wterminal-container .wterminal-output{
|
|
min-height: 64em;
|
|
max-height: 64em;
|
|
}
|
|
}
|
|
|
|
.theme-dark .wterminal-background .wterminal-container{
|
|
color: #F0F0F0;
|
|
background: #303030;
|
|
}
|
|
|
|
.theme-dark .wterminal-container pre,
|
|
.theme-dark .wterminal-container button,
|
|
.theme-dark .wterminal-container input
|
|
{
|
|
background-color: black;
|
|
/* color: #F0F0F0; */
|
|
color: white;
|
|
}
|