From 891f23ec2e4029c81b65515e319d740facb1594b Mon Sep 17 00:00:00 2001 From: Welton Moura Date: Tue, 21 Jan 2025 17:29:43 -0300 Subject: [PATCH] style: cores --- gestaoRaul/clients/templates/clients.html | 11 ++- gestaoRaul/db.sqlite3 | Bin 299008 -> 299008 bytes .../templates/static/clients/css/clients.css | 65 +---------------- .../templates/static/clients/js/clients.js | 2 + .../static/comandas/css/viewbalcao.css | 52 ++----------- .../static/comandas/css/viewcomanda.css | 41 +---------- gestaoRaul/templates/static/home/css/home.css | 4 +- .../static/products/css/products.css | 69 +----------------- 8 files changed, 18 insertions(+), 226 deletions(-) diff --git a/gestaoRaul/clients/templates/clients.html b/gestaoRaul/clients/templates/clients.html index 36232a8..75ebbb4 100644 --- a/gestaoRaul/clients/templates/clients.html +++ b/gestaoRaul/clients/templates/clients.html @@ -28,7 +28,7 @@ Clientes Cliente Débito Contato - Ações + Ações {% for client in clients %} @@ -39,7 +39,7 @@ Clientes {{client.contact}} {{client.active}} -
+
{% csrf_token %} -

Cadastro Cliente

+

Cadastro Cliente

