2018-09-24 15:36:35 +00:00
|
|
|
/** @format */
|
|
|
|
|
|
|
|
.woocommerce_devdocs {
|
2018-11-02 19:20:11 +00:00
|
|
|
@include breakpoint( '>1280px' ) {
|
2018-09-24 15:36:35 +00:00
|
|
|
&.is-list {
|
|
|
|
column-gap: $gap-large;
|
|
|
|
columns: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-devdocs__card {
|
|
|
|
break-inside: avoid;
|
|
|
|
margin-bottom: $gap-larger;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-devdocs__card {
|
|
|
|
background-color: transparent;
|
|
|
|
|
|
|
|
& > .woocommerce-card__header {
|
2019-08-29 16:07:56 +00:00
|
|
|
background-color: $studio-white;
|
2018-09-24 15:36:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
& > .woocommerce-card__body {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-devdocs__example {
|
|
|
|
padding: $gap;
|
|
|
|
box-shadow: inset 0 2px 1px rgba($core-grey-dark-800, 0.075);
|
|
|
|
|
|
|
|
// Grid background
|
|
|
|
background-image: linear-gradient(rgba($core-grey-dark-800, 0.05) 1px, transparent 1px),
|
|
|
|
linear-gradient(90deg, rgba($core-grey-dark-800, 0.05) 1px, transparent 1px),
|
|
|
|
linear-gradient(rgba($core-grey-dark-800, 0.025) 1px, transparent 1px),
|
|
|
|
linear-gradient(90deg, rgba($core-grey-dark-800, 0.025) 1px, transparent 1px);
|
|
|
|
background-size: 32px 32px, 32px 32px, 8px 8px, 8px 8px;
|
|
|
|
background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
|
2019-08-29 21:41:21 +00:00
|
|
|
|
|
|
|
.woocommerce-chart {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2018-09-24 15:36:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-devdocs__docs {
|
2019-08-29 21:41:21 +00:00
|
|
|
max-width: 720px;
|
2018-09-24 15:36:35 +00:00
|
|
|
margin: 0 auto;
|
|
|
|
padding: $gap;
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style: disc;
|
|
|
|
padding-left: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 code,
|
|
|
|
h2 code,
|
|
|
|
h3 code,
|
|
|
|
h4 code {
|
|
|
|
font-size: 0.9em;
|
|
|
|
}
|
2019-08-29 21:41:21 +00:00
|
|
|
|
|
|
|
table {
|
|
|
|
border-collapse: collapse;
|
|
|
|
border-spacing: 0;
|
|
|
|
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
border-bottom: 1px solid $core-grey-light-700;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
th {
|
|
|
|
padding: 0.25em 3em 0.25em 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
td {
|
|
|
|
padding: 1.17em 3em 1.17em 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// From wp-calypso: client/devdocs/style.scss
|
|
|
|
pre {
|
|
|
|
padding: 8px;
|
|
|
|
background: $white;
|
|
|
|
background-color: $white;
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
background-color: $white;
|
|
|
|
border-radius: 3px;
|
|
|
|
font-size: 15px;
|
|
|
|
padding: 2px 6px;
|
|
|
|
max-width: 100px;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre > code {
|
|
|
|
background-color: $transparent;
|
|
|
|
padding: 2px 0;
|
|
|
|
}
|
2018-09-24 15:36:35 +00:00
|
|
|
}
|
|
|
|
}
|