From b773ea969c0a7754a155a2b8a7414d894bf4a17c Mon Sep 17 00:00:00 2001 From: Marco Antonio Vivas Date: Tue, 12 Aug 2025 08:29:33 -0300 Subject: [PATCH] =?UTF-8?q?Bot=C3=A3o=20Excluir?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/style.css | 42 ++++++++++++++++++++++++++++++++++++++++++ includes/frontend.php | 10 +++++++++- simple-file-list.php | 9 +++++---- 3 files changed, 56 insertions(+), 5 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 0484689..2288fb2 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -1,4 +1,15 @@ /* Simple File List Styles */ +:root { + --azul-principal: #006494; + --azul-brilhante: #00a6fb; + --azul-claro: #0582ca; + --azul-escuro: #003554; + --verde: #4caf50; + --cinza: #e0e0e0; + --borda-radius: 4px; + --sombra: 0 2px 10px rgba(0, 0, 0, 0.05); + --transicao: all 0.2s ease; +} .sfl-upload-container { background: #fff; border-radius: var(--borda-radius); @@ -224,6 +235,21 @@ margin-right: 4px; } +.sfl-action-link[data-action="excluir"]::before { + font-family: "Dashicons"; + content: "\f182"; + font-size: 1.1em; + margin-right: 4px; +} + +.sfl-action-link.sfl-delete-file { + background-color: #d63638; +} + +.sfl-action-link.sfl-delete-file:hover { + background-color: #b32d2e; +} + /* Drag and drop styles */ .sfl-upload-area.drag-over { background-color: rgba(0, 166, 251, 0.1); @@ -275,4 +301,20 @@ color: #222; /* preto para o texto das opções */ background: #fff; font-weight: 500; +} + +/* Estilo para o botão de excluir no painel admin */ +button.sfl-delete-file { + background-color: #d63638; + color: white; + border: none; + border-radius: var(--borda-radius); + padding: 7px 16px; + font-weight: 500; + cursor: pointer; + transition: background-color 0.2s; +} + +button.sfl-delete-file:hover { + background-color: #b32d2e; } \ No newline at end of file diff --git a/includes/frontend.php b/includes/frontend.php index 46fd6f2..004fed8 100644 --- a/includes/frontend.php +++ b/includes/frontend.php @@ -70,7 +70,7 @@ function sfl_render_file_list() { - + + + @@ -128,6 +131,11 @@ function sfl_render_file_list() { + diff --git a/simple-file-list.php b/simple-file-list.php index 086dbbe..2196311 100644 --- a/simple-file-list.php +++ b/simple-file-list.php @@ -1,11 +1,12 @@
+
Data Abrir BaixarAções
Baixar + + + +