Skip to content

Commit c090fda

Browse files
authored
Merge pull request #2201 from jercaianu/long_title
Title font shrinks if too long merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2 parents 90fd4cd + 44191c0 commit c090fda

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
@@ -1176,6 +1176,24 @@ td .d_code2, td .cppcode2, td .cppcode
11761176
font-weight: bold;
11771177
}
11781178

1179+
.d_title
1180+
{
1181+
font-weight: bold;
1182+
text-overflow: clip;
1183+
overflow: hidden;
1184+
display: block;
1185+
word-wrap: break-word;
1186+
font-family: Consolas, "Bitstream Vera Sans Mono", "Andale Mono", Monaco, "DejaVu Sans Mono", "Lucida Console", monospace;
1187+
}
1188+
1189+
.phobos_src
1190+
{
1191+
text-overflow: clip;
1192+
overflow: hidden;
1193+
display: block;
1194+
word-wrap: break-word;
1195+
}
1196+
11791197
/* syntax highlighting
11801198
11811199
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)