Subham9126 commited on
Commit
fe1fec5
·
verified ·
1 Parent(s): 1dd9f6c

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +141 -0
style.css CHANGED
@@ -686,4 +686,145 @@ body {
686
  height: 32px;
687
  font-size: 12px;
688
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
689
  }
 
686
  height: 32px;
687
  font-size: 12px;
688
  }
689
+ }
690
+ /* style.css */
691
+
692
+ /* Make player container relative for absolute positioning inside */
693
+ .player-container {
694
+ position: relative;
695
+ background-color: #000; /* Black background behind video */
696
+ }
697
+
698
+ /* Player Buffering/Loading Indicator Styles */
699
+ .player-loading-indicator {
700
+ position: absolute;
701
+ top: 0;
702
+ left: 0;
703
+ width: 100%;
704
+ height: 100%;
705
+ background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
706
+ display: flex; /* Use flex to center content */
707
+ flex-direction: column;
708
+ justify-content: center;
709
+ align-items: center;
710
+ color: white;
711
+ z-index: 10; /* Above video, potentially below custom controls if needed */
712
+ pointer-events: none; /* Allow interaction with player underneath */
713
+ opacity: 1;
714
+ transition: opacity 0.3s ease-in-out;
715
+ }
716
+
717
+ .player-loading-indicator[style*="display: none"] {
718
+ opacity: 0; /* Fade out when hidden */
719
+ }
720
+
721
+ .player-loading-indicator .loading-spinner {
722
+ /* Re-use or define a spinner style */
723
+ border: 4px solid rgba(255, 255, 255, 0.3);
724
+ border-top: 4px solid #fff;
725
+ border-radius: 50%;
726
+ width: 40px;
727
+ height: 40px;
728
+ animation: spin 1s linear infinite;
729
+ margin-bottom: 15px;
730
+ }
731
+
732
+ #playerLoadPercent {
733
+ font-size: 1em; /* Slightly larger */
734
+ font-weight: bold;
735
+ text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
736
+ }
737
+
738
+ /* Define spin animation if not already present */
739
+ @keyframes spin {
740
+ 0% { transform: rotate(0deg); }
741
+ 100% { transform: rotate(360deg); }
742
+ }
743
+
744
+
745
+ /* Double Tap Feedback Styles */
746
+ .tap-feedback {
747
+ /* Base styles are set inline via JS for positioning */
748
+ /* Add transitions and appearance styles here */
749
+ text-align: center;
750
+ font-size: 0.9em;
751
+ }
752
+ .tap-feedback .feedback-icon {
753
+ margin-bottom: 5px;
754
+ }
755
+ .tap-feedback .feedback-text {
756
+ font-weight: bold;
757
+ }
758
+
759
+ /* Toast Message Container & Base Styles */
760
+ .toast-container {
761
+ position: fixed;
762
+ bottom: 20px;
763
+ left: 50%;
764
+ transform: translateX(-50%);
765
+ z-index: 1050; /* High z-index */
766
+ display: flex;
767
+ flex-direction: column;
768
+ align-items: center;
769
+ gap: 10px; /* Spacing between toasts */
770
+ }
771
+
772
+ .toast {
773
+ padding: 10px 20px;
774
+ border-radius: 4px;
775
+ color: #fff;
776
+ font-size: 0.9em;
777
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
778
+ opacity: 0; /* Start hidden */
779
+ transform: translateY(20px); /* Start lower */
780
+ transition: opacity 0.4s ease, transform 0.4s ease;
781
+ min-width: 200px; /* Minimum width */
782
+ text-align: center;
783
+ }
784
+
785
+ /* Toast Types */
786
+ .toast.info {
787
+ background-color: #17a2b8; /* Bootstrap info color */
788
+ }
789
+
790
+ .toast.success {
791
+ background-color: #28a745; /* Bootstrap success color */
792
+ }
793
+
794
+ .toast.warning {
795
+ background-color: #ffc107; /* Bootstrap warning color */
796
+ color: #333; /* Darker text for yellow */
797
+ }
798
+
799
+ .toast.error {
800
+ background-color: #dc3545; /* Bootstrap danger color */
801
+ }
802
+
803
+ /* Ensure modal content doesn't overflow weirdly on smaller screens */
804
+ .modal-content {
805
+ max-height: 95vh; /* Limit height */
806
+ display: flex;
807
+ flex-direction: column;
808
+ }
809
+
810
+ .modal-body {
811
+ flex-grow: 1; /* Allow body to take remaining space */
812
+ overflow-y: auto; /* Add scroll if content exceeds height */
813
+ display: flex;
814
+ flex-direction: column; /* Stack player and help */
815
+ }
816
+
817
+ .player-container {
818
+ flex-shrink: 0; /* Prevent player from shrinking */
819
+ }
820
+
821
+ .player-help {
822
+ margin-top: 15px; /* Space between player and help */
823
+ padding: 0 15px; /* Padding for help text */
824
+ flex-shrink: 0; /* Prevent help from shrinking too much */
825
+ }
826
+
827
+ /* Adjust double-tap feedback container if needed */
828
+ .plyr__video-wrapper {
829
+ position: relative; /* Ensure it can contain absolute feedback */
830
  }