189 lines
3.0 KiB
CSS
189 lines
3.0 KiB
CSS
/* ================= RESET ================= */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
font-family: "Segoe UI", sans-serif;
|
|
}
|
|
|
|
/* ================= BODY ================= */
|
|
body {
|
|
background-color: #f4f7f6;
|
|
}
|
|
|
|
/* ================= MAIN CONTENT ================= */
|
|
.main {
|
|
margin-left: 260px;
|
|
padding: 30px;
|
|
width: calc(100% - 260px);
|
|
margin-top: 80px;
|
|
transition: 0.3s;
|
|
}
|
|
|
|
/* ================= CONTAINER ================= */
|
|
.container {
|
|
max-width: 1200px;
|
|
width: 100%;
|
|
margin: auto;
|
|
background: #ffffff;
|
|
padding: 25px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* ================= HEADING ================= */
|
|
.container h2 {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
color: #003366;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ================= BUTTONS ================= */
|
|
.btn {
|
|
padding: 8px 14px;
|
|
border-radius: 6px;
|
|
color: #ffffff;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-add {
|
|
background-color: #28a745;
|
|
}
|
|
|
|
.btn-update {
|
|
background-color: #007bff;
|
|
}
|
|
|
|
.btn-delete {
|
|
background-color: #dc3545;
|
|
}
|
|
|
|
.btn:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* ================= NO RECORD ================= */
|
|
.no-record {
|
|
text-align: center;
|
|
font-size: 16px;
|
|
margin-top: 20px;
|
|
color: #555;
|
|
padding: 15px;
|
|
background: #f9f9f9;
|
|
border-radius: 8px;
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
|
|
/* ================= TABLE ================= */
|
|
.table-wrapper {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: 20px;
|
|
min-width: 900px;
|
|
/* allows horizontal scroll on mobile */
|
|
}
|
|
|
|
th,
|
|
td {
|
|
padding: 12px;
|
|
border: 1px solid #dee2e6;
|
|
white-space: nowrap;
|
|
font-size: 14px;
|
|
}
|
|
|
|
th {
|
|
background-color: #007bff;
|
|
color: white;
|
|
text-align: center;
|
|
}
|
|
|
|
td {
|
|
text-align: right;
|
|
}
|
|
|
|
td:first-child,
|
|
th:first-child {
|
|
text-align: left;
|
|
}
|
|
|
|
tr:nth-child(even) {
|
|
background-color: #f0f8ff;
|
|
}
|
|
|
|
/* ================= ACTION COLUMN ================= */
|
|
.action-cell {
|
|
display: flex;
|
|
gap: 6px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.action-cell form {
|
|
margin: 0;
|
|
}
|
|
|
|
/* ================= TABLET ================= */
|
|
@media (max-width: 992px) {
|
|
|
|
.main {
|
|
margin-left: 0;
|
|
width: 100%;
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
padding: 20px;
|
|
}
|
|
|
|
table {
|
|
min-width: 800px;
|
|
}
|
|
}
|
|
|
|
/* ================= MOBILE ================= */
|
|
@media (max-width: 768px) {
|
|
|
|
.container {
|
|
padding: 15px;
|
|
}
|
|
|
|
.container h2 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.btn {
|
|
font-size: 13px;
|
|
padding: 7px 12px;
|
|
}
|
|
|
|
table {
|
|
min-width: 700px;
|
|
}
|
|
}
|
|
|
|
/* ================= SMALL MOBILE ================= */
|
|
@media (max-width: 480px) {
|
|
|
|
.container h2 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.btn-add {
|
|
width: 100%;
|
|
text-align: center;
|
|
margin-bottom: 15px;
|
|
display: block;
|
|
}
|
|
|
|
table {
|
|
min-width: 650px;
|
|
}
|
|
} |