From a7d80bf09500f118a161a031e6888c0ea86c46f0 Mon Sep 17 00:00:00 2001 From: Yaacov Date: Tue, 4 Apr 2023 18:59:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20fix(style):=20minor=20CSS=20opti?= =?UTF-8?q?mizations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/2_main.css | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/assets/css/2_main.css b/assets/css/2_main.css index 5da7e403..5aa19d73 100644 --- a/assets/css/2_main.css +++ b/assets/css/2_main.css @@ -29,20 +29,16 @@ html { outline-width: 0; } .enlarge-link a:before { - bottom: 0; content: ""; display: block; height: 100%; - left: 0; + inset: 0; outline-color: inherit; outline-style: inherit; outline-width: var(--border-focus); outline-offset: var(--s-5); - transition-property: outline-width; - transition-duration: 0.3s; + transition: outline-width 0.3s; position: absolute; - right: 0; - top: 0; width: 100%; z-index: 1; } @@ -53,12 +49,11 @@ figure > [target="_blank"] + figcaption::after { background-color: currentcolor; content: ""; display: inline-block; - flex: 0 0 auto; height: 1rem; margin-left: 0.25rem; mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath d='M10 6v2H5v11h11v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6Zm11-3v8h-2V6.413l-7.793 7.794-1.414-1.414L17.585 5H13V3h8Z'/%3E%3C/svg%3E"); mask-size: 100% 100%; - vertical-align: calc(-0.125em); + vertical-align: -0.125em; width: 1rem; }