jdesiree commited on
Commit
2f0a2ea
·
verified ·
1 Parent(s): 8bd8b05

Update styles.css

Browse files
Files changed (1) hide show
  1. styles.css +129 -0
styles.css CHANGED
@@ -718,4 +718,133 @@ body {
718
  background: var(--text_areabackground);
719
  color: var(--primarytext-color);
720
  font-family: "Oswald", sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
721
  }
 
718
  background: var(--text_areabackground);
719
  color: var(--primarytext-color);
720
  font-family: "Oswald", sans-serif;
721
+ }
722
+
723
+ /* Loading Animation CSS using your theme colors */
724
+
725
+ .thinking-indicator {
726
+ display: inline-flex;
727
+ align-items: center;
728
+ font-family: "Oswald", sans-serif;
729
+ color: var(--secondarytext-color);
730
+ font-size: 14px;
731
+ padding: 8px 12px;
732
+ background: var(--text_areabackground);
733
+ border-radius: 8px;
734
+ margin: 5px 0;
735
+ border-left: var(--border-hover) solid var(--primary-light);
736
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
737
+ }
738
+
739
+ .dots-container {
740
+ margin-left: 8px;
741
+ display: inline-flex;
742
+ gap: 3px;
743
+ align-items: center;
744
+ }
745
+
746
+ .dot {
747
+ width: 4px;
748
+ height: 4px;
749
+ border-radius: 50%;
750
+ background-color: var(--primary-light);
751
+ animation: pulse 1.5s infinite ease-in-out;
752
+ display: inline-block;
753
+ }
754
+
755
+ .dot:nth-child(1) {
756
+ animation-delay: 0s;
757
+ }
758
+
759
+ .dot:nth-child(2) {
760
+ animation-delay: 0.3s;
761
+ }
762
+
763
+ .dot:nth-child(3) {
764
+ animation-delay: 0.6s;
765
+ }
766
+
767
+ @keyframes pulse {
768
+ 0%, 70%, 100% {
769
+ transform: scale(0.8);
770
+ opacity: 0.4;
771
+ background-color: var(--secondary-light);
772
+ }
773
+ 35% {
774
+ transform: scale(1.2);
775
+ opacity: 1;
776
+ background-color: var(--primary-dark);
777
+ }
778
+ }
779
+
780
+ /* Alternative bouncing animation variant */
781
+ .thinking-indicator.bounce .dot {
782
+ animation: bounce 1.2s infinite ease-in-out;
783
+ background-color: var(--secondary-dark);
784
+ }
785
+
786
+ @keyframes bounce {
787
+ 0%, 60%, 100% {
788
+ transform: translateY(0);
789
+ background-color: var(--secondary-light);
790
+ }
791
+ 30% {
792
+ transform: translateY(-6px);
793
+ background-color: var(--primary-light);
794
+ }
795
+ }
796
+
797
+ /* Subtle variant for less prominent loading */
798
+ .thinking-indicator.subtle {
799
+ background: rgba(243, 244, 246, 0.7);
800
+ border-left: var(--border-default) solid var(--secondary-light);
801
+ font-size: 12px;
802
+ padding: 6px 10px;
803
+ }
804
+
805
+ .thinking-indicator.subtle .dot {
806
+ width: 3px;
807
+ height: 3px;
808
+ background-color: var(--secondary-dark);
809
+ }
810
+
811
+ /* Processing variant for longer operations */
812
+ .thinking-indicator.processing {
813
+ background: linear-gradient(90deg, var(--text_areabackground) 0%, rgba(20, 184, 166, 0.1) 50%, var(--text_areabackground) 100%);
814
+ border-left: var(--border-hover) solid var(--ai_message);
815
+ color: var(--primarytext-color);
816
+ }
817
+
818
+ .thinking-indicator.processing .dot {
819
+ background-color: var(--ai_message);
820
+ }
821
+
822
+ @keyframes processing-pulse {
823
+ 0%, 70%, 100% {
824
+ transform: scale(0.8);
825
+ opacity: 0.5;
826
+ background-color: var(--ai_message);
827
+ }
828
+ 35% {
829
+ transform: scale(1.1);
830
+ opacity: 1;
831
+ background-color: var(--secondary-dark);
832
+ }
833
+ }
834
+
835
+ .thinking-indicator.processing .dot {
836
+ animation: processing-pulse 1.4s infinite ease-in-out;
837
+ }
838
+
839
+ /* Responsive adjustments */
840
+ @media (max-width: 768px) {
841
+ .thinking-indicator {
842
+ font-size: 13px;
843
+ padding: 6px 10px;
844
+ }
845
+
846
+ .dot {
847
+ width: 3px;
848
+ height: 3px;
849
+ }
850
  }