jquery-ui
5 years ago
photoswipe
5 years ago
_animation.scss
8 years ago
_fonts.scss
8 years ago
_mixins.scss
5 years ago
_variables.scss
6 years ago
activation-rtl.css
6 years ago
activation.css
6 years ago
activation.scss
6 years ago
admin-rtl.css
5 years ago
admin.css
5 years ago
admin.scss
5 years ago
auth-rtl.css
7 years ago
auth.css
7 years ago
auth.scss
8 years ago
dashboard-rtl.css
5 years ago
dashboard.css
5 years ago
dashboard.scss
5 years ago
helper-rtl.css
6 years ago
helper.css
6 years ago
helper.scss
7 years ago
marketplace-suggestions-rtl.css
6 years ago
marketplace-suggestions.css
6 years ago
marketplace-suggestions.scss
6 years ago
menu-rtl.css
7 years ago
menu.css
7 years ago
menu.scss
8 years ago
network-order-widget-rtl.css
6 years ago
network-order-widget.css
6 years ago
network-order-widget.scss
8 years ago
prettyPhoto-rtl.css
7 years ago
prettyPhoto.css
7 years ago
prettyPhoto.scss
8 years ago
privacy-rtl.css
6 years ago
privacy.css
6 years ago
privacy.scss
6 years ago
reports-print-rtl.css
7 years ago
reports-print.css
7 years ago
reports-print.scss
8 years ago
select2.css
5 years ago
select2.scss
8 years ago
twenty-nineteen-rtl.css
6 years ago
twenty-nineteen.css
6 years ago
twenty-nineteen.scss
6 years ago
twenty-seventeen-rtl.css
7 years ago
twenty-seventeen.css
7 years ago
twenty-seventeen.scss
7 years ago
twenty-twenty-one-admin-rtl.css
5 years ago
twenty-twenty-one-admin.css
5 years ago
twenty-twenty-one-admin.scss
5 years ago
twenty-twenty-one-rtl.css
5 years ago
twenty-twenty-one.css
5 years ago
twenty-twenty-one.scss
5 years ago
twenty-twenty-rtl.css
5 years ago
twenty-twenty.css
5 years ago
twenty-twenty.scss
5 years ago
wc-setup-rtl.css
5 years ago
wc-setup.css
5 years ago
wc-setup.scss
5 years ago
woocommerce-layout-rtl.css
6 years ago
woocommerce-layout.css
6 years ago
woocommerce-layout.scss
6 years ago
woocommerce-rtl.css
6 years ago
woocommerce-smallscreen-rtl.css
7 years ago
woocommerce-smallscreen.css
7 years ago
woocommerce-smallscreen.scss
8 years ago
woocommerce.css
6 years ago
woocommerce.scss
6 years ago
marketplace-suggestions.scss
305 lines
| 1 | /** |
| 2 | * marketplace-suggestions.scss |
| 3 | * Styling for in-product marketplace suggestions. |
| 4 | */ |
| 5 | |
| 6 | @import "mixins"; |
| 7 | @import "variables"; |
| 8 | |
| 9 | $suggestions-pale-gray: #ddd; |
| 10 | $suggestions-metabox-pale-gray: #eee; |
| 11 | |
| 12 | $suggestions-copy-text: #444; |
| 13 | |
| 14 | a.suggestion-dismiss { |
| 15 | border: none; |
| 16 | box-shadow: none; |
| 17 | color: $suggestions-pale-gray; |
| 18 | } |
| 19 | |
| 20 | a.suggestion-dismiss:hover { |
| 21 | color: #aaa; |
| 22 | } |
| 23 | |
| 24 | a.suggestion-dismiss::before { |
| 25 | |
| 26 | @include iconbeforedashicons( "\f335" ); |
| 27 | |
| 28 | font-size: 1.5em; |
| 29 | } |
| 30 | |
| 31 | #woocommerce-product-data ul.wc-tabs li.marketplace-suggestions_tab { |
| 32 | |
| 33 | |
| 34 | a::before { |
| 35 | |
| 36 | @include iconbeforedashicons( "\f106" ); |
| 37 | |
| 38 | @media only screen and (max-width: 900px) { |
| 39 | line-height: 40px; |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | a span { |
| 44 | margin: 0 0.618em; |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | .marketplace-suggestions-metabox-nosuggestions-placeholder { |
| 49 | max-width: 325px; |
| 50 | margin: 2em auto; |
| 51 | text-align: center; |
| 52 | |
| 53 | .marketplace-suggestion-placeholder-content { |
| 54 | margin-bottom: 1em; |
| 55 | } |
| 56 | |
| 57 | h4, |
| 58 | a, |
| 59 | p { |
| 60 | margin: auto; |
| 61 | text-align: center; |
| 62 | display: block; |
| 63 | margin-top: 0.75em; |
| 64 | line-height: 1.75; |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | .marketplace-suggestions-container.showing-suggestion { |
| 69 | text-align: left; |
| 70 | |
| 71 | .marketplace-suggestion-container { |
| 72 | align-items: flex-start; |
| 73 | display: flex; |
| 74 | flex-direction: column; |
| 75 | |
| 76 | // Allows us to position the dismiss x button |
| 77 | // relative to container on mobile. |
| 78 | position: relative; |
| 79 | |
| 80 | img.marketplace-suggestion-icon { |
| 81 | height: 40px; |
| 82 | margin: 0; |
| 83 | margin-right: 1.5em; |
| 84 | flex: 0 0 40px; |
| 85 | } |
| 86 | |
| 87 | .marketplace-suggestion-container-content { |
| 88 | flex: 1 1 60%; |
| 89 | |
| 90 | h4 { |
| 91 | margin: 0; |
| 92 | } |
| 93 | |
| 94 | p { |
| 95 | margin: 0; |
| 96 | margin-top: 4px; |
| 97 | color: $suggestions-copy-text; |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | .marketplace-suggestion-container-cta { |
| 102 | flex: 1 1 30%; |
| 103 | min-width: 160px; |
| 104 | text-align: right; |
| 105 | |
| 106 | .suggestion-dismiss { |
| 107 | text-decoration: none; |
| 108 | position: absolute; |
| 109 | top: 1em; |
| 110 | right: 1em; |
| 111 | } |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | @media screen and (min-width: 600px) { |
| 116 | |
| 117 | .marketplace-suggestion-container { |
| 118 | align-items: center; |
| 119 | flex-direction: row; |
| 120 | |
| 121 | img.marketplace-suggestion-icon { |
| 122 | // display: inline-block; |
| 123 | } |
| 124 | } |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-header"]="products-list-empty-header""], |
| 129 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-footer"]="products-list-empty-footer""], |
| 130 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-header"]="product-edit-meta-tab-header""], |
| 131 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-footer"]="product-edit-meta-tab-footer""], |
| 132 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-header"]="orders-list-empty-header""], |
| 133 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-footer"]="orders-list-empty-footer""] { |
| 134 | |
| 135 | .marketplace-suggestion-container { |
| 136 | |
| 137 | .marketplace-suggestion-container-content { |
| 138 | |
| 139 | h4 { |
| 140 | font-size: 1.1em; |
| 141 | margin: 0; |
| 142 | margin-bottom: 0; |
| 143 | } |
| 144 | } |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | // Additional breathing space margin under empty-state footer. |
| 149 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-footer"]="products-list-empty-footer""], |
| 150 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-footer"]="orders-list-empty-footer""] { |
| 151 | |
| 152 | margin-bottom: 6em; |
| 153 | } |
| 154 | |
| 155 | |
| 156 | // Optimise footer suggestion layout for left-aligned CTA link button only. |
| 157 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-footer"]="products-list-empty-footer""], |
| 158 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-footer"]="product-edit-meta-tab-footer""], |
| 159 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-footer"]="orders-list-empty-footer""] { |
| 160 | |
| 161 | .marketplace-suggestion-container { |
| 162 | |
| 163 | flex-direction: row-reverse; |
| 164 | |
| 165 | .marketplace-suggestion-container-cta { |
| 166 | |
| 167 | text-align: left; |
| 168 | } |
| 169 | |
| 170 | .marketplace-suggestion-container-content.has-manage-link { |
| 171 | text-align: right; |
| 172 | } |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | |
| 177 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-header"]="product-edit-meta-tab-header""], |
| 178 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-footer"]="product-edit-meta-tab-footer""], |
| 179 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-body"]="product-edit-meta-tab-body""] { |
| 180 | |
| 181 | .marketplace-suggestion-container { |
| 182 | padding: 1em 1.5em; |
| 183 | |
| 184 | .marketplace-suggestion-container-content { |
| 185 | |
| 186 | p { |
| 187 | padding: 0; |
| 188 | line-height: 1.5; |
| 189 | } |
| 190 | } |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-header"]="products-list-empty-header""], |
| 195 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-footer"]="products-list-empty-footer""], |
| 196 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-header"]="orders-list-empty-header""], |
| 197 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-footer"]="orders-list-empty-footer""] { |
| 198 | |
| 199 | .marketplace-suggestion-container { |
| 200 | padding: 1.5em; |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-body"]="products-list-empty-body""], |
| 205 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-body"]="orders-list-empty-body""] { |
| 206 | |
| 207 | .marketplace-suggestion-container { |
| 208 | padding: 0.75em 1.5em; |
| 209 | |
| 210 | &:first-child { |
| 211 | padding-top: 1.5em; |
| 212 | } |
| 213 | |
| 214 | &:last-child { |
| 215 | padding-bottom: 1.5em; |
| 216 | } |
| 217 | |
| 218 | .marketplace-suggestion-container-content { |
| 219 | |
| 220 | p:last-child { |
| 221 | margin-bottom: 0; |
| 222 | } |
| 223 | } |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-header"]="products-list-empty-header""], |
| 228 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-footer"]="products-list-empty-footer""], |
| 229 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-body"]="products-list-empty-body""], |
| 230 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-header"]="orders-list-empty-header""], |
| 231 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-footer"]="orders-list-empty-footer""], |
| 232 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-body"]="orders-list-empty-body""], |
| 233 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-header"]="product-edit-meta-tab-header""], |
| 234 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-footer"]="product-edit-meta-tab-footer""], |
| 235 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-body"]="product-edit-meta-tab-body""] { |
| 236 | |
| 237 | // hide by default (mobile first) |
| 238 | display: none; |
| 239 | |
| 240 | .marketplace-suggestion-container .marketplace-suggestion-container-cta { |
| 241 | |
| 242 | a.button { |
| 243 | display: inline-block; |
| 244 | min-width: 120px; |
| 245 | text-align: center; |
| 246 | margin: 0; |
| 247 | } |
| 248 | |
| 249 | a.linkout { |
| 250 | font-size: 1.1em; |
| 251 | text-decoration: none; |
| 252 | } |
| 253 | |
| 254 | a.linkout .dashicons { |
| 255 | margin-left: 4px; |
| 256 | bottom: 2px; |
| 257 | position: relative; |
| 258 | } |
| 259 | |
| 260 | .suggestion-dismiss { |
| 261 | position: relative; |
| 262 | top: 5px; |
| 263 | right: auto; |
| 264 | margin-left: 1em; |
| 265 | } |
| 266 | } |
| 267 | |
| 268 | @media screen and (min-width: 600px) { |
| 269 | |
| 270 | // Display onboarding table suggestion on desktop only. (for now) |
| 271 | // There's limited room on mobile, and there are edge-case |
| 272 | // styling issues in some browsers. |
| 273 | display: block; |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | |
| 278 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-header"]="product-edit-meta-tab-header""], |
| 279 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-footer"]="product-edit-meta-tab-footer""] { |
| 280 | |
| 281 | border: none; |
| 282 | } |
| 283 | |
| 284 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-body"]="product-edit-meta-tab-body""] { |
| 285 | |
| 286 | border: none; |
| 287 | border-top: 1px solid $suggestions-metabox-pale-gray; |
| 288 | border-bottom: 1px solid $suggestions-metabox-pale-gray; |
| 289 | } |
| 290 | |
| 291 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-header"]="products-list-empty-header""], |
| 292 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-footer"]="products-list-empty-footer""], |
| 293 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-body"]="products-list-empty-body""], |
| 294 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-header"]="orders-list-empty-header""], |
| 295 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-footer"]="orders-list-empty-footer""], |
| 296 | .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-body"]="orders-list-empty-body""] { |
| 297 | |
| 298 | border: 1px solid $suggestions-pale-gray; |
| 299 | border-bottom: none; |
| 300 | |
| 301 | &:last-child { |
| 302 | border-bottom: 1px solid $suggestions-pale-gray; |
| 303 | } |
| 304 | } |
| 305 |