PluginProbe ʕ •ᴥ•ʔ
Secure Custom Fields / trunk
Secure Custom Fields vtrunk
6.9.1 6.9.0 6.8.9 6.8.7 6.8.8 6.8.6 6.8.4 6.8.5 trunk 6.4.0-beta1 6.4.0-beta2 6.4.1 6.4.1-beta3 6.4.1-beta4 6.4.1-beta5 6.4.1-beta6 6.4.1-beta7 6.4.2 6.5.0 6.5.1 6.5.2 6.5.3 6.5.4 6.5.5 6.5.6 6.5.7 6.6.0 6.7.0 6.7.1 6.8.0 6.8.1 6.8.2 6.8.3
secure-custom-fields / assets / src / sass / _btn.scss
secure-custom-fields / assets / src / sass Last commit date
pro 2 weeks ago _acf-headerbar.scss 1 year ago _acf-icon-picker.scss 1 year ago _admin-inputs.scss 1 year ago _admin-toolbar.scss 1 year ago _btn.scss 1 year ago _dark.scss 1 year ago _edit-field-group.scss 1 year ago _field-group.scss 1 year ago _field-picker.scss 1 year ago _field-type-icons.scss 1 year ago _fields.scss 1 month ago _forms.scss 11 months ago _global.scss 1 year ago _icons.scss 1 year ago _input.scss 1 year ago _list-table.scss 1 year ago _media.scss 1 year ago _mixins.scss 1 year ago _post-types-taxonomies.scss 1 year ago _postbox.scss 1 year ago _pro-upgrade.scss 1 year ago _sub-field-groups.scss 1 year ago _tools.scss 1 year ago _typography.scss 1 year ago _updates.scss 1 year ago _variables.scss 1 year ago acf-dark.scss 1 year ago acf-field-group.scss 8 months ago acf-global.scss 2 months ago acf-input.scss 1 month ago
_btn.scss
168 lines
1 /*---------------------------------------------------------------------------------------------
2 *
3 * ACF Buttons
4 *
5 *---------------------------------------------------------------------------------------------*/
6 .acf-btn {
7 display: inline-flex;
8 align-items: center;
9 box-sizing: border-box;
10 min-height: 40px;
11 padding: {
12 top: 8px;
13 right: 16px;
14 bottom: 8px;
15 left: 16px;
16 }
17 background-color: $color-primary;
18 border-radius: $radius-md;
19 border: {
20 width: 1px;
21 style: solid;
22 color: rgba($gray-900, 20%);
23 }
24 text-decoration: none;
25 color: #fff !important;
26 transition: all 0.2s ease-in-out;
27 transition-property: background, border, box-shadow;
28
29 &:hover {
30 background-color: $color-primary-hover;
31 color: #fff;
32 cursor: pointer;
33 }
34
35 &:disabled, &.disabled {
36 background-color: $gray-100;
37 border-color: $gray-200;
38 color: $gray-400 !important;
39 transition: none;
40 pointer-events: none;
41 }
42
43 &.acf-btn-sm {
44 min-height: 32px;
45 padding: {
46 top: 4px;
47 right: 12px;
48 bottom: 4px;
49 left: 12px;
50 }
51 @extend .p4;
52 }
53
54 &.acf-btn-secondary {
55 background-color: transparent;
56 color: $color-primary !important;
57 border-color: $color-primary;
58
59 &:hover {
60 background-color: lighten($blue-50, 2%);
61 }
62 }
63
64 &.acf-btn-muted {
65 background-color: $gray-500;
66 color: white;
67 height: 48px;
68 padding: 8px 28px 8px 28px !important;
69 border-radius: 6px;
70 border: 1px;
71 gap: 6px;
72
73 &:hover {
74 background-color: $gray-600 !important;
75 }
76 }
77
78 &.acf-btn-tertiary {
79 background-color: transparent;
80 color: $gray-500 !important;
81 border-color: $gray-300;
82
83 &:hover {
84 color: $gray-500 !important;
85 border-color: $gray-400;
86 }
87 }
88
89 &.acf-btn-clear {
90 background-color: transparent;
91 color: $gray-500 !important;
92 border-color: transparent;
93
94 &:hover {
95 color: $blue-500 !important;
96 }
97 }
98
99 &.acf-btn-pro {
100 background: $gradient-pro;
101 border: none;
102 }
103 }
104
105 /*---------------------------------------------------------------------------------------------
106 *
107 * Button icons
108 *
109 *---------------------------------------------------------------------------------------------*/
110 .acf-btn {
111 i.acf-icon {
112 $icon-size: 20px;
113 width: $icon-size;
114 height: $icon-size;
115 -webkit-mask-size: $icon-size;
116 mask-size: $icon-size;
117 margin: {
118 right: 6px;
119 left: -4px;
120 }
121 }
122
123 &.acf-btn-sm {
124 i.acf-icon {
125 $icon-size: 16px;
126 width: $icon-size;
127 height: $icon-size;
128 -webkit-mask-size: $icon-size;
129 mask-size: $icon-size;
130 margin: {
131 right: 6px;
132 left: -2px;
133 }
134 }
135 }
136 }
137
138 .rtl .acf-btn {
139 i.acf-icon {
140 margin: {
141 right: -4px;
142 left: 6px;
143 }
144 }
145
146 &.acf-btn-sm {
147 i.acf-icon {
148 margin: {
149 right: -4px;
150 left: 2px;
151 }
152 }
153 }
154 }
155
156 /*---------------------------------------------------------------------------------------------
157 *
158 * Delete field group button
159 *
160 *---------------------------------------------------------------------------------------------*/
161 .acf-btn.acf-delete-field-group {
162 &:hover {
163 background-color: lighten($color-danger, 44%);
164 border-color: $color-danger !important;
165 color: $color-danger !important;
166 }
167 }
168