From c1d36f9e48003728d4ce07dce36150bde155a23c Mon Sep 17 00:00:00 2001 From: Patrick O'Carroll Date: Fri, 21 Sep 2018 10:25:46 +0200 Subject: [PATCH 1/3] created switch button for org users that can toggle between users and invites --- .../app/features/org/partials/orgUsers.html | 19 +++++-- public/sass/components/_buttons.scss | 52 +++++++++++++++++++ 2 files changed, 66 insertions(+), 5 deletions(-) diff --git a/public/app/features/org/partials/orgUsers.html b/public/app/features/org/partials/orgUsers.html index 697879c6ac2..2925fb54061 100644 --- a/public/app/features/org/partials/orgUsers.html +++ b/public/app/features/org/partials/orgUsers.html @@ -2,16 +2,25 @@
-
- -
diff --git a/public/sass/components/_buttons.scss b/public/sass/components/_buttons.scss index fd4261e9e3f..99982388e5c 100644 --- a/public/sass/components/_buttons.scss +++ b/public/sass/components/_buttons.scss @@ -224,51 +224,24 @@ $btn-service-icon-width: 35px; //Toggle button .toggle-btn { - &-left { + background: $input-label-bg; + color: $text-color-weak; + box-shadow: $card-shadow; + + &:nth-child(1) { border-radius: 2px 0 0 2px; - border-left: 1px solid #dae0e8; - border-top: 1px solid #dae0e8; - border-bottom: 1px solid #dae0e8; margin: 0; - box-shadow: $card-shadow; - &--active { - background-color: #fff; - //background-color: $btn-secondary-bg; - //color: #fff; - background-color: lighten($input-label-bg, 5%); - color: $link-color; - &:hover { - cursor: default; - } - } - &--inactive { - //@include buttonBackground($btn-inverse-bg, $btn-inverse-bg-hl, $btn-inverse-text-color, $btn-inverse-text-shadow); - background: $input-label-bg; - color: $text-color-weak; - } } - &-right { + &:nth-child(2) { border-radius: 0 2px 2px 0; - border-right: 1px solid #dae0e8; - border-top: 1px solid #dae0e8; - border-bottom: 1px solid #dae0e8; margin-left: 0 !important; - box-shadow: $card-shadow; - - &--active { - background-color: #fff; - //background-color: $btn-secondary-bg; - //color: #FFF; - background-color: lighten($input-label-bg, 5%); - color: $link-color; - &:hover { - cursor: default; - } - } - &--inactive { - //@include buttonBackground($btn-inverse-bg, $btn-inverse-bg-hl, $btn-inverse-text-color, $btn-inverse-text-shadow); - background: $input-label-bg; - color: $text-color-weak; + } + + &.active { + background-color: lighten($input-label-bg, 5%); + color: $link-color; + &:hover { + cursor: default; } } } From e9790c9f1b340cbf9c3918d0dbcc51af11abdf6c Mon Sep 17 00:00:00 2001 From: Patrick O'Carroll Date: Wed, 26 Sep 2018 07:56:33 +0200 Subject: [PATCH 3/3] changed to first and last child --- public/sass/components/_buttons.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/sass/components/_buttons.scss b/public/sass/components/_buttons.scss index 99982388e5c..916c141a5ec 100644 --- a/public/sass/components/_buttons.scss +++ b/public/sass/components/_buttons.scss @@ -228,11 +228,11 @@ $btn-service-icon-width: 35px; color: $text-color-weak; box-shadow: $card-shadow; - &:nth-child(1) { + &:first-child { border-radius: 2px 0 0 2px; margin: 0; } - &:nth-child(2) { + &:last-child { border-radius: 0 2px 2px 0; margin-left: 0 !important; }