Files
boris/src/styles/utils/legacy.css
Gigi 48cde27a5b refactor: extract legacy styles to dedicated file
- Created src/styles/utils/legacy.css for bookmark/nostr styles
- Reduced index.css from 214 lines to 17 lines
- Fixed duplicate .loading style definitions
- DRY improvement: shared word-break pattern across nostr classes
- Better organization and maintainability
2025-10-13 22:18:12 +02:00

185 lines
2.7 KiB
CSS

/* Legacy styles for bookmark debugging and nostr content parsing */
.user-info {
margin: 0.5rem 0 0 0;
color: #888;
font-size: 0.9rem;
font-family: monospace;
}
.bookmark-count {
color: #666;
font-size: 0.9rem;
margin: 0.5rem 0;
}
.event-link {
color: #8ab4f8;
text-decoration: none;
font-weight: 500;
}
.event-link:hover {
text-decoration: underline;
}
.bookmark-urls {
margin: 0.75rem 0;
}
.bookmark-url {
display: block;
margin: 0.25rem 0;
color: #007bff;
text-decoration: none;
word-break: break-all;
background: none;
border: none;
padding: 0;
font: inherit;
cursor: pointer;
text-align: left;
width: 100%;
}
.bookmark-url:hover {
text-decoration: underline;
}
.url-row {
display: flex;
align-items: center;
gap: 0.5rem;
}
.read-inline-btn {
background: #28a745;
color: white;
border: none;
padding: 0.25rem 0.5rem;
border-radius: 4px;
cursor: pointer;
}
.read-inline-btn:hover {
background: #218838;
}
.bookmark-events {
margin: 1rem 0;
}
.bookmark-events h4 {
margin: 0 0 0.5rem 0;
font-size: 0.9rem;
color: #666;
}
.event-ids {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.event-id {
background: #f5f5f5;
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-family: monospace;
font-size: 0.8rem;
color: #666;
}
.more-events {
color: #999;
font-style: italic;
font-size: 0.8rem;
}
/* Nostr content parsing styles */
.parsed-content,
.nostr-mention,
.nostr-link,
.nostr-uri-link {
word-wrap: break-word;
overflow-wrap: break-word;
word-break: break-word;
}
.parsed-content {
margin: 1rem 0;
line-height: 1.6;
}
.nostr-mention,
.nostr-uri-link {
color: #007bff;
text-decoration: none;
font-family: monospace;
background: #f8f9fa;
padding: 0.2rem 0.4rem;
border-radius: 3px;
font-size: 0.9rem;
}
.nostr-uri-link {
font-size: 0.9em;
border-radius: 4px;
}
.nostr-mention:hover,
.nostr-uri-link:hover {
background: #e9ecef;
text-decoration: underline;
}
.nostr-link {
color: #007bff;
text-decoration: none;
}
.nostr-link:hover {
text-decoration: underline;
}
.logout-button {
background: #dc3545;
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s;
}
.logout-button:hover {
background: #c82333;
}
/* Common state styles */
.loading {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 2rem;
color: #ccc;
}
.empty-state {
text-align: center;
padding: 3rem;
color: #888;
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.empty-state p {
margin: 0.5rem 0;
}