JeCabrera commited on
Commit
5506dd8
·
verified ·
1 Parent(s): cf4ec67

Update styles.py

Browse files
Files changed (1) hide show
  1. styles.py +20 -22
styles.py CHANGED
@@ -82,28 +82,6 @@ def get_custom_css():
82
  border-radius: 5px;
83
  }
84
 
85
- /* Fixed styling for model response area */
86
- .element-container:has(h1:contains("Oferta Generada")) ~ div {
87
- border: 2px solid #3D89B8;
88
- border-radius: 8px;
89
- padding: 15px;
90
- margin: 10px 0;
91
- box-shadow: 0 2px 5px rgba(61, 137, 184, 0.1);
92
- }
93
-
94
- /* Alternative selector for response area */
95
- .row-widget.stDownloadButton {
96
- margin-top: 15px;
97
- margin-bottom: 15px;
98
- }
99
-
100
- /* Make sure the heading stands out */
101
- h3:contains("Oferta Generada") {
102
- padding-bottom: 10px;
103
- border-bottom: 1px solid #3D89B8;
104
- margin-bottom: 15px;
105
- }
106
-
107
  /* Style for file uploader */
108
  .stFileUploader > div {
109
  border: 1px dashed #3D89B8;
@@ -127,5 +105,25 @@ def get_custom_css():
127
  color: #1A3A5F;
128
  font-weight: bold;
129
  }
 
 
 
 
 
 
 
 
 
130
  </style>
 
 
 
 
 
 
 
 
 
 
 
131
  """
 
82
  border-radius: 5px;
83
  }
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  /* Style for file uploader */
86
  .stFileUploader > div {
87
  border: 1px dashed #3D89B8;
 
105
  color: #1A3A5F;
106
  font-weight: bold;
107
  }
108
+
109
+ /* Custom styling for response container */
110
+ .response-container {
111
+ padding: 15px;
112
+ border: 2px solid #3D89B8;
113
+ border-radius: 8px;
114
+ margin: 10px 0;
115
+ box-shadow: 0 2px 5px rgba(61, 137, 184, 0.1);
116
+ }
117
  </style>
118
+ """
119
+
120
+ def get_response_html_wrapper(content):
121
+ """
122
+ Wraps content in a styled div with COPYXPERT branding
123
+ """
124
+ return f"""
125
+ <div style="padding: 15px; border: 2px solid #3D89B8; border-radius: 8px; box-shadow: 0 2px 5px rgba(61, 137, 184, 0.1);">
126
+ <h3 style="color: #1A3A5F; padding-bottom: 10px; border-bottom: 1px solid #3D89B8; margin-bottom: 15px;">Oferta Generada</h3>
127
+ <p>{content}</p>
128
+ </div>
129
  """