Repository navigation
Expand file tree
/
Copy pathblue.css
More file actions
143 lines (132 loc) · 3.8 KB
/
Copy pathblue.css
File metadata and controls
143 lines (132 loc) · 3.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
:root {
--sky-0: #03060f;
--sky-1: #070d1f;
--line: #15203a;
--fg: #e6ecfa;
--dim: #8a97b8;
--accent: #3b8bff;
--accent-hi: #6aa8ff;
--ui: 'Inter', 'Cantarell', 'Noto Sans', 'DejaVu Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
font-family: var(--ui);
color: var(--fg);
background: var(--sky-0);
overflow: hidden;
}
/* --- tapeta: powoli dryfujące mgławice (gwiazdy rysuje canvas #sky) --- */
body::before,
body::after {
content: '';
position: fixed;
inset: -12%;
z-index: -2;
pointer-events: none;
will-change: transform;
}
body::before {
background:
radial-gradient(ellipse 60% 38% at 62% 46%, rgba(40, 70, 150, 0.26), transparent 70%),
radial-gradient(ellipse 45% 30% at 30% 68%, rgba(30, 60, 140, 0.18), transparent 70%),
radial-gradient(ellipse 80% 60% at 50% 40%, var(--sky-1), var(--sky-0) 80%);
animation: nebula-a 70s ease-in-out infinite alternate;
}
body::after {
background:
radial-gradient(ellipse 34% 22% at 24% 28%, rgba(90, 60, 190, 0.14), transparent 70%),
radial-gradient(ellipse 30% 20% at 78% 74%, rgba(30, 120, 220, 0.12), transparent 70%);
animation: nebula-b 95s ease-in-out infinite alternate;
}
@keyframes nebula-a {
from { transform: translate3d(-1.5%, -1%, 0) scale(1) rotate(0deg); }
to { transform: translate3d(1.5%, 1.2%, 0) scale(1.08) rotate(2.5deg); }
}
@keyframes nebula-b {
from { transform: translate3d(2%, 1%, 0) scale(1.05) rotate(0deg); }
to { transform: translate3d(-2%, -1.5%, 0) scale(1) rotate(-3deg); }
}
#sky {
position: fixed;
inset: 0;
width: 100%;
height: 100%;
z-index: -1;
pointer-events: none;
}
svg {
fill: none;
stroke: currentColor;
stroke-width: 1.75;
stroke-linecap: round;
stroke-linejoin: round;
}
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
/* --- scena: logo + wyszukiwarka --- */
.stage {
position: fixed;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: clamp(28px, 6vh, 56px);
padding: 0 20px 6vh;
}
.logo {
width: clamp(150px, 26vmin, 290px);
height: auto;
user-select: none;
filter: drop-shadow(0 0 38px rgba(40, 110, 255, 0.28));
animation: logo-in 0.6s ease-out both;
}
@keyframes logo-in {
from { opacity: 0; transform: scale(0.94); filter: drop-shadow(0 0 0 rgba(40, 110, 255, 0)); }
}
.search {
position: relative;
width: min(560px, 100%);
display: flex;
align-items: center;
background: rgba(10, 17, 36, 0.72);
border: 1px solid var(--line);
border-radius: 999px;
backdrop-filter: blur(8px);
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search:focus-within {
border-color: var(--accent);
box-shadow: 0 0 0 4px rgba(59, 139, 255, 0.16), 0 8px 30px rgba(0, 0, 0, 0.45);
}
.search-input {
width: 100%;
padding: 15px 56px 15px 24px;
background: none;
border: none;
outline: none;
color: var(--fg);
font: 17px/1.2 var(--ui);
}
.search-input::placeholder { color: var(--dim); }
.search-btn {
position: absolute;
right: 8px;
display: grid;
place-items: center;
width: 38px;
height: 38px;
color: var(--dim);
background: none;
border: none;
border-radius: 50%;
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease;
}
.search-btn svg { width: 18px; height: 18px; }
.search-btn:hover, .search-btn:focus-visible { background: var(--accent); color: #fff; }
@media (prefers-reduced-motion: reduce) {
.logo { animation: none; }
body::before, body::after { animation: none; }
* { transition: none !important; }
}