307 lines
5.2 KiB
CSS
307 lines
5.2 KiB
CSS
/* style.css */
|
|
|
|
/* Sidebar Styles */
|
|
body {
|
|
margin: 0;
|
|
font-family: 'Arial', sans-serif;
|
|
}
|
|
|
|
#sidebar {
|
|
height: 100%;
|
|
width: 250px;
|
|
position: fixed;
|
|
background-color: #333;
|
|
padding-top: 60px;
|
|
transition: 0.5s;
|
|
}
|
|
|
|
#sidebar img {
|
|
width: 100%;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
#sidebar a {
|
|
padding: 10px 15px;
|
|
text-decoration: none;
|
|
font-size: 18px;
|
|
color: white;
|
|
display: block;
|
|
transition: 0.3s;
|
|
}
|
|
|
|
#sidebar a:hover {
|
|
background-color: #555;
|
|
}
|
|
|
|
#content {
|
|
margin-left: 250px;
|
|
padding: 16px;
|
|
}
|
|
|
|
@media screen and (max-width: 600px) {
|
|
#sidebar {
|
|
width: 0;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
#content {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
#sidebarCollapse {
|
|
width: 40px;
|
|
height: 40px;
|
|
position: absolute;
|
|
top: 10px;
|
|
left: 10px;
|
|
cursor: pointer;
|
|
z-index: 1;
|
|
}
|
|
|
|
#sidebarCollapse span {
|
|
display: block;
|
|
background: white;
|
|
height: 5px;
|
|
width: 30px;
|
|
margin: 6px auto;
|
|
transition: 0.3s;
|
|
}
|
|
|
|
#sidebarCollapse:hover span:nth-child(1) {
|
|
transform: rotate(-45deg) translate(-5px, 6px);
|
|
}
|
|
|
|
#sidebarCollapse:hover span:nth-child(2) {
|
|
opacity: 0;
|
|
}
|
|
|
|
#sidebarCollapse:hover span:nth-child(3) {
|
|
transform: rotate(45deg) translate(-5px, -6px);
|
|
}
|
|
|
|
#userDataContainer {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
/* Table Styles */
|
|
table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
border: 1px solid #dddddd;
|
|
text-align: left;
|
|
padding: 12px;
|
|
}
|
|
|
|
th {
|
|
background-color: #f2f2f2;
|
|
}
|
|
|
|
tr:hover {
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
td {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Dropdown Styles */
|
|
.dropdown {
|
|
display: block;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.dropdown-toggle {
|
|
color: white;
|
|
background-color: #333;
|
|
border: 1px solid #555;
|
|
padding: 10px 15px;
|
|
text-decoration: none;
|
|
font-size: 18px;
|
|
display: block;
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
|
|
.dropdown-toggle:hover {
|
|
background-color: #555;
|
|
}
|
|
|
|
.dropdown-menu {
|
|
background-color: #333;
|
|
}
|
|
|
|
.dropdown-item {
|
|
color: white;
|
|
}
|
|
|
|
.dropdown-item:hover {
|
|
background-color: #555;
|
|
}
|
|
|
|
/* Additional styles for Bootstrap form */
|
|
form {
|
|
max-width: 400px;
|
|
margin: auto;
|
|
}
|
|
|
|
.mb-3 {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: #007bff;
|
|
border-color: #007bff;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: #0056b3;
|
|
border-color: #0056b3;
|
|
}
|
|
|
|
/* User Creation Form Styles */
|
|
.user-creation-container .input-box {
|
|
margin-bottom: 20px;
|
|
width: 100%;
|
|
}
|
|
|
|
.user-creation-container .input-box span.details {
|
|
display: block;
|
|
font-weight: 500;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.user-creation-container .user-details .input-box input {
|
|
height: 45px;
|
|
width: 100%;
|
|
outline: none;
|
|
font-size: 16px;
|
|
border-radius: 5px;
|
|
padding-left: 15px;
|
|
border: 1px solid #ccc;
|
|
border-bottom-width: 2px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.user-creation-container .user-details .input-box input:focus,
|
|
.user-creation-container .user-details .input-box input:valid {
|
|
border-color: #9b59b6;
|
|
}
|
|
|
|
.user-creation-container form .gender-details .gender-title {
|
|
font-size: 20px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.user-creation-container form .category {
|
|
display: flex;
|
|
width: 100%;
|
|
margin: 14px 0;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.user-creation-container form .category label {
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.user-creation-container form .category label .dot {
|
|
height: 18px;
|
|
width: 18px;
|
|
border-radius: 50%;
|
|
margin-right: 10px;
|
|
background: #d9d9d9;
|
|
border: 5px solid transparent;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
#dot-1:checked ~ .user-creation-container form .category label .one,
|
|
#dot-2:checked ~ .user-creation-container form .category label .two,
|
|
#dot-3:checked ~ .user-creation-container form .category label .three {
|
|
background: #9b59b6;
|
|
border-color: #d9d9d9;
|
|
}
|
|
|
|
.user-creation-container form input[type="radio"] {
|
|
display: none;
|
|
}
|
|
|
|
.user-creation-container form .button {
|
|
height: 45px;
|
|
margin: 35px 0;
|
|
}
|
|
|
|
.user-creation-container form .button input {
|
|
height: 100%;
|
|
width: 100%;
|
|
border-radius: 5px;
|
|
border: none;
|
|
color: #fff;
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
letter-spacing: 1px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
background: linear-gradient(135deg, #71b7e6, #9b59b6);
|
|
}
|
|
|
|
.user-creation-container form .button input:hover {
|
|
background: linear-gradient(-135deg, #71b7e6, #9b59b6);
|
|
}
|
|
|
|
@media (max-width: 584px) {
|
|
.user-creation-container .user-details .input-box {
|
|
margin-bottom: 20px;
|
|
width: 100%;
|
|
}
|
|
.user-creation-container form .category {
|
|
width: 100%;
|
|
}
|
|
.user-creation-container .content form .user-details {
|
|
max-height: 300px;
|
|
overflow-y: scroll;
|
|
}
|
|
.user-creation-container .user-details::-webkit-scrollbar {
|
|
width: 5px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 459px) {
|
|
.user-creation-container .container .content .category {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
#createUserForm {
|
|
display: none;
|
|
}
|
|
|
|
#createUserForm .container {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
#createUserForm form {
|
|
max-width: 400px;
|
|
margin: auto;
|
|
}
|
|
|
|
#createUserForm .mb-3 {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
#createUserForm .btn-primary {
|
|
background-color: #007bff;
|
|
border-color: #007bff;
|
|
}
|
|
|
|
#createUserForm .btn-primary:hover {
|
|
background-color: #0056b3;
|
|
border-color: #0056b3;
|
|
}
|
|
|