@ably/cli
Version:
Ably CLI for Pub/Sub, Chat and Spaces
197 lines (168 loc) • 3.59 kB
CSS
#root {
padding: 0;
text-align: left;
height: 100%;
}
.App {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
}
.App-header {
padding: 0.5rem 1rem;
flex-shrink: 0;
border-bottom: 1px solid #444;
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
flex-wrap: nowrap;
}
.App-main {
flex-grow: 1;
display: flex;
flex-direction: column;
min-height: 0;
overflow: hidden;
padding: 1rem 2rem;
font-weight: 600;
}
/* Variant without padding used in fullscreen terminal */
.App-main.no-padding {
padding: 0;
}
.Terminal-container {
flex-grow: 1;
display: flex;
min-height: 0;
border: none; /* Removed inner border */
background-color: #000000;
padding: 1rem; /* inner black padding */
box-sizing: border-box;
}
/* Remove padding for terminals inside the drawer to allow dividers to extend full height */
.drawer-terminal-container .Terminal-container {
padding: 0;
}
/* Terminal containers now have no padding by default, allowing dividers to extend full height */
/* Ensure the AblyCliTerminal takes full height in drawer */
.drawer-terminal-container > div {
height: 100% ;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
}
@keyframes logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
}
}
.card {
padding: 2em;
}
.read-the-docs {
color: #888;
}
/* Style for the toggle button */
.toggle-button {
/* Use existing button styles or customize */
/* Example: making it slightly smaller */
padding: 0.4em 0.8em;
font-size: 0.9em;
}
/* Styles for the segmented control */
.toggle-group {
display: flex;
border-radius: 6px; /* Match button radius */
overflow: hidden; /* Clip corners */
border: 1px solid #444; /* Optional border around group */
}
.toggle-segment {
padding: 0.3em 0.6em;
font-size: 0.9em;
border: none; /* Remove individual button borders */
background-color: #333; /* Default inactive background */
color: #ccc;
cursor: pointer;
transition: background-color 0.2s ease;
}
.toggle-segment:not(:last-child) {
border-right: 1px solid #444; /* Separator line */
}
.toggle-segment:hover {
background-color: #444;
}
.toggle-segment.active {
background-color: #535bf2; /* Active background color */
color: white;
font-weight: 600;
}
/* Style for the info group (Original, update this one) */
.header-info {
display: flex;
gap: 0.75rem;
font-size: 0.8em;
color: #888;
flex-shrink: 1;
overflow: hidden;
white-space: nowrap;
align-items: center;
}
/* Auth button styles */
.auth-button {
padding: 0.375rem 0.75rem;
background-color: #1f2937;
border: 1px solid #374151;
border-radius: 0.375rem;
color: #e5e7eb;
font-size: 0.875rem;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 0.5rem;
white-space: nowrap;
}
.auth-button:hover {
background-color: #374151;
border-color: #4b5563;
}
.auth-button svg {
flex-shrink: 0;
}
/* Connection status styles */
.status {
font-weight: 600;
}
.status-connected {
color: #10b981;
}
.status-connecting,
.status-reconnecting {
color: #f59e0b;
}
.status-disconnected,
.status-error {
color: #ef4444;
}
.status-initial {
color: #6b7280;
}