From defef048d6b62eb410418ad5670e6f51fe280f52 Mon Sep 17 00:00:00 2001 From: PeenScreeker Date: Wed, 14 Aug 2024 01:56:35 -0400 Subject: [PATCH] feat: style two-click mode togglebutton --- images/select-drag.svg | 1 + images/select-off.svg | 1 + images/vector-polyline.svg | 1 + layout/pages/zoning/zoning.xml | 9 ++++++--- styles/pages/zoning/zoning.scss | 19 +++++++++++++++++++ 5 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 images/select-drag.svg create mode 100644 images/select-off.svg create mode 100644 images/vector-polyline.svg diff --git a/images/select-drag.svg b/images/select-drag.svg new file mode 100644 index 00000000..2b58df9c --- /dev/null +++ b/images/select-drag.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/select-off.svg b/images/select-off.svg new file mode 100644 index 00000000..1c9eaf07 --- /dev/null +++ b/images/select-off.svg @@ -0,0 +1 @@ + diff --git a/images/vector-polyline.svg b/images/vector-polyline.svg new file mode 100644 index 00000000..3bf4b331 --- /dev/null +++ b/images/vector-polyline.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layout/pages/zoning/zoning.xml b/layout/pages/zoning/zoning.xml index 6bfdbf3d..377cc1cf 100644 --- a/layout/pages/zoning/zoning.xml +++ b/layout/pages/zoning/zoning.xml @@ -161,9 +161,12 @@ - + + + + diff --git a/styles/pages/zoning/zoning.scss b/styles/pages/zoning/zoning.scss index aff30d13..600a5535 100644 --- a/styles/pages/zoning/zoning.scss +++ b/styles/pages/zoning/zoning.scss @@ -273,6 +273,25 @@ $medium: 28px; } } + &__two-click-button { + height: $button-height; + width: height-percentage(100%); + background-position: center; + background-repeat: no-repeat; + background-image: url('file://{images}/vector-polyline.svg'); + wash-color: $red; + tooltip-position: top; + + &:selected { + background-image: url('file://{images}/select-drag.svg'); + wash-color: $blue; + } + + &:hover { + wash-color: $white; + } + } + &__dropdown { width: 180px; }