feat: Create the custom icon and chapters sidebar

This commit is contained in:
Yiannis Christodoulou
2025-07-14 03:19:27 +03:00
parent b3ab626c91
commit dc9a5492db
4 changed files with 641 additions and 55 deletions
@@ -0,0 +1,115 @@
/* CustomSettingsMenu.css */
/* Settings button styling */
.vjs-settings-button {
width: 3em;
height: 3em;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
margin: 0;
}
/* Settings button icon styling */
.vjs-icon-cog1 {
font-size: 30px !important;
position: relative;
top: -8px !important;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
line-height: 1;
}
/* Settings overlay styling */
.custom-settings-overlay {
position: absolute;
bottom: 100%;
right: 0;
width: 250px;
background: rgba(28, 28, 28, 0.95);
color: white;
border-radius: 4px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
display: none;
z-index: 1000;
font-size: 14px;
backdrop-filter: blur(10px);
}
/* Settings header */
.settings-header {
padding: 12px 16px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
font-weight: bold;
}
/* Settings items */
.settings-item {
padding: 12px 16px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
transition: background 0.2s ease;
}
.settings-item:last-child {
border-bottom: none;
}
.settings-item:hover {
background: rgba(255, 255, 255, 0.05);
}
/* Speed submenu */
.speed-submenu {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(28, 28, 28, 0.95);
display: none;
flex-direction: column;
}
/* Submenu header */
.submenu-header {
padding: 12px 16px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
cursor: pointer;
}
.submenu-header:hover {
background: rgba(255, 255, 255, 0.05);
}
/* Speed options */
.speed-option {
padding: 12px 16px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
transition: background 0.2s ease;
}
.speed-option:hover {
background: rgba(255, 255, 255, 0.05);
}
.speed-option.active {
background: rgba(255, 255, 255, 0.1);
}
.vjs-icon-cog:before {
font-size: 20px !important;
position: relative;
top: -5px !important;
}