From 1562471997cfbc9ecfa96ddb6bff3e15a1ee4383 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/vector-polyline.svg | 1 + images/vector-two-click.svg | 3 +++ layout/pages/zoning/zoning.xml | 9 ++++++--- styles/pages/zoning/zoning.scss | 19 +++++++++++++++++++ 4 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 images/vector-polyline.svg create mode 100644 images/vector-two-click.svg 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/images/vector-two-click.svg b/images/vector-two-click.svg new file mode 100644 index 00000000..7bcaadbb --- /dev/null +++ b/images/vector-two-click.svg @@ -0,0 +1,3 @@ + + + \ 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..cdb7aeb1 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}/vector-two-click.svg'); + wash-color: $blue; + } + + &:hover { + wash-color: $white; + } + } + &__dropdown { width: 180px; }