- Ativo
- - + +
diff --git a/gestaoRaul/db.sqlite3 b/gestaoRaul/db.sqlite3 index 04f6b3bcec609254df904efae015dd8c1cd861cd..b37847f15e138c6c328f1e11d8ef2cd7429e0901 100644 GIT binary patch delta 1535 zcma)6ZEO@(6n*n%y0c4n?rjV0mZh-EwkQxgosXUU0;vnMwIwv6O{o58f(6=wlx>hA zAb|!Xu7N7Bfk_NOAWhU*+v*BqEd~l0AsVQ`m`X*UA)wA@@ddNk#!pF5Fi^ zXKweo(-!Zjj;^d*zFBPy_(N-&LRyQwys=^Z>RA2DE&g?l;kxFAb&0)+WW@{RH7${7 zm0B8Gvbteo^U}hWN+sH`w6rN$8f2;(O^H&sLEc@G zb11~m59xe2UF>rlb!-vJpv_U^5bQtM&)5&yH`=T0PuY2X$Xa@HH@7W+{ckrF{sIMSVLES+?68Hf9{T?M3k_oYO)g6c+#C8 z&l%5J`KaI+&95qcIYrAJPaDq)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j0(PVPD`;|UOvq6)NdmeMNoE0b3fLZpwF0)rp~F0L=iR!MoZF_nTep&PyHd%y zbt^f8Zbi1q0OY8AD;FsLm519V$ns6|PzuU7?%!uiWhzXX>gFzjRSqtmtY zaVK%bbX^y12*%B;K$UVQo+Wr2Z{qKG4KIt?zlfuF9?#)f?!9h~$aSbjizwFRv9FD+liU7abl(tTk diff --git a/gestaoRaul/templates/static/clients/css/clients.css b/gestaoRaul/templates/static/clients/css/clients.css index 07c2b11..7b63355 100644 --- a/gestaoRaul/templates/static/clients/css/clients.css +++ b/gestaoRaul/templates/static/clients/css/clients.css @@ -1,40 +1,4 @@ -button { - background-color: #007BFF; - color: white; - padding: 10px 10px; - border: none; - border-radius: 5px; - cursor: pointer; -} - -button:hover { - background-color: #0056b3; -} - -.modal { - display: none; - position: fixed; - padding: 20px; - top: 50%; - left: 50%; - width: 100%; - height: 100%; - overflow: auto; - background-color: rgba(0, 0, 0, 0.4); - transform: translate(-50%, -50%); -} - -.modal-content { - background-color: #fefefe; - margin: 15% auto; - padding: 20px; - border: 1px solid #888; - border-radius: 10px; - width: 90%; - max-width: 500px; -} - form { display: flex; @@ -51,14 +15,10 @@ input, textarea { border: 1px solid #ccc; } -* dialog { - transform: scale(1); - -} - .grid-buttons { + grid-template-columns: 1fr 1fr; display: flex; gap: 10px; } @@ -75,28 +35,7 @@ input, textarea { display: flex; width: 100%; } - -.card { - width: 100%; - height: 120px; - background-color: #f2f2f2; - border-radius: 15px; - box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2); - text-align: center; - line-height: 120px; - font-size: 20px; - font-weight: bold; - color: #333; - transition: transform 0.2s; - } - -.card:hover { - transform: scale(1.05); - box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3); - } - - - + @media (max-width: 768px) { .hide-on-mobile { diff --git a/gestaoRaul/templates/static/clients/js/clients.js b/gestaoRaul/templates/static/clients/js/clients.js index 6eff862..151e59e 100644 --- a/gestaoRaul/templates/static/clients/js/clients.js +++ b/gestaoRaul/templates/static/clients/js/clients.js @@ -32,8 +32,10 @@ function editclient(id) { openModal(); var buttonSave = document.getElementById('save'); var buttonEdit = document.getElementById('edit'); + var titleWindow = document.getElementById('title-window') buttonSave.style.display = 'none'; buttonEdit.style.display = 'block'; + titleWindow.innerText = 'Editar ' var clientId = document.getElementById('clientId'); var clientName = document.getElementById('clientName'); var clientContact = document.getElementById('clientContact'); diff --git a/gestaoRaul/templates/static/comandas/css/viewbalcao.css b/gestaoRaul/templates/static/comandas/css/viewbalcao.css index 13a443f..5070447 100644 --- a/gestaoRaul/templates/static/comandas/css/viewbalcao.css +++ b/gestaoRaul/templates/static/comandas/css/viewbalcao.css @@ -1,5 +1,4 @@ - .grid-container { display: grid; grid-template-columns: repeat(2, 2fr); @@ -24,59 +23,18 @@ .card-product:hover { transform: scale(1.05); - box-shadow: 3px 3px 10px rgba(185, 185, 185, 0.678); + box-shadow: 0px 0px 10px rgba(86, 187, 255, 0.815); } - table td th { - text-align: center; +table td th { + text-align: center; } - - - - button { - background-color: #007BFF; - color: white; - padding: 10px 20px; - border: none; - border-radius: 5px; - cursor: pointer; -} - -button:hover { - background-color: #0056b3; -} - -.modal { - display: none; - position: fixed; - padding: 20px; - top: 50%; - left: 50%; - width: 100%; - height: 100%; - overflow: auto; - background-color: rgba(0, 0, 0, 0.4); - transform: translate(-50%, -50%); -} - -.modal-content { - background-color: #fefefe; - margin: 15% auto; - padding: 20px; - border: 1px solid #888; - border-radius: 10px; - width: 90%; - height: 90%; - max-width: 500px; -} - - form { display: flex; flex-direction: column; gap: 10px; -} + } input, textarea { width: 95%; @@ -85,4 +43,4 @@ input, textarea { margin-top: 5px; border-radius: 5px; border: 1px solid #ccc; -} + } diff --git a/gestaoRaul/templates/static/comandas/css/viewcomanda.css b/gestaoRaul/templates/static/comandas/css/viewcomanda.css index ae8a025..00ccbd2 100644 --- a/gestaoRaul/templates/static/comandas/css/viewcomanda.css +++ b/gestaoRaul/templates/static/comandas/css/viewcomanda.css @@ -24,52 +24,13 @@ .card-product:hover { transform: scale(1.05); - box-shadow: 2px 2px 10px rgba(185, 185, 185, 0.678); + box-shadow: 0px 0px 10px rgba(86, 187, 255, 0.815); } table td th { text-align: center; } - - /* button { - background-color: #007BFF; - color: white; - padding: 10px 20px; - border: none; - border-radius: 5px; - cursor: pointer; -} - -button:hover { - background-color: #0056b3; -} */ - -.modal { - display: none; - position: fixed; - padding: 20px; - top: 50%; - left: 50%; - width: 100%; - height: 100%; - overflow: auto; - background-color: rgba(0, 0, 0, 0.4); - transform: translate(-50%, -50%); -} - -.modal-content { - background-color: #fefefe; - margin: 15% auto; - padding: 20px; - border: 1px solid #888; - border-radius: 10px; - width: 90%; - height: 90%; - max-width: 500px; -} - - form { display: flex; flex-direction: column; diff --git a/gestaoRaul/templates/static/home/css/home.css b/gestaoRaul/templates/static/home/css/home.css index 02a5392..6c479a0 100644 --- a/gestaoRaul/templates/static/home/css/home.css +++ b/gestaoRaul/templates/static/home/css/home.css @@ -31,7 +31,7 @@ .card:hover { transform: translateY(-10px); - box-shadow: 0 4px 8px rgba(199, 199, 199, 0.25); + box-shadow: 0px 0px 8px rgba(86, 187, 255, 0.815); } .card-resumo { @@ -53,7 +53,7 @@ .card-resumo:hover { - box-shadow: 0 4px 15px rgba(175, 175, 175, 0.295); + box-shadow: 0px 0px 15px rgba(86, 187, 255, 0.815); text-align: left; line-height: 20px; padding: 15px 30px 15px 30px; diff --git a/gestaoRaul/templates/static/products/css/products.css b/gestaoRaul/templates/static/products/css/products.css index 5bde6d7..aed7391 100644 --- a/gestaoRaul/templates/static/products/css/products.css +++ b/gestaoRaul/templates/static/products/css/products.css @@ -1,40 +1,4 @@ -button { - background-color: #007BFF; - color: white; - padding: 10px 10px; - border: none; - border-radius: 5px; - cursor: pointer; -} - -button:hover { - background-color: #0056b3; -} - -.modal { - display: none; - position: fixed; - padding: 20px; - top: 50%; - left: 50%; - width: 100%; - height: 100%; - overflow: auto; - background-color: rgba(0, 0, 0, 0.4); - transform: translate(-50%, -50%); -} - -.modal-content { - background-color: #fefefe; - margin: 15% auto; - padding: 20px; - border: 1px solid #888; - border-radius: 10px; - width: 90%; - max-width: 500px; -} - form { display: flex; @@ -51,21 +15,11 @@ input, textarea { border: 1px solid #ccc; } -* dialog { - transform: scale(1); - /* display: flexbox; - max-width: 200; - max-height: 400; */ -} - - - .grid-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; - max-width: 500px; /* Define a largura máxima do grid */ - /* margin: 0 auto; */ + max-width: 500px; } .grid-container { @@ -81,27 +35,6 @@ input, textarea { width: 100%; } -.card { - width: 100%; - height: 120px; - background-color: #f2f2f2; - border-radius: 15px; - box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2); - text-align: center; - line-height: 120px; /* Centraliza o texto verticalmente */ - font-size: 20px; - font-weight: bold; - color: #333; - transition: transform 0.2s; - } - -.card:hover { - transform: scale(1.05); - box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3); - } - - - @media (max-width: 768px) { .hide-on-mobile {