- LND UI: replace cdn.tailwindcss.com with local tailwind.css (CSP fix) - LND UI: make asset paths relative for nginx proxy compatibility - Web5 wallet: add QR code for on-chain receive addresses (qrcode npm) - Web5 wallet: hide incoming transactions after 3 confirmations - Apps: add "Services" tab to separate backend containers from user apps - Home: null guard on packages.value to prevent TypeError on load - First-boot: auto-create Bitcoin Knots wallet (no longer auto-created) - AppSession: add mempool-electrs to port mapping Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
211 lines
7.3 KiB
CSS
211 lines
7.3 KiB
CSS
/* Tailwind CSS utilities — manually extracted for bitcoin-ui */
|
|
/* Replaces cdn.tailwindcss.com to comply with CSP script-src 'self' */
|
|
|
|
*, ::before, ::after {
|
|
box-sizing: border-box;
|
|
border-width: 0;
|
|
border-style: solid;
|
|
border-color: currentColor;
|
|
}
|
|
img, svg { display: block; vertical-align: middle; max-width: 100%; height: auto; }
|
|
button { cursor: pointer; background-color: transparent; font-family: inherit; font-size: 100%; line-height: inherit; color: inherit; margin: 0; padding: 0; }
|
|
h1, h2 { font-size: inherit; font-weight: inherit; }
|
|
|
|
/* Position */
|
|
.relative { position: relative; }
|
|
.absolute { position: absolute; }
|
|
.fixed { position: fixed; }
|
|
.inset-0 { inset: 0; }
|
|
|
|
/* Display */
|
|
.hidden { display: none; }
|
|
.flex { display: flex; }
|
|
.grid { display: grid; }
|
|
|
|
/* Flex */
|
|
.flex-col { flex-direction: column; }
|
|
.flex-row { flex-direction: row; }
|
|
.flex-1 { flex: 1 1 0%; }
|
|
.flex-shrink-0 { flex-shrink: 0; }
|
|
.items-center { align-items: center; }
|
|
.items-start { align-items: flex-start; }
|
|
.justify-between { justify-content: space-between; }
|
|
.justify-center { justify-content: center; }
|
|
|
|
/* Gap */
|
|
.gap-2 { gap: 0.5rem; }
|
|
.gap-3 { gap: 0.75rem; }
|
|
.gap-4 { gap: 1rem; }
|
|
.gap-6 { gap: 1.5rem; }
|
|
|
|
/* Grid */
|
|
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
|
|
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
|
|
/* Width */
|
|
.w-3 { width: 0.75rem; }
|
|
.w-4 { width: 1rem; }
|
|
.w-5 { width: 1.25rem; }
|
|
.w-6 { width: 1.5rem; }
|
|
.w-8 { width: 2rem; }
|
|
.w-12 { width: 3rem; }
|
|
.w-16 { width: 4rem; }
|
|
.w-full { width: 100%; }
|
|
|
|
/* Height */
|
|
.h-1 { height: 0.25rem; }
|
|
.h-2 { height: 0.5rem; }
|
|
.h-3 { height: 0.75rem; }
|
|
.h-4 { height: 1rem; }
|
|
.h-5 { height: 1.25rem; }
|
|
.h-6 { height: 1.5rem; }
|
|
.h-8 { height: 2rem; }
|
|
.h-12 { height: 3rem; }
|
|
.h-16 { height: 4rem; }
|
|
.h-full { height: 100%; }
|
|
|
|
/* Min/Max */
|
|
.min-w-0 { min-width: 0px; }
|
|
.max-w-2xl { max-width: 42rem; }
|
|
.max-w-4xl { max-width: 56rem; }
|
|
.max-h-\[80vh\] { max-height: 80vh; }
|
|
|
|
/* Padding */
|
|
.p-2 { padding: 0.5rem; }
|
|
.p-3 { padding: 0.75rem; }
|
|
.p-4 { padding: 1rem; }
|
|
.p-6 { padding: 1.5rem; }
|
|
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
|
|
.px-4 { padding-left: 1rem; padding-right: 1rem; }
|
|
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
|
|
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
|
|
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
|
|
|
|
/* Margin */
|
|
.mb-1 { margin-bottom: 0.25rem; }
|
|
.mb-2 { margin-bottom: 0.5rem; }
|
|
.mb-4 { margin-bottom: 1rem; }
|
|
.mb-6 { margin-bottom: 1.5rem; }
|
|
.mb-8 { margin-bottom: 2rem; }
|
|
.mt-2 { margin-top: 0.5rem; }
|
|
.mt-4 { margin-top: 1rem; }
|
|
.mx-auto { margin-left: auto; margin-right: auto; }
|
|
|
|
/* Typography — Size */
|
|
.text-xs { font-size: 0.75rem; line-height: 1rem; }
|
|
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
|
|
.text-base { font-size: 1rem; line-height: 1.5rem; }
|
|
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
|
|
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
|
|
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
|
|
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
|
|
|
|
/* Typography — Weight */
|
|
.font-medium { font-weight: 500; }
|
|
.font-semibold { font-weight: 600; }
|
|
.font-bold { font-weight: 700; }
|
|
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
|
|
.text-center { text-align: center; }
|
|
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
/* Typography — Color */
|
|
.text-white { color: #ffffff; }
|
|
.text-white\/40 { color: rgba(255, 255, 255, 0.4); }
|
|
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
|
|
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
|
|
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
|
|
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
|
|
.text-green-400 { color: #4ade80; }
|
|
.text-green-500 { color: #22c55e; }
|
|
.text-orange-400 { color: #fb923c; }
|
|
.text-orange-500 { color: #f97316; }
|
|
.text-red-400 { color: #f87171; }
|
|
.text-yellow-400 { color: #facc15; }
|
|
|
|
/* Backgrounds */
|
|
.bg-green-400 { background-color: #4ade80; }
|
|
.bg-green-500 { background-color: #22c55e; }
|
|
.bg-orange-400 { background-color: #fb923c; }
|
|
.bg-orange-500 { background-color: #f97316; }
|
|
.bg-red-400 { background-color: #f87171; }
|
|
.bg-orange-500\/20 { background-color: rgba(249, 115, 22, 0.2); }
|
|
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
|
|
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
|
|
.bg-black\/20 { background-color: rgba(0, 0, 0, 0.2); }
|
|
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
|
|
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
|
|
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }
|
|
|
|
/* Gradients */
|
|
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
|
|
.from-orange-500 { --tw-gradient-from: #f97316; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(249, 115, 22, 0)); }
|
|
.from-orange-400 { --tw-gradient-from: #fb923c; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(251, 146, 60, 0)); }
|
|
.to-yellow-400 { --tw-gradient-to: #facc15; }
|
|
.to-orange-600 { --tw-gradient-to: #ea580c; }
|
|
|
|
/* Border */
|
|
.border { border-width: 1px; }
|
|
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
|
|
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
|
|
.border-orange-500\/30 { border-color: rgba(249, 115, 22, 0.3); }
|
|
|
|
/* Border Radius */
|
|
.rounded { border-radius: 0.25rem; }
|
|
.rounded-lg { border-radius: 0.5rem; }
|
|
.rounded-xl { border-radius: 0.75rem; }
|
|
.rounded-2xl { border-radius: 1rem; }
|
|
.rounded-full { border-radius: 9999px; }
|
|
|
|
/* Overflow */
|
|
.overflow-hidden { overflow: hidden; }
|
|
.overflow-y-auto { overflow-y: auto; }
|
|
|
|
/* Opacity */
|
|
.opacity-0 { opacity: 0; }
|
|
.opacity-75 { opacity: 0.75; }
|
|
.opacity-100 { opacity: 1; }
|
|
|
|
/* Z-Index */
|
|
.z-10 { z-index: 10; }
|
|
.z-50 { z-index: 50; }
|
|
|
|
/* Spacing utilities */
|
|
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
|
|
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
|
|
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
|
|
|
|
/* Backdrop filter */
|
|
.backdrop-blur-sm { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
|
|
.backdrop-blur-md { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
|
|
.backdrop-blur-xl { -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
|
|
|
|
/* Transitions */
|
|
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
|
|
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
|
|
.duration-300 { transition-duration: 300ms; }
|
|
.duration-500 { transition-duration: 500ms; }
|
|
|
|
/* Text wrapping */
|
|
.whitespace-pre-wrap { white-space: pre-wrap; }
|
|
.break-all { word-break: break-all; }
|
|
|
|
/* Cursor */
|
|
.cursor-pointer { cursor: pointer; }
|
|
|
|
/* Responsive: md (768px+) */
|
|
@media (min-width: 768px) {
|
|
.md\:flex-row { flex-direction: row; }
|
|
.md\:items-center { align-items: center; }
|
|
.md\:gap-4 { gap: 1rem; }
|
|
.md\:gap-6 { gap: 1.5rem; }
|
|
.md\:w-auto { width: auto; }
|
|
.md\:mt-0 { margin-top: 0; }
|
|
.md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
}
|
|
|
|
/* Responsive: lg (1024px+) */
|
|
@media (min-width: 1024px) {
|
|
.lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
}
|