Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | solved ticket [1b41304d8b]: moved style clear: both from code for content to css, adding the corresponding div only, if a sidebox wass used |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | wolfgangFormat2CSS_2 |
| Files: | files | file ages | folders |
| SHA1: |
26fc585ecf424419126f5f6145155742 |
| User & Date: | Ratte 2010-09-28 09:02:59.000 |
Context
|
2010-09-28
| ||
| 14:48 | reconstruct handles subdirectories ... (check-in: 6759e00eb8 user: wolfgang tags: wolfgangFormat2CSS_2) | |
| 09:02 | solved ticket [1b41304d8b]: moved style clear: both from code for content to css, adding the corresponding div only, if a sidebox wass used ... (check-in: 26fc585ecf user: Ratte tags: wolfgangFormat2CSS_2) | |
| 08:29 | solved ticket [1b41304d8b]: moved style clear: both from code for content div to footer css, needs redefinition of div.footer in the css configuration! ... (check-in: 15b3ad2509 user: Ratte tags: wolfgangFormat2CSS_2) | |
Changes
Changes to src/style.c.
| ︙ | ︙ | |||
38 39 40 41 42 43 44 45 46 47 48 49 50 51 | /* ** Remember that the header has been generated. The footer is omitted ** if an error occurs before the header. */ static int headerHasBeenGenerated = 0; /* ** Add a new element to the submenu */ void style_submenu_element( const char *zLabel, const char *zTitle, const char *zLink, | > > > > > | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | /* ** Remember that the header has been generated. The footer is omitted ** if an error occurs before the header. */ static int headerHasBeenGenerated = 0; /* ** remember, if a sidebox was used */ static int sideboxUsed = 0; /* ** Add a new element to the submenu */ void style_submenu_element( const char *zLabel, const char *zTitle, const char *zLink, |
| ︙ | ︙ | |||
104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
if( g.thTrace ) Th_Trace("BEGIN_HEADER_SCRIPT<br />\n", -1);
Th_Render(zHeader);
if( g.thTrace ) Th_Trace("END_HEADER<br />\n", -1);
Th_Unstore("title"); /* Avoid collisions with ticket field names */
cgi_destination(CGI_BODY);
g.cgiOutput = 1;
headerHasBeenGenerated = 1;
}
/*
** Draw the footer at the bottom of the page.
*/
void style_footer(void){
const char *zFooter;
| > | 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
if( g.thTrace ) Th_Trace("BEGIN_HEADER_SCRIPT<br />\n", -1);
Th_Render(zHeader);
if( g.thTrace ) Th_Trace("END_HEADER<br />\n", -1);
Th_Unstore("title"); /* Avoid collisions with ticket field names */
cgi_destination(CGI_BODY);
g.cgiOutput = 1;
headerHasBeenGenerated = 1;
sideboxUsed = 0;
}
/*
** Draw the footer at the bottom of the page.
*/
void style_footer(void){
const char *zFooter;
|
| ︙ | ︙ | |||
136 137 138 139 140 141 142 |
}
}
@ </div>
}
@ <div class="content">
cgi_destination(CGI_BODY);
| > | | | | > > > | 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 |
}
}
@ </div>
}
@ <div class="content">
cgi_destination(CGI_BODY);
if (sideboxUsed) {
/* Put the footer at the bottom of the page.
** the additional clear/both is needed to extend the content
** part to the end of an optional sidebox.
*/
@ <div class="endContent"></div>
}
@ </div>
zFooter = db_get("footer", (char*)zDefaultFooter);
if( g.thTrace ) Th_Trace("BEGIN_FOOTER<br />\n", -1);
Th_Render(zFooter);
if( g.thTrace ) Th_Trace("END_FOOTER<br />\n", -1);
/* Render trace log if TH1 tracing is enabled. */
if( g.thTrace ){
cgi_append_content("<font color=\"red\"><hr />\n", -1);
cgi_append_content(blob_str(&g.thLog), blob_size(&g.thLog));
cgi_append_content("</font>\n", -1);
}
}
/*
** Begin a side-box on the right-hand side of a page. The title and
** the width of the box are given as arguments. The width is usually
** a percentage of total screen width.
*/
void style_sidebox_begin(const char *zTitle, const char *zWidth){
sideboxUsed = 1;
@ <div class="sidebox" style="width:%s(zWidth)">
@ <div class="sideboxTitle">%h(zTitle)</div>
}
/* End the side-box
*/
void style_sidebox_end(void){
|
| ︙ | ︙ | |||
672 673 674 675 676 677 678 679 680 681 682 683 684 685 |
@ # no special definitions, class defined, to enable color pickers, f.e.:
@ # add the color picker found at http:jscolor.com as java script include
@ # to the header and configure the java script file with
@ # 1. use as bindClass :checkinUserColor
@ # 2. change the default hash adding behaviour to ON
@ # or change the class defition of element identified by id="clrcust"
@ # to a standard jscolor definition with java script in the footer.
},
{ 0,
0,
0
}
};
| > > > > | 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 |
@ # no special definitions, class defined, to enable color pickers, f.e.:
@ # add the color picker found at http:jscolor.com as java script include
@ # to the header and configure the java script file with
@ # 1. use as bindClass :checkinUserColor
@ # 2. change the default hash adding behaviour to ON
@ # or change the class defition of element identified by id="clrcust"
@ # to a standard jscolor definition with java script in the footer.
},
{ "div.endContent",
"format for end of content area, to be used to clear page flow(sidebox on branch,..",
@ clear: both;
},
{ 0,
0,
0
}
};
|
| ︙ | ︙ |