Packet-Fence/admin/css/userstyle.css
2025-06-28 06:23:17 +05:30

398 lines
8.4 KiB
CSS

/* Reset some default styles */
:root {
--background-color: linear-gradient(to bottom, #25476a 30%, #eef2f6 30%) ;
--text-color: #25476a ;
--nav-background: #ffffff;
--sidebar-background: #ffffff;
--link-color: #03080c;
--hover-background: #2980b9 ;
--submenu-background: #ecf0f1;
--highlight-color: #e74c3c;
--border-color: #dfe4ea;
--notification-badge-color: #e74c3c;
--hover-image: url('../images/');
--button-color:#25476a ;
--user-container:#ffffff;
--table-head: #d7d9e6;
--table-border:#25476a;
--box-shadow:rgb(37, 71, 106);
}
/* Dark mode styles */
.dark-theme-variables {
--background-color: linear-gradient(to bottom, #213343 30%, rgba(33, 51, 67,0.7) 30%);
--text-color: #ffffff;
--nav-background: #073a82;
--sidebar-background: #2b3f51;
--link-color: #ffffff;
--hover-background: #475f73;
--submenu-background: #353b48;
--highlight-color: #e1b12c;
--border-color: #404552;
--notification-badge-color: #e84118;
--user-container:linear-gradient(to bottom, #636f7b 40%, #213343 90%);
--table-head:#293c4d;
--button-color:#213343;
--table-border:#213343;
--box-shadow:rgba(255, 255, 255, 0.842);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}
.user_container {
display: flex;
margin-left: 280px; /* Adjust if necessary to match sidebar width */
padding: 20px;
margin-top: 120px; /* Adjust if necessary to account for fixed navbar */
width: calc(100% - 300px); /* Adjust to leave space for sidebar */
background: var(--user-container); /* Semi-transparent white background */
backdrop-filter: blur(10px) saturate(180%); /* Blur and saturation for glassmorphism effect */
border-radius: 1rem;
box-shadow: 2px 0 5px rgba(33, 51, 67, 0.8);
box-shadow: 2px 0 5px rgba(33, 51, 67, 0.9);
max-height: 100vh;
}
.userdetails{
max-height: 70vh; /* Set a fixed height as needed */
overflow-y: auto; /* Enable vertical scrolling */
overflow-x: hidden; /* Optional: Hide horizontal scroll if not needed */
border: 1px solid var(--border-color); /* Optional: Border around the table container */
padding: 10px;
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: Shadow inside the container */
}
/* Main content styling */
maincontent {
flex: 1;
padding: 10px;
}
.usertable {
padding: 20px;
border-radius: 8px;
}
.usertable table{
border-radius: 0.7rem; /* Rounds the outer corners */
overflow: hidden;
}
.usertable h3 {
margin-bottom: 20px;
font-size: 24px;
color: var(--heading-colour);
}
/*----------------------------------- Search form styling------------------------------------------------------ */
.search {
display: flex;
margin-bottom: 20px;
height: 2.5rem;
align-items: center;
}
.search input[type="text"] {
padding: 10px;
border: 1px solid #ccc;
border-radius: 1rem;
flex: 1;
margin-right: 10px;
}
.search button {
padding: 10px 20px;
border: none;
border-radius: 4px;
background-color: var(--button-color);
color: #fff;
cursor: pointer;
transition: background-color 0.3s;
height: 2.5rem;
display: flex;
align-items: center;
justify-content: center;
}
.search button:hover{
background-color:var(--hover-background) ;
}
.search_logo {
width: 20px; /* Adjust size as needed */
height: auto;
}
.clear_btn {
padding: 10px 20px;
border: none;
border-radius: 4px;
background-color: #f8f9fa;
font-size: 1rem;
color: #ffffff;
cursor: pointer;
transition: background-color 0.3s;
height: 2.5rem;
margin-left: 10px;
}
.clear_btn:hover {
background-color: var(--hover-background);
}
/*----------------------------------------------User table styling-----------------------------------------------*/
#user_table {
width: 100%;
border-collapse: collapse;
border-radius: 1rem;
}
#user_table thead {
position: sticky;
top: 0;
background-color: #ccced9; /* Keep header background consistent */
z-index: 2; /* Ensure the header stays on top */
}
#user_table td {
padding: 10px; /* Adjust padding for row height */
border-top: none;
border-bottom: 1px solid var(--table-border);
margin-bottom: 2px;
text-align: left;
vertical-align: middle; /* Center text vertically */
white-space: nowrap; /* Prevent text from wrapping */
text-overflow: ellipsis; /* Add ellipsis for overflowed text */
color: var(--heading-colour);
}
#user_table th {
padding: 15px; /* Adjust padding as needed */
vertical-align: middle; /* Center text vertically */
text-align: left; /* Align text to the left or center as needed */
white-space: nowrap; /* Prevent text from wrapping */
text-overflow: ellipsis; /* Add ellipsis if text overflows */
background-color: var(--table-head);
color: var(--text-color);
}
#user_table tr{
border-radius: 0.4rem;
color: var(--text-color);
}
#user_table tr:nth-child(even) {
height: 2rem;
}
#user_table tr:hover {
background-color: transparent;
box-shadow: 2px 0 5px var(--box-shadow);
}
/* Modify and Delete buttons styling */
.btn_modify, .btn_delete {
padding: 8px 16px;
border: none;
border-radius: 4px;
color: #fff;
cursor: pointer;
transition: background-color 0.3s;
}
.btn_modify {
background-color: var(--button-color);
}
.btn_modify:hover {
background-color: var(--hover-background);
}
.btn_delete {
background-color: var(--button-color);
}
.btn_delete:hover {
background-color:var(--hover-background);
}
/* Pagination styling */
.pagination {
display: flex;
justify-content: center;
margin-top: 20px;
}
.pagination a {
padding: 8px 16px;
margin: 0 4px;
border: 1px solid #ddd;
border-radius: 4px;
text-decoration: none;
color: var(--button-color);
background-color: #ddd;
transition: background-color 0.3s;
}
.pagination a:hover {
background-color: #00436c;
color: #fff;
}
.pagination a.active {
background-color: var(--button-color);
color: #fff;
}
/* Popup styling */
/* Popup styling */
.popup {
display: none;
position: fixed;
top: 60%;
left: 60%;
width: 50%;
justify-content: center;
align-items: center;
transform: translate(-60%, -60%); /* Center the popup */
}
.popup-content {
background-color: rgb(37, 71, 106,0.7);
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
justify-content: center;
text-align: center;
margin-top: 10rem;
}
.popup-content p{
color: white;
padding-bottom: 1rem;
}
.confirm-button {
padding: 10px 20px;
border: none;
border-radius: 4px;
background-color: #007bff;
color: #fff;
cursor: pointer;
margin: 0 10px;
transition: background-color 0.3s;
}
.confirm-button:hover {
background-color: #0056b3;
}
.user_checkbox {
display: none; /* Hide checkboxes by default */
}
th.check_box{
display: flex;
height: 3.3rem;
cursor: pointer;
}
th.check_box img{
width: 1.2rem;
height: 1.3rem;
cursor: pointer;
}
#select_all {
margin-right: 10px; /* Space between checkbox and button */
}
th .sort{
width: 1.3rem;
height: 1.2rem;
padding-top: 1px;
cursor: pointer;
}
/*--------------------------------- confirmation popup----------------------------- */
#confirmation_popup {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.popup_cont {
width: 30%;
height: 15%;
background-color: #fffffff3;
padding: 20px;
border-radius: 5px;
text-align: center;
}
.popup_cont p{
padding-top: 10px;
color: #00436c;
}
.popup_cont button {
margin: 10px;
color: #ffffff;
background-color: #084b75;
width: 4rem;
height: 2rem;
border-radius: 0.4rem;
}
.popup_cont button:hover{
background-color: #19518c;
border: none;
}
/* tool tip */
img.tooltip {
position: relative; /* Positioning for the tooltip */
display: inline-block; /* Aligns the element with inline content */
}
img.tooltip::before {
content: attr(data-tooltip); /* Uses the data-tooltip attribute */
position: absolute;
bottom: 100%; /* Position above the element */
left: 50%;
transform: translateX(-50%);
padding: 5px;
background-color: black;
color: white;
border-radius: 4px;
white-space: nowrap;
opacity: 0; /* Hide by default */
visibility: hidden; /* Hide by default */
transition: opacity 0.3s; /* Smooth transition */
}
img.tooltip:hover::before {
opacity: 1; /* Show the tooltip on hover */
visibility: visible; /* Show the tooltip on hover */
}