@timus-networks/theme 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/README.md +90 -0
  2. package/components-js/exporter.js +19 -0
  3. package/components-js/interfaces.ts +11 -0
  4. package/components-js/utils.ts +20 -0
  5. package/components-ts/exporter.js +19 -0
  6. package/components-ts/interfaces.ts +11 -0
  7. package/components-ts/utils.ts +20 -0
  8. package/convert.js +98 -0
  9. package/index.d.ts +0 -0
  10. package/js-converter.js +90 -0
  11. package/loader.js +41 -0
  12. package/module.js +62 -0
  13. package/package.json +38 -0
  14. package/plugins/js-components-installer.js +21 -0
  15. package/plugins/theme-provider.ts +75 -0
  16. package/plugins/ts-components-installer.js +21 -0
  17. package/scss/_buttons.scss +160 -0
  18. package/scss/_colors.scss +159 -0
  19. package/scss/_containers.scss +7 -0
  20. package/scss/_element-ui.scss +14 -0
  21. package/scss/_fonts.scss +69 -0
  22. package/scss/_icons.scss +87 -0
  23. package/scss/_inputs.scss +39 -0
  24. package/scss/_layers.scss +9 -0
  25. package/scss/_selectbox.scss +4 -0
  26. package/scss/_variables.scss +16 -0
  27. package/scss/element-ui/alert.scss +147 -0
  28. package/scss/element-ui/aside.scss +7 -0
  29. package/scss/element-ui/autocomplete.scss +80 -0
  30. package/scss/element-ui/avatar.scss +51 -0
  31. package/scss/element-ui/backtop.scss +22 -0
  32. package/scss/element-ui/badge.scss +58 -0
  33. package/scss/element-ui/base.scss +2 -0
  34. package/scss/element-ui/breadcrumb-item.scss +0 -0
  35. package/scss/element-ui/breadcrumb.scss +55 -0
  36. package/scss/element-ui/button-group.scss +0 -0
  37. package/scss/element-ui/button.scss +275 -0
  38. package/scss/element-ui/calendar.scss +79 -0
  39. package/scss/element-ui/card.scss +32 -0
  40. package/scss/element-ui/carousel-item.scss +50 -0
  41. package/scss/element-ui/carousel.scss +162 -0
  42. package/scss/element-ui/cascader-panel.scss +120 -0
  43. package/scss/element-ui/cascader.scss +182 -0
  44. package/scss/element-ui/checkbox-button.scss +0 -0
  45. package/scss/element-ui/checkbox-group.scss +0 -0
  46. package/scss/element-ui/checkbox.scss +359 -0
  47. package/scss/element-ui/col.scss +157 -0
  48. package/scss/element-ui/collapse-item.scss +0 -0
  49. package/scss/element-ui/collapse.scss +63 -0
  50. package/scss/element-ui/color-picker.scss +384 -0
  51. package/scss/element-ui/common/popup.scss +42 -0
  52. package/scss/element-ui/common/transition.scss +99 -0
  53. package/scss/element-ui/common/var.scss +1029 -0
  54. package/scss/element-ui/container.scss +14 -0
  55. package/scss/element-ui/date-picker/date-picker.scss +97 -0
  56. package/scss/element-ui/date-picker/date-range-picker.scss +101 -0
  57. package/scss/element-ui/date-picker/date-table.scss +151 -0
  58. package/scss/element-ui/date-picker/month-table.scss +82 -0
  59. package/scss/element-ui/date-picker/picker-panel.scss +117 -0
  60. package/scss/element-ui/date-picker/picker.scss +197 -0
  61. package/scss/element-ui/date-picker/time-picker.scss +85 -0
  62. package/scss/element-ui/date-picker/time-range-picker.scss +31 -0
  63. package/scss/element-ui/date-picker/time-spinner.scss +110 -0
  64. package/scss/element-ui/date-picker/year-table.scss +51 -0
  65. package/scss/element-ui/date-picker.scss +12 -0
  66. package/scss/element-ui/descriptions-item.scss +42 -0
  67. package/scss/element-ui/descriptions.scss +111 -0
  68. package/scss/element-ui/dialog.scss +123 -0
  69. package/scss/element-ui/display.scss +12 -0
  70. package/scss/element-ui/divider.scss +47 -0
  71. package/scss/element-ui/drawer.scss +219 -0
  72. package/scss/element-ui/dropdown-item.scss +0 -0
  73. package/scss/element-ui/dropdown-menu.scss +0 -0
  74. package/scss/element-ui/dropdown.scss +182 -0
  75. package/scss/element-ui/empty.scss +45 -0
  76. package/scss/element-ui/fonts/element-icons.ttf +0 -0
  77. package/scss/element-ui/fonts/element-icons.woff +0 -0
  78. package/scss/element-ui/footer.scss +8 -0
  79. package/scss/element-ui/form-item.scss +0 -0
  80. package/scss/element-ui/form.scss +167 -0
  81. package/scss/element-ui/header.scss +8 -0
  82. package/scss/element-ui/icon.scss +1167 -0
  83. package/scss/element-ui/image.scss +179 -0
  84. package/scss/element-ui/index.scss +87 -0
  85. package/scss/element-ui/infinite-scroll.scss +0 -0
  86. package/scss/element-ui/infiniteScroll.scss +0 -0
  87. package/scss/element-ui/input-number.scss +181 -0
  88. package/scss/element-ui/input.scss +360 -0
  89. package/scss/element-ui/link.scss +81 -0
  90. package/scss/element-ui/loading.scss +97 -0
  91. package/scss/element-ui/main.scss +12 -0
  92. package/scss/element-ui/menu-item-group.scss +0 -0
  93. package/scss/element-ui/menu-item.scss +0 -0
  94. package/scss/element-ui/menu.scss +289 -0
  95. package/scss/element-ui/message-box.scss +226 -0
  96. package/scss/element-ui/message.scss +120 -0
  97. package/scss/element-ui/mixins/_button.scss +81 -0
  98. package/scss/element-ui/mixins/config.scss +4 -0
  99. package/scss/element-ui/mixins/function.scss +44 -0
  100. package/scss/element-ui/mixins/mixins.scss +190 -0
  101. package/scss/element-ui/mixins/utils.scss +39 -0
  102. package/scss/element-ui/notification.scss +99 -0
  103. package/scss/element-ui/option-group.scss +42 -0
  104. package/scss/element-ui/option.scss +36 -0
  105. package/scss/element-ui/page-header.scss +41 -0
  106. package/scss/element-ui/pagination.scss +295 -0
  107. package/scss/element-ui/popconfirm.scss +16 -0
  108. package/scss/element-ui/popover.scss +40 -0
  109. package/scss/element-ui/popper.scss +102 -0
  110. package/scss/element-ui/progress.scss +141 -0
  111. package/scss/element-ui/radio-button.scss +113 -0
  112. package/scss/element-ui/radio-group.scss +9 -0
  113. package/scss/element-ui/radio.scss +199 -0
  114. package/scss/element-ui/rate.scss +49 -0
  115. package/scss/element-ui/reset.scss +79 -0
  116. package/scss/element-ui/result.scss +61 -0
  117. package/scss/element-ui/row.scss +43 -0
  118. package/scss/element-ui/scrollbar.scss +72 -0
  119. package/scss/element-ui/select-dropdown.scss +62 -0
  120. package/scss/element-ui/select.scss +152 -0
  121. package/scss/element-ui/skeleton-item.scss +84 -0
  122. package/scss/element-ui/skeleton.scss +40 -0
  123. package/scss/element-ui/slider.scss +250 -0
  124. package/scss/element-ui/spinner.scss +44 -0
  125. package/scss/element-ui/statistic.scss +38 -0
  126. package/scss/element-ui/step.scss +317 -0
  127. package/scss/element-ui/steps.scss +20 -0
  128. package/scss/element-ui/submenu.scss +0 -0
  129. package/scss/element-ui/switch.scss +116 -0
  130. package/scss/element-ui/tab-pane.scss +0 -0
  131. package/scss/element-ui/table-column.scss +97 -0
  132. package/scss/element-ui/table.scss +564 -0
  133. package/scss/element-ui/tabs.scss +602 -0
  134. package/scss/element-ui/tag.scss +163 -0
  135. package/scss/element-ui/time-picker.scss +8 -0
  136. package/scss/element-ui/time-select.scss +37 -0
  137. package/scss/element-ui/timeline-item.scss +86 -0
  138. package/scss/element-ui/timeline.scss +14 -0
  139. package/scss/element-ui/tooltip.scss +141 -0
  140. package/scss/element-ui/transfer.scss +228 -0
  141. package/scss/element-ui/tree.scss +123 -0
  142. package/scss/element-ui/upload.scss +603 -0
  143. package/scss/main.scss +22 -0
