1470 lines
26 KiB
CSS
1470 lines
26 KiB
CSS
/* Theme Colors - Match ailog style */
|
|
:root {
|
|
--primary: #f40;
|
|
--primary-hover: #e03000;
|
|
--danger: #f91880;
|
|
--danger-hover: #d91a60;
|
|
--success: #00ba7c;
|
|
--warning: #ffad1f;
|
|
--text: #1f2328;
|
|
--text-secondary: #656d76;
|
|
--background: #ffffff;
|
|
--background-secondary: #f6f8fa;
|
|
--border: #d1d9e0;
|
|
--border-dark: #b8c0c8;
|
|
--hover: rgba(15, 20, 25, 0.1);
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
background: var(--background);
|
|
color: var(--text);
|
|
line-height: 1.6;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.app {
|
|
min-height: 100vh;
|
|
background: var(--background);
|
|
}
|
|
|
|
/* Profile Form Styles */
|
|
.profile-form-container {
|
|
background: var(--background-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.profile-form-container h3 {
|
|
margin: 0 0 16px 0;
|
|
color: var(--text);
|
|
}
|
|
|
|
.profile-form .form-row {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.profile-form .form-group {
|
|
flex: 1;
|
|
}
|
|
|
|
.profile-form .form-group label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.profile-form .form-group input,
|
|
.profile-form .form-group select,
|
|
.profile-form .form-group textarea {
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.profile-form .form-group input:focus,
|
|
.profile-form .form-group select:focus,
|
|
.profile-form .form-group textarea:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.profile-form .form-group textarea {
|
|
resize: vertical;
|
|
min-height: 80px;
|
|
}
|
|
|
|
.profile-form .submit-btn {
|
|
background: var(--primary);
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.profile-form .submit-btn:hover:not(:disabled) {
|
|
background: var(--primary-hover);
|
|
}
|
|
|
|
.profile-form .submit-btn:disabled {
|
|
background: var(--text-secondary);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Profile Record List Styles */
|
|
.profile-record-list .record-item.admin {
|
|
border-left: 4px solid var(--primary);
|
|
}
|
|
|
|
.profile-record-list .admin-badge {
|
|
background: var(--primary);
|
|
color: white;
|
|
font-size: 10px;
|
|
padding: 2px 6px;
|
|
border-radius: 10px;
|
|
font-weight: 500;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
/* Header */
|
|
.oauth-app-header {
|
|
background: var(--background);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
width: 100%;
|
|
}
|
|
|
|
.oauth-header-content {
|
|
/* display: flex; */
|
|
/* justify-content: center; */
|
|
/* align-items: center; */
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 30px 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.oauth-header-content:has(.oauth-user-profile) {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.oauth-app-title {
|
|
font-size: 20px;
|
|
font-weight: 800;
|
|
color: var(--text);
|
|
}
|
|
|
|
.oauth-header-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
flex: 1;
|
|
}
|
|
|
|
/* When user is logged in, actions take normal space */
|
|
.oauth-header-content:has(.oauth-user-profile) .oauth-header-actions {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
/* OAuth User Profile in Header */
|
|
.oauth-user-profile {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex: 1;
|
|
}
|
|
|
|
.profile-avatar-section {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.profile-avatar-section .profile-avatar {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
border: 2px solid var(--border);
|
|
}
|
|
|
|
.profile-avatar-fallback {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
background: var(--background-secondary);
|
|
border: 2px solid var(--border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.profile-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.profile-display-name {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
margin-bottom: 2px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.profile-handle {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 2px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.profile-did {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-weight: 700;
|
|
font-size: 15px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--primary);
|
|
color: white;
|
|
padding: 8px 16px;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--primary-hover);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--danger);
|
|
color: white;
|
|
padding: 8px 16px;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: var(--danger-hover);
|
|
}
|
|
|
|
.btn-outline {
|
|
background: transparent;
|
|
color: var(--text);
|
|
border: 1px solid var(--border);
|
|
padding: 8px 16px;
|
|
}
|
|
|
|
.btn-outline:hover {
|
|
background: var(--hover);
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 4px 12px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Auth Section */
|
|
.auth-section {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.auth-section.search-bar-layout {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0;
|
|
/* gap: 0; */
|
|
width: 100%;
|
|
/* max-width: 400px; */
|
|
}
|
|
|
|
.auth-section.search-bar-layout .handle-input {
|
|
flex: 1;
|
|
margin: 0;
|
|
padding: 9px 15px;
|
|
font-size: 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px 0 0 4px;
|
|
background: var(--background);
|
|
outline: none;
|
|
transition: border-color 0.2s;
|
|
width: 100%;
|
|
text-align: left;
|
|
color: var(--text);
|
|
}
|
|
|
|
.auth-section.search-bar-layout .handle-input:focus {
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.auth-section.search-bar-layout .auth-button {
|
|
border-radius: 0 4px 4px 0;
|
|
border: 1px solid var(--primary);
|
|
border-left: none;
|
|
margin: 0;
|
|
padding: 9px 15px;
|
|
}
|
|
|
|
/* Auth Button */
|
|
.auth-button {
|
|
background: var(--primary);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
padding: 9px 15px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.auth-button:hover {
|
|
background: var(--primary-hover);
|
|
}
|
|
|
|
.auth-button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.main-content {
|
|
grid-area: main;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 0px;
|
|
width: 100%;
|
|
}
|
|
|
|
@media (max-width: 1000px) {
|
|
.main-content {
|
|
padding: 0px !important;
|
|
margin: 0px !important;
|
|
max-width: 100% !important;
|
|
width: 100% !important;
|
|
overflow-x: hidden !important;
|
|
}
|
|
}
|
|
|
|
/* Bluesky Footer */
|
|
.bluesky-footer {
|
|
text-align: center;
|
|
padding: 40px 0;
|
|
color: var(--primary);
|
|
opacity: 0.3;
|
|
transition: opacity 0.3s;
|
|
}
|
|
|
|
.bluesky-footer:hover {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.bluesky-footer .fa-bluesky {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.content-area {
|
|
background: var(--background);
|
|
}
|
|
|
|
/* Card Styles */
|
|
.card {
|
|
background: var(--background);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
margin: 16px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.card-header {
|
|
padding: 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
font-weight: 700;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.card-content {
|
|
padding: 16px;
|
|
}
|
|
|
|
/* Comment Form */
|
|
.comment-form {
|
|
padding: 16px;
|
|
}
|
|
|
|
.comment-form h3 {
|
|
font-size: 20px;
|
|
font-weight: 800;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
font-weight: 700;
|
|
margin-bottom: 8px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.form-input {
|
|
width: 100%;
|
|
padding: 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
font-size: 16px;
|
|
font-family: inherit;
|
|
background: var(--background);
|
|
color: var(--text);
|
|
}
|
|
|
|
.form-input:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.form-textarea {
|
|
min-height: 120px;
|
|
resize: vertical;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
/* Tab Navigation */
|
|
.tab-header {
|
|
display: flex;
|
|
background: var(--background);
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.tab-btn {
|
|
background: none;
|
|
border: none;
|
|
padding: 16px 20px;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
border-bottom: 2px solid transparent;
|
|
transition: color 0.2s;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tab-btn:hover {
|
|
color: var(--text);
|
|
background: var(--hover);
|
|
}
|
|
|
|
.tab-btn.active {
|
|
color: var(--primary);
|
|
border-bottom-color: var(--primary);
|
|
}
|
|
|
|
/* Record List */
|
|
.record-item {
|
|
border: 1px solid var(--border);
|
|
border-radius: 0;
|
|
padding: 16px;
|
|
transition: background 0.2s, border-color 0.2s;
|
|
position: relative;
|
|
margin-bottom: -1px; /* Overlap borders */
|
|
}
|
|
|
|
.record-item:first-child {
|
|
border-top-left-radius: 12px;
|
|
border-top-right-radius: 12px;
|
|
}
|
|
|
|
.record-item:last-child {
|
|
border-bottom-left-radius: 12px;
|
|
border-bottom-right-radius: 12px;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.record-item:hover {
|
|
background: var(--background-secondary);
|
|
border-color: var(--border-dark);
|
|
z-index: 1; /* Bring to front when hovering */
|
|
}
|
|
|
|
.record-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.user-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.display-name {
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
font-size: 15px;
|
|
}
|
|
|
|
.handle {
|
|
color: var(--text-secondary);
|
|
font-size: 15px;
|
|
}
|
|
|
|
.handle-link {
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.handle-link:hover {
|
|
color: var(--primary);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.timestamp {
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.record-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.record-content {
|
|
font-size: 15px;
|
|
line-height: 1.5;
|
|
color: var(--text);
|
|
margin-bottom: 12px;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.record-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.record-url {
|
|
color: var(--primary);
|
|
text-decoration: none;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.record-url:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* JSON Display */
|
|
.json-display {
|
|
margin-top: 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.json-header {
|
|
background: var(--background-secondary);
|
|
padding: 8px 12px;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.json-content {
|
|
background: #f8f9fa;
|
|
padding: 12px;
|
|
font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
overflow-x: auto;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
word-break: break-word;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
color: var(--text);
|
|
}
|
|
|
|
/* Ask AI */
|
|
.ask-ai-container {
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
background: var(--background);
|
|
}
|
|
|
|
.ask-ai-header {
|
|
padding: 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--background-secondary);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.ask-ai-header h3 {
|
|
font-size: 20px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.chat-container {
|
|
height: 400px;
|
|
overflow-y: auto;
|
|
padding: 16px;
|
|
}
|
|
|
|
.chat-message {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/*
|
|
.user-message { margin-left: 40px; }
|
|
.ai-message { margin-right: 40px; }
|
|
*/
|
|
|
|
.message-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.message-content {
|
|
background: var(--background-secondary);
|
|
padding: 12px 16px;
|
|
border-radius: 6px;
|
|
font-size: 15px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.user-message .message-content {
|
|
color: #000;
|
|
}
|
|
|
|
.question-form {
|
|
padding: 16px;
|
|
border-top: 1px solid var(--border);
|
|
background: var(--background);
|
|
}
|
|
|
|
.input-container {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.question-input {
|
|
flex: 1;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
padding: 12px 16px;
|
|
font-size: 16px;
|
|
resize: none;
|
|
font-family: inherit;
|
|
background: var(--background);
|
|
}
|
|
|
|
.question-input:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.send-btn {
|
|
background: var(--primary);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 6px;
|
|
width: 36px;
|
|
height: 36px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.send-btn:hover:not(:disabled) {
|
|
background: var(--primary-hover);
|
|
}
|
|
|
|
.send-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Test UI */
|
|
.test-ui {
|
|
border: 2px solid var(--danger);
|
|
border-radius: 6px;
|
|
margin: 16px;
|
|
background: #fff5f7;
|
|
}
|
|
|
|
.test-ui h2 {
|
|
color: var(--danger);
|
|
padding: 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
margin: 0;
|
|
}
|
|
|
|
.test-ui .card-content {
|
|
padding: 16px;
|
|
}
|
|
|
|
/* Loading Skeleton */
|
|
.loading-skeleton {
|
|
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
}
|
|
|
|
.skeleton-line {
|
|
background: var(--background-secondary);
|
|
border-radius: 4px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
/* Error States */
|
|
.error-message {
|
|
background: #fef2f2;
|
|
border: 1px solid #fecaca;
|
|
color: #991b1b;
|
|
padding: 12px 16px;
|
|
border-radius: 6px;
|
|
margin: 16px 0;
|
|
}
|
|
|
|
.success-message {
|
|
background: #f0fdf4;
|
|
border: 1px solid #bbf7d0;
|
|
color: #166534;
|
|
padding: 12px 16px;
|
|
border-radius: 6px;
|
|
margin: 16px 0;
|
|
}
|
|
|
|
/* Auth Notice */
|
|
.auth-notice {
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* Page Info */
|
|
.page-info {
|
|
padding: 8px 16px;
|
|
background: var(--background-secondary);
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
text-align: center;
|
|
}
|
|
|
|
.bottom-actions {
|
|
padding: 20px;
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.test-section {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 1000px) {
|
|
/* Global mobile constraints */
|
|
* {
|
|
max-width: 100% !important;
|
|
box-sizing: border-box !important;
|
|
}
|
|
|
|
body {
|
|
overflow-x: hidden !important;
|
|
width: 100% !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.app {
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
overflow-x: hidden !important;
|
|
padding: 0 !important;
|
|
margin: 0 !important;
|
|
}
|
|
|
|
/* OAuth app mobile fixes - prevent overflow and content issues */
|
|
.oauth-app-header {
|
|
padding: 0px !important;
|
|
margin: 0px !important;
|
|
border: none !important;
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
}
|
|
|
|
.oauth-header-content {
|
|
max-width: 100% !important;
|
|
width: 100% !important;
|
|
padding: 10px 0px !important;
|
|
margin: 0px !important;
|
|
overflow-x: hidden !important;
|
|
}
|
|
|
|
.oauth-header-actions {
|
|
width: auto !important;
|
|
max-width: 100% !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
.content-area {
|
|
padding: 0px !important;
|
|
margin: 0px !important;
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
overflow-x: hidden !important;
|
|
}
|
|
|
|
.card {
|
|
margin: 0px !important;
|
|
border-radius: 0px !important;
|
|
border-left: none !important;
|
|
border-right: none !important;
|
|
max-width: 100% !important;
|
|
}
|
|
|
|
.card-content {
|
|
padding: 15px !important;
|
|
}
|
|
|
|
.comment-form {
|
|
padding: 15px !important;
|
|
}
|
|
|
|
.record-item {
|
|
padding: 15px !important;
|
|
margin: 0px !important;
|
|
border-radius: 0 !important;
|
|
border-left: none !important;
|
|
border-right: none !important;
|
|
}
|
|
|
|
.record-item:first-child {
|
|
border-top: 1px solid var(--border) !important;
|
|
}
|
|
|
|
.record-content {
|
|
word-wrap: break-word !important;
|
|
overflow-wrap: break-word !important;
|
|
max-width: 100% !important;
|
|
}
|
|
|
|
.record-meta {
|
|
word-break: break-all !important;
|
|
overflow-wrap: break-word !important;
|
|
flex-wrap: wrap !important;
|
|
}
|
|
|
|
.record-url {
|
|
word-break: break-all !important;
|
|
max-width: 100% !important;
|
|
}
|
|
|
|
.form-input, .form-textarea {
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
box-sizing: border-box !important;
|
|
padding: 12px !important;
|
|
}
|
|
|
|
.auth-section {
|
|
padding: 0px !important;
|
|
max-width: 100% !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
.auth-section.search-bar-layout {
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
}
|
|
|
|
.auth-section.search-bar-layout .handle-input {
|
|
max-width: calc(100% - 80px) !important;
|
|
width: calc(100% - 80px) !important;
|
|
}
|
|
|
|
.auth-button {
|
|
white-space: nowrap !important;
|
|
min-width: 90px !important;
|
|
width: 90px !important;
|
|
}
|
|
|
|
.tab-header {
|
|
overflow-x: auto !important;
|
|
-webkit-overflow-scrolling: touch !important;
|
|
width: 100% !important;
|
|
display: flex !important;
|
|
scrollbar-width: none !important; /* Firefox */
|
|
-ms-overflow-style: none !important; /* IE/Edge */
|
|
}
|
|
|
|
.tab-header::-webkit-scrollbar {
|
|
display: none !important; /* Chrome/Safari */
|
|
}
|
|
|
|
.tab-btn {
|
|
white-space: nowrap !important;
|
|
min-width: auto !important;
|
|
padding: 12px 16px !important;
|
|
flex-shrink: 0 !important;
|
|
font-size: 13px !important;
|
|
}
|
|
|
|
.json-content {
|
|
font-size: 10px !important;
|
|
padding: 8px !important;
|
|
overflow-x: auto !important;
|
|
-webkit-overflow-scrolling: touch !important;
|
|
white-space: pre-wrap !important;
|
|
word-wrap: break-word !important;
|
|
word-break: break-word !important;
|
|
}
|
|
|
|
.ask-ai-container {
|
|
margin: 0px !important;
|
|
border-radius: 0px !important;
|
|
border-left: none !important;
|
|
border-right: none !important;
|
|
}
|
|
|
|
.chat-container {
|
|
height: 250px !important;
|
|
padding: 12px !important;
|
|
}
|
|
|
|
.question-form {
|
|
padding: 12px !important;
|
|
}
|
|
|
|
.input-container {
|
|
flex-direction: column !important;
|
|
gap: 12px !important;
|
|
}
|
|
|
|
.question-input {
|
|
width: 100% !important;
|
|
box-sizing: border-box !important;
|
|
}
|
|
|
|
.send-btn {
|
|
width: 100% !important;
|
|
height: 44px !important;
|
|
}
|
|
|
|
.oauth-user-profile {
|
|
gap: 8px;
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
.profile-info {
|
|
flex: 1 !important;
|
|
min-width: 0 !important;
|
|
max-width: calc(100% - 50px) !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
.profile-avatar-section .profile-avatar,
|
|
.profile-avatar-fallback {
|
|
width: 36px;
|
|
height: 36px;
|
|
font-size: 14px;
|
|
flex-shrink: 0 !important;
|
|
}
|
|
|
|
.profile-display-name {
|
|
font-size: 14px;
|
|
overflow: hidden !important;
|
|
text-overflow: ellipsis !important;
|
|
white-space: nowrap !important;
|
|
max-width: 100% !important;
|
|
}
|
|
|
|
.profile-handle {
|
|
font-size: 12px;
|
|
overflow: hidden !important;
|
|
text-overflow: ellipsis !important;
|
|
white-space: nowrap !important;
|
|
max-width: 100% !important;
|
|
}
|
|
|
|
.profile-did {
|
|
font-size: 9px;
|
|
overflow: hidden !important;
|
|
text-overflow: ellipsis !important;
|
|
white-space: nowrap !important;
|
|
max-width: 100% !important;
|
|
}
|
|
|
|
.oauth-header-content {
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
/* align-items: flex-start; */
|
|
}
|
|
|
|
.oauth-header-actions {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
article.article-content {
|
|
max-width: 100%;
|
|
}
|
|
|
|
}
|
|
|
|
/* Avatar Styles */
|
|
.avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.avatar-loading {
|
|
background: var(--background-secondary);
|
|
border-radius: 50%;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.avatar-loading::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
|
|
animation: loading-shimmer 1.5s infinite;
|
|
}
|
|
|
|
@keyframes loading-shimmer {
|
|
0% { left: -100%; }
|
|
100% { left: 100%; }
|
|
}
|
|
|
|
.avatar-fallback {
|
|
background: var(--background-secondary);
|
|
color: var(--text-secondary);
|
|
font-weight: 600;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
/* Avatar with Card */
|
|
.avatar-container {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.avatar-card {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: var(--background);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
padding: 16px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
z-index: 1000;
|
|
min-width: 200px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.avatar-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: -8px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 0;
|
|
height: 0;
|
|
border-left: 8px solid transparent;
|
|
border-right: 8px solid transparent;
|
|
border-bottom: 8px solid var(--border);
|
|
}
|
|
|
|
.avatar-card::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: -7px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 0;
|
|
height: 0;
|
|
border-left: 7px solid transparent;
|
|
border-right: 7px solid transparent;
|
|
border-bottom: 7px solid var(--background);
|
|
}
|
|
|
|
.avatar-card-image {
|
|
display: block;
|
|
margin: 0 auto 12px;
|
|
}
|
|
|
|
.avatar-card-info {
|
|
text-align: center;
|
|
}
|
|
|
|
.avatar-card-name {
|
|
font-weight: 700;
|
|
font-size: 16px;
|
|
margin-bottom: 4px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.avatar-card-handle {
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.avatar-card-handle:hover {
|
|
color: var(--primary);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Avatar List */
|
|
.avatar-list {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.avatar-list-item {
|
|
border: 2px solid var(--background);
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.avatar-list-more {
|
|
border: 2px solid var(--background);
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Avatar Test Styles */
|
|
.avatar-test-container {
|
|
margin: 16px;
|
|
}
|
|
|
|
.test-section {
|
|
margin-bottom: 32px;
|
|
padding-bottom: 24px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.test-section:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.test-section h3 {
|
|
margin-bottom: 16px;
|
|
color: var(--text);
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.avatar-examples {
|
|
display: flex;
|
|
gap: 24px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.avatar-example {
|
|
text-align: center;
|
|
}
|
|
|
|
.avatar-example h4 {
|
|
margin-bottom: 8px;
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.test-controls {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Utilities */
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
/* Chat Conversation Styles */
|
|
.chat-conversation {
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.chat-message.comment-style {
|
|
background: var(--background);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
padding: 16px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.chat-message.user-message.comment-style {
|
|
border-left: 4px solid var(--primary);
|
|
}
|
|
|
|
.chat-message.ai-message.comment-style {
|
|
border-left: 4px solid #ffdd00;
|
|
background: #faf8ff;
|
|
}
|
|
|
|
.message-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.message-header .avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: var(--background-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 16px;
|
|
border: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.message-header .user-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.message-header .display-name {
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
font-size: 15px;
|
|
}
|
|
|
|
.message-header .handle {
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.message-header .timestamp {
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.message-content {
|
|
color: var(--text);
|
|
line-height: 1.5;
|
|
word-wrap: anywhere;
|
|
}
|
|
|
|
/* Markdown styles */
|
|
.message-content h1,
|
|
.message-content h2,
|
|
.message-content h3,
|
|
.message-content h4,
|
|
.message-content h5,
|
|
.message-content h6 {
|
|
margin: 16px 0 8px 0;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.message-content h1 { font-size: 1.5em; }
|
|
.message-content h2 { font-size: 1.3em; }
|
|
.message-content h3 { font-size: 1.1em; }
|
|
|
|
.message-content p {
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.message-content pre {
|
|
background: var(--background-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
padding: 12px;
|
|
margin: 12px 0;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.message-content code {
|
|
background: var(--background-secondary);
|
|
padding: 2px 4px;
|
|
border-radius: 3px;
|
|
font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.message-content pre code {
|
|
background: transparent;
|
|
padding: 0;
|
|
border-radius: 0;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.message-content ul,
|
|
.message-content ol {
|
|
margin: 8px 0;
|
|
padding-left: 24px;
|
|
}
|
|
|
|
.message-content li {
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.message-content blockquote {
|
|
border-left: 4px solid var(--border);
|
|
padding-left: 16px;
|
|
margin: 12px 0;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.message-content table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
margin: 12px 0;
|
|
}
|
|
|
|
.message-content th,
|
|
.message-content td {
|
|
border: 1px solid var(--border);
|
|
padding: 8px 12px;
|
|
text-align: left;
|
|
}
|
|
|
|
.message-content th {
|
|
background: var(--background-secondary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.message-content a {
|
|
color: var(--primary);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.message-content a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.message-content hr {
|
|
border: none;
|
|
border-top: 1px solid var(--border);
|
|
margin: 16px 0;
|
|
}
|
|
|
|
.record-actions {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.bluesky-footer {
|
|
text-align: center;
|
|
padding: 20px;
|
|
color: var(--primary);
|
|
font-size: 24px;
|
|
}
|
|
|
|
.bluesky-footer i {
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.bluesky-footer i:hover {
|
|
color: var(--primary-hover);
|
|
}
|
|
|
|
/* Custom code block styling */
|
|
.message-content pre {
|
|
background: #2d3748 !important;
|
|
border: 1px solid #4a5568 !important;
|
|
border-radius: 6px;
|
|
padding: 12px;
|
|
margin: 12px 0;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.message-content pre code {
|
|
background: transparent !important;
|
|
color: #e2e8f0 !important;
|
|
font-family: 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.message-content code {
|
|
background: #2d3748 !important;
|
|
color: #e2e8f0 !important;
|
|
padding: 2px 4px;
|
|
border-radius: 3px;
|
|
font-family: 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
|
|
font-size: 14px;
|
|
}
|