-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.css
More file actions
118 lines (104 loc) · 2.83 KB
/
Copy pathindex.css
File metadata and controls
118 lines (104 loc) · 2.83 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
#nav-bar.hide-border {
border-bottom: none;
}
#main h1 {
margin-bottom: 0.35rem;
padding: 0 1rem;
}
#all-source>.bi,
#search>.bi,
#search2>.bi,
#search3>.bi {
height: 1rem;
}
.sub-version {
margin-left: 1em;
}
.suggestion {
padding: 1rem 1rem 1rem 0;
margin-left: 1rem;
font-size: 1.1rem;
border-bottom: 0.1px solid var(--color-separator);
}
.suggestion .bi {
margin-right: 4px;
}
@media (hover:hover) {
.suggestions:hover {
opacity: 0.75;
}
}
@media (prefers-color-scheme: dark) {
#main input {
background-color: rgba(255, 255, 255, 0.07);
color: white;
}
.suggestions {
border-bottom: 0.1px solid var(--color-separator-dark) !important;
}
}
#suggestions,
#suggestions2,
#suggestions3,
#suggestions4 {
display: grid;
max-width: 768px;
overflow-x: scroll;
grid-template-columns: repeat(10, 3fr);
grid-template-rows: repeat(3, 1fr);
scroll-snap-type: x mandatory;
grid-auto-columns: 100vw;
scroll-behavior: smooth;
cursor: grab;
grid-auto-flow: column;
}
.section, #suggestions, #suggestions2, #suggestions3, #suggestions4 {
content-visibility: auto;
contain-intrinsic-size: 200px; /* Chiều cao dự kiến để tránh nhảy thanh cuộn */
}
#suggestions .active,
#suggestions2 .active,
#suggestions3 .active,
#suggestions4 .active{
cursor: grabbing;
}
#suggestions>div,#suggestions2>div, #suggestions3>div,#suggestions4>div {
scroll-snap-align: start;
}
#suggestions, #suggestions2, #suggestions3, #suggestions4 {
user-select: none;
-webkit-user-drag: none;
}
/* Tối ưu các slider cuộn ngang (#suggestions, swiper) */
#suggestions, #suggestions2, #suggestions3, #suggestions4, .swiper-wrapper {
will-change: scroll-position, transform;
transform: translateZ(0);
-webkit-overflow-scrolling: touch; /* Bắt buộc để cuộn mượt trên iOS */
}
/* Tối ưu các nút nav-link có animation */
.nav-link {
will-change: transform, color;
transform: translateZ(0);
}
.app-header-container {
min-width: calc(100vw - 1rem);
}
.uibanner>.content .close-btn {
min-width: 0.5rem!important;
background: transparent;
border-radius: 3rem;
padding: 0.2rem 0.1rem;
scale: 0.9;
color: var(--altstore-tint-color);
transition: all 0.2s ease;
user-select: none;
}
.uibanner>.content .close-btn:hover {
color: #333; /* Chuyển sang màu xám đậm/đen */
transform: scale(1.15); /* Phóng to lên một chút (15%) tạo điểm nhấn */
}
.uibanner>.content .close-btn:active {
transform: scale(0.9); /* Co nhỏ lại một chút (90%) tạo cảm giác nút bị lún xuống */
opacity: 0.6; /* Làm mờ đi một chút khi đang bấm */
transition: transform 0.05s ease; /* Phản hồi cực nhanh khi bấm xuống */
}