diff options
author | Ingrid Budau <twigle_ingrid@yahoo.com> | 2022-03-10 16:51:37 +0100 |
---|---|---|
committer | Ingrid Budau <twigle_ingrid@yahoo.com> | 2022-03-10 16:51:37 +0100 |
commit | 7e0a999a27f4435a0e2cd91681d6184abdf83e1e (patch) | |
tree | 8182ce1871bfd6e408a78a742353d70f3c46d82b | |
parent | 3db9c99aea9529fb6d077a2a4668f3fcb7921777 (diff) | |
download | qutebrowser-7e0a999a27f4435a0e2cd91681d6184abdf83e1e.tar.gz qutebrowser-7e0a999a27f4435a0e2cd91681d6184abdf83e1e.zip |
Make short description part of the summary in the details tag
This way the text of the description is not interrupted
when expanded.
-rw-r--r-- | qutebrowser/html/settings.html | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/qutebrowser/html/settings.html b/qutebrowser/html/settings.html index 37594a918..b06917fd5 100644 --- a/qutebrowser/html/settings.html +++ b/qutebrowser/html/settings.html @@ -124,15 +124,27 @@ input[type="radio"]:checked + label { white-space: pre-line; } +details summary > * { + display: inline; +} + +details[open] .details { + display: none; +} + summary { margin: .5ex 0; width: fit-content; - outline: none; color: #1887c5; + outline: none; font-size: 105%; cursor: pointer; } +summary .short-description { + color: #635d5dcf; +} + summary::selection { background-color: inherit; } @@ -153,12 +165,16 @@ summary::selection { {% if option.description %} {% set description = option.description.split('\n', 1) %} <div class="option-description"> - <p>{{ description[0]|e }}</p> {% if description|length > 1 %} <details> - <summary>Details</summary> - <p class="long-description">{{ description[1] }}</p> + <summary> + <p class="short-description">{{ description[0]|e }}</p> + <span class="details">Details</span> + </summary> + <p class="long-description">{{ description[1]|e }}</p> </details> + {% else %} + <p>{{ description[0]|e }}</p> {% endif %} </div> {% endif %} |