_addons.scss
1 month ago
_badges.scss
1 month ago
_button.scss
1 month ago
_checkbox.scss
1 month ago
_color_palette.scss
1 month ago
_data_table_ui.scss
1 month ago
_faqs.scss
1 month ago
_fly_icons.scss
1 month ago
_form.scss
1 month ago
_global.scss
1 month ago
_gradient_color_picker.scss
1 month ago
_input.scss
1 month ago
_list_links.scss
1 month ago
_loading.scss
1 month ago
_modal.scss
1 month ago
_notice.scss
1 month ago
_radio.scss
1 month ago
_range.scss
1 month ago
_repeatable.scss
1 month ago
_select.scss
1 month ago
_textarea.scss
1 month ago
_toggle.scss
1 month ago
_wp.scss
1 month ago
_addons.scss
215 lines
| 1 | @use 'sass:color'; |
| 2 | @use "../utilities/variables"; |
| 3 | |
| 4 | @mixin wppd-addons { |
| 5 | .wppd-addons-wrap { |
| 6 | .wppd-heading-2 { |
| 7 | margin-bottom: 30px; |
| 8 | font-weight: 600; |
| 9 | } |
| 10 | |
| 11 | + hr { |
| 12 | margin: 30px 0 !important; |
| 13 | } |
| 14 | |
| 15 | .wppd-addons-grid { |
| 16 | display: grid; |
| 17 | //grid-template-columns: repeat(auto-fill, 300px); |
| 18 | grid-template-columns: repeat(auto-fit, minmax(250px, 0.5fr)); |
| 19 | gap: 20px; |
| 20 | } |
| 21 | |
| 22 | // Tiny Addon |
| 23 | .wppd-tiny-addon-wrap { |
| 24 | display: flex; |
| 25 | gap: 5px; |
| 26 | flex-direction: row; |
| 27 | align-items: center; |
| 28 | justify-content: space-between; |
| 29 | border: 1px solid variables.$border_color; |
| 30 | border-radius: 10px; |
| 31 | corner-shape: squircle; |
| 32 | overflow: hidden; |
| 33 | padding: 5px; |
| 34 | |
| 35 | &.wppd-addon-inactive { |
| 36 | .wppd-image-wrap { |
| 37 | img, svg { |
| 38 | opacity: 0.5; |
| 39 | filter: grayscale(80%); |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | &:hover, &:focus-within { |
| 45 | border-color: color.scale(variables.$border_color, $lightness: -10%); |
| 46 | |
| 47 | .wppd-action-link { |
| 48 | border-color: variables.$gray_light_two; |
| 49 | } |
| 50 | |
| 51 | .wppd-image-wrap { |
| 52 | background-image: linear-gradient(to right top, #ffffff, #fcfcfd, #f8f8fa, #f4f5f8, #eff2f6, #eff2f6, #eff2f6, #eff2f6, #f4f5f8, #f8f8fa, #fcfcfd, #ffffff); |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | .wppd-image-wrap { |
| 57 | background-color: variables.$background_side; |
| 58 | background-image: linear-gradient(to right top, #ffffff, #fdfdfe, #fcfcfd, #fafafc, #f8f9fb, #f8f9fb, #f8f9fb, #f8f9fb, #fafafc, #fcfcfd, #fdfdfe, #ffffff); |
| 59 | padding: 5px; |
| 60 | display: flex; |
| 61 | align-items: center; |
| 62 | justify-content: center; |
| 63 | position: relative; |
| 64 | border-radius: 5px; |
| 65 | corner-shape: squircle; |
| 66 | overflow: hidden; |
| 67 | flex-shrink: 0; |
| 68 | } |
| 69 | |
| 70 | .wppd-title-image { |
| 71 | display: flex; |
| 72 | flex-direction: row; |
| 73 | gap: 5px; |
| 74 | align-items: center; |
| 75 | min-width: 0; |
| 76 | |
| 77 | .wppd-title { |
| 78 | display: inline-block; |
| 79 | text-overflow: ellipsis; |
| 80 | overflow: hidden; |
| 81 | white-space: nowrap; |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | .wppd-action-link { |
| 86 | border-color: transparent; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | // Addon |
| 91 | .wppd-addon-wrap { |
| 92 | display: flex; |
| 93 | flex-direction: column; |
| 94 | justify-content: space-between; |
| 95 | border: 1px solid variables.$border_color; |
| 96 | border-radius: 10px; |
| 97 | corner-shape: squircle; |
| 98 | overflow: hidden; |
| 99 | // max-width: 600px; |
| 100 | |
| 101 | &.wppd-addon-inactive { |
| 102 | .wppd-image-wrap { |
| 103 | img, svg { |
| 104 | opacity: 0.5; |
| 105 | filter: grayscale(80%); |
| 106 | } |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | &:hover, &:focus-within { |
| 111 | .wppd-image-wrap { |
| 112 | background-image: linear-gradient(to right top, #ffffff, #fcfcfd, #f8f8fa, #f4f5f8, #eff2f6, #eff2f6, #eff2f6, #eff2f6, #f4f5f8, #f8f8fa, #fcfcfd, #ffffff); |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | .wppd-image-wrap { |
| 117 | background-color: variables.$background_side; |
| 118 | background-image: linear-gradient(to right top, #ffffff, #fdfdfe, #fcfcfd, #fafafc, #f8f9fb, #f8f9fb, #f8f9fb, #f8f9fb, #fafafc, #fcfcfd, #fdfdfe, #ffffff); |
| 119 | height: 100px; |
| 120 | display: flex; |
| 121 | align-items: center; |
| 122 | justify-content: center; |
| 123 | position: relative; |
| 124 | |
| 125 | .wppd-tag { |
| 126 | position: absolute; |
| 127 | right: 5px; |
| 128 | top: 5px; |
| 129 | padding: 3px 5px; |
| 130 | background-color: variables.$border_color; |
| 131 | color: variables.$gray; |
| 132 | border-radius: 5px; |
| 133 | corner-shape: squircle; |
| 134 | font-size: 12px; |
| 135 | line-height: 1; |
| 136 | cursor: default; |
| 137 | } |
| 138 | |
| 139 | .wppd-image-link { |
| 140 | width: 100%; |
| 141 | height: 100%; |
| 142 | display: flex; |
| 143 | align-items: center; |
| 144 | justify-content: center; |
| 145 | } |
| 146 | |
| 147 | .wppd-image { |
| 148 | object-fit: cover; |
| 149 | width: 100%; |
| 150 | height: 100%; |
| 151 | } |
| 152 | |
| 153 | svg { |
| 154 | height: 50px; |
| 155 | width: auto; |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | .wppd-title-desc { |
| 160 | display: flex; |
| 161 | flex-direction: column; |
| 162 | gap: 10px; |
| 163 | padding: 20px 15px; |
| 164 | height: 170px; |
| 165 | |
| 166 | .wppd-title { |
| 167 | margin: 0; |
| 168 | font-weight: 600; |
| 169 | } |
| 170 | |
| 171 | .wppd-desc { |
| 172 | color: variables.$meta; |
| 173 | } |
| 174 | |
| 175 | .wppd-more-info-link { |
| 176 | display: inline-flex; |
| 177 | align-items: baseline; |
| 178 | justify-content: start; |
| 179 | margin-top: auto; |
| 180 | |
| 181 | svg { |
| 182 | stroke: variables.$primary; |
| 183 | } |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | .wppd-action-wrap { |
| 188 | align-self: flex-end; |
| 189 | width: 100%; |
| 190 | padding: 20px 15px; |
| 191 | background-color: variables.$background_side; |
| 192 | margin-top: auto; |
| 193 | |
| 194 | .wppd-field-head { |
| 195 | display: flex; |
| 196 | align-items: center; |
| 197 | flex-direction: row-reverse; |
| 198 | justify-content: space-between; |
| 199 | max-width: 100%; |
| 200 | } |
| 201 | |
| 202 | .wppd-action-link { |
| 203 | display: block; |
| 204 | text-align: center; |
| 205 | background-color: white; |
| 206 | border-radius: 10px; |
| 207 | corner-shape: squircle; |
| 208 | padding: 10px; |
| 209 | color: variables.$text; |
| 210 | } |
| 211 | } |
| 212 | } |
| 213 | } |
| 214 | } |
| 215 |