@duongtrungnguyen/nestro
Version:
Service registry for Nest JS
159 lines (136 loc) • 2.61 kB
CSS
:root {
--primary: #5a67d8;
--primary-dark: #4c51bf;
--secondary: #718096;
--success: #48bb78;
--danger: #e53e3e;
--background: #f7fafc;
--card: #ffffff;
--text: #2d3748;
--border: #e2e8f0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color: var(--background);
color: var(--text);
margin: 0;
padding: 0;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
border-bottom: 1px solid var(--border);
padding-bottom: 1rem;
}
h1 {
margin: 0;
color: var(--primary);
}
.instance {
background-color: var(--card);
border-radius: 0.5rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
margin-bottom: 1.5rem;
overflow: hidden;
}
.instance-header {
background-color: var(--primary);
color: white;
padding: 1rem;
font-weight: bold;
display: flex;
justify-content: space-between;
align-items: center;
}
.instance-count {
background-color: rgba(255, 255, 255, 0.2);
border-radius: 9999px;
padding: 0.25rem 0.75rem;
font-size: 0.875rem;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 0.75rem 1rem;
text-align: left;
border-bottom: 1px solid var(--border);
}
th {
background-color: #f9fafb;
font-weight: 500;
}
tr:last-child td {
border-bottom: none;
}
.badge {
display: inline-block;
border-radius: 9999px;
padding: 0.25rem 0.75rem;
font-size: 0.75rem;
font-weight: 500;
}
.badge-success {
background-color: #c6f6d5;
color: #22543d;
}
.badge-warning {
background-color: #feebc8;
color: #7b341e;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 0.375rem;
padding: 0.5rem 1rem;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s;
border: none;
}
.btn-danger {
background-color: var(--danger);
color: white;
}
.btn-danger:hover {
background-color: #c53030;
}
.btn-refresh {
background-color: var(--primary);
color: white;
}
.btn-refresh:hover {
background-color: var(--primary-dark);
}
.empty-state {
text-align: center;
padding: 3rem;
color: var(--secondary);
}
.loading {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
color: white;
font-size: 1.25rem;
}
.hidden {
display: none;
}