style improvement
This commit is contained in:
parent
793463b826
commit
a81a29df55
3 changed files with 61 additions and 7 deletions
14
Cargo.lock
generated
14
Cargo.lock
generated
|
@ -3306,3 +3306,17 @@ name = "zeroize"
|
||||||
version = "1.7.0"
|
version = "1.7.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d"
|
checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d"
|
||||||
|
dependencies = [
|
||||||
|
"zeroize_derive",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "zeroize_derive"
|
||||||
|
version = "1.4.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn 2.0.48",
|
||||||
|
]
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
|
|
||||||
<h1>web upload</h1>
|
<h1>web upload</h1>
|
||||||
<label class="file">
|
<label class="file">
|
||||||
<input type="file" id="file" aria-label="File browser">
|
<input type="file" id="file" aria-label="File browser">
|
||||||
<span class="file-custom"></span>
|
<span class="file-custom"></span>
|
||||||
</label>
|
</label>
|
||||||
<button type="button" onclick="upload()">Upload</button>
|
<button type="button" onclick="upload()">Upload</button>
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,18 @@
|
||||||
<style>
|
<style>
|
||||||
body, html {
|
html {
|
||||||
margin: 0;
|
font-family: monospace;
|
||||||
|
font-site: 12px;
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
body {
|
||||||
background-color: black;
|
background-color: black;
|
||||||
|
color: white;
|
||||||
|
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
color: white;
|
max-width: 100%;
|
||||||
font-family: monospace;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -18,11 +25,21 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
max-width: calc(100% - 8px);
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
max-width: 100%;
|
||||||
|
overflow-x: scroll;
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p, input, button {
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
margin-bottom: 2px;
|
margin-bottom: 2px;
|
||||||
}
|
}
|
||||||
|
@ -50,4 +67,27 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button, input[type="file"]::file-selector-button {
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration-line: underline;
|
||||||
|
background-color: transparent;
|
||||||
|
color: white;
|
||||||
|
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
button:active, input[type="file"]::file-selector-button:active {
|
||||||
|
background-color: transparent;
|
||||||
|
color: white;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="file"] {
|
||||||
|
display: block;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue