resolution-archive/static/css/style.css

283 lines
4.9 KiB
CSS
Raw Normal View History

2025-01-30 13:07:48 +06:00
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
.navbar {
background-color: #2c3e50;
display: flex;
align-items: center;
2025-02-24 16:30:01 +06:00
padding: 10px 20px;
2025-01-30 13:07:48 +06:00
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.logo-container {
display: flex;
align-items: center;
margin-right: 30px;
}
.logo {
2025-02-24 16:30:01 +06:00
width: 80px;
height: 80px;
2025-01-30 13:07:48 +06:00
background-color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 10px;
}
.logo img {
2025-02-24 16:30:01 +06:00
max-width: 80px;
max-height: 80px;
2025-01-30 13:07:48 +06:00
}
.company-name {
color: white;
font-size: 20px;
font-weight: bold;
}
.menu-container {
display: flex;
flex-grow: 1;
}
.menu-container a {
color: white;
text-decoration: none;
padding: 14px 16px;
transition: background-color 0.3s;
}
.dropdown {
position: relative;
}
.dropdown-btn {
cursor: pointer;
display: flex;
align-items: center;
}
.dropdown-content {
display: none;
position: absolute;
background-color: white;
min-width: 200px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
z-index: 1000;
top: 100%;
border-radius: 4px;
}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown-content a {
color: #2c3e50;
padding: 12px 16px;
display: block;
2025-02-24 16:30:01 +06:00
transition: background-color 0.3s;
2025-01-30 13:07:48 +06:00
}
.dropdown-content a:hover {
background-color: #f1f1f1;
2025-02-24 16:30:01 +06:00
}
.content {
padding: 0 40px;
}
.form-container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background: #ffffff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
font-family: Arial, sans-serif;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 3px;
color: #333;
font-weight: bold;
}
.form-group input, .form-table input[type="text"], .form-table input[type="date"], .form-table td input {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
transition: border-color 0.3s ease;
}
.form-group input:focus, .form-table input[type="text"]:focus, .form-table input[type="date"]:focus, .form-table td input:focus {
outline: none;
border-color: #666;
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}
button[type="submit"], .submit-btn, .form-table td strong center input[type="Submit"] {
width: 100%;
padding: 10px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
}
button[type="submit"]:hover, .submit-btn:hover, .form-table td strong center input[type="Submit"]:hover {
background-color: #45a049;
}
.error-message {
color: #dc3545;
margin-top: 5px;
}
.form-title {
color: #2c3e50;
text-align: center;
margin-bottom: 30px;
font-size: 24px;
font-weight: bold;
}
.alert {
background-color: #d4edda;
color: #155724;
padding: 15px;
margin: 10px 0;
border-radius: 4px;
border: 1px solid #c3e6cb;
animation: fadeOut 5s forwards;
}
@keyframes fadeOut {
0% { opacity: 1; }
90% { opacity: 1; }
100% { opacity: 0; }
}
/* Responsive design */
@media (max-width: 768px) {
.form-container {
margin: 10px;
padding: 15px;
}
.form-table th, .form-table td {
width: 100%;
display: block;
}
body {
padding: 10px;
}
h1 {
font-size: 24px;
}
h3 {
font-size: 20px;
}
.table-container {
padding: 10px;
}
.records-table {
width: 100%;
overflow-x: auto;
display: block;
}
.search-box {
width: 100%;
margin-bottom: 10px;
}
}
.table-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.table-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.table-header h2 {
color: #333;
font-size: 1.5em;
margin: 0;
}
.search-box {
padding: 8px 16px;
border-radius: 4px;
border: 1px solid #ccc;
width: 300px;
transition: border-color 0.3s ease;
}
.search-box:focus {
outline: none;
border-color: #666;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.records-table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
background-color: white;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.records-table th, .records-table td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #eee;
}
.records-table th {
background-color: #f8f9fa;
color: #333;
font-weight: bold;
}
.records-table tr:hover {
background-color: #f5f6fa;
}
.records-table td a {
color: #4CAF50;
text-decoration: none;
transition: color 0.3s ease;
}
.records-table td a:hover {
color: #45a049;
}