@@ -0,0 +1,147 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(alert) {
5
+ width: 100%;
6
+ padding: $--alert-padding;
7
+ margin: 0;
8
+ box-sizing: border-box;
9
+ border-radius: $--alert-border-radius;
10
+ position: relative;
11
+ background-color: $--color-white;
12
+ overflow: hidden;
13
+ opacity: 1;
14
+ display: flex;
15
+ align-items: center;
16
+ transition: opacity .2s;
17
+
18
+ @include when(light) {
19
+ .el-alert__closebtn {
20
+ color: $--color-text-placeholder;
21
+ }
22
+ }
23
+
24
+ @include when(dark) {
25
+ .el-alert__closebtn {
26
+ color: $--color-white;
27
+ }
28
+ .el-alert__description {
29
+ color: $--color-white;
30
+ }
31
+ }
32
+
33
+ @include when(center) {
34
+ justify-content: center;
35
+ }
36
+
37
+ @include m(success) {
38
+ &.is-light {
39
+ background-color: $--alert-success-color;
40
+ color: $--color-success;
41
+
42
+ .el-alert__description {
43
+ color: $--color-success;
44
+ }
45
+ }
46
+
47
+ &.is-dark {
48
+ background-color: $--color-success;
49
+ color: $--color-white;
50
+ }
51
+ }
52
+
53
+ @include m(info) {
54
+ &.is-light {
55
+ background-color: $--alert-info-color;
56
+ color: $--color-info;
57
+ }
58
+
59
+ &.is-dark {
60
+ background-color: $--color-info;
61
+ color: $--color-white;
62
+ }
63
+
64
+ .el-alert__description {
65
+ color: $--color-info;
66
+ }
67
+ }
68
+
69
+ @include m(warning) {
70
+ &.is-light {
71
+ background-color: $--alert-warning-color;
72
+ color: $--color-warning;
73
+
74
+ .el-alert__description {
75
+ color: $--color-warning;
76
+ }
77
+ }
78
+
79
+ &.is-dark {
80
+ background-color: $--color-warning;
81
+ color: $--color-white;
82
+ }
83
+ }
84
+
85
+ @include m(error) {
86
+ &.is-light {
87
+ background-color: $--alert-danger-color;
88
+ color: $--color-danger;
89
+
90
+ .el-alert__description {
91
+ color: $--color-danger;
92
+ }
93
+ }
94
+
95
+ &.is-dark {
96
+ background-color: $--color-danger;
97
+ color: $--color-white;
98
+ }
99
+ }
100
+
101
+ @include e(content) {
102
+ display: table-cell;
103
+ padding: 0 8px;
104
+ }
105
+
106
+ @include e(icon) {
107
+ font-size: $--alert-icon-size;
108
+ width: $--alert-icon-size;
109
+ @include when(big) {
110
+ font-size: $--alert-icon-large-size;
111
+ width: $--alert-icon-large-size;
112
+ }
113
+ }
114
+
115
+ @include e(title) {
116
+ font-size: $--alert-title-font-size;
117
+ line-height: 18px;
118
+ @include when(bold) {
119
+ font-weight: bold;
120
+ }
121
+ }
122
+
123
+ & .el-alert__description {
124
+ font-size: $--alert-description-font-size;
125
+ margin: 5px 0 0 0;
126
+ }
127
+
128
+ @include e(closebtn) {
129
+ font-size: $--alert-close-font-size;
130
+ opacity: 1;
131
+ position: absolute;
132
+ top: 12px;
133
+ right: 15px;
134
+ cursor: pointer;
135
+
136
+ @include when(customed) {
137
+ font-style: normal;
138
+ font-size: $--alert-close-customed-font-size;
139
+ top: 9px;
140
+ }
141
+ }
142
+ }
143
+
144
+ .el-alert-fade-enter,
145
+ .el-alert-fade-leave-active {
146
+ opacity: 0;
147
+ }
@@ -0,0 +1,7 @@
1
+ @import "mixins/mixins";
2
+
3
+ @include b(aside) {
4
+ overflow: auto;
5
+ box-sizing: border-box;
6
+ flex-shrink: 0;
7
+ }
@@ -0,0 +1,80 @@
1
+ @import "mixins/mixins";
2
+ @import "mixins/utils";
3
+ @import "common/var";
4
+ @import "./input.scss";
5
+ @import "./scrollbar.scss";
6
+ @import "./popper";
7
+
8
+ @include b(autocomplete) {
9
+ position: relative;
10
+ display: inline-block;
11
+ }
12
+
13
+ @include b(autocomplete-suggestion) {
14
+ margin: 5px 0;
15
+ box-shadow: $--box-shadow-light;
16
+ border-radius: $--border-radius-base;
17
+ border: 1px solid $--border-color-light;
18
+ box-sizing: border-box;
19
+ background-color: $--color-white;
20
+
21
+ @include e(wrap) {
22
+ max-height: 280px;
23
+ padding: 10px 0;
24
+ box-sizing: border-box;
25
+ }
26
+
27
+ @include e(list) {
28
+ margin: 0;
29
+ padding: 0;
30
+ }
31
+
32
+ & li {
33
+ padding: 0 20px;
34
+ margin: 0;
35
+ line-height: 34px;
36
+ cursor: pointer;
37
+ color: $--color-text-regular;
38
+ font-size: $--font-size-base;
39
+ list-style: none;
40
+ white-space: nowrap;
41
+ overflow: hidden;
42
+ text-overflow: ellipsis;
43
+
44
+ &:hover {
45
+ background-color: $--select-option-hover-background;
46
+ }
47
+
48
+ &.highlighted {
49
+ background-color: $--select-option-hover-background;
50
+ }
51
+
52
+ &.divider {
53
+ margin-top: 6px;
54
+ border-top: 1px solid $--color-black;
55
+ }
56
+
57
+ &.divider:last-child {
58
+ margin-bottom: -6px;
59
+ }
60
+ }
61
+
62
+ @include when(loading) {
63
+ li {
64
+ text-align: center;
65
+ height: 100px;
66
+ line-height: 100px;
67
+ font-size: 20px;
68
+ color: #999;
69
+ @include utils-vertical-center;
70
+
71
+ &:hover {
72
+ background-color: $--color-white;
73
+ }
74
+ }
75
+
76
+ & .el-icon-loading {
77
+ vertical-align: middle;
78
+ }
79
+ }
80
+ }
@@ -0,0 +1,51 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(avatar) {
5
+ display: inline-block;
6
+ box-sizing: border-box;
7
+ text-align: center;
8
+ overflow: hidden;
9
+ color: $--avatar-font-color;
10
+ background: $--avatar-background-color;
11
+ width: $--avatar-large-size;
12
+ height: $--avatar-large-size;
13
+ line-height: $--avatar-large-size;
14
+ font-size: $--avatar-text-font-size;
15
+
16
+ >img {
17
+ display: block;
18
+ height: 100%;
19
+ vertical-align: middle;
20
+ }
21
+
22
+ @include m(circle) {
23
+ border-radius: 50%;
24
+ }
25
+
26
+ @include m(square) {
27
+ border-radius: $--avatar-border-radius;
28
+ }
29
+
30
+ @include m(icon) {
31
+ font-size: $--avatar-icon-font-size;
32
+ }
33
+
34
+ @include m(large) {
35
+ width: $--avatar-large-size;
36
+ height: $--avatar-large-size;
37
+ line-height: $--avatar-large-size;
38
+ }
39
+
40
+ @include m(medium) {
41
+ width: $--avatar-medium-size;
42
+ height: $--avatar-medium-size;
43
+ line-height: $--avatar-medium-size;
44
+ }
45
+
46
+ @include m(small) {
47
+ width: $--avatar-small-size;
48
+ height: $--avatar-small-size;
49
+ line-height: $--avatar-small-size;
50
+ }
51
+ }
@@ -0,0 +1,22 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(backtop) {
5
+ position: fixed;
6
+ background-color: $--backtop-background-color;
7
+ width: 40px;
8
+ height: 40px;
9
+ border-radius: 50%;
10
+ color: $--backtop-font-color;
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ font-size: 20px;
15
+ box-shadow: 0 0 6px rgba(0,0,0, .12);
16
+ cursor: pointer;
17
+ z-index: 5;
18
+
19
+ &:hover {
20
+ background-color: $--backtop-hover-background-color
21
+ }
22
+ }
@@ -0,0 +1,58 @@
1
+ @use "sass:math";
2
+ @import "mixins/mixins";
3
+ @import "common/var";
4
+
5
+ @include b(badge) {
6
+ position: relative;
7
+ vertical-align: middle;
8
+ display: inline-block;
9
+
10
+ @include e(content) {
11
+ background-color: $--badge-background-color;
12
+ border-radius: $--badge-radius;
13
+ color: $--color-white;
14
+ display: inline-block;
15
+ font-size: $--badge-font-size;
16
+ height: $--badge-size;
17
+ line-height: $--badge-size;
18
+ padding: 0 $--badge-padding;
19
+ text-align: center;
20
+ white-space: nowrap;
21
+ border: 1px solid $--color-white;
22
+
23
+ @include when(fixed) {
24
+ position: absolute;
25
+ top: 0;
26
+ right: math.div($--badge-size, 2);
27
+ transform: translateY(-50%) translateX(100%);
28
+
29
+ @include when(dot) {
30
+ right: 5px;
31
+ }
32
+ }
33
+
34
+ @include when(dot) {
35
+ height: 8px;
36
+ width: 8px;
37
+ padding: 0;
38
+ right: 0;
39
+ border-radius: 50%;
40
+ }
41
+
42
+ @each $type in (primary, success, warning, info, danger) {
43
+ @include m($type) {
44
+ @if $type == primary {
45
+ background-color: $--color-primary;
46
+ } @else if $type == success {
47
+ background-color: $--color-success;
48
+ } @else if $type == warning {
49
+ background-color: $--color-warning;
50
+ } @else if $type == info {
51
+ background-color: $--color-info;
52
+ } @else {
53
+ background-color: $--color-danger;
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
@@ -0,0 +1,2 @@
1
+ @import "common/transition.scss";
2
+ @import "icon.scss";
File without changes
@@ -0,0 +1,55 @@
1
+ @import "mixins/mixins";
2
+ @import "mixins/utils";
3
+ @import "common/var";
4
+
5
+ @include b(breadcrumb) {
6
+ font-size: 14px;
7
+ line-height: 1;
8
+ @include utils-clearfix;
9
+
10
+ @include e(separator) {
11
+ margin: 0 9px;
12
+ font-weight: bold;
13
+ color: $--color-text-placeholder;
14
+
15
+ &[class*=icon] {
16
+ margin: 0 6px;
17
+ font-weight: normal;
18
+ }
19
+ }
20
+
21
+ @include e(item) {
22
+ float: left;
23
+
24
+ @include e(inner) {
25
+ color: $--color-text-regular;
26
+
27
+ &.is-link, & a {
28
+ font-weight: bold;
29
+ text-decoration: none;
30
+ transition: $--color-transition-base;
31
+ color: $--color-text-primary;
32
+
33
+ &:hover {
34
+ color: $--color-primary;
35
+ cursor: pointer;
36
+ }
37
+ }
38
+ }
39
+
40
+ &:last-child {
41
+ .el-breadcrumb__inner,
42
+ .el-breadcrumb__inner a {
43
+ &, &:hover {
44
+ font-weight: normal;
45
+ color: $--color-text-regular;
46
+ cursor: text;
47
+ }
48
+ }
49
+
50
+ .el-breadcrumb__separator {
51
+ display: none;
52
+ }
53
+ }
54
+ }
55
+ }
File without changes
@@ -0,0 +1,275 @@
1
+ @charset "UTF-8";
2
+ @import 'common/var';
3
+ @import 'mixins/button';
4
+ @import 'mixins/mixins';
5
+ @import 'mixins/utils';
6
+
7
+ // Düğme tiplerini ve karşılık gelen renkleri içeren bir liste
8
+ $button-types: ('primary', 'secondary', 'gray', 'light', 'success', 'danger', 'info', 'warning');
9
+
10
+ // Derin bir map yapısından değer almak için yardımcı bir fonksiyon
11
+ @function map-get-deep($map, $keys...) {
12
+ $in-map: $map;
13
+ @each $key in $keys {
14
+ $in-map: map-get($in-map, $key);
15
+ @if $in-map == null {
16
+ @return null;
17
+ }
18
+ }
19
+ @return $in-map;
20
+ }
21
+
22
+ @include b(button) {
23
+ display: inline-flex;
24
+ align-items: center;
25
+ gap: 6px;
26
+ line-height: 1;
27
+ white-space: nowrap;
28
+ cursor: pointer;
29
+ background: $--button-default-background-color;
30
+ border: $--border-base;
31
+ border-color: $--button-default-border-color;
32
+ color: $--button-default-font-color;
33
+ -webkit-appearance: none;
34
+ text-align: center;
35
+ box-sizing: border-box;
36
+ outline: none;
37
+ margin: 0;
38
+ transition: 0.1s;
39
+ font-weight: $--button-font-weight;
40
+ @include utils-user-select(none);
41
+ & + & {
42
+ margin-left: 10px;
43
+ }
44
+
45
+ @include button-size($--button-padding-vertical, $--button-padding-horizontal, $--button-font-size, $--button-border-radius);
46
+
47
+ &.el-button--text {
48
+ text-decoration: underline;
49
+ border: transparent;
50
+ }
51
+
52
+ &:hover,
53
+ &:focus {
54
+ color: $--color-primary;
55
+ border-color: $--color-primary-light-7;
56
+ background-color: $--color-primary-light-9;
57
+ }
58
+
59
+ &:active {
60
+ color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
61
+ border-color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
62
+ outline: none;
63
+ }
64
+
65
+ &::-moz-focus-inner {
66
+ border: 0;
67
+ }
68
+
69
+ & [class*='el-icon-'] {
70
+ & + span {
71
+ margin-left: 5px;
72
+ }
73
+ }
74
+
75
+ @include when(plain) {
76
+ &:hover,
77
+ &:focus {
78
+ background: $--color-white;
79
+ border-color: $--color-primary;
80
+ color: $--color-primary;
81
+ }
82
+
83
+ &:active {
84
+ background: $--color-white;
85
+ border-color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
86
+ color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
87
+ outline: none;
88
+ }
89
+ }
90
+
91
+ @include when(active) {
92
+ color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
93
+ border-color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
94
+ }
95
+
96
+ @include when(disabled) {
97
+ &,
98
+ &:hover,
99
+ &:focus {
100
+ color: $--button-disabled-font-color;
101
+ cursor: not-allowed;
102
+ background-image: none;
103
+ background-color: $--button-disabled-background-color;
104
+ border-color: $--button-disabled-border-color;
105
+ }
106
+
107
+ &.el-button--text {
108
+ background-color: transparent;
109
+ }
110
+
111
+ &.is-plain {
112
+ &,
113
+ &:hover,
114
+ &:focus {
115
+ background-color: $--color-white;
116
+ border-color: $--button-disabled-border-color;
117
+ color: $--button-disabled-font-color;
118
+ }
119
+ }
120
+ }
121
+ @include when(loading) {
122
+ position: relative;
123
+ pointer-events: none;
124
+
125
+ &:before {
126
+ pointer-events: none;
127
+ content: '';
128
+ position: absolute;
129
+ left: -1px;
130
+ top: -1px;
131
+ right: -1px;
132
+ bottom: -1px;
133
+ border-radius: inherit;
134
+ background-color: rgba(255, 255, 255, 0.35);
135
+ }
136
+ }
137
+ @include when(round) {
138
+ border-radius: 20px;
139
+ padding: 12px 23px;
140
+ }
141
+ @include when(circle) {
142
+ border-radius: 50%;
143
+ padding: $--button-padding-vertical;
144
+ }
145
+
146
+ // Her düğme tipi ve durumu için özel renk değerlerin tanımı
147
+ $button-variant-values: (
148
+ 'primary': (
149
+ 'hover': 500,
150
+ 'default': 700,
151
+ 'active': 600 // 'disabled' tanımlanmadı, mixin'in varsayılanı kullanılacak,,,
152
+ ),
153
+ 'secondary': (
154
+ // 'secondary' için özel değerler tanımlanmamış, tüm durumlar için mixin'in varsayılanları kullanılacak
155
+ ),
156
+ // Diğer düğme tipleri için de benzer şekilde...
157
+ );
158
+
159
+ // Her düğme tipi için mixin'i çağırın
160
+ @each $type in $button-types {
161
+ // Her bir durum için varsayılan değerleri ayarlayın
162
+ $default: map-get-deep($button-variant-values, $type, 'default') or 500;
163
+ $hover: map-get-deep($button-variant-values, $type, 'hover') or 400;
164
+ $active: map-get-deep($button-variant-values, $type, 'active') or 600;
165
+ $disabled: map-get-deep($button-variant-values, $type, 'disabled') or 200;
166
+
167
+ @include m(#{$type}) {
168
+ @include button-variant($type, $default, $hover, $active, $disabled);
169
+ }
170
+
171
+ @include m(text) {
172
+ &.#{$type} {
173
+ @include button-plain($type, $default, $hover, $active, $disabled);
174
+ }
175
+ }
176
+ }
177
+
178
+ @include m(small) {
179
+ @include button-size(
180
+ $--button-small-padding-vertical,
181
+ $--button-small-padding-horizontal,
182
+ $--button-small-font-size,
183
+ $--button-small-border-radius
184
+ );
185
+ @include when(circle) {
186
+ padding: $--button-small-padding-vertical;
187
+ }
188
+ }
189
+ @include m(mini) {
190
+ @include button-size($--button-mini-padding-vertical, $--button-mini-padding-horizontal, $--button-mini-font-size, $--button-mini-border-radius);
191
+ @include when(circle) {
192
+ padding: $--button-mini-padding-vertical;
193
+ }
194
+ }
195
+ }
196
+
197
+ @include b(button-group) {
198
+ @include utils-clearfix;
199
+ display: inline-block;
200
+ vertical-align: middle;
201
+
202
+ & > .el-button {
203
+ float: left;
204
+ position: relative;
205
+ & + .el-button {
206
+ margin-left: 0;
207
+ }
208
+ &.is-disabled {
209
+ z-index: 1;
210
+ }
211
+ &:first-child {
212
+ border-top-right-radius: 0;
213
+ border-bottom-right-radius: 0;
214
+ }
215
+ &:last-child {
216
+ border-top-left-radius: 0;
217
+ border-bottom-left-radius: 0;
218
+ }
219
+ &:first-child:last-child {
220
+ border-top-right-radius: $--button-border-radius;
221
+ border-bottom-right-radius: $--button-border-radius;
222
+ border-top-left-radius: $--button-border-radius;
223
+ border-bottom-left-radius: $--button-border-radius;
224
+
225
+ &.is-round {
226
+ border-radius: 20px;
227
+ }
228
+
229
+ &.is-circle {
230
+ border-radius: 50%;
231
+ }
232
+ }
233
+ &:not(:first-child):not(:last-child) {
234
+ border-radius: 0;
235
+ }
236
+ &:not(:last-child) {
237
+ margin-right: -1px;
238
+ }
239
+
240
+ &:not(.is-disabled) {
241
+ &:hover,
242
+ &:focus,
243
+ &:active {
244
+ z-index: 1;
245
+ }
246
+ }
247
+
248
+ @include when(active) {
249
+ z-index: 1;
250
+ }
251
+ }
252
+
253
+ & > .el-dropdown {
254
+ & > .el-button {
255
+ border-top-left-radius: 0;
256
+ border-bottom-left-radius: 0;
257
+ border-left-color: rgba($--color-white, 0.5);
258
+ }
259
+ }
260
+
261
+ @each $type in (primary, success, warning, danger, info) {
262
+ .el-button--#{$type} {
263
+ &:first-child {
264
+ border-right-color: rgba($--color-white, 0.5);
265
+ }
266
+ &:last-child {
267
+ border-left-color: rgba($--color-white, 0.5);
268
+ }
269
+ &:not(:first-child):not(:last-child) {
270
+ border-left-color: rgba($--color-white, 0.5);
271
+ border-right-color: rgba($--color-white, 0.5);
272
+ }
273
+ }
274
+ }
275
+ }