GSMEthesis commited on
Commit
b4b0596
·
verified ·
1 Parent(s): e4a1cdf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +43 -0
app.py CHANGED
@@ -685,6 +685,49 @@ h3 {
685
  max-width: 80px !important;
686
  }
687
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
688
  </style>
689
  """, unsafe_allow_html=True)
690
 
 
685
  max-width: 80px !important;
686
  }
687
  }
688
+ /* تنظیم justify برای تمام متن‌ها */
689
+ [data-testid="stAppViewContainer"] * {
690
+ text-align: justify !important;
691
+ text-justify: inter-word !important;
692
+ }
693
+
694
+ /* استثناها برای عناصری که نباید justify شوند */
695
+ [data-testid="stAppViewContainer"] .stButton>button,
696
+ [data-testid="stAppViewContainer"] .stRadio>label,
697
+ [data-testid="stAppViewContainer"] .stCheckbox>label,
698
+ [data-testid="stAppViewContainer"] .stSelectbox>label,
699
+ [data-testid="stAppViewContainer"] .stTextInput>label,
700
+ [data-testid="stAppViewContainer"] .stNumberInput>label,
701
+ [data-testid="stAppViewContainer"] input,
702
+ [data-testid="stAppViewContainer"] select,
703
+ [data-testid="stAppViewContainer"] textarea,
704
+ [data-testid="stAppViewContainer"] .rahyar-title,
705
+ [data-testid="stAppViewContainer"] .rahyar-subtitle {
706
+ text-align: right !important;
707
+ text-justify: auto !important;
708
+ }
709
+
710
+ /* تنظیمات خاص برای عناوین */
711
+ [data-testid="stAppViewContainer"] h1,
712
+ [data-testid="stAppViewContainer"] h2,
713
+ [data-testid="stAppViewContainer"] h3,
714
+ [data-testid="stAppViewContainer"] h4,
715
+ [data-testid="stAppViewContainer"] h5,
716
+ [data-testid="stAppViewContainer"] h6 {
717
+ text-align: right !important;
718
+ }
719
+
720
+ /* تنظیمات برای لیست‌ها */
721
+ [data-testid="stAppViewContainer"] ul,
722
+ [data-testid="stAppViewContainer"] ol {
723
+ padding-right: 25px !important;
724
+ }
725
+
726
+ /* بهبود فاصله بین پاراگراف‌ها */
727
+ [data-testid="stAppViewContainer"] p {
728
+ margin-bottom: 1em !important;
729
+ line-height: 1.8 !important;
730
+ }
731
  </style>
732
  """, unsafe_allow_html=True)
733