-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpatch.css
More file actions
116 lines (102 loc) · 2.58 KB
/
patch.css
File metadata and controls
116 lines (102 loc) · 2.58 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
/* =========================================
NETFLIX ANIMATIONS & ELECTRON TITLEBAR
========================================= */
/* Titlebar for Windows/Electron */
#electron-titlebar {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 32px;
background: transparent;
z-index: 9999;
display: none; /* Only show in Electron */
}
.is-electron #electron-titlebar {
display: flex;
}
.is-electron #navbar {
top: 32px; /* Push navbar down when titlebar is active */
}
.drag-region {
flex: 1;
-webkit-app-region: drag;
height: 100%;
}
.window-controls {
display: flex;
-webkit-app-region: no-drag;
}
.window-controls button {
width: 46px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
background: transparent;
border: none;
outline: none;
transition: background 0.2s;
}
.window-controls button:hover {
background: rgba(255, 255, 255, 0.1);
}
#close-btn:hover {
background: #E50914 !important;
}
/* Netflix Animations Polish */
/* Hover expansion delay for cards so quick swiping doesn't cause chaotic jumping */
.card {
transition: transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s,
box-shadow .4s ease 0.1s,
border-color .4s ease 0.1s,
z-index 0s 0.1s;
}
.card:hover, .card:focus-visible {
transform: scale(1.15) translateY(-2%);
z-index: 50;
transition-delay: 0.3s; /* Netflix delay to prevent accidental hovers */
}
.card:hover .card-panel {
transition-delay: 0.3s;
}
/* Modal Popup Netflix Style */
.detail-modal {
transform: scale(0.9) translateY(40px);
opacity: 0;
transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
border-radius: 12px;
box-shadow: 0 24px 60px rgba(0,0,0,0.8);
background-color: #141414;
}
.detail-overlay.active .detail-modal {
transform: scale(1) translateY(0);
opacity: 1;
}
/* Hero Zoom animation on load */
@keyframes heroZoomIn {
0% { transform: scale(1.1); }
100% { transform: scale(1); }
}
#hero {
animation: heroZoomIn 2s ease-out forwards;
}
/* Navbar smooth scroll effect */
#navbar {
background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
transition: background-color 0.4s ease;
}
#navbar.solid {
background-color: #141414;
background-image: none;
}
/* Loader Animation */
.loader-bar-fill {
background: #E50914;
}
.loader-logo span {
background: #E50914;
-webkit-background-clip: text;
background-clip: text;
}