mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 15:05:50 +00:00
Navbar, padding fixes
This commit is contained in:
parent
a9fb1766b6
commit
480331ac8c
@ -21,7 +21,7 @@ body {
|
|||||||
}
|
}
|
||||||
.docs-sidebar {
|
.docs-sidebar {
|
||||||
display: block;
|
display: block;
|
||||||
top: 95px;
|
top: 65px;
|
||||||
@include box-shadow(none);
|
@include box-shadow(none);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -195,6 +195,9 @@ h1, h2, h3 {
|
|||||||
transform: translateX(0);
|
transform: translateX(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.docs-article {
|
||||||
|
padding: 2rem 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
@ -230,5 +233,5 @@ code[class*="language-"], pre[class*="language-"] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.api-link {
|
.api-link {
|
||||||
border-bottom: 1px dashed $gray-700;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ const rewriteLink = (
|
|||||||
const currentNode = getCurrentNode();
|
const currentNode = getCurrentNode();
|
||||||
const version = getCurrentVersion();
|
const version = getCurrentVersion();
|
||||||
|
|
||||||
// api links
|
// shorthand api links
|
||||||
if (href.match(/^api\:/)) {
|
if (href.match(/^api\:/)) {
|
||||||
const newHref = rewriteAPILink(href);
|
const newHref = rewriteAPILink(href);
|
||||||
return createElement(
|
return createElement(
|
||||||
@ -44,6 +44,18 @@ const rewriteLink = (
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// explicit API links
|
||||||
|
if (href.match(/api\.silverstripe\.org/)) {
|
||||||
|
return createElement(
|
||||||
|
'a',
|
||||||
|
{
|
||||||
|
className: 'api-link',
|
||||||
|
href,
|
||||||
|
target: '_blank',
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
// absolute links
|
// absolute links
|
||||||
if (href.match(/^https?/)) {
|
if (href.match(/^https?/)) {
|
||||||
return createElement(
|
return createElement(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user