201 lines
3.9 KiB
CSS

/* Styling untuk elemen-elemen di halaman */
body, html {
height: 100%;
margin: 0;
font-family: Arial, sans-serif;
background-color: #f8f9fa;
}
.title {
width: 100%;
color: #333333;
padding: 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
box-sizing: border-box;
/* Gradient background */
background: linear-gradient(135deg, hsla(39, 100%, 45%, 1) 20%, hsla(165, 82%, 35%, 1) 100%);
background: -moz-linear-gradient(135deg, hsla(39, 100%, 45%, 1) 20%, hsla(165, 82%, 35%, 1) 100%);
background: -webkit-linear-gradient(135deg, hsla(39, 100%, 45%, 1) 20%, hsla(165, 82%, 35%, 1) 100%);
/* For older versions of IE */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#E69500", endColorstr="#10A37F", GradientType=1);
}
.layout {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 100%;
height: 100%;
padding: 20px;
box-sizing: border-box;
}
.container {
display: flex;
flex-direction: column;
/* align-items: center;
justify-content: center; */
width: 100%;
max-width: 100%;
height: 100%;
padding: 0px 0px 0px 0px;
box-sizing: border-box;
}
h2 {
margin: 0px 0px 0px 0px;
font-size: 18px;
color: #333333;
}
h1 {
margin: 0px 0px 0px 0px;
font-size: 24px;
color: #333333;
}
textarea {
width: 100%;
/* max-width: 500px; */
height: 120px;
padding: 10px;
font-size: 14px;
resize: vertical;
overflow-y: auto;
margin-bottom: 20px;
box-sizing: border-box;
border: 1px solid #ced4da;
border-radius: 5px;
background-color: #ffffff;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
.start-button {
width: 100%;
max-width: 500px;
padding: 15px;
font-size: 20px;
background-color: #10a37f;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
margin-top: 10px;
box-sizing: border-box;
}
.start-button:hover {
background-color: #e69500;
}
.loading-indicator {
font-size: 14px;
font-weight: bold;
color: #FFA500;
margin-top: 20px;
}
table {
width: 100%;
/* max-width: 80%; */
margin-top: 20px;
border-collapse: collapse;
/* display: none; Initially hide the table */
table-layout: fixed; /* Set a fixed layout for columns */
box-sizing: border-box;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
table, th, td {
border: 1px solid rgb(53, 51, 51);
padding: 10px;
text-align: left;
}
th {
background-color: #FFA500;
font-size: 14px;
font-weight: bold;
text-align: center;
}
tbody {
/* display: block; */
max-height: 400px; /* Set a max height for the table body */
overflow-y: auto;
background-color: #f8f9fa;
}
td, th {
width: 25%; /* Ensure even width distribution */
word-wrap: break-word; /* Wrap long words */
}
#processStatus {
font-size: 18px;
font-weight: bold;
margin-top: 20px;
}
#totalProcessed {
margin-top: 10px;
font-weight: bold;
font-size: 14px;
text-align: right;
display: none; /* Initially hide total count */
}
#ipList {
width: 350px; /* Lebar sesuai dengan elemen induk */
height: 65vh; /* Tinggi dalam piksel */
}
/* Responsif pada layar kecil */
@media (max-width: 600px) {
table, th, td {
display: block;
width: 100%;
}
td {
padding: 8px 0; /* Menyesuaikan padding untuk perangkat kecil */
}
th {
display: none; /* Hide column headers on small screens */
}
td::before {
content: attr(data-label); /* Add column name before data */
font-weight: bold;
}
}
#pagination {
display: flex;
gap: 10px; /* Space between buttons */
justify-content: center; /* Center the buttons horizontally */
margin-top: 15px; /* Add some space above the pagination controls */
}
.page-button {
padding: 8px 12px;
border: 1px solid #ccc;
background-color: #f5f5f5;
cursor: pointer;
transition: background-color 0.3s;
}
.page-button.active {
background-color: #10a37f;
color: white;
}
.page-button:hover {
background-color: #e0e0e0;
}