forked from kagisearch/kite-public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kite.css
179 lines (151 loc) · 3.62 KB
/
kite.css
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
[x-cloak] { display: none !important; }
.story-image {
max-width: 100%;
height: auto;
}
.kite-logo {
animation: fly 3s ease-in-out forwards;
}
@keyframes fly {
0% { transform: translate(0, 0) rotate(0deg); }
25% { transform: translate(15px, -15px) rotate(10deg); }
50% { transform: translate(30px, -30px) rotate(0deg); }
75% { transform: translate(15px, -15px) rotate(-10deg); }
90% { transform: translate(5px, -5px) rotate(-5deg); }
100% { transform: translate(0, 0) rotate(0deg); }
}
.category-label {
transition: background-color 0.8s ease-out;
}
/* Topic Colors */
.topic-color-1 { color: #CC3333; } /* Red */
.topic-color-2 { color: #B85C2E; } /* Orange/Brown */
.topic-color-3 { color: #0077CC; } /* Medium Blue */
.topic-color-4 { color: #666633; } /* Olive */
.topic-color-5 { color: #8822CC; } /* Purple */
.topic-color-6 { color: #B8288F; } /* Magenta */
.topic-color-7 { color: #E60039; } /* Brighter Red */
.topic-color-8 { color: #00855A; } /* Forest Green */
.topic-color-9 { color: #D14900; } /* Burnt Orange */
.dark img[src="svg/kite.svg"]:not([src*="kite_dark"]),
.dark img[src="svg/quote.svg"],
.dark img[src="svg/placeholder.svg"] {
filter: invert(1) brightness(2);
}
:root {
--color-header: #6285f0;
--timeline-bullet-size: 24px;
}
.timeline {
counter-reset: step;
}
.timeline-title {
font-weight: normal;
}
.timeline .step {
width: var(--timeline-bullet-size);
height: var(--timeline-bullet-size);
border-radius: 50%;
text-align: center;
justify-content: center;
display: flex;
background: var(--color-header);
color: white;
font-size: 0.9em;
line-height: var(--timeline-bullet-size);
font-weight: normal;
counter-increment: step;
}
.step::before {
content: counter(step);
}
.timeline .head {
display: flex;
color: var(--color-header);
font-weight: bold;
align-items: center;
}
.item-title {
margin-left: 8px;
}
.timeline .row {
margin: 0 0 24px 0;
}
.timeline .body {
padding: 0 0 12px 20px;
margin-left: calc(var(--timeline-bullet-size) / 2);
margin-top: 10px;
position: relative;
}
.timeline .body:before {
content: "";
display: block;
background-color: var(--color-header);
width: 2px;
height: 100%;
position: absolute;
left: 0;
top: 8px;
}
.timeline .row:last-child .body:before {
display: none;
}
/* Dark mode adjustments */
.dark .timeline .head {
color: var(--color-header);
}
.dark .timeline .body {
color: #e2e8f0;
}
.overflow-hidden {
overflow: hidden;
}
.category-tabs {
display: flex;
overflow-x: auto;
scrollbar-width: none;
-ms-overflow-style: none;
scroll-behavior: smooth;
padding: 0.5rem 0;
gap: 1.5rem;
}
.category-tabs::-webkit-scrollbar {
display: none;
}
.category-tab {
white-space: nowrap;
padding: 0.5rem 0;
color: #6B7280;
cursor: pointer;
border-bottom: 2px solid transparent;
transition: all 0.2s ease;
}
.category-tab.active {
color: #000000;
border-bottom: 2px solid #F3B644;
}
.dark .category-tab {
color: #9CA3AF;
}
.dark .category-tab.active {
color: #FFFFFF;
border-bottom: 2px solid #F3B644;
}
/* Perspectives section styles */
.overflow-x-auto {
-webkit-overflow-scrolling: touch;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* Internet Explorer 10+ */
}
.overflow-x-auto::-webkit-scrollbar { /* WebKit */
width: 0;
height: 0;
}
.sticky {
position: -webkit-sticky;
position: sticky;
transition: background-color 0.3s ease;
}
.sticky.scrolled {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}