badaoui HF Staff commited on
Commit
b25971c
·
1 Parent(s): b3c2562
Files changed (1) hide show
  1. styles.css +80 -8
styles.css CHANGED
@@ -960,10 +960,10 @@ h1, h2, h3, p, .markdown {
960
  padding: 30px 20px !important;
961
  }
962
 
963
- /* Historical view plot styling - increase text sizes */
964
  .historical-view .plot-container svg text,
965
  .time-series-detail-view .plot-container svg text {
966
- font-size: 16px !important;
967
  }
968
 
969
  /* Historical view title styling */
@@ -971,22 +971,94 @@ h1, h2, h3, p, .markdown {
971
  .time-series-detail-view .plot-container svg text[class*="title"],
972
  .historical-view .plot-container svg g[class*="title"] text,
973
  .time-series-detail-view .plot-container svg g[class*="title"] text {
974
- font-size: 20px !important;
975
  font-weight: 600 !important;
976
  }
977
 
978
- /* Historical view axis labels */
 
 
 
 
 
 
 
 
 
 
 
 
 
979
  .historical-view .plot-container svg g[class*="axis"] text,
980
- .time-series-detail-view .plot-container svg g[class*="axis"] text {
981
- font-size: 15px !important;
 
 
 
 
982
  }
983
 
984
- /* Historical view legend styling */
985
  .historical-view .plot-container svg g[class*="legend"] text,
986
- .time-series-detail-view .plot-container svg g[class*="legend"] text {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
987
  font-size: 16px !important;
988
  }
989
 
 
 
 
 
 
 
 
990
  /* Back button styling */
991
  .back-button {
992
  background: linear-gradient(135deg, #2a2a2a, #1e1e1e) !important;
 
960
  padding: 30px 20px !important;
961
  }
962
 
963
+ /* Historical view plot styling - increase all text sizes */
964
  .historical-view .plot-container svg text,
965
  .time-series-detail-view .plot-container svg text {
966
+ font-size: 18px !important;
967
  }
968
 
969
  /* Historical view title styling */
 
971
  .time-series-detail-view .plot-container svg text[class*="title"],
972
  .historical-view .plot-container svg g[class*="title"] text,
973
  .time-series-detail-view .plot-container svg g[class*="title"] text {
974
+ font-size: 22px !important;
975
  font-weight: 600 !important;
976
  }
977
 
978
+ /* Historical view axis titles (x-axis and y-axis labels) */
979
+ .historical-view .plot-container svg g[class*="xtitle"] text,
980
+ .historical-view .plot-container svg g[class*="ytitle"] text,
981
+ .time-series-detail-view .plot-container svg g[class*="xtitle"] text,
982
+ .time-series-detail-view .plot-container svg g[class*="ytitle"] text,
983
+ .historical-view .plot-container svg .xtitle text,
984
+ .historical-view .plot-container svg .ytitle text,
985
+ .time-series-detail-view .plot-container svg .xtitle text,
986
+ .time-series-detail-view .plot-container svg .ytitle text {
987
+ font-size: 18px !important;
988
+ font-weight: 500 !important;
989
+ }
990
+
991
+ /* Historical view axis tick labels */
992
  .historical-view .plot-container svg g[class*="axis"] text,
993
+ .time-series-detail-view .plot-container svg g[class*="axis"] text,
994
+ .historical-view .plot-container svg .xaxis text,
995
+ .historical-view .plot-container svg .yaxis text,
996
+ .time-series-detail-view .plot-container svg .xaxis text,
997
+ .time-series-detail-view .plot-container svg .yaxis text {
998
+ font-size: 16px !important;
999
  }
1000
 
1001
+ /* Historical view legend styling - make it much larger */
1002
  .historical-view .plot-container svg g[class*="legend"] text,
1003
+ .time-series-detail-view .plot-container svg g[class*="legend"] text,
1004
+ .historical-view .plot-container svg .legend text,
1005
+ .time-series-detail-view .plot-container svg .legend text,
1006
+ .historical-view .plot-container svg g.legend text,
1007
+ .time-series-detail-view .plot-container svg g.legend text,
1008
+ .historical-view .plot-container svg text.legend,
1009
+ .time-series-detail-view .plot-container svg text.legend {
1010
+ font-size: 18px !important;
1011
+ font-weight: 500 !important;
1012
+ }
1013
+
1014
+ /* Target all plotly/gradio plot text elements */
1015
+ .historical-view .plot-container .js-plotly-plot text,
1016
+ .time-series-detail-view .plot-container .js-plotly-plot text {
1017
+ font-size: 16px !important;
1018
+ }
1019
+
1020
+ .historical-view .plot-container .js-plotly-plot .legendtext,
1021
+ .time-series-detail-view .plot-container .js-plotly-plot .legendtext {
1022
+ font-size: 18px !important;
1023
+ }
1024
+
1025
+ /* Target Altair/Vega-Lite charts used by Gradio */
1026
+ .historical-view .vega-embed text,
1027
+ .time-series-detail-view .vega-embed text,
1028
+ .historical-view .mark-text text,
1029
+ .time-series-detail-view .mark-text text {
1030
+ font-size: 18px !important;
1031
+ }
1032
+
1033
+ /* Vega-Lite legend text */
1034
+ .historical-view .vega-embed .role-legend-label,
1035
+ .time-series-detail-view .vega-embed .role-legend-label,
1036
+ .historical-view .vega-embed g[aria-label*="legend"] text,
1037
+ .time-series-detail-view .vega-embed g[aria-label*="legend"] text {
1038
+ font-size: 18px !important;
1039
+ font-weight: 500 !important;
1040
+ }
1041
+
1042
+ /* Vega-Lite axis titles */
1043
+ .historical-view .vega-embed .role-axis-title,
1044
+ .time-series-detail-view .vega-embed .role-axis-title {
1045
+ font-size: 18px !important;
1046
+ font-weight: 500 !important;
1047
+ }
1048
+
1049
+ /* Vega-Lite axis labels */
1050
+ .historical-view .vega-embed .role-axis-label,
1051
+ .time-series-detail-view .vega-embed .role-axis-label {
1052
  font-size: 16px !important;
1053
  }
1054
 
1055
+ /* Vega-Lite chart title */
1056
+ .historical-view .vega-embed .role-title,
1057
+ .time-series-detail-view .vega-embed .role-title {
1058
+ font-size: 22px !important;
1059
+ font-weight: 600 !important;
1060
+ }
1061
+
1062
  /* Back button styling */
1063
  .back-button {
1064
  background: linear-gradient(135deg, #2a2a2a, #1e1e1e) !important;