From e555c4d08329a8649e1bd60bd33025206b3353c5 Mon Sep 17 00:00:00 2001 From: Prospector Date: Sat, 14 Oct 2023 14:44:27 -0700 Subject: [PATCH 1/3] Joined buttons --- docs/components/button.md | 50 ++++++++++++++++++++++++++++++ lib/assets/icons/import.svg | 1 + lib/assets/styles/classes.scss | 33 ++++++++++++++++++++ lib/components/base/PopoutMenu.vue | 7 ++++- lib/components/index.js | 1 + 5 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 lib/assets/icons/import.svg diff --git a/docs/components/button.md b/docs/components/button.md index 3ceb5fee..6b93f550 100644 --- a/docs/components/button.md +++ b/docs/components/button.md @@ -107,3 +107,53 @@ ``` + +## Joined buttons + + +
+ + + + + + +
+
+ +```vue +
+ + + + + + +
+``` diff --git a/lib/assets/icons/import.svg b/lib/assets/icons/import.svg new file mode 100644 index 00000000..b00c67b8 --- /dev/null +++ b/lib/assets/icons/import.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/lib/assets/styles/classes.scss b/lib/assets/styles/classes.scss index 3eaa4089..13ca3701 100644 --- a/lib/assets/styles/classes.scss +++ b/lib/assets/styles/classes.scss @@ -486,6 +486,18 @@ a, background: none; box-shadow: none; } + + &.btn-dropdown-animation { + svg { + transition: transform 0.125s ease-in-out; + } + + &.popout-open { + svg { + transform: rotate(180deg); + } + } + } } .btn-group { @@ -494,6 +506,27 @@ a, flex-wrap: wrap; } +.joined-buttons { + display: flex; + gap: 1px; + + > :not(:first-child) { + &.btn, + > .btn { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + } + } + + > :not(:last-child) { + &.btn, + > .btn { + border-top-right-radius: 0; + border-bottom-right-radius: 0; + } + } +} + // PROJECT CARDS .project-list { diff --git a/lib/components/base/PopoutMenu.vue b/lib/components/base/PopoutMenu.vue index 54cf0b2c..76c1b249 100644 --- a/lib/components/base/PopoutMenu.vue +++ b/lib/components/base/PopoutMenu.vue @@ -1,6 +1,11 @@