summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-01-06 11:47:52 (GMT)
committerGitHub <noreply@github.com>2018-01-06 11:47:52 (GMT)
commit60f0b620a6e6079c5942fb649a17b89553b6f28b (patch)
treead643111ec2a41adff569393cc843ed462ebe059
parent34d5d0da43f116cd09f1f6b2fab001e5c39549c3 (diff)
parent08be7a8ef12518736b2530504a28904eec3e47ab (diff)
downloadDoxygen-60f0b620a6e6079c5942fb649a17b89553b6f28b.zip
Doxygen-60f0b620a6e6079c5942fb649a17b89553b6f28b.tar.gz
Doxygen-60f0b620a6e6079c5942fb649a17b89553b6f28b.tar.bz2
Merge pull request #636 from ahoogol/master
-Fixed: some of remained work to support RTL in HTML output
-rw-r--r--src/htmldocvisitor.cpp9
-rw-r--r--templates/html/doxygen.css46
2 files changed, 45 insertions, 10 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp
index 7404a4d..8b6d26c 100644
--- a/src/htmldocvisitor.cpp
+++ b/src/htmldocvisitor.cpp
@@ -1144,8 +1144,10 @@ void HtmlDocVisitor::visitPre(DocSimpleSect *s)
{
if (m_hide) return;
forceEndParagraph(s);
- m_t << "<dl" << getDirHtmlClassOfNode(getTextDirByConfig(s), "section " + s->typeString())
- << "><dt>";
+ if (s->type() != DocSimpleSect::Return)
+ m_t << "<dl" << getDirHtmlClassOfNode(getTextDirByConfig(s), "section " + s->typeString()) << "><dt>";
+ else
+ m_t << "<dl class=\"section " << s->typeString() << "\"><dt>";
switch(s->type())
{
case DocSimpleSect::See:
@@ -1831,7 +1833,8 @@ void HtmlDocVisitor::visitPre(DocXRefItem *x)
bool anonymousEnum = x->file()=="@";
if (!anonymousEnum)
{
- m_t << "<dl class=\"" << x->key() << "\"><dt><b><a class=\"el\" href=\""
+ m_t << "<dl" << getDirHtmlClassOfNode(getTextDirByConfig(x), x->key())
+ << "><dt><b><a class=\"el\" href=\""
<< x->relPath() << x->file() << Doxygen::htmlFileExtension
<< "#" << x->anchor() << "\">";
}
diff --git a/templates/html/doxygen.css b/templates/html/doxygen.css
index 3bb7316..1425dc1 100644
--- a/templates/html/doxygen.css
+++ b/templates/html/doxygen.css
@@ -163,10 +163,15 @@ dl.el {
margin-left: -1cm;
}
-.fragment
-{
- text-align: left;
- direction:ltr;
+ul {
+ overflow: hidden; /*Fixed: list item bullets overlap floating elements*/
+}
+
+.fragment {
+ text-align: left;
+ direction: ltr;
+ overflow-x: auto; /*Fixed: fragment lines overlap floating elements*/
+ overflow-y: hidden;
}
pre.fragment {
@@ -183,8 +188,8 @@ pre.fragment {
}
div.fragment {
- padding: 0px;
- margin: 4px 8px 4px 2px;
+ padding: 0 0 1px 0; /*Fixed: last line underline overlap border*/
+ margin: 4px 8px 4px 2px;
background-color: ##FC;
border: 1px solid ##CC;
}
@@ -1349,8 +1354,9 @@ div.toc {
width: 200px;
}
-.PageDocRTL-title .toc {
+.PageDocRTL-title div.toc {
float: left !important;
+ text-align: right;
}
div.toc li {
@@ -1361,6 +1367,12 @@ div.toc li {
padding-top: 2px;
}
+.PageDocRTL-title div.toc li {
+ background-position-x: right !important;
+ padding-left: 0 !important;
+ padding-right: 10px;
+}
+
div.toc h3 {
font: bold 12px/1.2 Arial,FreeSans,sans-serif;
color: ##60;
@@ -1390,6 +1402,26 @@ div.toc li.level4 {
margin-left: 45px;
}
+.PageDocRTL-title div.toc li.level1 {
+ margin-left: 0 !important;
+ margin-right: 0;
+}
+
+.PageDocRTL-title div.toc li.level2 {
+ margin-left: 0 !important;
+ margin-right: 15px;
+}
+
+.PageDocRTL-title div.toc li.level3 {
+ margin-left: 0 !important;
+ margin-right: 30px;
+}
+
+.PageDocRTL-title div.toc li.level4 {
+ margin-left: 0 !important;
+ margin-right: 45px;
+}
+
.inherit_header {
font-weight: bold;
color: gray;