From c04ecf9f4cd5516d1abbd55158eaa7c367545e36 Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 29 Jan 2022 22:31:09 +0300 Subject: [PATCH] fix split-btn with popup.stylesFirst ...and switch to pure CSS flex+order instead of JS --- global.css | 8 -------- popup.html | 4 ++-- popup/popup.css | 25 ++++++++++++++++++++++--- popup/popup.js | 12 ++---------- 4 files changed, 26 insertions(+), 23 deletions(-) diff --git a/global.css b/global.css index 44e9bf58..fb5fa4ca 100644 --- a/global.css +++ b/global.css @@ -326,17 +326,9 @@ body.resizing-v > * { content: ''; border: var(--side) solid transparent; display: inline-block; -} -.split-btn-pedal:not(.up)::after { border-top: calc(var(--side) * 1.3) solid currentColor; vertical-align: bottom; } -.split-btn-pedal.up::after { - border-bottom: calc(var(--side) * 1.3) solid currentColor; - vertical-align: top; - position: relative; - top: 1px; -} .split-btn-pedal.active { box-shadow: inset 0 0 100px rgba(0, 0, 0, .2); } diff --git a/popup.html b/popup.html index c700be32..4ce7ccc0 100644 --- a/popup.html +++ b/popup.html @@ -190,7 +190,7 @@ -
+