Files
crab-webapp/public/css/style.css
2025-05-14 22:56:42 +02:00

192 lines
2.9 KiB
CSS

/* Header styling */
.site-header {
position: sticky;
display: flex;
align-items: center;
justify-content: space-between;
top: 0;
width: 100vw;
max-width: 100vw;
z-index: 1000;
background: #fafafa;
border-bottom: 1px solid #ddd;
padding: 0 1em;
}
.info-btn {
background: none;
border: none;
font-size: 1.5rem;
}
button {
cursor: pointer;
}
body {
font-family: sans-serif;
margin: 0;
padding: 0;
}
main {
max-width: 50vw;
margin: 2em auto;
}
fieldset {
margin-left: 0;
margin-right: -1px;
margin-bottom: 1.5em;
padding: 1em;
}
button {
padding: 0.5em 1em;
}
h1 {
display: flex;
align-items: center;
gap: 0.5rem;
margin: 0;
/* 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;
justify-items: center;
}
.results-container h3 {
display: flex;
width: 100%;
flex-direction: row;
justify-content: space-between;
}
.results-container#comment table {
width: 100%;
}
.results-container#refinement table {
text-align: center;
}
table {
border-collapse: collapse;
}
table thead {
background-color: #f4f4f4;
border-bottom: 2px solid #ddd;
cursor: default;
}
table thead th {
padding: 8px;
}
table thead th:hover {
cursor: pointer;
background-color: #eee;
}
table td {
padding: 8px;
border-bottom: 1px solid #eee;
}
table tbody tr:nth-child(even) {
background-color: #fafafa;
}
table tbody tr:hover {
background-color: #f1f1f1;
}
/* style id column values */
table tbody td:nth-child(1) {
font-family: monospace;
width: 8ch;
white-space: normal;
word-break: break-all;
}
.comment-cell {
overflow-wrap: break-word;
word-break: break-word;
}
/* style score header */
.results-container#comment table th:nth-child(3) {
white-space: nowrap;
}
/* style score column values */
.results-container#comment table tbody td:nth-child(3) {
text-align: right;
}
.hidden {
display: none !important;
}
/* Full-screen translucent backdrop */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
/* The white box */
.modal-container {
background: #fff;
padding: 1.5rem;
border-radius: 8px;
max-width: 400px;
width: 90%;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
position: relative;
}
/* Close button in corner */
.modal-close {
position: absolute;
top: 0.5rem;
right: 0.5rem;
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
}