mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 19:59:37 +02:00
wiki: Handle some wiki templates ({{Note}}, {{Warning}}, {{MantisLink}}). Extend wiki.css to better match the wiki.
git-svn-id: trunk@49327 -
This commit is contained in:
parent
c4766c9519
commit
629a0c7e74
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -4245,6 +4245,8 @@ components/vlc/vlcqt.inc svneol=native#text/plain
|
||||
components/wiki/README.txt svneol=native#text/plain
|
||||
components/wiki/chm/wiki.css svneol=native#text/plain
|
||||
components/wiki/html/wiki.css svneol=native#text/plain
|
||||
components/wiki/images/note.png -text
|
||||
components/wiki/images/warning.png -text
|
||||
components/wiki/lazwiki/lazwiki.lpk svneol=native#text/plain
|
||||
components/wiki/lazwiki/lazwiki.pas svneol=native#text/plain
|
||||
components/wiki/lazwiki/wiki2chmconvert.pas svneol=native#text/plain
|
||||
|
@ -1,185 +1,174 @@
|
||||
body {
|
||||
margin:0;
|
||||
color:#111111;
|
||||
background-color:#FFFFFF;
|
||||
font-family:"Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
text-align:left;
|
||||
margin-right:10.2em;
|
||||
padding:0.7em;
|
||||
margin: 0;
|
||||
color: #111111;
|
||||
background-color: #FFFFFF;
|
||||
font-family: "Segoe UI", "Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
font-size: 10pt;
|
||||
text-align: left;
|
||||
padding: 0.7em;
|
||||
}
|
||||
|
||||
|
||||
/* Bi-Directional support */
|
||||
|
||||
*[lang="he"], *[lang="ar"] /* not supported by IE */
|
||||
{
|
||||
direction : rtl;
|
||||
text-align : right;
|
||||
direction: rtl;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
body[lang="he"], body[lang="ar"]
|
||||
{
|
||||
margin:0;
|
||||
color:#111111;
|
||||
background-color:#FFFFFF;
|
||||
font-family:"Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
text-align : right;
|
||||
direction : rtl;
|
||||
margin-right:10.2em;
|
||||
padding-right:0.7em;
|
||||
margin: 0;
|
||||
color: #111111;
|
||||
background-color: #FFFFFF;
|
||||
font-family: "Segoe UI", "Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
text-align: right;
|
||||
direction: rtl;
|
||||
margin-right: 10.2em;
|
||||
padding-right: 0.7em;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1.5em;
|
||||
margin: 0.4em 0 0.5em;
|
||||
line-height: 1.25em;
|
||||
margin: 0.5em 0 0.5em 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color:#4D87CE;
|
||||
text-decoration:none;
|
||||
color:#4D87CE;
|
||||
text-decoration:none;
|
||||
}
|
||||
a:hover {
|
||||
color:#2a65ad;
|
||||
color:#2a65ad;
|
||||
}
|
||||
|
||||
ul li {
|
||||
list-style-image:url(../pic/backgrounds/li.gif);
|
||||
line-height:20px;
|
||||
text-align:left;
|
||||
list-style-image:url(../pic/backgrounds/li.gif);
|
||||
text-align:left;
|
||||
margin-bottom: 2px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/*
|
||||
ul li p {
|
||||
margin: 0;
|
||||
}
|
||||
*/
|
||||
|
||||
#logoheader {
|
||||
width:80%;
|
||||
margin:0 auto 0 auto;
|
||||
text-align:right;
|
||||
width:80%;
|
||||
margin:0 auto 0 auto;
|
||||
text-align:right;
|
||||
}
|
||||
|
||||
#content {
|
||||
margin:0 40px;
|
||||
padding:0;
|
||||
text-align:left;
|
||||
margin:0 40px;
|
||||
padding:0;
|
||||
text-align:left;
|
||||
}
|
||||
|
||||
|
||||
/* Headers */
|
||||
|
||||
h1 {
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:150%;
|
||||
text-transform:uppercase;
|
||||
font-weight:normal;
|
||||
border-bottom:1px solid #eeeeee;
|
||||
color:#253183;
|
||||
margin-top: 10px;
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:150%;
|
||||
font-weight:normal;
|
||||
color: navy;
|
||||
text-transform:uppercase;
|
||||
border-bottom:1px solid #eeeeee;
|
||||
color:#253183;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#content h1{
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:150%;
|
||||
margin-bottom: 0.6em;
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:150%;
|
||||
margin-bottom: 0.6em;
|
||||
}
|
||||
|
||||
h2{
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:130%;
|
||||
margin-bottom: 0.3em;
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:130%;
|
||||
color: navy;
|
||||
margin-bottom: 0.3em;
|
||||
border-bottom: 1px solid #CCCCCC;
|
||||
}
|
||||
h3{
|
||||
font-family: sans-serif;
|
||||
font-size:120%;
|
||||
margin-bottom: 0.3em;
|
||||
|
||||
h3 {
|
||||
font-family: sans-serif;
|
||||
font-size:120%;
|
||||
color: navy;
|
||||
margin-bottom: 0.3em;
|
||||
}
|
||||
|
||||
h4, h5, h6, .subTitle{
|
||||
font-family: sans-serif;
|
||||
font-size:100%;
|
||||
font-weight:bold;
|
||||
margin-bottom: 0.3em;
|
||||
font-family: sans-serif;
|
||||
font-size:100%;
|
||||
font-weight:bold;
|
||||
color: navy;
|
||||
margin-bottom: 0.3em;
|
||||
}
|
||||
|
||||
|
||||
/* Code */
|
||||
|
||||
pre, .pascal {
|
||||
background-color: #F9F9F9;
|
||||
border: 1px dashed #2F6FAB;
|
||||
color: black;
|
||||
padding: 1em;
|
||||
overflow: auto;
|
||||
line-height: 1.25em;
|
||||
}
|
||||
|
||||
.num {
|
||||
color: #0000DD;
|
||||
color: #0000DD;
|
||||
}
|
||||
|
||||
.string {
|
||||
color: #0000DD;
|
||||
color: #0000DD;
|
||||
}
|
||||
|
||||
.var {
|
||||
color: #000000;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.key {
|
||||
font-weight:bold;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.sym {
|
||||
color: red;
|
||||
color: red;
|
||||
}
|
||||
|
||||
.cmt {
|
||||
color: blue;
|
||||
}
|
||||
|
||||
ul li p {
|
||||
margin: 0;
|
||||
color: grey;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 0 3%;
|
||||
}
|
||||
|
||||
/* roadmap.css */
|
||||
|
||||
td.working {
|
||||
background-color: #88FF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
/* templates */
|
||||
|
||||
div.template-with-icon {
|
||||
border-width: 1px;
|
||||
border-color: lightgrey;
|
||||
padding: 4px 8px 8px 8px;
|
||||
border-style:solid;
|
||||
display: block;
|
||||
margin-top:0px;
|
||||
min-height: 28px;
|
||||
}
|
||||
td.unknown {
|
||||
background-color: #FFFFFF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
td.partial {
|
||||
background-color: #FFFF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
td.not {
|
||||
background-color: #FF8888;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
td.progress {
|
||||
background-color: #8888FF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
tr.working {
|
||||
background-color: #88FF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
tr.unknown {
|
||||
background-color: #FFFFFF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
tr.partial {
|
||||
background-color: #FFFF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
tr.not {
|
||||
background-color: #FF8888;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
tr.progress {
|
||||
background-color: #8888FF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
|
||||
div.icon {
|
||||
clear: left;
|
||||
float: left;
|
||||
margin-right: 8px;
|
||||
margin-top:4px;
|
||||
}
|
||||
|
||||
span.keypress {
|
||||
@ -190,3 +179,93 @@ span.keypress {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
/* roadmap.css */
|
||||
|
||||
table {
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
border-collapse: collapse;
|
||||
padding: 4px;
|
||||
font-family: "Segoe UI", "Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
th {
|
||||
border: 1px solid #999;
|
||||
border-collapse: collapse;
|
||||
padding: 4px;
|
||||
background-color: lightgrey;
|
||||
font-family: "Segoe UI", "Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
td {
|
||||
border: 1px solid #999;
|
||||
border-collapse: collapse;
|
||||
padding: 3px;
|
||||
font-family: "Segoe UI", "Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
td.working {
|
||||
background-color: #88FF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td.unknown {
|
||||
background-color: #FFFFFF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td.partial {
|
||||
background-color: #FFFF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td.not {
|
||||
background-color: #FF8888;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td.progress {
|
||||
background-color: #8888FF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tr.working {
|
||||
background-color: #88FF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tr.unknown {
|
||||
background-color: #FFFFFF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tr.partial {
|
||||
background-color: #FFFF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tr.not {
|
||||
background-color: #FF8888;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tr.progress {
|
||||
background-color: #8888FF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,185 +1,174 @@
|
||||
body {
|
||||
margin:0;
|
||||
color:#111111;
|
||||
background-color:#FFFFFF;
|
||||
font-family:"Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
text-align:left;
|
||||
margin-right:10.2em;
|
||||
padding:0.7em;
|
||||
margin: 0;
|
||||
color: #111111;
|
||||
background-color: #FFFFFF;
|
||||
font-family: "Segoe UI", "Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
font-size: 10pt;
|
||||
text-align: left;
|
||||
padding: 0.7em;
|
||||
}
|
||||
|
||||
|
||||
/* Bi-Directional support */
|
||||
|
||||
*[lang="he"], *[lang="ar"] /* not supported by IE */
|
||||
{
|
||||
direction : rtl;
|
||||
text-align : right;
|
||||
direction: rtl;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
body[lang="he"], body[lang="ar"]
|
||||
{
|
||||
margin:0;
|
||||
color:#111111;
|
||||
background-color:#FFFFFF;
|
||||
font-family:"Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
text-align : right;
|
||||
direction : rtl;
|
||||
margin-right:10.2em;
|
||||
padding-right:0.7em;
|
||||
margin: 0;
|
||||
color: #111111;
|
||||
background-color: #FFFFFF;
|
||||
font-family: "Segoe UI", "Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
text-align: right;
|
||||
direction: rtl;
|
||||
margin-right: 10.2em;
|
||||
padding-right: 0.7em;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1.5em;
|
||||
margin: 0.4em 0 0.5em;
|
||||
line-height: 1.25em;
|
||||
margin: 0.5em 0 0.5em 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color:#4D87CE;
|
||||
text-decoration:none;
|
||||
color:#4D87CE;
|
||||
text-decoration:none;
|
||||
}
|
||||
a:hover {
|
||||
color:#2a65ad;
|
||||
color:#2a65ad;
|
||||
}
|
||||
|
||||
ul li {
|
||||
list-style-image:url(../pic/backgrounds/li.gif);
|
||||
line-height:20px;
|
||||
text-align:left;
|
||||
list-style-image:url(../pic/backgrounds/li.gif);
|
||||
text-align:left;
|
||||
margin-bottom: 2px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/*
|
||||
ul li p {
|
||||
margin: 0;
|
||||
}
|
||||
*/
|
||||
|
||||
#logoheader {
|
||||
width:80%;
|
||||
margin:0 auto 0 auto;
|
||||
text-align:right;
|
||||
width:80%;
|
||||
margin:0 auto 0 auto;
|
||||
text-align:right;
|
||||
}
|
||||
|
||||
#content {
|
||||
margin:0 40px;
|
||||
padding:0;
|
||||
text-align:left;
|
||||
margin:0 40px;
|
||||
padding:0;
|
||||
text-align:left;
|
||||
}
|
||||
|
||||
|
||||
/* Headers */
|
||||
|
||||
h1 {
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:150%;
|
||||
text-transform:uppercase;
|
||||
font-weight:normal;
|
||||
border-bottom:1px solid #eeeeee;
|
||||
color:#253183;
|
||||
margin-top: 10px;
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:150%;
|
||||
font-weight:normal;
|
||||
color: navy;
|
||||
text-transform:uppercase;
|
||||
border-bottom:1px solid #eeeeee;
|
||||
color:#253183;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#content h1{
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:150%;
|
||||
margin-bottom: 0.6em;
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:150%;
|
||||
margin-bottom: 0.6em;
|
||||
}
|
||||
|
||||
h2{
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:130%;
|
||||
margin-bottom: 0.3em;
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:130%;
|
||||
color: navy;
|
||||
margin-bottom: 0.3em;
|
||||
border-bottom: 1px solid #CCCCCC;
|
||||
}
|
||||
h3{
|
||||
font-family: sans-serif;
|
||||
font-size:120%;
|
||||
margin-bottom: 0.3em;
|
||||
|
||||
h3 {
|
||||
font-family: sans-serif;
|
||||
font-size:120%;
|
||||
color: navy;
|
||||
margin-bottom: 0.3em;
|
||||
}
|
||||
|
||||
h4, h5, h6, .subTitle{
|
||||
font-family: sans-serif;
|
||||
font-size:100%;
|
||||
font-weight:bold;
|
||||
margin-bottom: 0.3em;
|
||||
font-family: sans-serif;
|
||||
font-size:100%;
|
||||
font-weight:bold;
|
||||
color: navy;
|
||||
margin-bottom: 0.3em;
|
||||
}
|
||||
|
||||
|
||||
/* Code */
|
||||
|
||||
pre, .pascal {
|
||||
background-color: #F9F9F9;
|
||||
border: 1px dashed #2F6FAB;
|
||||
color: black;
|
||||
padding: 1em;
|
||||
overflow: auto;
|
||||
line-height: 1.25em;
|
||||
}
|
||||
|
||||
.num {
|
||||
color: #0000DD;
|
||||
color: #0000DD;
|
||||
}
|
||||
|
||||
.string {
|
||||
color: #0000DD;
|
||||
color: #0000DD;
|
||||
}
|
||||
|
||||
.var {
|
||||
color: #000000;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.key {
|
||||
font-weight:bold;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.sym {
|
||||
color: red;
|
||||
color: red;
|
||||
}
|
||||
|
||||
.cmt {
|
||||
color: blue;
|
||||
}
|
||||
|
||||
ul li p {
|
||||
margin: 0;
|
||||
color: grey;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 0 3%;
|
||||
}
|
||||
|
||||
/* roadmap.css */
|
||||
|
||||
td.working {
|
||||
background-color: #88FF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
/* templates */
|
||||
|
||||
div.template-with-icon {
|
||||
border-width: 1px;
|
||||
border-color: lightgrey;
|
||||
padding: 4px 8px 8px 8px;
|
||||
border-style:solid;
|
||||
display: block;
|
||||
margin-top:0px;
|
||||
min-height: 28px;
|
||||
}
|
||||
td.unknown {
|
||||
background-color: #FFFFFF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
td.partial {
|
||||
background-color: #FFFF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
td.not {
|
||||
background-color: #FF8888;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
td.progress {
|
||||
background-color: #8888FF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
tr.working {
|
||||
background-color: #88FF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
tr.unknown {
|
||||
background-color: #FFFFFF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
tr.partial {
|
||||
background-color: #FFFF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
tr.not {
|
||||
background-color: #FF8888;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
tr.progress {
|
||||
background-color: #8888FF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
|
||||
div.icon {
|
||||
clear: left;
|
||||
float: left;
|
||||
margin-right: 8px;
|
||||
margin-top:4px;
|
||||
}
|
||||
|
||||
span.keypress {
|
||||
@ -190,3 +179,93 @@ span.keypress {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
/* roadmap.css */
|
||||
|
||||
table {
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
border-collapse: collapse;
|
||||
padding: 4px;
|
||||
font-family: "Segoe UI", "Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
th {
|
||||
border: 1px solid #999;
|
||||
border-collapse: collapse;
|
||||
padding: 4px;
|
||||
background-color: lightgrey;
|
||||
font-family: "Segoe UI", "Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
td {
|
||||
border: 1px solid #999;
|
||||
border-collapse: collapse;
|
||||
padding: 3px;
|
||||
font-family: "Segoe UI", "Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
td.working {
|
||||
background-color: #88FF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td.unknown {
|
||||
background-color: #FFFFFF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td.partial {
|
||||
background-color: #FFFF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td.not {
|
||||
background-color: #FF8888;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td.progress {
|
||||
background-color: #8888FF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tr.working {
|
||||
background-color: #88FF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tr.unknown {
|
||||
background-color: #FFFFFF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tr.partial {
|
||||
background-color: #FFFF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tr.not {
|
||||
background-color: #FF8888;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tr.progress {
|
||||
background-color: #8888FF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
|
BIN
components/wiki/images/note.png
Normal file
BIN
components/wiki/images/note.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
components/wiki/images/warning.png
Normal file
BIN
components/wiki/images/warning.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
@ -68,6 +68,7 @@ type
|
||||
FLinkToBaseDocument: string;
|
||||
FMaxH: integer;
|
||||
FPageFileExt: string;
|
||||
FUseTemplateIcons: Boolean;
|
||||
procedure DoAddLinksToTranslations(Page: TW2XHTMLPage);
|
||||
procedure DoAddLinkToBaseDocument(Page: TW2XHTMLPage);
|
||||
procedure OnHeaderToken(Token: TWPToken);
|
||||
@ -106,10 +107,15 @@ type
|
||||
property AddLinksToTranslations: boolean read FAddLinksToTranslations write FAddLinksToTranslations default true;
|
||||
property AddTOCIfHeaderCountMoreThan: integer read FAddTOCIfHeaderCountMoreThan
|
||||
write FAddTOCIfHeaderCountMoreThan default 2;
|
||||
property UseTemplateIcons: Boolean read FUseTemplateIcons write FUseTemplateIcons;
|
||||
end;
|
||||
|
||||
implementation
|
||||
|
||||
const
|
||||
NOTE_ICON = 'note.png';
|
||||
WARNING_ICON = 'warning.png';
|
||||
|
||||
{ TWiki2XHTMLConverter }
|
||||
|
||||
procedure TWiki2XHTMLConverter.SetCSSFilename(AValue: string);
|
||||
@ -505,11 +511,15 @@ var
|
||||
doc: TXMLDocument;
|
||||
NodeName: string;
|
||||
Node: TDOMElement;
|
||||
childNode1, childNode2: TDOMElement;
|
||||
LinkToken: TWPLinkToken;
|
||||
NodeClass: String;
|
||||
NameValueToken: TWPNameValueToken;
|
||||
CurName: String;
|
||||
CurValue: String;
|
||||
foundImg: string;
|
||||
fn: String;
|
||||
captn, iconfile: String;
|
||||
begin
|
||||
Page:=TW2XHTMLPage(Token.UserData);
|
||||
W:=Page.WikiPage;
|
||||
@ -671,6 +681,59 @@ begin
|
||||
exit;
|
||||
end;
|
||||
CurValue:=copy(W.Src,NameValueToken.ValueStartPos,NameValueToken.ValueEndPos-NameValueToken.ValueStartPos);
|
||||
|
||||
case Lowercase(CurName) of
|
||||
'note', 'warning':
|
||||
begin
|
||||
case Lowercase(CurName) of
|
||||
'note' : begin captn := 'Note'; iconfile := NOTE_ICON; end;
|
||||
'warning': begin captn := 'Warning'; iconfile := WARNING_ICON; end;
|
||||
end;
|
||||
Node := doc.CreateElement('div');
|
||||
Node.SetAttribute('class', 'template-with-icon');
|
||||
Page.CurDOMNode.AppendChild(Node);
|
||||
|
||||
childnode1 := doc.CreateElement('div');
|
||||
Node.AppendChild(childnode1);
|
||||
childnode1.SetAttribute('class', 'icon');
|
||||
if FUseTemplateIcons then begin
|
||||
fn := FindImage(iconfile);
|
||||
if fn <> '' then
|
||||
fn := GetImageLink(fn);
|
||||
MarkImageAsUsed(fn, Page);
|
||||
childnode2 := doc.CreateElement('img');
|
||||
childnode2.SetAttribute('src', fn);
|
||||
// childnode2.SetAttribute('align', 'left');
|
||||
childnode1.AppendChild(childnode2);
|
||||
end;
|
||||
|
||||
childnode2 := doc.CreateElement('b');
|
||||
childnode2.AppendChild(doc.createTextNode(captn + ': '));
|
||||
Node.AppendChild(childnode2);
|
||||
Node.AppendChild(doc.CreateTextNode(CurValue));
|
||||
// to do: CurValue can contain further html tags!
|
||||
exit;
|
||||
end;
|
||||
|
||||
'mantislink':
|
||||
begin
|
||||
Node := doc.CreateElement('a');
|
||||
Node.SetAttribute('href', 'http://bugs.freepascal.org/view.php?id='+CurValue);
|
||||
Node.AppendChild(doc.CreateTextNode('MantisLink #'));
|
||||
Node.AppendChild(doc.CreateTextNode(Curvalue));
|
||||
Page.CurDOMNode.AppendChild(Node);
|
||||
exit;
|
||||
end;
|
||||
|
||||
else
|
||||
Node := doc.CreateElement('span');
|
||||
if CurName <> '' then Node.SetAttribute('class', CurName);
|
||||
Page.CurDOMNode.AppendChild(Node);
|
||||
if CurValue <> '' then
|
||||
Node.AppendChild(doc.CreateTextNode(CurValue));
|
||||
exit;
|
||||
end;
|
||||
|
||||
Node:=doc.CreateElement('span');
|
||||
if CurName<>'' then
|
||||
Node.SetAttribute('class',CurName);
|
||||
@ -938,6 +1001,7 @@ begin
|
||||
fLinkToBaseDocument:='Online version';
|
||||
FAddLinksToTranslations:=true;
|
||||
FAddTOCIfHeaderCountMoreThan:=2;
|
||||
FUseTemplateIcons := true;
|
||||
end;
|
||||
|
||||
destructor TWiki2XHTMLConverter.Destroy;
|
||||
|
@ -1,185 +1,174 @@
|
||||
body {
|
||||
margin:0;
|
||||
color:#111111;
|
||||
background-color:#FFFFFF;
|
||||
font-family:"Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
text-align:left;
|
||||
margin-right:10.2em;
|
||||
padding:0.7em;
|
||||
margin: 0;
|
||||
color: #111111;
|
||||
background-color: #FFFFFF;
|
||||
font-family: "Segoe UI", "Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
font-size: 10pt;
|
||||
text-align: left;
|
||||
padding: 0.7em;
|
||||
}
|
||||
|
||||
|
||||
/* Bi-Directional support */
|
||||
|
||||
*[lang="he"], *[lang="ar"] /* not supported by IE */
|
||||
{
|
||||
direction : rtl;
|
||||
text-align : right;
|
||||
direction: rtl;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
body[lang="he"], body[lang="ar"]
|
||||
{
|
||||
margin:0;
|
||||
color:#111111;
|
||||
background-color:#FFFFFF;
|
||||
font-family:"Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
text-align : right;
|
||||
direction : rtl;
|
||||
margin-right:10.2em;
|
||||
padding-right:0.7em;
|
||||
margin: 0;
|
||||
color: #111111;
|
||||
background-color: #FFFFFF;
|
||||
font-family: "Segoe UI", "Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
text-align: right;
|
||||
direction: rtl;
|
||||
margin-right: 10.2em;
|
||||
padding-right: 0.7em;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1.5em;
|
||||
margin: 0.4em 0 0.5em;
|
||||
line-height: 1.25em;
|
||||
margin: 0.5em 0 0.5em 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color:#4D87CE;
|
||||
text-decoration:none;
|
||||
color:#4D87CE;
|
||||
text-decoration:none;
|
||||
}
|
||||
a:hover {
|
||||
color:#2a65ad;
|
||||
color:#2a65ad;
|
||||
}
|
||||
|
||||
ul li {
|
||||
list-style-image:url(../pic/backgrounds/li.gif);
|
||||
line-height:20px;
|
||||
text-align:left;
|
||||
list-style-image:url(../pic/backgrounds/li.gif);
|
||||
text-align:left;
|
||||
margin-bottom: 2px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/*
|
||||
ul li p {
|
||||
margin: 0;
|
||||
}
|
||||
*/
|
||||
|
||||
#logoheader {
|
||||
width:80%;
|
||||
margin:0 auto 0 auto;
|
||||
text-align:right;
|
||||
width:80%;
|
||||
margin:0 auto 0 auto;
|
||||
text-align:right;
|
||||
}
|
||||
|
||||
#content {
|
||||
margin:0 40px;
|
||||
padding:0;
|
||||
text-align:left;
|
||||
margin:0 40px;
|
||||
padding:0;
|
||||
text-align:left;
|
||||
}
|
||||
|
||||
|
||||
/* Headers */
|
||||
|
||||
h1 {
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:150%;
|
||||
text-transform:uppercase;
|
||||
font-weight:normal;
|
||||
border-bottom:1px solid #eeeeee;
|
||||
color:#253183;
|
||||
margin-top: 10px;
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:150%;
|
||||
font-weight:normal;
|
||||
color: navy;
|
||||
text-transform:uppercase;
|
||||
border-bottom:1px solid #eeeeee;
|
||||
color:#253183;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#content h1{
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:150%;
|
||||
margin-bottom: 0.6em;
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:150%;
|
||||
margin-bottom: 0.6em;
|
||||
}
|
||||
|
||||
h2{
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:130%;
|
||||
margin-bottom: 0.3em;
|
||||
font-family:"Century Gothic", "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
|
||||
font-size:130%;
|
||||
color: navy;
|
||||
margin-bottom: 0.3em;
|
||||
border-bottom: 1px solid #CCCCCC;
|
||||
}
|
||||
h3{
|
||||
font-family: sans-serif;
|
||||
font-size:120%;
|
||||
margin-bottom: 0.3em;
|
||||
|
||||
h3 {
|
||||
font-family: sans-serif;
|
||||
font-size:120%;
|
||||
color: navy;
|
||||
margin-bottom: 0.3em;
|
||||
}
|
||||
|
||||
h4, h5, h6, .subTitle{
|
||||
font-family: sans-serif;
|
||||
font-size:100%;
|
||||
font-weight:bold;
|
||||
margin-bottom: 0.3em;
|
||||
font-family: sans-serif;
|
||||
font-size:100%;
|
||||
font-weight:bold;
|
||||
color: navy;
|
||||
margin-bottom: 0.3em;
|
||||
}
|
||||
|
||||
|
||||
/* Code */
|
||||
|
||||
pre, .pascal {
|
||||
background-color: #F9F9F9;
|
||||
border: 1px dashed #2F6FAB;
|
||||
color: black;
|
||||
padding: 1em;
|
||||
overflow: auto;
|
||||
line-height: 1.25em;
|
||||
}
|
||||
|
||||
.num {
|
||||
color: #0000DD;
|
||||
color: #0000DD;
|
||||
}
|
||||
|
||||
.string {
|
||||
color: #0000DD;
|
||||
color: #0000DD;
|
||||
}
|
||||
|
||||
.var {
|
||||
color: #000000;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.key {
|
||||
font-weight:bold;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.sym {
|
||||
color: red;
|
||||
color: red;
|
||||
}
|
||||
|
||||
.cmt {
|
||||
color: blue;
|
||||
}
|
||||
|
||||
ul li p {
|
||||
margin: 0;
|
||||
color: grey;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 0 3%;
|
||||
}
|
||||
|
||||
/* roadmap.css */
|
||||
|
||||
td.working {
|
||||
background-color: #88FF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
/* templates */
|
||||
|
||||
div.template-with-icon {
|
||||
border-width: 1px;
|
||||
border-color: lightgrey;
|
||||
padding: 4px 8px 8px 8px;
|
||||
border-style:solid;
|
||||
display: block;
|
||||
margin-top:0px;
|
||||
min-height: 28px;
|
||||
}
|
||||
td.unknown {
|
||||
background-color: #FFFFFF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
td.partial {
|
||||
background-color: #FFFF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
td.not {
|
||||
background-color: #FF8888;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
td.progress {
|
||||
background-color: #8888FF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
tr.working {
|
||||
background-color: #88FF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
tr.unknown {
|
||||
background-color: #FFFFFF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
tr.partial {
|
||||
background-color: #FFFF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
tr.not {
|
||||
background-color: #FF8888;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
tr.progress {
|
||||
background-color: #8888FF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
|
||||
div.icon {
|
||||
clear: left;
|
||||
float: left;
|
||||
margin-right: 8px;
|
||||
margin-top:4px;
|
||||
}
|
||||
|
||||
span.keypress {
|
||||
@ -190,3 +179,93 @@ span.keypress {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
/* roadmap.css */
|
||||
|
||||
table {
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
border-collapse: collapse;
|
||||
padding: 4px;
|
||||
font-family: "Segoe UI", "Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
th {
|
||||
border: 1px solid #999;
|
||||
border-collapse: collapse;
|
||||
padding: 4px;
|
||||
background-color: lightgrey;
|
||||
font-family: "Segoe UI", "Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
td {
|
||||
border: 1px solid #999;
|
||||
border-collapse: collapse;
|
||||
padding: 3px;
|
||||
font-family: "Segoe UI", "Trebuchet MS", Arial, Verdana, sans-serif;
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
td.working {
|
||||
background-color: #88FF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td.unknown {
|
||||
background-color: #FFFFFF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td.partial {
|
||||
background-color: #FFFF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td.not {
|
||||
background-color: #FF8888;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td.progress {
|
||||
background-color: #8888FF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tr.working {
|
||||
background-color: #88FF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tr.unknown {
|
||||
background-color: #FFFFFF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tr.partial {
|
||||
background-color: #FFFF88;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tr.not {
|
||||
background-color: #FF8888;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tr.progress {
|
||||
background-color: #8888FF;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user