From a40e3685d42e743832089dbc41e2b2ceb9d758a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 12 Feb 2023 11:31:20 +0100 Subject: [PATCH] theme: fix some sizing issues in content on small font sizes #466 --- static/css/ie.css | 8 +------- static/css/theme.css | 13 ++++--------- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/static/css/ie.css b/static/css/ie.css index a42e0f77c1..eb2f32e782 100644 --- a/static/css/ie.css +++ b/static/css/ie.css @@ -50,7 +50,7 @@ padding-right: 2rem; } blockquote { - border-left: 10px solid rgba( 134, 134, 134, .4 ); + border-left: .6rem solid rgba( 134, 134, 134, .4 ); } blockquote cite { text-align: right; @@ -125,7 +125,6 @@ border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 0; - padding-left: 22px; } span > .copy-to-clipboard-button { border-top-left-radius: 0; @@ -133,12 +132,7 @@ border-bottom-right-radius: 2px; border-bottom-left-radius: 0; } - .copy-to-clipboard-button > i { - margin-left: -22px; - } pre > .copy-to-clipboard-button { - padding-left: 25px; - padding-right: 3px; right: 4px; } .disableInlineCopyToClipboard span > code.copy-to-clipboard-code { diff --git a/static/css/theme.css b/static/css/theme.css index f6e70f1bbb..a285f1f788 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -476,7 +476,7 @@ h2, h3, h4, h5, h6 { } blockquote { - border-inline-start: 10px solid rgba( 134, 134, 134, .4 ); + border-inline-start: .6rem solid rgba( 134, 134, 134, .4 ); } blockquote p { @@ -490,7 +490,7 @@ blockquote cite { display: block; font-weight: bold; opacity: .5; - padding-top: .5em; + padding-top: .5rem; text-align: end; } @@ -1010,7 +1010,6 @@ html[dir="rtl"] #body #breadcrumbs { border-width: 1px; cursor: pointer; font-size: .934375rem; - padding-inline-start: 22px; } span > .copy-to-clipboard-button { @@ -1023,7 +1022,6 @@ span > .copy-to-clipboard-button { .copy-to-clipboard-button > i { font-size: .859625rem; font-weight: 500; - margin-inline-start: -22px; } .copy-to-clipboard-code + .copy-to-clipboard-button > i { @@ -1037,10 +1035,7 @@ pre > .copy-to-clipboard-button { border-style: solid; border-width: 1px; inset-inline-end: 4px; - padding-bottom: 5px; - padding-inline-start: 25px; - padding-inline-end: 3px; - padding-top: 5px; + padding: 5px 3px; position: absolute; top: 4px; } @@ -1415,7 +1410,7 @@ rapi-doc::part(btn) { rapi-doc::part(section-endpoint-head-method) { /* makes method marker large enough to not overflow on text DELETE */ font-size: .6875rem; - width: 5.5em; + width: 5.5rem; } .select-container i {