Spaces:
Sleeping
Sleeping
Update static/css/style.css
Browse files- static/css/style.css +142 -0
static/css/style.css
CHANGED
|
@@ -601,4 +601,146 @@ textarea { width: 100%; background: #222; color: #fff; border: 1px solid #444; p
|
|
| 601 |
background: var(--primary);
|
| 602 |
border-color: var(--primary);
|
| 603 |
transform: scale(0.9);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 604 |
}
|
|
|
|
| 601 |
background: var(--primary);
|
| 602 |
border-color: var(--primary);
|
| 603 |
transform: scale(0.9);
|
| 604 |
+
}
|
| 605 |
+
|
| 606 |
+
/* ======================================== */
|
| 607 |
+
/* === استایلهای جدید Trimmer (ویرایش زمان) === */
|
| 608 |
+
/* ======================================== */
|
| 609 |
+
|
| 610 |
+
.trimmer-header {
|
| 611 |
+
display: flex;
|
| 612 |
+
flex-direction: column;
|
| 613 |
+
align-items: center;
|
| 614 |
+
justify-content: center;
|
| 615 |
+
gap: 10px;
|
| 616 |
+
margin-bottom: 25px;
|
| 617 |
+
width: 100%;
|
| 618 |
+
}
|
| 619 |
+
|
| 620 |
+
.trimmer-play-btn {
|
| 621 |
+
width: 50px;
|
| 622 |
+
height: 50px;
|
| 623 |
+
border-radius: 50%;
|
| 624 |
+
border: 2px solid var(--accent-orange);
|
| 625 |
+
background: transparent;
|
| 626 |
+
color: var(--accent-orange);
|
| 627 |
+
font-size: 1.4rem;
|
| 628 |
+
display: flex;
|
| 629 |
+
align-items: center;
|
| 630 |
+
justify-content: center;
|
| 631 |
+
cursor: pointer;
|
| 632 |
+
transition: transform 0.2s;
|
| 633 |
+
}
|
| 634 |
+
.trimmer-play-btn:active {
|
| 635 |
+
transform: scale(0.9);
|
| 636 |
+
}
|
| 637 |
+
|
| 638 |
+
.trimmer-time-display {
|
| 639 |
+
font-family: monospace;
|
| 640 |
+
font-size: 1.2rem;
|
| 641 |
+
color: #fff;
|
| 642 |
+
font-weight: bold;
|
| 643 |
+
direction: ltr;
|
| 644 |
+
}
|
| 645 |
+
|
| 646 |
+
.trimmer-body {
|
| 647 |
+
display: flex;
|
| 648 |
+
align-items: center;
|
| 649 |
+
justify-content: space-between;
|
| 650 |
+
width: 100%;
|
| 651 |
+
gap: 10px;
|
| 652 |
+
margin-bottom: 20px;
|
| 653 |
+
}
|
| 654 |
+
|
| 655 |
+
.word-preview-side {
|
| 656 |
+
width: 60px;
|
| 657 |
+
height: 60px;
|
| 658 |
+
background: #222;
|
| 659 |
+
border-radius: 12px;
|
| 660 |
+
display: flex;
|
| 661 |
+
align-items: center;
|
| 662 |
+
justify-content: center;
|
| 663 |
+
color: #777;
|
| 664 |
+
font-size: 0.9rem;
|
| 665 |
+
font-weight: bold;
|
| 666 |
+
text-align: center;
|
| 667 |
+
flex-shrink: 0;
|
| 668 |
+
}
|
| 669 |
+
|
| 670 |
+
.trimmer-container {
|
| 671 |
+
flex: 1;
|
| 672 |
+
position: relative;
|
| 673 |
+
height: 60px;
|
| 674 |
+
background: #000;
|
| 675 |
+
border-radius: 10px;
|
| 676 |
+
overflow: hidden;
|
| 677 |
+
/* اگر بخواهیم هندلها بیرون نزنند */
|
| 678 |
+
}
|
| 679 |
+
|
| 680 |
+
/* نوار کلی (ترک) */
|
| 681 |
+
.timeline-strip {
|
| 682 |
+
position: absolute;
|
| 683 |
+
top: 50%;
|
| 684 |
+
left: 10px; /* مارجین برای هندلها */
|
| 685 |
+
right: 10px;
|
| 686 |
+
height: 40px;
|
| 687 |
+
transform: translateY(-50%);
|
| 688 |
+
background: linear-gradient(90deg, #333 0%, #444 50%, #333 100%);
|
| 689 |
+
background-size: 20px 100%;
|
| 690 |
+
border-radius: 4px;
|
| 691 |
+
}
|
| 692 |
+
|
| 693 |
+
/* بخش فعال (بین دو هندل) */
|
| 694 |
+
.trim-track-active {
|
| 695 |
+
position: absolute;
|
| 696 |
+
top: 0;
|
| 697 |
+
bottom: 0;
|
| 698 |
+
background: rgba(255, 255, 255, 0.15);
|
| 699 |
+
border-top: 2px solid #FDD835;
|
| 700 |
+
border-bottom: 2px solid #FDD835;
|
| 701 |
+
left: 0; /* این مقادیر با JS تغییر میکنن */
|
| 702 |
+
right: 0; /* این مقادیر با JS تغییر میکنن */
|
| 703 |
+
}
|
| 704 |
+
|
| 705 |
+
/* هندلهای زرد رنگ */
|
| 706 |
+
.trim-handle {
|
| 707 |
+
position: absolute;
|
| 708 |
+
top: 0;
|
| 709 |
+
bottom: 0;
|
| 710 |
+
width: 20px;
|
| 711 |
+
background: #FDD835;
|
| 712 |
+
cursor: col-resize;
|
| 713 |
+
display: flex;
|
| 714 |
+
align-items: center;
|
| 715 |
+
justify-content: center;
|
| 716 |
+
color: #000;
|
| 717 |
+
font-size: 0.8rem;
|
| 718 |
+
z-index: 10;
|
| 719 |
+
border-radius: 4px;
|
| 720 |
+
}
|
| 721 |
+
|
| 722 |
+
.trim-handle.left {
|
| 723 |
+
left: 0; /* JS کنترل میکنه */
|
| 724 |
+
border-top-left-radius: 8px;
|
| 725 |
+
border-bottom-left-radius: 8px;
|
| 726 |
+
}
|
| 727 |
+
|
| 728 |
+
.trim-handle.right {
|
| 729 |
+
right: 0; /* JS کنترل میکنه (right: 0 یعنی چسبیده به ته) */
|
| 730 |
+
/* اما برای پوزیشن ابسولوت نسبت به پرنت، ما از style.left استفاده میکنیم */
|
| 731 |
+
border-top-right-radius: 8px;
|
| 732 |
+
border-bottom-right-radius: 8px;
|
| 733 |
+
}
|
| 734 |
+
|
| 735 |
+
.trimmer-current-word {
|
| 736 |
+
text-align: center;
|
| 737 |
+
background: #333;
|
| 738 |
+
padding: 10px 20px;
|
| 739 |
+
border-radius: 16px;
|
| 740 |
+
color: #fff;
|
| 741 |
+
font-size: 1.1rem;
|
| 742 |
+
font-weight: bold;
|
| 743 |
+
align-self: center;
|
| 744 |
+
margin-bottom: 10px;
|
| 745 |
+
min-width: 100px;
|
| 746 |
}
|