2019-02-12 23:18:39 +00:00
|
|
|
/**
|
|
|
|
* marketplace-suggestions.scss
|
|
|
|
* Styling for in-product marketplace suggestions.
|
|
|
|
*/
|
|
|
|
|
2019-02-15 00:30:53 +00:00
|
|
|
@import "mixins";
|
|
|
|
@import "variables";
|
|
|
|
|
2019-02-19 02:09:11 +00:00
|
|
|
$suggestions-pale-gray: #ddd;
|
2019-02-27 21:14:00 +00:00
|
|
|
$suggestions-metabox-pale-gray: #eee;
|
|
|
|
|
2019-02-19 02:09:11 +00:00
|
|
|
$suggestions-copy-text: #444;
|
|
|
|
|
2019-02-18 02:55:26 +00:00
|
|
|
a.suggestion-dismiss {
|
|
|
|
border: none;
|
|
|
|
box-shadow: none;
|
2019-02-19 02:09:11 +00:00
|
|
|
color: $suggestions-pale-gray;
|
2019-02-18 02:55:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
a.suggestion-dismiss:hover {
|
|
|
|
color: #aaa;
|
|
|
|
}
|
|
|
|
|
|
|
|
a.suggestion-dismiss::before {
|
2019-02-15 00:30:53 +00:00
|
|
|
|
|
|
|
@include iconbeforedashicons( "\f335" );
|
|
|
|
|
|
|
|
font-size: 1.5em;
|
|
|
|
}
|
|
|
|
|
2019-02-27 21:58:30 +00:00
|
|
|
#woocommerce-product-data ul.wc-tabs li.marketplace-suggestions_tab {
|
2019-02-27 21:05:02 +00:00
|
|
|
|
2019-04-08 01:05:18 +00:00
|
|
|
|
|
|
|
a::before {
|
|
|
|
@include iconbeforedashicons( "\f106" );
|
2019-04-08 20:52:45 +00:00
|
|
|
|
|
|
|
@media only screen and (max-width: 900px) {
|
|
|
|
line-height: 40px;
|
|
|
|
}
|
2019-04-08 01:05:18 +00:00
|
|
|
}
|
|
|
|
|
2019-02-27 21:05:02 +00:00
|
|
|
a span {
|
2019-04-08 01:05:18 +00:00
|
|
|
margin: 0 0.618em;
|
2019-02-27 21:05:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-12 00:41:51 +00:00
|
|
|
.marketplace-suggestions-metabox-nosuggestions-placeholder {
|
|
|
|
max-width: 325px;
|
2019-04-08 20:39:22 +00:00
|
|
|
margin: 2em auto;
|
2019-03-12 00:41:51 +00:00
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
.marketplace-suggestion-placeholder-content {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h4,
|
|
|
|
a,
|
|
|
|
p {
|
|
|
|
margin: auto;
|
|
|
|
text-align: center;
|
|
|
|
display: block;
|
|
|
|
margin-top: 0.75em;
|
|
|
|
line-height: 1.75;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-19 03:31:14 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion {
|
|
|
|
text-align: left;
|
2019-02-19 00:44:35 +00:00
|
|
|
|
2019-02-19 03:31:14 +00:00
|
|
|
.marketplace-suggestion-container {
|
2019-02-19 01:56:34 +00:00
|
|
|
align-items: flex-start;
|
2019-02-19 00:44:35 +00:00
|
|
|
display: flex;
|
2019-02-19 01:56:34 +00:00
|
|
|
flex-direction: column;
|
2019-02-19 00:44:35 +00:00
|
|
|
|
2019-02-19 22:46:06 +00:00
|
|
|
// Allows us to position the dismiss x button
|
|
|
|
// relative to container on mobile.
|
2019-02-19 03:31:14 +00:00
|
|
|
position: relative;
|
|
|
|
|
2019-02-19 22:46:06 +00:00
|
|
|
img.marketplace-suggestion-icon {
|
|
|
|
height: 40px;
|
2019-02-26 22:40:24 +00:00
|
|
|
margin: 0;
|
2019-02-19 22:46:06 +00:00
|
|
|
margin-right: 1.5em;
|
|
|
|
flex: 0 0 40px;
|
|
|
|
}
|
|
|
|
|
2019-02-19 03:31:14 +00:00
|
|
|
.marketplace-suggestion-container-content {
|
2019-02-19 22:46:06 +00:00
|
|
|
flex: 1 1 60%;
|
2019-02-19 00:44:35 +00:00
|
|
|
|
2019-02-19 01:56:34 +00:00
|
|
|
h4 {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2019-02-19 00:44:35 +00:00
|
|
|
p {
|
2019-02-19 01:56:34 +00:00
|
|
|
margin: 0;
|
2019-02-27 21:52:16 +00:00
|
|
|
margin-top: 4px;
|
2019-02-19 02:09:11 +00:00
|
|
|
color: $suggestions-copy-text;
|
2019-02-19 00:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-19 03:31:14 +00:00
|
|
|
.marketplace-suggestion-container-cta {
|
2019-02-19 00:44:35 +00:00
|
|
|
flex: 1 1 30%;
|
2019-02-26 22:40:24 +00:00
|
|
|
min-width: 160px;
|
2019-02-19 00:44:35 +00:00
|
|
|
text-align: right;
|
2019-02-19 03:31:14 +00:00
|
|
|
|
|
|
|
.suggestion-dismiss {
|
|
|
|
text-decoration: none;
|
|
|
|
position: absolute;
|
|
|
|
top: 1em;
|
|
|
|
right: 1em;
|
|
|
|
}
|
2019-02-19 00:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
2019-02-19 01:56:34 +00:00
|
|
|
|
|
|
|
@media screen and (min-width: 600px) {
|
|
|
|
|
2019-02-19 03:31:14 +00:00
|
|
|
.marketplace-suggestion-container {
|
2019-02-19 01:56:34 +00:00
|
|
|
align-items: center;
|
|
|
|
flex-direction: row;
|
2019-02-19 03:31:14 +00:00
|
|
|
|
2019-02-19 22:46:06 +00:00
|
|
|
img.marketplace-suggestion-icon {
|
|
|
|
// display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-header"],
|
2019-02-24 21:24:38 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-footer"],
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-header"],
|
2019-02-26 21:56:13 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-footer"],
|
2019-02-22 07:55:03 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-header"],
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-footer"] {
|
2019-02-19 22:46:06 +00:00
|
|
|
|
|
|
|
.marketplace-suggestion-container {
|
|
|
|
|
|
|
|
.marketplace-suggestion-container-content {
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
font-size: 1.1em;
|
|
|
|
margin: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-01 20:29:21 +00:00
|
|
|
// Additional breathing space margin under empty-state footer.
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-footer"],
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-footer"] {
|
|
|
|
|
|
|
|
margin-bottom: 6em;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-02-19 22:46:06 +00:00
|
|
|
// Optimise footer suggestion layout for left-aligned CTA link button only.
|
2019-02-24 21:24:38 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-footer"],
|
2019-02-26 21:56:13 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-footer"],
|
2019-02-22 07:55:03 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-footer"] {
|
2019-02-19 22:46:06 +00:00
|
|
|
|
|
|
|
.marketplace-suggestion-container {
|
|
|
|
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
|
|
|
|
.marketplace-suggestion-container-cta {
|
|
|
|
|
|
|
|
text-align: left;
|
2019-02-19 03:31:14 +00:00
|
|
|
}
|
2019-04-07 22:00:25 +00:00
|
|
|
|
|
|
|
.marketplace-suggestion-container-content.has-manage-link {
|
|
|
|
text-align: right;
|
|
|
|
}
|
2019-02-19 03:31:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-26 22:40:24 +00:00
|
|
|
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-header"],
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-footer"],
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-body"] {
|
|
|
|
|
|
|
|
.marketplace-suggestion-container {
|
|
|
|
padding: 1em 1.5em;
|
|
|
|
|
|
|
|
.marketplace-suggestion-container-content {
|
|
|
|
|
|
|
|
p {
|
|
|
|
padding: 0;
|
2019-02-27 22:08:25 +00:00
|
|
|
line-height: 1.5;
|
2019-02-26 22:40:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-24 22:12:05 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-header"],
|
2019-02-18 23:22:06 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-footer"],
|
2019-02-22 07:55:03 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-header"],
|
2019-02-26 21:56:13 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-footer"] {
|
2019-02-24 22:12:05 +00:00
|
|
|
|
|
|
|
.marketplace-suggestion-container {
|
|
|
|
padding: 1.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-26 21:56:13 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-body"],
|
2019-02-22 07:55:03 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-body"] {
|
2019-02-24 22:49:08 +00:00
|
|
|
|
|
|
|
.marketplace-suggestion-container {
|
|
|
|
padding: 0.75em 1.5em;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
padding-top: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
padding-bottom: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.marketplace-suggestion-container-content {
|
|
|
|
|
|
|
|
p:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-02-24 22:12:05 +00:00
|
|
|
|
2019-02-18 22:54:58 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-header"],
|
2019-02-18 23:22:06 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-footer"],
|
2019-02-24 21:24:38 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-body"],
|
2019-02-26 22:40:24 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-header"],
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-footer"],
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-body"],
|
2019-02-24 21:24:38 +00:00
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-header"],
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-footer"],
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-body"] {
|
2019-02-19 00:44:35 +00:00
|
|
|
|
2019-02-21 22:57:19 +00:00
|
|
|
// hide by default (mobile first)
|
|
|
|
display: none;
|
|
|
|
|
2019-02-24 22:49:08 +00:00
|
|
|
.marketplace-suggestion-container .marketplace-suggestion-container-cta {
|
2019-02-19 01:56:34 +00:00
|
|
|
|
2019-02-24 22:49:08 +00:00
|
|
|
a.button {
|
|
|
|
display: inline-block;
|
|
|
|
min-width: 120px;
|
|
|
|
text-align: center;
|
|
|
|
margin: 0;
|
2019-02-19 01:56:34 +00:00
|
|
|
}
|
2019-02-13 01:32:36 +00:00
|
|
|
|
2019-02-24 22:49:08 +00:00
|
|
|
a.linkout {
|
|
|
|
font-size: 1.1em;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2019-02-19 00:44:35 +00:00
|
|
|
|
2019-02-24 22:49:08 +00:00
|
|
|
a.linkout .dashicons {
|
|
|
|
margin-left: 4px;
|
|
|
|
bottom: 2px;
|
|
|
|
position: relative;
|
|
|
|
}
|
2019-02-19 00:44:35 +00:00
|
|
|
|
2019-02-24 22:49:08 +00:00
|
|
|
.suggestion-dismiss {
|
|
|
|
position: relative;
|
|
|
|
top: 5px;
|
|
|
|
right: auto;
|
|
|
|
margin-left: 1em;
|
2019-02-13 23:16:59 +00:00
|
|
|
}
|
2019-02-19 01:56:34 +00:00
|
|
|
}
|
2019-02-13 23:16:59 +00:00
|
|
|
|
2019-02-19 01:56:34 +00:00
|
|
|
@media screen and (min-width: 600px) {
|
2019-02-18 02:55:26 +00:00
|
|
|
|
2019-02-21 22:57:19 +00:00
|
|
|
// Display onboarding table suggestion on desktop only. (for now)
|
|
|
|
// There's limited room on mobile, and there are edge-case
|
|
|
|
// styling issues in some browsers.
|
|
|
|
display: block;
|
2019-02-13 00:54:05 +00:00
|
|
|
}
|
|
|
|
}
|
2019-02-27 21:14:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-header"],
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-footer"] {
|
|
|
|
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="product-edit-meta-tab-body"] {
|
|
|
|
|
|
|
|
border: none;
|
|
|
|
border-top: 1px solid $suggestions-metabox-pale-gray;
|
|
|
|
border-bottom: 1px solid $suggestions-metabox-pale-gray;
|
|
|
|
}
|
|
|
|
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-header"],
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-footer"],
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-body"],
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-header"],
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-footer"],
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="orders-list-empty-body"] {
|
|
|
|
|
|
|
|
border: 1px solid $suggestions-pale-gray;
|
|
|
|
border-bottom: none;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-bottom: 1px solid $suggestions-pale-gray;
|
|
|
|
}
|
|
|
|
}
|