searchgpt / assets /css /reasoning.py
hadadrjt's picture
SearchGPT: Initial.
408c946
raw
history blame contribute delete
680 Bytes
#
# SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org>
# SPDX-License-Identifier: Apache-2.0
#
def styles(reasoning: str, expanded: bool = False) -> str:
open_attr = "open" if expanded else ""
emoji = "&#129504;"
return f"""
<details {open_attr} style="
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
">
<summary style="
font-weight: 700;
font-size: 14px !important;
cursor: pointer;
user-select: none;
">
{emoji} Reasoning
</summary>
<div style="
margin-top: 6px;
padding-top: 6px;
font-size: 10px !important;
line-height: 1.7;
letter-spacing: 0.02em;
">
{reasoning}
</div>
</details>
"""