prism/server/public/index.css

253 lines
3.4 KiB
CSS

/* CSS Reset */
*,
*::before,
*::after {
box-sizing: border-box;
}
* {
margin: 0;
padding: 0;
}
body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
input,
button,
textarea,
select {
font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
/* Styles */
body {
font-family: system-ui;
max-width: 50rem;
margin: 1.25rem auto;
padding: 1.25rem;
background: #f5f5f5;
}
.card {
background: white;
border-radius: 0.5rem;
padding: 1.25rem;
margin-bottom: 1.25rem;
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}
h2 {
margin-bottom: 1.25rem;
}
.status {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
.status-item {
padding: 0.625rem 1rem;
border-radius: 0.25rem;
font-weight: 500;
position: relative;
}
.status-item:has(.tooltip) {
cursor: help;
}
.status-item .tooltip {
visibility: hidden;
opacity: 0;
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
margin-bottom: 0.5rem;
background: #333;
color: white;
padding: 0.375rem 0.625rem;
border-radius: 0.25rem;
font-size: 0.875rem;
font-weight: 400;
white-space: nowrap;
transition: opacity 0.2s;
pointer-events: none;
z-index: 10;
}
.status-item .tooltip::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border: 0.3125rem solid transparent;
border-top-color: #333;
}
.status-item:hover .tooltip {
visibility: visible;
opacity: 1;
}
.status-ok {
background: #d4edda;
color: #155724;
}
.status-error {
background: #f8d7da;
color: #721c24;
}
.endpoint-list {
list-style: none;
padding: 0;
max-height: 18.75rem;
overflow-y: auto;
}
.endpoint-item {
display: flex;
align-items: center;
padding: 0.5rem 0.75rem;
background: #f8f9fa;
border-radius: 0.25rem;
margin-bottom: 0.375rem;
}
.endpoint-name {
font-size: 1.1em;
flex: 1;
}
.btn-delete {
padding: 0.375rem 0.75rem;
background: #dc3545;
color: white;
border: none;
border-radius: 0.25rem;
cursor: pointer;
}
.btn-delete:hover {
background: #c82333;
}
.btn-cancel {
margin-top: 1rem;
padding: 0.5rem 1rem;
background: #6c757d;
color: white;
border: none;
border-radius: 0.25rem;
cursor: pointer;
}
.btn-cancel:hover {
background: #5a6268;
}
.unlink-details {
margin-top: 1rem;
}
.unlink-summary {
cursor: pointer;
font-weight: bold;
}
.unlink-instructions {
margin-top: 1rem;
}
.unlink-instructions ol {
margin-left: 1.25rem;
}
.qr-instructions {
font-size: 1.05em;
}
.qr-container {
margin-top: 1rem;
width: 18.75rem;
height: 18.75rem;
display: flex;
align-items: center;
justify-content: center;
}
.qr-image {
width: 100%;
height: 100%;
object-fit: contain;
}
.link-button {
display: inline-block;
padding: 0.625rem 1.25rem;
background: #8159b8;
color: white;
text-decoration: none;
border-radius: 0.25rem;
margin-top: 0.625rem;
border: none;
cursor: pointer;
}
.link-button:hover {
background: #6b4a99;
}
.loading {
color: #666;
display: flex;
align-items: center;
gap: 0.5rem;
}
.spinner {
width: 1.25rem;
height: 1.25rem;
border: 0.125rem solid #e0e0e0;
border-top-color: #8159b8;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.loading-subtitle {
font-size: 0.875rem;
color: #666;
margin-top: 0.5rem;
}