pro
3 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
_mixins.scss
45 lines
| 1 | /*-------------------------------------------------------------------------------------------- |
| 2 | * |
| 3 | * Mixins |
| 4 | * |
| 5 | *--------------------------------------------------------------------------------------------*/ |
| 6 | @mixin clearfix() { |
| 7 | &:after { |
| 8 | display: block; |
| 9 | clear: both; |
| 10 | content: ""; |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | @mixin border-box() { |
| 15 | -webkit-box-sizing: border-box; |
| 16 | -moz-box-sizing: border-box; |
| 17 | box-sizing: border-box; |
| 18 | } |
| 19 | |
| 20 | @mixin centered() { |
| 21 | position: absolute; |
| 22 | top: 50%; |
| 23 | left: 50%; |
| 24 | transform: translate(-50%, -50%); |
| 25 | } |
| 26 | |
| 27 | @mixin animate( $properties: 'all' ) { |
| 28 | -webkit-transition: $properties 0.3s ease; // Safari 3.2+, Chrome |
| 29 | -moz-transition: $properties 0.3s ease; // Firefox 4-15 |
| 30 | -o-transition: $properties 0.3s ease; // Opera 10.5–12.00 |
| 31 | transition: $properties 0.3s ease; // Firefox 16+, Opera 12.50+ |
| 32 | } |
| 33 | |
| 34 | @mixin rtl() { |
| 35 | html[dir="rtl"]="rtl""] & { |
| 36 | text-align: right; |
| 37 | @content; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | @mixin wp-admin( $version: '3-8' ) { |
| 42 | .acf-admin-#{$version} & { |
| 43 | @content; |
| 44 | } |
| 45 | } |