File size: 6,458 Bytes
8078d22 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 |
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
/* General Body Styling */
body {
font-family: 'Inter', sans-serif;
background-color: #f4f6f8;
margin: 0;
padding: 0;
min-height: 100vh;
}
/* Container Styling */
.container {
max-width: 1400px; /* Widened to better fit the boxes */
background: white;
padding: 30px;
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
margin: 20px auto;
}
/* Section Headers */
h1, h2 {
font-size: 2rem;
font-weight: 700;
color: #333;
text-align: center;
margin-bottom: 20px;
}
/* Tool Sections */
.tool-section {
background: #fff;
border: 1px solid #ddd;
border-radius: 16px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
width: 100%;
max-width: 1200px; /* Increased to align with SAM boxes */
margin: 20px auto;
}
/* Buttons Styling */
.btn-group {
display: flex;
justify-content: center;
margin-bottom: 20px;
gap: 10px;
}
.btn-group button {
font-size: 16px;
padding: 10px 20px;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease-in-out;
width: 50%; /* Equal button width */
}
.btn-group button.active {
background-color: #007bff;
color: white;
border: 1px solid #0056b3;
}
.btn-group button:hover {
background-color: #0056b3;
color: white;
}
/* Tool Layout */
.tool-container {
display: flex;
flex-direction: column;
gap: 40px;
align-items: center;
}
/* Canvas Containers */
.canvas-container {
width: 100%;
max-width: 600px; /* Adjusted for better alignment */
aspect-ratio: 1 / 1;
border: 2px solid #ddd;
border-radius: 16px;
background-color: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
margin: 0 auto;
}
/* File Upload Fields */
input[type="file"] {
margin-top: 20px;
padding: 10px;
font-size: 16px;
border-radius: 8px;
border: 1px solid #ddd;
box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 600px;
}
input[type="file"]:focus {
border: 1px solid #007bff;
outline: none;
}
/* Processed Image Styling */
#automaticProcessedImage {
border: 2px solid #ddd;
border-radius: 16px;
background-color: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
width: 100%;
height: auto;
margin-top: 20px;
}
/* Clear Points Button */
#clearPoints {
margin-top: 20px;
font-size: 14px;
padding: 10px 15px;
border-radius: 5px;
color: white;
background-color: #dc3545;
border: none;
cursor: pointer;
}
#clearPoints:hover {
background-color: #b52b37;
}
/* Table Styling */
.table {
border: 1px solid #ddd;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 100%;
}
.table th {
background-color: #007bff; /* Blue column headers */
color: white;
font-weight: bold;
text-align: center;
padding: 10px;
}
.table td {
padding: 10px;
vertical-align: middle;
background-color: #f9f9f9;
text-align: center;
}
.table-responsive {
border-radius: 10px;
overflow: hidden;
}
/* Buttons Styling */
#clearTableButton, #exportTableButton {
font-size: 16px;
padding: 10px 20px;
border-radius: 8px;
color: white;
background-color: #007bff;
border: none;
transition: all 0.3s ease-in-out;
}
#clearTableButton:hover, #exportTableButton:hover {
background-color: #0056b3;
cursor: pointer;
}
/* Responsive Design */
@media screen and (max-width: 768px) {
.tool-section {
flex-direction: column;
align-items: center;
}
.canvas-container {
margin-bottom: 20px;
}
.btn-group button {
width: 100%;
}
.table {
font-size: 14px;
}
}
/* Additional Adjustments */
.tool-section img, canvas {
max-width: 100%;
height: auto;
border-radius: 8px;
}
#historyButton {
font-size: 16px;
padding: 10px 20px;
border-radius: 8px;
color: white;
background-color: #6c757d; /* Bootstrap secondary color */
border: none;
}
#historyButton:hover {
background-color: #5a6268;
cursor: pointer;
}
/* Modal Body Styling */
.modal-body {
padding: 15px;
width: 100%;
max-width: 600px; /* Adjust width to accommodate delete buttons */
margin: auto;
display: flex;
flex-direction: column;
align-items: center;
}
/* History Modal List Styling */
#historyList {
padding: 0;
margin: 0;
list-style: none; /* Remove default bullets */
width: 100%; /* Expand list width */
}
/* List Group Item Styling */
#historyList .list-group-item {
display: flex; /* Flexbox for alignment */
justify-content: space-between; /* Space between filename and delete button */
align-items: center; /* Vertically align items */
padding: 10px 15px; /* Add consistent padding */
border: 1px solid #ddd; /* Optional: border for clarity */
border-radius: 8px; /* Rounded corners */
background-color: #fff; /* White background for contrast */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
margin-bottom: 5px; /* Space between list items */
width: 100%; /* Ensure full width inside modal */
}
/* Filename Styling */
#historyList .filename {
flex-grow: 1; /* Allow filename to take up available space */
text-overflow: ellipsis; /* Truncate long names */
white-space: nowrap; /* Prevent wrapping */
overflow: hidden; /* Hide overflowing text */
padding-right: 15px; /* Space between filename and delete button */
}
/* Delete Button Styling */
#historyList .btn-danger {
flex-shrink: 0; /* Prevent button from shrinking */
padding: 5px 15px;
font-size: 14px;
border-radius: 8px; /* Rounded corners */
background-color: #dc3545; /* Standard Bootstrap danger color */
border: none;
transition: all 0.3s ease-in-out;
}
#historyList .btn-danger:hover {
background-color: #b52b37; /* Slightly darker red on hover */
color: white;
cursor: pointer;
}
/* Modal Adjustments */
.modal-dialog {
max-width: 700px; /* Wider modal dialog to fit the expanded list and delete buttons */
}
.modal-content {
padding: 10px;
}
|