Revamp user management styling with gradient backgrounds, improved table layout, and enhanced button interactions
This commit is contained in:
parent
77f11db94b
commit
8688949ec7
|
|
@ -6,7 +6,8 @@ body {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
background-color: #f0f0f0;
|
background: linear-gradient(45deg, #f1faee, #a8dadc);
|
||||||
|
color: #1d3557;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
|
|
@ -18,7 +19,6 @@ p {
|
||||||
}
|
}
|
||||||
|
|
||||||
.register_form{
|
.register_form{
|
||||||
background-color: #fff;
|
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||||
|
|
@ -27,6 +27,7 @@ p {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.container1{
|
.container1{
|
||||||
|
background-color: rgba(255,255,255,0.2);
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|
|
||||||
|
|
@ -1,107 +1,74 @@
|
||||||
|
html{
|
||||||
body {
|
height: 100%;
|
||||||
background: linear-gradient(45deg, #49a09d, #5f2c82);
|
background: linear-gradient(45deg, #f1faee, #a8dadc);
|
||||||
font-family: sans-serif;
|
|
||||||
font-weight: 100;
|
|
||||||
}
|
}
|
||||||
h2{
|
body{
|
||||||
color: #f0f0f0;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-weight: 100;
|
||||||
|
color: #1d3557;
|
||||||
}
|
}
|
||||||
.contenido {
|
.contenido{
|
||||||
position: absolute;
|
display: flex;
|
||||||
top: 40%;
|
flex-direction: column;
|
||||||
left: 50%;
|
align-items: center;
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
}
|
|
||||||
.table-container {
|
|
||||||
height: 400px; /* Altura fija del contenedor */
|
|
||||||
overflow: hidden; /* Scroll vertical */
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Estilo para la barra de desplazamiento */
|
tbody tr:hover {
|
||||||
::-webkit-scrollbar {
|
background-color: rgba(255, 255, 255, 0.3);
|
||||||
width: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Estilo para el fondo de la barra */
|
|
||||||
::-webkit-scrollbar-track {
|
|
||||||
background: rgba(85, 96, 143, 0.1);
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Estilo para el control deslizante */
|
|
||||||
::-webkit-scrollbar-thumb {
|
|
||||||
background: #55608f;
|
|
||||||
border-radius: 10px;
|
|
||||||
border: 3px solid transparent;
|
|
||||||
background-clip: content-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Efecto hover en el control deslizante */
|
|
||||||
::-webkit-scrollbar-thumb:hover {
|
|
||||||
background: #404b7c;
|
|
||||||
border: 3px solid transparent;
|
|
||||||
background-clip: content-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
table {
|
|
||||||
width: 800px;
|
|
||||||
border-collapse: collapse;
|
|
||||||
box-shadow: 0 0 20px rgba(0,0,0,0.1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
th, td {
|
th, td {
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
background-color: rgba(255,255,255,0.2);
|
background-color: rgba(255,255,255,0.2);
|
||||||
color: #fff;
|
color: #457b9d;
|
||||||
}
|
}
|
||||||
|
|
||||||
th {
|
th {
|
||||||
text-align: left;
|
background-color: #a8dadc;
|
||||||
|
}
|
||||||
|
td{
|
||||||
|
max-width: 200px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
thead th {
|
|
||||||
background-color: #55608f;
|
|
||||||
|
table{
|
||||||
|
border-collapse: collapse;
|
||||||
|
box-shadow: 0 0 20px rgba(0,0,0,0.1);
|
||||||
}
|
}
|
||||||
thead {
|
.table-container{
|
||||||
|
height: 500px;
|
||||||
|
overflow: auto;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
.table1 thead {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0%;
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
tbody {
|
|
||||||
display: block;
|
|
||||||
max-height: 350px;
|
|
||||||
overflow-y: auto;
|
|
||||||
}
|
|
||||||
thead, tbody tr {
|
|
||||||
display: table;
|
|
||||||
width: 100%;
|
|
||||||
table-layout: fixed;
|
|
||||||
}
|
|
||||||
tbody {
|
|
||||||
tr {
|
|
||||||
&:hover {
|
|
||||||
background-color: rgba(255,255,255,0.3);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.celda-acciones{
|
.celda-acciones{
|
||||||
text-align: center;
|
display: flex;
|
||||||
padding: 0;
|
|
||||||
}
|
}
|
||||||
.celda-acciones button{
|
.celda-acciones button{
|
||||||
background-color: #007bff;
|
background-color: rgba(255, 255, 255, 0.3);
|
||||||
color: #fff;
|
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin: 1px/*vertical*/ 10px/*horizontal*/;
|
margin: 1px auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.celda-acciones button:hover {
|
.celda-acciones button:hover {
|
||||||
background-color: #0056b3;
|
background-color: rgba(255, 255, 255, 0.5);
|
||||||
}
|
}
|
||||||
|
/* Estilo para la barra de desplazamiento */
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
border-radius: 100px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@
|
||||||
<div class="contenido">
|
<div class="contenido">
|
||||||
<h2>Gestión de Usuarios</h2>
|
<h2>Gestión de Usuarios</h2>
|
||||||
<div class="table-container">
|
<div class="table-container">
|
||||||
<table>
|
<table class="table1">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>ID</th>
|
<th class="celda-id">ID</th>
|
||||||
<th>Nombre</th>
|
<th>Nombre</th>
|
||||||
<th>Rol</th>
|
<th>Rol</th>
|
||||||
<th>Email</th>
|
<th>Email</th>
|
||||||
|
|
@ -20,11 +20,11 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr th:each="user : ${users}">
|
<tr th:each="user : ${users}">
|
||||||
<td th:text="${user.id}"></td>
|
<td class="celda-id" th:text="${user.id}"></td>
|
||||||
<td th:text="${user.nombre}"></td>
|
<td th:text="${user.nombre}"></td>
|
||||||
<td th:text="${user.role}"></td>
|
<td th:text="${user.role}"></td>
|
||||||
<td th:text="${user.mail}"></td>
|
<td th:title="${user.mail}" th:text="${user.mail}"></td>
|
||||||
<td class="celda-acciones"><button>✏️</button> <button>🗑️</button></td>
|
<td class="celda-acciones"><button th:title="Editar">✏️</button> <button th:title="Borrar">🗑️</button></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue