mirror of
https://github.com/skidoodle/iphistory.git
synced 2025-02-15 08:29:16 +01:00
221 lines
3.5 KiB
CSS
221 lines
3.5 KiB
CSS
/* General */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
font-family: 'Poppins', Arial, sans-serif;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
body {
|
|
background-color: #121212;
|
|
color: #e0e0e0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 20px;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* Typography */
|
|
h1 {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 20px;
|
|
color: #007bff;
|
|
text-align: center;
|
|
font-weight: 700;
|
|
}
|
|
|
|
h1 a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
h1 a:hover {
|
|
color: #0056b3;
|
|
}
|
|
|
|
/* Controls */
|
|
.controls {
|
|
width: 100%;
|
|
max-width: 900px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.export {
|
|
background-color: #007bff;
|
|
border: 1px solid #007bff;
|
|
color: #fff;
|
|
padding: 12px 24px;
|
|
border-radius: 5px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
flex: 0 1 30%;
|
|
text-align: center;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.export:hover {
|
|
background-color: #0056b3;
|
|
border-color: #0056b3;
|
|
}
|
|
|
|
.search-bar {
|
|
flex: 0 1 65%;
|
|
padding: 12px;
|
|
font-size: 16px;
|
|
border-radius: 5px;
|
|
background-color: #333;
|
|
color: #e0e0e0;
|
|
border: 1px solid #444;
|
|
}
|
|
|
|
.search-bar:focus {
|
|
outline: none;
|
|
border-color: #007bff;
|
|
}
|
|
|
|
/* Table */
|
|
table {
|
|
width: 100%;
|
|
max-width: 900px;
|
|
border-collapse: collapse;
|
|
margin: 20px auto;
|
|
background-color: #1e1e1e;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
th, td {
|
|
padding: 16px 20px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #333;
|
|
font-size: 16px;
|
|
word-break: break-all;
|
|
}
|
|
|
|
th {
|
|
background-color: #007bff;
|
|
color: #fff;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
position: relative;
|
|
}
|
|
|
|
th.sort-asc::after,
|
|
th.sort-desc::after {
|
|
content: " ▼";
|
|
font-size: 12px;
|
|
position: absolute;
|
|
right: 10px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: #fff;
|
|
}
|
|
|
|
th.sort-asc::after {
|
|
content: " ▲";
|
|
}
|
|
|
|
tr:nth-child(even) {
|
|
background-color: #292929;
|
|
}
|
|
|
|
tr:hover {
|
|
background-color: #333;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
/* Pagination */
|
|
.pagination {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.pagination button {
|
|
background-color: #007bff;
|
|
color: #fff;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
margin: 0 5px;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.pagination button:disabled {
|
|
background-color: #555;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.pagination button:hover:not(:disabled) {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.controls {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.export, .search-bar {
|
|
width: 100%;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
th, td {
|
|
padding: 10px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
table {
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
h1 {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
.controls {
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.export, .search-bar {
|
|
width: 100%;
|
|
font-size: 14px;
|
|
padding: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
table {
|
|
font-size: 12px;
|
|
}
|
|
|
|
th, td {
|
|
font-size: 12px;
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
th, td {
|
|
word-wrap: break-word;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.pagination button {
|
|
padding: 8px 12px;
|
|
}
|
|
}
|