From 1695b2828f5730965bb329d40bf4cfe9ae877f39 Mon Sep 17 00:00:00 2001 From: moklick Date: Mon, 18 Sep 2023 16:10:51 +0200 Subject: [PATCH] chore(system): defaults for controls base styles --- packages/system/src/styles/init.css | 17 +++++++++++++++++ packages/system/src/styles/style.css | 13 ------------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/packages/system/src/styles/init.css b/packages/system/src/styles/init.css index b65c4df4..0bdb9f71 100644 --- a/packages/system/src/styles/init.css +++ b/packages/system/src/styles/init.css @@ -297,3 +297,20 @@ ); } } + +.xy-flow__controls { + &-button { + display: flex; + justify-content: center; + align-items: center; + height: 26px; + width: 26px; + padding: 4px; + + svg { + width: 100%; + max-width: 12px; + max-height: 12px; + } + } +} diff --git a/packages/system/src/styles/style.css b/packages/system/src/styles/style.css index 35096046..99fa8876 100644 --- a/packages/system/src/styles/style.css +++ b/packages/system/src/styles/style.css @@ -100,15 +100,8 @@ var(--controls-button-border-color, var(--controls-button-border-color-default)) ); color: var(--controls-button-color-props, var(--controls-button-color, var(--controls-button-color-default))); - box-sizing: content-box; - display: flex; - justify-content: center; - align-items: center; - width: 16px; - height: 16px; cursor: pointer; user-select: none; - padding: 5px; &:hover { background: var( @@ -121,12 +114,6 @@ ); } - svg { - width: 100%; - max-width: 12px; - max-height: 12px; - } - &:disabled { pointer-events: none;