PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 1.2.31
Booking for Appointments and Events Calendar – Amelia v1.2.31
2.4.9 2.4.8 2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / v3 / src / views / _components / button / AmButtonGroup.vue
ameliabooking / v3 / src / views / _components / button Last commit date
AmAdvButton.vue 4 years ago AmButton.vue 1 year ago AmButtonGroup.vue 1 year ago
AmButtonGroup.vue
104 lines
1 <template>
2 <div
3 class="am-button-group"
4 :class="{'am-rtl': isRtl}"
5 >
6 <slot></slot>
7 </div>
8 </template>
9
10 <script setup>
11 // * import from Vue
12 import {
13 computed,
14 } from "vue"
15
16 let isRtl = computed(() => {
17 if (document) {
18 return document.documentElement.dir === 'rtl'
19 }
20
21 return false
22 })
23 </script>
24
25 <script>
26 export default {
27 name: "AmButtonGroup"
28 }
29 </script>
30
31 <style lang="scss">
32 @mixin am-button-group-block {
33 .am-button-group {
34 display: flex;
35 flex-direction: row;
36 flex-wrap: nowrap;
37
38 &.am-rtl {
39 flex-direction: row-reverse;
40 }
41
42 & > .am-button {
43 box-shadow: none;
44
45 &:first-child {
46 border-top-right-radius: 0;
47 border-bottom-right-radius: 0;
48 }
49
50 &:last-child {
51 border-top-left-radius: 0;
52 border-bottom-left-radius: 0
53 }
54
55 &:not(:last-child) {
56 margin-right: -1px;
57 }
58
59 &:first-child:last-child {
60 border-radius: var(--am-rad-inp);
61 }
62
63 &:not(:first-child):not(:last-child) {
64 border-radius: 0;
65 }
66
67 // Type - filled / plain / text
68 &--filled {
69 &:not(.is-disabled) {
70 &:focus:not(:active) {
71 border-color: var(--am-c-btn-first-darken30);
72 box-shadow: none;
73 }
74 }
75 }
76
77 &--plain {
78 &:not(.is-disabled) {
79 &:focus:not(:active) {
80 border-color: var(--am-c-btn-first);
81 box-shadow: none;
82 }
83 }
84 }
85
86 &--text {
87 &:not(.is-disabled) {
88 &:focus:not(:active) {
89 box-shadow: none;
90 }
91 }
92 }
93 }
94 }
95 }
96
97 .amelia-v2-booking #amelia-container {
98 @include am-button-group-block;
99 }
100
101 #amelia-app-backend-new {
102 @include am-button-group-block;
103 }
104 </style>