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

324 lines
7.1 KiB
CSS

:root {
--background-color: linear-gradient(to bottom, #25476a 30%, #eef2f6 30%) ;
--text-color: #25476a ;
--nav-background: #ffffff;
--sidebar-background: #ffffff;
--link-color: #07111a;
--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;
}
.role_container {
display: flex;
margin-left: 16rem; /* Adjust if necessary to match sidebar width */
padding: 20px;
margin-top: 4rem; /* Adjust if necessary to account for fixed navbar */
width: calc(100% - 250px); /* Adjust to leave space for sidebar */
border-radius: 2rem;
height: 3rem;
padding-bottom: 3rem;
}
.button{
width: 10rem;
height: 2rem;
margin-left: 2rem;
margin-top: 0;
background-color: var(--text-color);
color: var(--button-color);
}
.button button{
width: 100%;
height: 100%;
background-color: var(--nav-background);
color: var(--button-color);
font-size: 1.3rem;
border-radius: 0.3rem;
outline: none;
}
.button button:hover{
background-color:var(--link-color) ;
color: #ffffff;
}
.button button a{
text-decoration: none;
background-color: var(--nav-background);
color: var(--button-color);
}
.button button a:hover{
background-color: var(--link-color);
color: #ffffff;
}
/* Container for user creation form */
.user_container {
display: flex;
justify-content: center;
align-items: center; /* Center vertically */
padding: 50px;
margin-left: 90px;
}
/* Additional styling to ensure it stays centered if the container grows */
.user_container > maincontent {
display: flex;
justify-content: center;
align-items: center;
width: 80%;
}
.usertable {
background: var(--user-container);
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
width: 80%;
max-width: 1000px; /* Increase maximum width for larger container */
}
/* Main content styling */
maincontent {
flex: 1;
width: 100%;
}
/* Heading style */
.usertable {
padding: 20px;
border-radius: 8px;
}
.usertable h3 {
margin-bottom: 20px;
font-size: 24px;
color: var(--text-color);
}
/*----------------------------------- 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;
}
/*----------------------------------------------User table styling-----------------------------------------------*/
#user_table {
width: 100%;
position: relative;
border-collapse: separate;
border-spacing: 0;
margin-bottom: 10px;
}
#user_table th, #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 */
overflow: hidden; /* Hide overflow if needed */
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 */
overflow: hidden; /* Hide overflow */
text-overflow: ellipsis; /* Add ellipsis if text overflows */
background-color: var(--table-head);
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);
}
/* parent child*/
#user_table td.indent {
position: relative;
padding-top: 1rem;
}
/* Vertical line */
#user_table td.indent::before {
content: '';
position: absolute;
left: 0;
top: 0;
width: 2px;
height: 100%;
background: #000;
z-index: 2;
}
/* Horizontal line connecting child rows to the parent */
#user_table tr.child td.indent::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 30px; /* Width of the line */
height: 2px; /* Thickness of the line */
background: #000;
z-index: 1;
}
/* 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: #007bff;
transition: background-color 0.3s;
}
.pagination a:hover {
background-color: #007bff;
color: #fff;
}
.pagination a.active {
background-color: #007bff;
color: #fff;
}
.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: rgba(0, 0, 0, 0.595);
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;
}
.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;
}