inputhelper schöner gemacht

This commit is contained in:
Luke
2021-04-21 17:06:51 +00:00
parent f27f441123
commit 21dc2545b8

View File

@@ -1,122 +1,138 @@
html { html {
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
user-select: none; user-select: none;
} }
*, *::before, *::after { *, *::before, *::after {
-webkit-box-sizing: inherit; -webkit-box-sizing: inherit;
box-sizing: inherit; box-sizing: inherit;
} }
body { body {
display: -webkit-box; display: -webkit-box;
display: -ms-flexbox; display: -ms-flexbox;
display: flex; display: flex;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-box-direction: normal; -webkit-box-direction: normal;
-ms-flex-direction: column; -ms-flex-direction: column;
flex-direction: column; flex-direction: column;
-webkit-box-pack: center; -webkit-box-pack: center;
-ms-flex-pack: center; -ms-flex-pack: center;
justify-content: center; justify-content: center;
height: 100vh; height: 100vh;
width: -webkit-fit-content; width: -webkit-fit-content;
width: -moz-fit-content; width: -moz-fit-content;
width: fit-content; width: fit-content;
margin: 0 auto; margin: 0 auto;
padding: 1em .5em; padding: 1em .5em;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-weight: 400; font-weight: 400;
color: #FFF; color: #FFF;
} }
main { main {
height: auto; height: auto;
position: relative; max-height: 60vh;
min-width: 50ch; position: relative;
max-width: 35vw; min-width: 45ch;
padding: 1em; max-width: 30vw;
border-radius: .25em; padding: 1em;
font-size: 1em; border-radius: .25em;
line-height: 1.25; font-size: 1em;
background-color: rgba(0, 0, 0, 0.5); line-height: 1.25;
background-color: rgba(0, 0, 0, 0.5);
} }
main a#close { main a#close {
position: absolute; position: absolute;
right: 1em; right: 1em;
top: 1em; top: 1em;
height: 1em; height: 1em;
width: 1em; width: 1em;
opacity: 0.25; opacity: 0.25;
}
main a#close:hover {
opacity: 1;
} }
main a#close:hover { main a#close:before, main a#close:after {
opacity: 1; content: ' ';
} position: absolute;
left: .5em;
main a#close:before, main a#close:after { height: 1em;
content: ' '; width: 2px;
position: absolute; background-color: #FFF;
left: .5em; border-radius: 1px;
height: 1em;
width: 2px;
background-color: #FFF;
border-radius: 1px;
}
main a#close:before {
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
main a#close:after {
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
}
main h1, main p {
margin: 0;
} }
main h1 { main a#close:before {
font-size: 1.5em; -webkit-transform: rotate(45deg);
line-height: 1; transform: rotate(45deg);
margin-bottom: .125em;
padding-right: 1em;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
} }
main p { main a#close:after {
margin-bottom: 1em; -webkit-transform: rotate(-45deg);
line-height: 1.125; transform: rotate(-45deg);
} }
main .form { main h1, main p {
margin-top: .25em; margin: 0;
}
main h1 {
font-size: 1.5em;
line-height: 1.125;
margin-bottom: .25em;
padding-right: 1em;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
main p {
margin-bottom: .5em;
line-height: 1.125;
max-height: 12em;
overflow-y: auto;
padding-right: .5em;
word-break: break-word;
}
main p::-webkit-scrollbar {
width: 5px;
}
main p::-webkit-scrollbar-track {
background-color: rgba(0, 0, 0, .125);
border-radius: 3px;
}
main p::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, .125);
border-radius: 3px;
}
main .form {
margin-top: .25em;
}
main .form input {
width: 100%;
padding: .5em;
font-family: "Roboto Mono";
font-weight: 500;
font-size: 1em;
border: none;
border-radius: 5px;
background-color: rgba(0, 0, 0, 0.125);
color: inherit;
} }
main .form input { main .form input:focus {
width: 100%; outline-width: 0;
padding: .5em; }
font-family: "Roboto Mono";
font-weight: 500;
font-size: 1em;
border: none;
border-radius: 5px;
background-color: rgba(0, 0, 0, 0.125);
color: inherit;
}
main .form input:focus {
outline-width: 0;
}