Skip to content

Commit

Permalink
Merge pull request #2 from mulesoft/DOCSINFRA-127-move-css-pr
Browse files Browse the repository at this point in the history
DOCSINFRA-144 adding/updating files. [DO NOT MERGE]
  • Loading branch information
Steven Leslie authored Dec 4, 2019
2 parents ddbe537 + 11461f5 commit 875237f
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
20 changes: 20 additions & 0 deletions preview-site-src/tests.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
= CSS and ASCIIdoc Tests

This topic contains multiple test for changes to CSS and ASCIIdoc elements.

== Test Callouts

.XML element
[source,xml,linenums]
----
<api-platform-gw:api
apiName="${apiName}" // <1>
version="${apiVersion}" //<2>
flowRef="proxy" //<3>
apikitRef="api-config"/> //<4>
----

<1> Configure the `${apiName}` with the UUID, which is the group ID and the Exchange asset ID assigned to your API by API Manager.
<2> Configure the `${apiVersion}` with the API Version, which is the version name and the instance ID or the label assigned to your API by API Manager.
<3> Set the `flowRef` element to point to the flow that you want to pair to the API in API Manager.
<4> If you use APIKit and you would like to apply policies at a resource level, you must set this value. Otherwise said policies won't work at resource level.
44 changes: 44 additions & 0 deletions src/css/adoc/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,50 @@
}
}

/* numbered callouts from codeblocks */
& .conum {
background: var(--tertiary);
border: 1px solid var(--aluminum-3);
border-radius: 4px;
font-family: var(--sans-serif);
font-size: 12px;
font-style: normal;
font-weight: --weight-bold;
padding: 0 5px;

&::after {
content: attr(data-value);
-webkit-user-select: none; /* Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+/Edge */
user-select: none; /* Standard */
}

& + b {
display: none;
}
}

/* collouts within the codeblock */
& pre .conum {
box-shadow: 0 2px 6px var(--aluminum-3);
}

/* references within codeblock */
& .colist {

/* numbers */
& td:first-of-type {
padding: 0 10px;
vertical-align: top;
}

/* content */
& td:last-of-type {
padding: 0;
}
}

/* default spacing */
& > h1:first-child {
padding-top: var(--lg);
Expand Down

0 comments on commit 875237f

Please sign in to comment.