348 lines
5.2 KiB
CSS
348 lines
5.2 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
|
|
background: #f5f5f5;
|
|
color: #333;
|
|
}
|
|
|
|
.app {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.app-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 20px 0;
|
|
border-bottom: 2px solid #e0e0e0;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.app-header h1 {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.app-header nav {
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.app-header nav a {
|
|
color: #666;
|
|
text-decoration: none;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.app-header nav a:hover {
|
|
color: #000;
|
|
}
|
|
|
|
.user-badge {
|
|
background: #e8f5e9;
|
|
padding: 8px 12px;
|
|
border-radius: 20px;
|
|
font-size: 14px;
|
|
color: #2e7d32;
|
|
}
|
|
|
|
main {
|
|
min-height: 400px;
|
|
}
|
|
|
|
footer {
|
|
margin-top: 50px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #e0e0e0;
|
|
text-align: center;
|
|
color: #999;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Form Styles */
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: 600;
|
|
color: #555;
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group textarea {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group textarea:focus {
|
|
outline: none;
|
|
border-color: #7c4dff;
|
|
}
|
|
|
|
/* Button Styles */
|
|
.btn-primary {
|
|
background: #7c4dff;
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 6px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
width: 100%;
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: #6c3fdb;
|
|
}
|
|
|
|
.btn-primary:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #e0e0e0;
|
|
color: #333;
|
|
border: none;
|
|
padding: 8px 16px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #d0d0d0;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: #ff5252;
|
|
color: white;
|
|
border: none;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-danger:hover:not(:disabled) {
|
|
background: #d32f2f;
|
|
}
|
|
|
|
.btn-danger:disabled {
|
|
opacity: 0.3;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-nostr {
|
|
background: #ff6b00;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
border-radius: 6px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-nostr:hover:not(:disabled) {
|
|
background: #e85a00;
|
|
}
|
|
|
|
/* Relay List */
|
|
.relay-list {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.relay-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
background: white;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 6px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.relay-item .relay-input {
|
|
flex: 1;
|
|
padding: 8px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.relay-item label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 14px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
/* Share Box */
|
|
.share-box {
|
|
margin-top: 20px;
|
|
padding: 20px;
|
|
background: #e8f5e9;
|
|
border-radius: 8px;
|
|
border-left: 4px solid #4caf50;
|
|
}
|
|
|
|
.share-box input {
|
|
width: 100%;
|
|
padding: 8px;
|
|
margin: 8px 0;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.share-box button {
|
|
background: #4caf50;
|
|
color: white;
|
|
border: none;
|
|
padding: 8px 16px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Template Applier */
|
|
.template-preview {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
margin: 20px 0;
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.template-preview h3 {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.relay-preview ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.relay-preview li {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.relay-url {
|
|
font-family: monospace;
|
|
}
|
|
|
|
.relay-permissions {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.error-box, .warning {
|
|
padding: 20px;
|
|
background: #ffebee;
|
|
border-radius: 8px;
|
|
border-left: 4px solid #f44336;
|
|
color: #c62828;
|
|
}
|
|
|
|
.warning {
|
|
background: #fff3e0;
|
|
border-left-color: #ff9800;
|
|
color: #e65100;
|
|
}
|
|
|
|
.success-box {
|
|
margin-top: 20px;
|
|
padding: 20px;
|
|
background: #e8f5e9;
|
|
border-radius: 8px;
|
|
border-left: 4px solid #4caf50;
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: #999;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 600px) {
|
|
.app-header {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
text-align: center;
|
|
}
|
|
|
|
.app-header nav {
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
.relay-item {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.relay-item label {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
/* Connection status */
|
|
.connection-status {
|
|
margin: 16px 0;
|
|
}
|
|
|
|
.connection-status .warning {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.connection-status .warning .btn-nostr {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Info box for connection status */
|
|
.info-box {
|
|
background: #e3f2fd;
|
|
border-left: 4px solid #2196f3;
|
|
color: #0d47a1;
|
|
padding: 12px 16px;
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.info-box code {
|
|
background: rgba(0,0,0,0.08);
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Community Templates */
|
|
.active-template {
|
|
background: #f0ebff !important;
|
|
border-color: #7c4dff !important;
|
|
color: #7c4dff !important;
|
|
}
|
|
|
|
.active-template:hover {
|
|
background: #e8e0ff !important;
|
|
}
|