_addons.scss
2 days ago
_badges.scss
2 days ago
_button.scss
2 days ago
_checkbox.scss
2 days ago
_color_palette.scss
2 days ago
_data_table_ui.scss
2 days ago
_faqs.scss
2 days ago
_fly_icons.scss
2 days ago
_form.scss
2 days ago
_global.scss
2 days ago
_gradient_color_picker.scss
2 days ago
_input.scss
2 days ago
_list_links.scss
2 days ago
_loading.scss
2 days ago
_modal.scss
2 days ago
_notice.scss
2 days ago
_radio.scss
2 days ago
_range.scss
2 days ago
_repeatable.scss
2 days ago
_select.scss
2 days ago
_textarea.scss
2 days ago
_toggle.scss
2 days ago
_wp.scss
2 days ago
_repeatable.scss
130 lines
| 1 | @use "../utilities/variables"; |
| 2 | |
| 3 | @mixin wppd-repeatable { |
| 4 | .wppd-repeatable { |
| 5 | display: flex; |
| 6 | flex-direction: column; |
| 7 | gap: 15px; |
| 8 | background-color: variables.$background_side; |
| 9 | //border-left: 2px solid variables.$border_color; |
| 10 | max-width: 500px; |
| 11 | padding: 15px; |
| 12 | border-radius: 10px; corner-shape: squircle; |
| 13 | counter-reset: repeatable; |
| 14 | |
| 15 | > .wppd-title { |
| 16 | margin-bottom: 15px; |
| 17 | display: flex; |
| 18 | align-items: center; |
| 19 | justify-content: space-between; |
| 20 | |
| 21 | .wppd-add-repeatable { |
| 22 | i { |
| 23 | font-size: 1.5em; |
| 24 | } |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | > .wppd-add-repeatable { |
| 29 | align-self: end; |
| 30 | |
| 31 | svg { |
| 32 | height: 16px; |
| 33 | width: 16px; |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | .wppd-repeatable-wrap { |
| 38 | display: flex; |
| 39 | flex-direction: column; |
| 40 | gap: 15px; |
| 41 | } |
| 42 | |
| 43 | .wppd-repeatable-fields-wrap { |
| 44 | display: flex; |
| 45 | flex-direction: column; |
| 46 | gap: 15px; |
| 47 | background-color: white; |
| 48 | padding: 10px; |
| 49 | border-radius: 10px; corner-shape: squircle; |
| 50 | position: relative; |
| 51 | |
| 52 | .wppd-repeatable-actions { |
| 53 | position: absolute; |
| 54 | right: 10px; |
| 55 | top: 10px; |
| 56 | display: flex; |
| 57 | gap: 10px; |
| 58 | } |
| 59 | |
| 60 | .wppd-remove-repeatable { |
| 61 | display: none; |
| 62 | |
| 63 | svg { |
| 64 | fill: variables.$red; |
| 65 | height: 20px; |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | :is(.wppd-move-up-repeatable,.wppd-move-down-repeatable) { |
| 70 | display: none; |
| 71 | |
| 72 | svg { |
| 73 | stroke: variables.$gray; |
| 74 | height: 20px; |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | &:first-child { |
| 79 | .wppd-move-up-repeatable { |
| 80 | display: none !important; |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | &:last-child { |
| 85 | .wppd-move-down-repeatable { |
| 86 | display: none !important; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | &:before { |
| 91 | display: block; |
| 92 | counter-increment: repeatable; |
| 93 | content: attr(data-repeat-title) " " counter(repeatable) ": "; |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | .wppd-add-repeatable { |
| 98 | display: flex; |
| 99 | align-items: center; |
| 100 | gap: 5px; |
| 101 | text-decoration: none; |
| 102 | line-height: 1; |
| 103 | |
| 104 | &:hover, &:focus { |
| 105 | text-decoration: none !important; |
| 106 | } |
| 107 | |
| 108 | &[disable="true"]="true""] { |
| 109 | cursor: default; |
| 110 | opacity: .6; |
| 111 | } |
| 112 | |
| 113 | i { |
| 114 | font-size: 1.1em; |
| 115 | } |
| 116 | |
| 117 | svg { |
| 118 | fill: variables.$primary; |
| 119 | border-radius: 50%; |
| 120 | } |
| 121 | |
| 122 | &:hover, &:focus { |
| 123 | svg { |
| 124 | outline: 1px solid variables.$woo_purple_10; |
| 125 | } |
| 126 | } |
| 127 | } |
| 128 | } |
| 129 | } |
| 130 |