TranStudio / static /css /style.css
bitsnaps's picture
Update static/css/style.css
46d08fc verified
.segments-container {
max-height: 300px;
overflow-y: auto;
border: 1px solid #ddd;
padding: 10px;
border-radius: 4px;
}
.segment-box {
padding: 10px;
margin: 5px 0;
border: 1px solid #eee;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}
.segment-box:hover {
background-color: #f5f5f5;
}
.segment-box.is-active {
border-color: #3273dc;
background-color: #e8f0fe;
}
.segment-time {
font-size: 0.8em;
color: #666;
margin-bottom: 5px;
}
.segment-text {
margin: 5px 0;
}
.segment-actions {
text-align: right;
}
.audio-player {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: white;
padding: 1rem;
box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
z-index: 100;
margin-top: 2rem;
}
.waveform-container {
margin: 1rem 0;
padding: 0 1rem;
}
.waveform {
position: relative;
height: 10vh;
background: #f0f0f0;
border-radius: 4px;
overflow: hidden;
}
.progress-waveform {
position: absolute;
top: 0;
left: 0;
height: 100%;
background: rgba(50, 115, 220, 0.3);
pointer-events: none;
}
.player-controls {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.5rem;
}
.segment-marker {
position: absolute;
height: 100%;
background: rgba(50, 115, 220, 0.2);
cursor: pointer;
transition: background 0.2s;
border-left: 1px solid #3273dc;
border-right: 1px solid #3273dc;
}
.segment-marker:hover {
background: rgba(50, 115, 220, 0.4);
}
.segment-tooltip {
position: absolute;
bottom: 100%;
background: #333;
color: white;
padding: 0.25rem 0.5rem;
border-radius: 3px;
font-size: 0.8rem;
white-space: nowrap;
display: none;
}
.segment-marker:hover .segment-tooltip {
display: block;
}
.current-time {
text-align: center;
font-size: 0.9rem;
color: #666;
margin-top: 0.5rem;
}
.control-btn {
/* padding: 0.5rem; */
transition: all 0.2s;
}
.control-btn:hover {
transform: scale(1.1);
}
.selection-info {
margin: 10px 0;
display: flex;
align-items: center;
}
.slider-tick {
width: 2px;
height: 12px;
background-color: currentColor;
border-radius: 1px;
}
/* Customize the range slider track */
.b-slider.is-info .b-slider-track {
background: rgba(50, 115, 220, 0.3);
}
/* Style for the selected range */
.b-slider.is-info .b-slider-fill {
background: #3273dc;
}
.navbar-end {
margin-top: 10vh;
}
.upload-stats {
font-size: 0.9rem;
color: #4a4a4a;
margin-top: 1rem;
}
.upload-stats p {
margin-bottom: 0.5rem;
display: flex;
align-items: center;
}
.upload-stats .icon {
margin-right: 0.5rem;
}