AmButtonGroup.vue
82 lines
| 1 | <template> |
| 2 | <div class="am-button-group"> |
| 3 | <slot></slot> |
| 4 | </div> |
| 5 | </template> |
| 6 | |
| 7 | <script> |
| 8 | export default { |
| 9 | name: "AmButtonGroup" |
| 10 | } |
| 11 | </script> |
| 12 | |
| 13 | <style lang="scss"> |
| 14 | @mixin am-button-group-block { |
| 15 | .am-button-group { |
| 16 | display: flex; |
| 17 | flex-direction: row; |
| 18 | flex-wrap: nowrap; |
| 19 | |
| 20 | & > .am-button { |
| 21 | box-shadow: none; |
| 22 | |
| 23 | &:first-child { |
| 24 | border-top-right-radius: 0; |
| 25 | border-bottom-right-radius: 0; |
| 26 | } |
| 27 | |
| 28 | &:last-child { |
| 29 | border-top-left-radius: 0; |
| 30 | border-bottom-left-radius: 0 |
| 31 | } |
| 32 | |
| 33 | &:not(:last-child) { |
| 34 | margin-right: -1px; |
| 35 | } |
| 36 | |
| 37 | &:first-child:last-child { |
| 38 | border-radius: var(--am-rad-input); |
| 39 | } |
| 40 | |
| 41 | &:not(:first-child):not(:last-child) { |
| 42 | border-radius: 0; |
| 43 | } |
| 44 | |
| 45 | // Type - filled / plain / text |
| 46 | &--filled { |
| 47 | &:not(.is-disabled) { |
| 48 | &:focus:not(:active) { |
| 49 | border-color: var(--am-c-btn-first-darken30); |
| 50 | box-shadow: none; |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | &--plain { |
| 56 | &:not(.is-disabled) { |
| 57 | &:focus:not(:active) { |
| 58 | border-color: var(--am-c-btn-first); |
| 59 | box-shadow: none; |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | &--text { |
| 65 | &:not(.is-disabled) { |
| 66 | &:focus:not(:active) { |
| 67 | box-shadow: none; |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | .amelia-v2-booking #amelia-container { |
| 76 | @include am-button-group-block; |
| 77 | } |
| 78 | |
| 79 | #amelia-app-backend-new { |
| 80 | @include am-button-group-block; |
| 81 | } |
| 82 | </style> |