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;
|
|
|
|
$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-18 22:54:58 +00:00
|
|
|
.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"] {
|
|
|
|
|
2019-02-19 03:31:14 +00:00
|
|
|
.marketplace-suggestion-container-content {
|
2019-02-19 01:56:34 +00:00
|
|
|
|
|
|
|
h4 {
|
|
|
|
font-size: 1.1em;
|
|
|
|
margin: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2019-02-18 22:54:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 03:31:14 +00:00
|
|
|
// Allows us to position the dismiss x button relative to container on mobile.
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.marketplace-suggestion-container-content {
|
2019-02-19 00:44:35 +00:00
|
|
|
flex: 1 0 70%;
|
|
|
|
|
2019-02-19 01:56:34 +00:00
|
|
|
h4 {
|
|
|
|
margin: 0;
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
|
2019-02-19 00:44:35 +00:00
|
|
|
p {
|
2019-02-19 01:56:34 +00:00
|
|
|
margin: 0;
|
|
|
|
margin-bottom: 0.5em;
|
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%;
|
|
|
|
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
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-inline"] {
|
|
|
|
|
2019-02-19 21:29:41 +00:00
|
|
|
// hide by default (mobile first)
|
|
|
|
display: none;
|
|
|
|
|
2019-02-19 03:31:14 +00:00
|
|
|
td:first-child {
|
|
|
|
border-left: 4px solid $woocommerce;
|
|
|
|
}
|
|
|
|
|
|
|
|
.marketplace-suggestion-container {
|
|
|
|
padding: 0.5em 0 0.5em 1em;
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
margin: 0;
|
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.marketplace-suggestion-container-cta {
|
|
|
|
|
|
|
|
.suggestion-dismiss {
|
|
|
|
position: relative;
|
|
|
|
top: 4px;
|
|
|
|
right: auto;
|
|
|
|
margin-left: 1em;
|
|
|
|
}
|
2019-02-19 01:56:34 +00:00
|
|
|
}
|
|
|
|
}
|
2019-02-19 21:29:41 +00:00
|
|
|
|
|
|
|
@media screen and (min-width: 800px) {
|
|
|
|
|
|
|
|
// Display inline table suggestion on desktop only.
|
|
|
|
// The table columns are dynamic, so there's no good way to style the row
|
|
|
|
// content correctly when columns are hidden.
|
|
|
|
display: table-row;
|
|
|
|
}
|
|
|
|
|
2019-02-19 00:44:35 +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"],
|
|
|
|
.marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context="products-list-empty-body"] {
|
2019-02-19 00:44:35 +00:00
|
|
|
|
2019-02-19 02:09:11 +00:00
|
|
|
border: 1px solid $suggestions-pale-gray;
|
2019-02-18 22:54:58 +00:00
|
|
|
border-bottom: none;
|
|
|
|
|
|
|
|
&:last-child {
|
2019-02-19 02:09:11 +00:00
|
|
|
border-bottom: 1px solid $suggestions-pale-gray;
|
2019-02-18 22:54:58 +00:00
|
|
|
}
|
2019-02-13 00:54:05 +00:00
|
|
|
|
2019-02-19 03:31:14 +00:00
|
|
|
.marketplace-suggestion-container {
|
2019-02-19 00:44:35 +00:00
|
|
|
padding: 1.5em;
|
2019-02-19 02:09:11 +00:00
|
|
|
border-bottom: 1px solid $suggestions-pale-gray;
|
2019-02-19 01:56:34 +00:00
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-bottom: none;
|
|
|
|
padding-bottom: 1.5em;
|
|
|
|
}
|
2019-02-13 01:32:36 +00:00
|
|
|
|
2019-02-19 03:31:14 +00:00
|
|
|
.marketplace-suggestion-container-cta {
|
2019-02-18 02:55:26 +00:00
|
|
|
|
|
|
|
a.button {
|
|
|
|
display: inline-block;
|
|
|
|
min-width: 120px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2019-02-19 00:44:35 +00:00
|
|
|
a.linkout {
|
|
|
|
font-size: 1.1em;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
a.linkout .dashicons {
|
|
|
|
margin-left: 4px;
|
|
|
|
bottom: 2px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2019-02-18 02:55:26 +00:00
|
|
|
.suggestion-dismiss {
|
2019-02-19 01:56:34 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 1em;
|
|
|
|
right: 1em;
|
2019-02-18 02:55:26 +00:00
|
|
|
}
|
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-19 03:31:14 +00:00
|
|
|
.marketplace-suggestion-container {
|
2019-02-19 01:56:34 +00:00
|
|
|
border-bottom: none;
|
|
|
|
padding-bottom: 0;
|
|
|
|
|
2019-02-19 03:31:14 +00:00
|
|
|
.marketplace-suggestion-container-cta {
|
2019-02-19 01:56:34 +00:00
|
|
|
|
|
|
|
.suggestion-dismiss {
|
|
|
|
position: relative;
|
|
|
|
top: 7px;
|
|
|
|
right: auto;
|
|
|
|
}
|
2019-02-19 00:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
2019-02-13 00:54:05 +00:00
|
|
|
}
|
|
|
|
}
|