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">
|
<meta charset="UTF-8">
|
||||||
<title>Upload de Arquivos</title>
|
<title>Upload de Arquivos</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<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 {
|
body {
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, sans-serif;
|
||||||
background-color: #f4f4f4;
|
background-color: #f4f4f4;
|
||||||
@@ -48,7 +53,7 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.custom-file-input::before {
|
.custom-file-input::before {
|
||||||
content: 'Escolher arquivos';
|
content: "Escolher arquivos";
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background: #007bff;
|
background: #007bff;
|
||||||
color: white;
|
color: white;
|
||||||
@@ -66,7 +71,7 @@
|
|||||||
outline: -webkit-focus-ring-color auto 5px;
|
outline: -webkit-focus-ring-color auto 5px;
|
||||||
}
|
}
|
||||||
.custom-file-input input[type="file"]::after {
|
.custom-file-input input[type="file"]::after {
|
||||||
content: 'Nenhum arquivo escolhido';
|
content: "Nenhum arquivo escolhido";
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
color: #555;
|
color: #555;
|
||||||
@@ -106,7 +111,9 @@
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
<script>
|
<script>
|
||||||
function addViewportDimensions() {
|
function addViewportDimensions() {
|
||||||
var form = document.getElementById('uploadForm');
|
var form = document.getElementById('uploadForm');
|
||||||
|
|||||||
Reference in new issue
Block a user