Estiliza pagina de upload externo - responsiva (revert)
This commit is contained in:
1 parent
967d310178
commit
6d3e9e7774
1 file changed
+5
-38
+5
-38
@@ -33,43 +33,12 @@
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
color: #555;
|
color: #555;
|
||||||
}
|
}
|
||||||
.custom-file-input {
|
input[type="file"] {
|
||||||
position: relative;
|
|
||||||
display: inline-block;
|
|
||||||
width: 100%;
|
|
||||||
height: 40px;
|
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
|
||||||
.custom-file-input input[type="file"] {
|
|
||||||
position: absolute;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
padding: 10px;
|
||||||
opacity: 0;
|
border: 1px solid #ccc;
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
.custom-file-input::before {
|
|
||||||
content: 'Escolher arquivos';
|
|
||||||
display: inline-block;
|
|
||||||
background: #007bff;
|
|
||||||
color: white;
|
|
||||||
border: none;
|
|
||||||
padding: 10px 20px;
|
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
cursor: pointer;
|
|
||||||
text-align: center;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
line-height: 20px;
|
|
||||||
}
|
|
||||||
.custom-file-input input[type="file"]:focus + ::before {
|
|
||||||
outline: 1px dotted #000;
|
|
||||||
outline: -webkit-focus-ring-color auto 5px;
|
|
||||||
}
|
|
||||||
.custom-file-input input[type="file"]::after {
|
|
||||||
content: 'Nenhum arquivo escolhido';
|
|
||||||
display: block;
|
|
||||||
margin-top: 10px;
|
|
||||||
color: #555;
|
|
||||||
}
|
}
|
||||||
button {
|
button {
|
||||||
background-color: #007bff;
|
background-color: #007bff;
|
||||||
@@ -100,7 +69,7 @@
|
|||||||
padding: 12px;
|
padding: 12px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
.custom-file-input::before {
|
input[type="file"] {
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
@@ -175,9 +144,7 @@
|
|||||||
<h2>Upload de Arquivos</h2>
|
<h2>Upload de Arquivos</h2>
|
||||||
<form id="uploadForm" action="./upload.php" method="post" enctype="multipart/form-data">
|
<form id="uploadForm" action="./upload.php" method="post" enctype="multipart/form-data">
|
||||||
<label for="files">Selecione os arquivos para autenticar:</label><br><br>
|
<label for="files">Selecione os arquivos para autenticar:</label><br><br>
|
||||||
<div class="custom-file-input">
|
<input type="file" name="files[]" id="files" multiple required><br><br>
|
||||||
<input type="file" name="files[]" id="files" multiple required>
|
|
||||||
</div>
|
|
||||||
<button type="submit">Autenticar</button>
|
<button type="submit">Autenticar</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user