Skip to content

Commit 44191c0

Browse files
jercaianuwilzbach
authored andcommitted
Wrap around for long titles + phobos src links
1 parent b2bf305 commit 44191c0

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed

css/html-skeleton.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,16 @@ parameters will be rendered in this style everywhere.*/
8585
{
8686
}
8787

88+
/* SPAN: D module title */
89+
.d_title
90+
{
91+
}
92+
93+
/* SPAN: link to Phobos resource */
94+
.phobos_src
95+
{
96+
}
97+
8898
/* DIV: Formats the "Date" section */
8999
.Date
90100
{

css/style.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,24 @@ td .d_code2, td .cppcode2, td .cppcode
11771177
font-weight: bold;
11781178
}
11791179

1180+
.d_title
1181+
{
1182+
font-weight: bold;
1183+
text-overflow: clip;
1184+
overflow: hidden;
1185+
display: block;
1186+
word-wrap: break-word;
1187+
font-family: Consolas, "Bitstream Vera Sans Mono", "Andale Mono", Monaco, "DejaVu Sans Mono", "Lucida Console", monospace;
1188+
}
1189+
1190+
.phobos_src
1191+
{
1192+
text-overflow: clip;
1193+
overflow: hidden;
1194+
display: block;
1195+
word-wrap: break-word;
1196+
}
1197+
11801198
/* syntax highlighting
11811199
11821200
d_* classes come from Ddoc.

html.ddoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ D_STRING = $(SPANC d_string, $0)
9595
D_KEYWORD = $(SPANC d_keyword, $0)
9696
D_PSYMBOL = $(SPANC d_psymbol, $0)
9797
D_PARAM = $(SPANC d_param, $0)
98+
D_TITLE = $(SPANC d_title, $0)
9899
_=
99100

100101
_=Main entry point

std.ddoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LAYOUT_SUFFIX =
88
$(SCRIPTLOAD ../js/listanchors.js)
99
$(SCRIPTLOAD ../js/show_contributors.js)
1010
$(SCRIPT jQuery(document).ready(listanchors);)
11-
LAYOUT_TITLE=$(H1 $(D $(TITLE)))
11+
LAYOUT_TITLE=$(H1 $(D_TITLE $(TITLE)))
1212
_=
1313

1414
LREF = <a href="#$1">$(D $1)</a>

0 commit comments

Comments
 (0)