create-nexaui-electron
Version:
Create Nexa App - Tool untuk membuat aplikasi Nexa Electron
208 lines (178 loc) • 3.3 kB
CSS
.nx-video {
width: 100%;
max-width: 600px;
border-radius: 8px;
background-color: #000;
}
.nx-video-responsive {
width: 100%;
max-width: 100%;
height: auto;
}
/*.preview {
padding: 20px;
background-color: #f5f5f5;
border-radius: 8px;
margin-bottom: 15px;
}*/
.video-wrapper {
position: relative;
width: 100%;
}
.video-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.5);
color: white;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.3s;
}
.video-wrapper:hover .video-overlay {
opacity: 1;
}
.video-overlay h3 {
margin: 0;
font-size: 1.5em;
}
.video-overlay p {
margin: 10px 0 0;
}
.video-custom-controls {
position: relative;
width: 100%;
}
.custom-controls {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(0,0,0,0.7);
padding: 10px;
display: flex;
align-items: center;
gap: 10px;
}
.custom-controls .nx-btn {
background: transparent;
color: white;
border: none;
padding: 5px 10px;
cursor: pointer;
}
.custom-controls .timeline {
flex: 1;
height: 4px;
border-radius: 2px;
background: rgba(255,255,255,0.3);
cursor: pointer;
}
/* YouTube iframe styles */
iframe.nx-video {
aspect-ratio: 16/9;
border: none;
}
.video-wrapper iframe.nx-video-responsive {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.video-wrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
height: 0;
overflow: hidden;
}
/* Video Background */
.video-bg-container {
position: relative;
height: 300px;
overflow: hidden;
}
.nx-video-background {
position: absolute;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
transform: translate(-50%, -50%);
object-fit: cover;
}
.video-bg-content {
position: relative;
z-index: 1;
color: white;
text-align: center;
padding: 20px;
}
/* Video Playlist */
.video-playlist {
display: flex;
flex-direction: column;
gap: 10px;
}
.playlist-controls {
display: flex;
gap: 10px;
}
.playlist-items {
list-style: none;
padding: 0;
margin: 0;
}
.playlist-items li {
padding: 10px;
cursor: pointer;
background: var(--bg-color);
margin-bottom: 5px;
}
.playlist-items li.active {
background: var(--hover-bg);;
}
/* YouTube Parameter List */
.parameter-list {
margin-top: 20px;
padding: 15px;
background: var(--bg-color);
border-radius: 8px;
}
.parameter-list h5 {
margin-top: 0;
margin-bottom: 10px;
}
.parameter-list ul {
margin: 0;
padding-left: 20px;
}
.parameter-list li {
margin-bottom: 5px;
}
.parameter-list code {
background: #e9ecef;
padding: 2px 6px;
border-radius: 4px;
}
/* Navigation Categories */
.nav-category {
font-weight: bold;
color: #666;
padding: 10px 0 5px;
margin-top: 15px;
border-top: 1px solid #eee;
}
.nav-category:first-child {
margin-top: 0;
padding-top: 0;
border-top: none;
}
body.dark-mode-grid .parameter-list code {
color: #333;
}