-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
122 lines (106 loc) · 2.66 KB
/
styles.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
/* styles.css */
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background: #121212;
color: #fff;
overflow: hidden; /* Hide the default scrollbar */
}
#shortsContainer {
display: flex;
flex-direction: column;
align-items: center;
overflow-y: scroll; /* Enable vertical scrolling for the container */
max-height: 100vh; /* Set a maximum height for the container */
}
.short-item {
width: 35%; /* Updated width to fit within the screen */
box-sizing: border-box;
padding: 20px;
margin: 0 auto; /* Center the video horizontally */
margin-bottom: 100px; /* Add margin between videos */
position: relative; /* Make the container position relative */
}
.short-video {
width: 100%; /* Updated width */
max-width: 640px; /* Set a maximum width */
height: auto; /* Allow the height to adjust proportionally */
max-height: 780px; /* Set a maximum height */
object-fit: contain; /* Maintain the video's aspect ratio without cropping */
display: block;
margin: 0 auto; /* Center the video horizontally */
}
.play-button {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: transparent;
color: #fff;
border: none;
font-size: 24px;
cursor: pointer;
display: none; /* Initially hide the play button */
}
.audio-bar {
position: absolute;
bottom: 10px;
left: 10px;
background-color: #333;
width: 100%;
height: 5px;
display: none; /* Initially hide the audio bar */
}
/* Show play button and audio bar on hover */
.short-item:hover .play-button,
.short-item:hover .audio-bar {
display: block;
}
.short-info {
position: absolute;
bottom: 20px;
left: 20px;
color: #fff;
text-align: left;
}
.short-info h2 {
font-size: 1.2em;
font-weight: bold;
}
.short-info p {
color: #888;
}
/* Add this style for the OliXShorts text */
#olixShortsText {
position: absolute;
top: 20px;
left: 20px;
font-size: 1.5em;
font-weight: bold;
}
/* Add this style for the OliX Logo */
#olixLogo {
position: absolute;
top: 10px;
left: 10px;
width: 32px;
height: 32px;
object-fit: cover; /* Ensure the logo covers the specified area */
}
.audio-bar {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background-color: #333;
width: 100px;
height: 5px;
display: none;
}
.short-item:hover .play-button {
display: block;
}
.short-item:hover .audio-bar {
display: block;
}