422 lines
11 KiB
CSS
422 lines
11 KiB
CSS
@layer reset {
|
|
*, *::before, *::after {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
::selection {
|
|
background: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
:focus {
|
|
outline: none;
|
|
}
|
|
|
|
html {
|
|
color-scheme: dark;
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
min-height: 100dvh;
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
img, picture, svg, video {
|
|
display: block;
|
|
max-width: 100%;
|
|
}
|
|
|
|
input, button, textarea, select {
|
|
font: inherit;
|
|
}
|
|
}
|
|
|
|
@layer base {
|
|
@property --gradient-angle {
|
|
syntax: '<angle>';
|
|
initial-value: 0deg;
|
|
inherits: false;
|
|
}
|
|
|
|
:root {
|
|
--glass-bg: color-mix(in srgb, white 8%, transparent);
|
|
--glass-border: color-mix(in srgb, white 12%, transparent);
|
|
--glass-shadow: rgb(0 0 0 / 0.1);
|
|
--glass-glow: oklch(67% 0.2 var(--base-hue) / 0.15);
|
|
--depth-shadow: 0 8px 32px -8px rgb(0 0 0 / 0.3);
|
|
--noise-filter: url("data:image/svg+xml,%3Csvg width='1000' height='1000' viewBox='0 0 1000 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch' seed='2' result='noise'/%3E%3CfeColorMatrix type='saturate' values='0' in='noise' result='desaturatedNoise'/%3E%3CfeBlend in='SourceGraphic' in2='desaturatedNoise' mode='overlay' result='blend'/%3E%3CfeComposite operator='in' in2='SourceGraphic'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E#noiseFilter");
|
|
--gradient-shine: linear-gradient(
|
|
135deg,
|
|
transparent 25%,
|
|
rgb(255 255 255 / 0.1) 50%,
|
|
transparent 75%
|
|
);
|
|
--base-hue: 200;
|
|
--accent: oklch(67% 0.2 var(--base-hue));
|
|
--accent-light: oklch(75% 0.2 var(--base-hue));
|
|
--text-primary: oklch(100% 0 0);
|
|
--text-secondary: oklch(100% 0 0 / 0.7);
|
|
--blur-strength: 16px;
|
|
--spacing-xs: clamp(0.25rem, 0.5vw, 0.5rem);
|
|
--spacing-sm: clamp(0.5rem, 1vw, 1rem);
|
|
--spacing-md: clamp(1rem, 2vw, 2rem);
|
|
--spacing-lg: clamp(2rem, 4vw, 4rem);
|
|
|
|
|
|
--editor-bg: oklch(10% 0.02 var(--base-hue) / 0.6);
|
|
--toolbar-bg: oklch(15% 0.02 var(--base-hue) / 0.8);
|
|
--input-border: oklch(100% 0.02 var(--base-hue) / 0.15);
|
|
--input-focus: oklch(60% 0.2 var(--base-hue) / 0.3);
|
|
--chip-bg: oklch(60% 0.2 var(--base-hue) / 0.15);
|
|
|
|
--npub-color: oklch(70% 0.2 calc(var(--base-hue) + 60));
|
|
--nip05-color: oklch(85% 0.3 calc(var(--base-hue) - 30));
|
|
--email-color: oklch(70% 0.2 calc(var(--base-hue) - 60));
|
|
--verified-color: oklch(70% 0.2 calc(var(--base-hue) + 180));
|
|
--chip-success: oklch(60% 0.2 calc(var(--base-hue) + 180) / 0.5);
|
|
--chip-warning: oklch(60% 0.2 calc(var(--base-hue) + 60) / 0.5);
|
|
--chip-error: oklch(60% 0.2 calc(var(--base-hue) + 30) / 0.5);
|
|
}
|
|
|
|
.loading {
|
|
display: none;
|
|
opacity: 0;
|
|
transition: opacity 500ms ease-in;
|
|
position: fixed;
|
|
inset: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(var(--blur-strength));
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: 16px;
|
|
padding: var(--spacing-md);
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--spacing-md);
|
|
box-shadow: var(--depth-shadow),
|
|
0 0 0 1px rgba(255, 255, 255, 0.1) inset,
|
|
0 0 30px var(--glass-glow);
|
|
width: 50vmin;
|
|
height: 50vmin;
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
.htmx-request .loading, .htmx-request.loading {
|
|
display: flex;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@layer layout {
|
|
body {
|
|
background: linear-gradient(
|
|
var(--gradient-angle),
|
|
oklch(10% 0.2 calc(var(--base-hue) - 3)),
|
|
oklch(12.5% 0.2 calc(var(--base-hue) - 2)),
|
|
oklch(15% 0.2 calc(var(--base-hue) - 1)),
|
|
oklch(17.5% 0.2 var(--base-hue)),
|
|
oklch(20% 0.2 calc(var(--base-hue) + 1)),
|
|
oklch(25% 0.2 calc(var(--base-hue) + 2)),
|
|
oklch(30% 0.2 calc(var(--base-hue) + 3))
|
|
),
|
|
radial-gradient(
|
|
circle at top left,
|
|
rgb(99 102 241 / 0.15),
|
|
transparent 50%
|
|
);
|
|
background-blend-mode: normal, overlay;
|
|
font-family: 'Inter', system-ui;
|
|
color: var(--text-primary);
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
animation: rotate-gradient 20s linear infinite;
|
|
}
|
|
|
|
&::before {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
background-image: var(--noise-filter);
|
|
opacity: 0.05;
|
|
z-index: -1;
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
|
|
#app {
|
|
display: grid;
|
|
grid-template-rows: auto 1fr;
|
|
min-height: 100dvh;
|
|
padding: var(--spacing-md);
|
|
gap: var(--spacing-md);
|
|
}
|
|
|
|
#header {
|
|
position: sticky;
|
|
top: var(--spacing-md);
|
|
backdrop-filter: blur(var(--blur-strength)) saturate(180%);
|
|
background: var(--glass-bg);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 16px;
|
|
padding: var(--spacing-md);
|
|
display: grid;
|
|
grid-template-columns: auto 1fr auto;
|
|
gap: var(--spacing-md);
|
|
align-items: center;
|
|
box-shadow: var(--depth-shadow),
|
|
0 0 0 1px rgba(255, 255, 255, 0.1) inset,
|
|
0 0 30px var(--glass-glow);
|
|
|
|
&::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: var(--gradient-shine);
|
|
background-size: 200% 200%;
|
|
border-radius: inherit;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
&:hover::before {
|
|
opacity: 1;
|
|
animation: shine 3s linear infinite;
|
|
}
|
|
|
|
& .title {
|
|
position: relative;
|
|
text-shadow: 0 0 20px var(--glass-glow);
|
|
font-size: clamp(1.5rem, 3vw, 2rem);
|
|
font-weight: 700;
|
|
text-align: center;
|
|
background: linear-gradient(to right, var(--text-primary), var(--accent-light));
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: -4px;
|
|
width: 100%;
|
|
height: 2px;
|
|
background: linear-gradient(90deg, transparent, var(--accent), transparent);
|
|
transform: scaleX(0);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
&:hover::after {
|
|
transform: scaleX(1);
|
|
}
|
|
}
|
|
}
|
|
|
|
#content {
|
|
height: 100%;
|
|
backdrop-filter: blur(var(--blur-strength));
|
|
background: var(--glass-bg);
|
|
border-radius: 16px;
|
|
border: 1px solid var(--glass-border);
|
|
padding: var(--spacing-md);
|
|
box-shadow: var(--depth-shadow);
|
|
}
|
|
|
|
#page-title {
|
|
width: fit-content;
|
|
font-size: 2.5rem;
|
|
font-weight: 600;
|
|
background: linear-gradient(to right, var(--text-primary), var(--accent-light));
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
padding-left: 1rem;
|
|
padding-bottom: 1rem;
|
|
}
|
|
|
|
h3, h4 {
|
|
width: fit-content;
|
|
background: linear-gradient(to right, var(--text-primary), var(--accent-light));
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
font-weight: 600;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.5rem;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
button, .button {
|
|
text-decoration: none;
|
|
padding: 0.5rem 1rem;
|
|
border: 1px solid var(--glass-border);
|
|
background: var(--glass-bg);
|
|
color: var(--text-primary);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
isolation: isolate;
|
|
|
|
&::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: -2px;
|
|
background: linear-gradient(45deg, var(--accent), transparent);
|
|
border-radius: 10px;
|
|
z-index: -1;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
&:active {
|
|
transform: translatey(1px);
|
|
}
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
transform: translatey(-2px);
|
|
box-shadow: 0 0 15px var(--glass-glow);
|
|
|
|
&::before {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
input[type="text"], input[type="password"] {
|
|
background: var(--editor-bg);
|
|
border: 1px solid var(--input-border);
|
|
color: var(--text-primary);
|
|
padding: var(--spacing-sm);
|
|
border-radius: 8px;
|
|
width: 100%;
|
|
transition: all 0.3s ease;
|
|
|
|
&:focus {
|
|
border-color: var(--input-focus);
|
|
box-shadow: 0 0 0 2px var(--input-focus),
|
|
0 0 15px var(--glass-glow);
|
|
}
|
|
|
|
&::placeholder {
|
|
color: var(--text-secondary);
|
|
}
|
|
}
|
|
|
|
.notification {
|
|
isolation: isolate;
|
|
contain: none;
|
|
position: fixed;
|
|
top: var(--spacing-md);
|
|
right: var(--spacing-md);
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(var(--blur-strength));
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: 12px;
|
|
padding: var(--spacing-md);
|
|
min-width: 300px;
|
|
max-width: 400px;
|
|
display: flex;
|
|
gap: var(--spacing-sm);
|
|
align-items: flex-start;
|
|
box-shadow: var(--depth-shadow),
|
|
0 0 0 1px rgba(255, 255, 255, 0.1) inset,
|
|
0 0 30px var(--glass-glow);
|
|
transform: translateX(120%);
|
|
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
z-index: 1000;
|
|
|
|
&.show {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
&::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: var(--gradient-shine);
|
|
background-size: 200% 200%;
|
|
border-radius: inherit;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
&:hover::before {
|
|
opacity: 1;
|
|
animation: shine 3s linear infinite;
|
|
}
|
|
|
|
.notification-content {
|
|
flex: 1;
|
|
|
|
.notification-title {
|
|
font-weight: 600;
|
|
margin-bottom: var(--spacing-xs);
|
|
background: linear-gradient(to right, var(--text-primary), var(--accent-light));
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
}
|
|
|
|
.notification-message {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|
|
|
|
.close-button {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
padding: 4px;
|
|
cursor: pointer;
|
|
transition: color 0.3s ease;
|
|
|
|
&:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
}
|
|
}
|
|
|
|
.glass {
|
|
backdrop-filter: blur(var(--blur-strength));
|
|
background: var(--glass-bg);
|
|
border-radius: 16px;
|
|
border: 1px solid var(--glass-border);
|
|
padding: var(--spacing-md);
|
|
box-shadow: var(--depth-shadow);
|
|
}
|
|
|
|
p.error {
|
|
color: oklch(60% 50% 35);
|
|
font-weight: 700;
|
|
font-size: 0.9rem;
|
|
text-align: center;
|
|
text-shadow: -1.5px -1.5px 0 oklch(15% 10% 35),
|
|
1.5px -1.5px 0 oklch(15% 10% 35),
|
|
-1.5px 1.5px 0 oklch(15% 10% 35),
|
|
1.5px 1.5px 0 oklch(15% 10% 35);
|
|
letter-spacing: 1px;
|
|
}
|
|
}
|
|
|
|
@keyframes shine {
|
|
0% {
|
|
background-position: 200% 0;
|
|
}
|
|
100% {
|
|
background-position: -200% 0;
|
|
}
|
|
}
|
|
|