11import sys
2+ import textwrap
23from seleniumbase .fixtures import constants
34
45
@@ -116,6 +117,7 @@ def get_report_style():
116117 }
117118 </style>"""
118119 )
120+ style = textwrap .dedent (style )
119121 Saved .report_style = style
120122 return style
121123
@@ -132,6 +134,7 @@ def get_bt_backdrop_style():
132134 box-shadow: 0 0 0 88422px rgba(0, 0, 0, 0.42);
133135 pointer-events: auto !important;
134136 }"""
137+ bt_backdrop_style = textwrap .dedent (bt_backdrop_style )
135138 Saved .bt_backdrop_style = bt_backdrop_style
136139 return bt_backdrop_style
137140
@@ -150,6 +153,7 @@ def get_dt_backdrop_style():
150153 button.driver-prev-btn.driver-disabled {
151154 visibility: hidden;
152155 }"""
156+ dt_backdrop_style = textwrap .dedent (dt_backdrop_style )
153157 Saved .dt_backdrop_style = dt_backdrop_style
154158 return dt_backdrop_style
155159
@@ -167,6 +171,7 @@ def get_messenger_style():
167171 box-shadow: 2px 2px 9px 4px rgba(32, 142, 120, 0.28),
168172 2px 2px 9px 4px rgba(200, 240, 80, 0.34) !important;
169173 }""" % font_family
174+ messenger_style = textwrap .dedent (messenger_style )
170175 Saved .messenger_style = messenger_style
171176 return messenger_style
172177
@@ -181,6 +186,7 @@ def get_sh_style_test():
181186 scrollTo: true
182187 }
183188 });"""
189+ sh_style_test = textwrap .dedent (sh_style_test )
184190 Saved .sh_style_test = sh_style_test
185191 return sh_style_test
186192
@@ -193,6 +199,7 @@ def get_hops_backdrop_style():
193199 .hopscotch-bubble-container {
194200 font-size: 110%;
195201 }"""
202+ hops_backdrop_style = textwrap .dedent (hops_backdrop_style )
196203 Saved .hops_backdrop_style = hops_backdrop_style
197204 return hops_backdrop_style
198205
@@ -227,6 +234,7 @@ def get_introjs_style():
227234 box-sizing: content-box;
228235 position: absolute;
229236 }"""
237+ introjs_style = textwrap .dedent (introjs_style )
230238 Saved .introjs_style = introjs_style
231239 return introjs_style
232240
@@ -261,6 +269,7 @@ def get_sh_backdrop_style():
261269 body.shepherd-active {
262270 pointer-events: none !important;
263271 }"""
272+ sh_backdrop_style = textwrap .dedent (sh_backdrop_style )
264273 Saved .sh_backdrop_style = sh_backdrop_style
265274 return sh_backdrop_style
266275
@@ -387,5 +396,6 @@ def get_pytest_style():
387396 .desc.active .sort-icon {
388397 border-top: 8px solid #999;
389398 }"""
399+ pytest_style = textwrap .dedent (pytest_style )
390400 Saved .pytest_style = pytest_style
391401 return pytest_style
0 commit comments