Files
crab-webapp/public/css/style.css
2025-05-08 00:11:21 +02:00

92 lines
1.3 KiB
CSS

body {
font-family: sans-serif;
max-width: 50vw;
margin: 2em auto;
}
fieldset {
margin-bottom: 1.5em;
padding: 1em;
}
button {
padding: 0.5em 1em;
}
h1 {
display: flex;
align-items: center;
gap: 0.5rem;
/* space between icon and text */
}
.crab-icon {
width: 40px;
/* adjust size as you like */
height: auto;
}
#progress-container {
display: none;
}
#progress-container div {
display: flex;
width: 100%;
align-items: center;
gap: .5em;
}
#progress-bar {
flex-grow: 1;
width: 100%;
}
#results-container {
display: none;
}
table {
width: 100%;
border-collapse: collapse;
}
table th {
background-color: #f4f4f4;
padding: 8px;
text-align: left;
border-bottom: 2px solid #ddd;
}
table td {
padding: 8px;
border-bottom: 1px solid #eee;
}
table tr:nth-child(even) {
background-color: #fafafa;
}
table tr:hover {
background-color: #f1f1f1;
}
/* style id column values */
table td:nth-child(1) {
font-family: monospace; /* fixed-width font */
width: 8ch; /* exactly 8 “0” widths */
white-space: normal; /* allow wrapping */
word-break: break-all;
}
/* style score header */
table th:nth-child(3) {
white-space: nowrap;
}
/* style score column values */
table td:nth-child(3) {
text-align: right;
}