openhands commited on
Commit
0f8031a
·
1 Parent(s): 4f4a27d

Reduce left/right margins on mobile view

Browse files

Add responsive CSS media query for screens 768px and narrower that:
- Reduces padding on #page-content-wrapper from 25px to 8px
- Reduces padding on #intro-paragraph from 35px to 8px
- Reduces padding on .nav-holder from 20px to 8px
- Reduces padding on .gradio-container
- Makes content full width (max-width: 100%)
- Reduces table cell padding for better mobile display

Files changed (1) hide show
  1. content.py +65 -0
content.py CHANGED
@@ -1046,4 +1046,69 @@ h3 .header-link-icon {
1046
  .dark .js-plotly-plot .modebar-btn:hover path {
1047
  fill: #4a4533 !important;
1048
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1049
  """
 
1046
  .dark .js-plotly-plot .modebar-btn:hover path {
1047
  fill: #4a4533 !important;
1048
  }
1049
+
1050
+ /* ====== Mobile Responsive Styles ====== */
1051
+ /* Reduce left/right padding and margins on mobile devices */
1052
+ @media (max-width: 768px) {
1053
+ /* Reduce padding on main content wrapper */
1054
+ #page-content-wrapper {
1055
+ padding-left: 8px !important;
1056
+ padding-right: 8px !important;
1057
+ }
1058
+
1059
+ /* Reduce padding on intro paragraph */
1060
+ #intro-paragraph {
1061
+ padding-left: 8px !important;
1062
+ padding-right: 8px !important;
1063
+ max-width: 100% !important;
1064
+ }
1065
+
1066
+ /* Reduce padding on category intro */
1067
+ #intro-category-paragraph {
1068
+ padding-left: 8px !important;
1069
+ padding-right: 8px !important;
1070
+ max-width: 100% !important;
1071
+ }
1072
+
1073
+ /* Reduce navigation holder padding */
1074
+ .nav-holder {
1075
+ padding-left: 8px !important;
1076
+ padding-right: 8px !important;
1077
+ }
1078
+
1079
+ /* Reduce about content padding */
1080
+ #about-content {
1081
+ padding-left: 8px !important;
1082
+ padding-right: 8px !important;
1083
+ max-width: 100% !important;
1084
+ }
1085
+
1086
+ /* Reduce about page wrapper padding */
1087
+ #about-page-content-wrapper {
1088
+ padding-left: 12px !important;
1089
+ padding-right: 12px !important;
1090
+ }
1091
+
1092
+ /* Reduce gradio container padding */
1093
+ .gradio-container {
1094
+ padding-left: 8px !important;
1095
+ padding-right: 8px !important;
1096
+ }
1097
+
1098
+ /* Reduce main block padding */
1099
+ .main, .wrap, .contain {
1100
+ padding-left: 4px !important;
1101
+ padding-right: 4px !important;
1102
+ }
1103
+
1104
+ /* Make plots and tables full width on mobile */
1105
+ .plot-legend-container {
1106
+ padding: 16px 12px !important;
1107
+ }
1108
+
1109
+ /* Reduce table cell padding on mobile */
1110
+ table.gr-table th, table.gr-table td {
1111
+ padding: 4px 2px !important;
1112
+ }
1113
+ }
1114
  """