Skip to content

Instantly share code, notes, and snippets.

@ctalau
ctalau / toc.css
Created February 4, 2019 08:50
TOC
ul.toc a:after{
color:blue;
content: leader(".") target-counter(attr(href), page);
link: attr(href);
}
ul.toc li {
list-style-type:none;
}
ul.toc a {
link: attr(href);
@ctalau
ctalau / index-page.css
Last active February 4, 2019 01:30
Index page
index-link {
content: "[" target-counter(attr(href), page) "] ";
-oxy-link: attr(href);
}
title, index {
page-break-before:always;
}
/* ---------------------- */
index:before {
@ctalau
ctalau / bookmarks.css
Created February 4, 2019 00:38
Bookmarks
book > title { bookmark-level: 1; }
chapter > title { bookmark-level: 2; }
subchapter > title { bookmark-level: 3; }
/* ---------------------- */
title, body {
display: block;
}
title {
font-size: 30px;
@ctalau
ctalau / footnote.css
Created February 4, 2019 00:27
Footnote
fn {
float: footnote;
}
:footnote-call {
content: counter(footnote);
vertical-align: super;
font-size: 0.8em;
color: red;
border: 1px solid red;
}
@ctalau
ctalau / main.xml
Created February 4, 2019 00:09
Edit link in top margin
<topic github-url="https://github.com/oxygenxml/dita-reviewer-links/blob/master/com.oxygenxml.editlink/link.xsl">
<title >Chemistry ru11z</title>
<body>
What is Lorem Ipsum?
Lorem Ipsum is simply dummy text of the printing and
typesetting industry. Lorem Ipsum has been the industry's
standard dummy text ever since the 1500s<fn>Actually the year was 1538</fn>, when an unknown
printer took a galley of type and scrambled it to make a
type specimen book. It has survived not only five centuries,
@ctalau
ctalau / copyright.txt
Last active February 3, 2019 20:25
Cover and copyright page
@ctalau
ctalau / main.css
Last active February 3, 2019 19:51
Edit link location
title:after(2) {
margin-left: 10px;
-oxy-link: oxy_xpath('../@data-editlink');
.text-link();
}
title:after {
margin-left: 10px;
-oxy-link: oxy_xpath('../@data-editlink');
content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAXUlEQVR42mNgGBKgoKAgAYj/Q3ECJZrBmCLNRBuASzNRXhhemj8AsQExmgWA+ABZmpEMUQDiC+RqBtnugOQVA1JTG8jWCVCvbIAaCKIboDgAZAFWg////08RptgAAMDo/Jm25cdCAAAAAElFTkSuQmCC);
@ctalau
ctalau / external-image.xml
Created June 14, 2018 15:33
External image
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="introduction">
<title>Test document</title>
<body>
<image href="https://www.oxygenxml.com/img/mb_xml_editor.png" id="image_mwf_qds_d2b"/>
</body>
</topic>
@ctalau
ctalau / placeholder.xml
Last active May 24, 2018 08:17
Placeholder
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="topic_mvw_hd4_xdb">
<title>Title</title>
<body>
<p><?oxy-placeholder content="This is a placeholder"?></p>
</body>
</topic>
@ctalau
ctalau / placeholder.xml
Created May 24, 2018 08:16
Placeholder
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="topic_mvw_hd4_xdb">
<title>Title</title>
<body>
<p><?oxy_placeholder content="This is a placeholder"?></p>
</body>
</topic>