Estiliza pagina de upload externo - responsiva (novo3)
This commit is contained in:
1 parent
457c3d13d7
commit
b804d0535e
1 file changed
+11
-4
+11
-4
@@ -4,7 +4,12 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>Upload de Arquivos</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<style>
|
||||
<?php
|
||||
// Verificação de autenticação
|
||||
$isAuthenticated = true; // Substitua isso pela sua lógica de autenticação
|
||||
|
||||
if (!$isAuthenticated) {
|
||||
echo '<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f4f4f4;
|
||||
@@ -48,7 +53,7 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
.custom-file-input::before {
|
||||
content: 'Escolher arquivos';
|
||||
content: "Escolher arquivos";
|
||||
display: inline-block;
|
||||
background: #007bff;
|
||||
color: white;
|
||||
@@ -66,7 +71,7 @@
|
||||
outline: -webkit-focus-ring-color auto 5px;
|
||||
}
|
||||
.custom-file-input input[type="file"]::after {
|
||||
content: 'Nenhum arquivo escolhido';
|
||||
content: "Nenhum arquivo escolhido";
|
||||
display: block;
|
||||
margin-top: 10px;
|
||||
color: #555;
|
||||
@@ -106,7 +111,9 @@
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>';
|
||||
}
|
||||
?>
|
||||
<script>
|
||||
function addViewportDimensions() {
|
||||
var form = document.getElementById('uploadForm');
|
||||
|
||||
Reference in new issue
Block a user