Ticket #871: initial.CSS.reorganize.patch
File initial.CSS.reorganize.patch, 11.9 KB (added by , 16 years ago) |
---|
-
inc/util.inc
119 119 header ("Pragma: no-cache"); // HTTP/1.0 120 120 } 121 121 122 echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"> 123 "; 124 122 echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">"; 123 125 124 126 125 if (!$title_plain) { 127 126 echo "<html><head><title>".strip_tags($title)."</title>\n"; 128 127 } else { 129 128 echo "<html><head><title>".strip_tags($title_plain)."</title>\n"; 130 129 } 131 echo "<link rel=stylesheet type=\"text/css\" href=\"$stylesheet\"> 130 echo "<link rel=stylesheet type=\"text/css\" href=\"main.css\" media=\"all\" /> 131 <link rel=stylesheet type=\"text/css\" href=\"$stylesheet\"> 132 132 <link rel=alternate type=\"application/rss+xml\" title=\"$rssname\" href=\"$rsslink\"> 133 133 </head> 134 134 "; -
user/sample_index.php
99 99 echo "<html> 100 100 <head> 101 101 <title>".PROJECT."</title> 102 <link rel=\"stylesheet\" type=\"text/css\" href=\"main.css\" media=\"all\" /> 102 103 <link rel=\"stylesheet\" type=\"text/css\" href=\"".STYLESHEET."\"> 103 104 <link rel=\"alternate\" type=\"application/rss+xml\" title=\"".$rssname."\" href=\"".$rsslink."\"> 104 105 "; -
user/user_search.php
110 110 echo "<form name=f method=get action=user_search.php>"; 111 111 start_table(); 112 112 row1("Search type", 2, "heading"); 113 row2("User name starts with <input name=search_string>", "<input type=radio name=search_type value=\"name_prefix\" checked >");113 row2("User name starts with <input type=text name=search_string>", "<input type=radio name=search_type value=\"name_prefix\" checked >"); 114 114 row2("Decreasing sign-up time", "<input type=radio name=search_type value=\"date\">"); 115 115 row2("Decreasing average credit", "<input type=radio name=search_type value=\"rac\">"); 116 116 row2("Decreasing total credit", "<input type=radio name=search_type value=\"total\">"); -
user/white.css
1 /* General */2 3 1 a, a:link, a:visited, a:active { 4 color: #0069A1; 5 text-decoration: none; 2 color: #0069A1; 6 3 } 7 4 8 a:hover { text-decoration: underline; }9 10 5 body { 11 background-image: url("img/gray_gradient.png"); 12 background-repeat: repeat-x; 13 background-color: white; 14 font-family: Verdana, Arial, Sans Serif; 15 font-size: 13px; 16 margin: 5px 10px; 17 color: black; 6 background: #fff url("img/gray_gradient.png") repeat-x; 7 color: black; 18 8 } 19 9 20 h1, h2 {21 font-size: x-large;22 font-weight: normal;23 }24 25 10 h1 { 26 color: #203C66; 27 margin: 10px; 11 color: #203C66; 28 12 } 29 13 30 h3, h4 { font-weight: bold; }31 32 14 hr { 33 size: 0px; 34 border-top: 2px solid #e8e8e8; 35 margin: 8px 2px; 15 border-top: 2px solid #e8e8e8; 36 16 } 37 17 38 table {39 padding: 4px;40 margin: 2px;41 }42 43 18 table.bordered { 44 border: 2px solid #e8e8e8; 45 -moz-border-radius: 6px; 46 -webkit-border-radius: 6px; 47 -khtml-border-radius: 6px; 48 border-radius: 6px; 19 border-color: #e8e8e8; 49 20 } 50 21 51 22 th { 52 background-color: #c0c0c0; 53 font-weight: bold; 54 vertical-align: top; 23 background-color: #c0c0c0; 55 24 } 56 25 57 td { 58 vertical-align: top; 59 padding: 4px; 26 td.bordered { 27 border-color: gray; 60 28 } 61 29 62 td. bordered{63 border: 1px solid gray;30 td.indent { 31 border-color: #fff; 64 32 } 65 33 66 td.indent { border-left: 4px solid white; }67 68 34 td.heading { 69 font-weight: bold; 70 margin: 4px 0px; 71 padding: 8px; 72 background-color: #d8d8d8; 35 background-color: #d8d8d8; 73 36 } 74 37 75 38 td.fieldname { 76 background-color: #eeeeee; 77 text-align: right; 78 padding-right: 10px; 79 margin: 2px 0px; 39 background-color: #eee; 80 40 } 81 41 82 td.field value {83 margin: 2px 0px; 84 vertical-align: middle;42 td.fieldname_error, 43 td.fieldvalue_error { 44 background-color: #f88; 85 45 } 86 46 87 td.fieldname_error {88 background-color: #ff8888;89 text-align: right;90 }91 92 td.fieldvalue_error {93 background-color: #ff8888;94 font-weight: bold;95 }96 97 td.navbar {98 border: 0px;99 text-align: center;100 vertical-align: middle;101 }102 103 47 td.friend { 104 background-color: #e8e8e8; 105 text-align: center; 106 vertical-align: middle; 48 background-color: #e8e8e8; 107 49 } 108 50 109 51 .row0 { 110 background-color: #d9d9d9; 111 text-align: left; 52 background-color: #d9d9d9; 112 53 } 54 113 55 .row1 { 114 background-color: #eeeeee; 115 text-align: left; 56 background-color: #eee; 116 57 } 117 58 118 59 .highlighted_row0 { 119 background-color: #b9d9f9; 120 text-align: left; 60 background-color: #b9d9f9; 121 61 } 62 122 63 .highlighted_row1 { 123 background-color: #ceeefe; 124 text-align: left; 64 background-color: #ceeefe; 125 65 } 126 66 127 .row_hd0 { background-color: #cffacf; } 128 129 .row_hd1 { background-color: #defade; } 130 131 tr.message { background-color: #e0e0e0; } 132 133 input[type="text"], select, textarea, .button { 134 border: 1px solid #d8d8d8; 135 -moz-border-radius: 5px; 136 -webkit-border-radius: 5px; 137 -khtml-border-radius: 5px; 138 border-radius: 5px; 139 padding: 2px 4px; 140 font-size: 12px; 67 .row_hd0 { 68 background-color: #cffacf; 141 69 } 142 70 143 input[type="button"], input[type="submit"], input.btn { 144 margin: 2px 0px; 145 background: #d4d0c8; 146 margin-right: 0.6em; 147 color: #203C66; 148 border: 1px solid #a8a8a8; 149 font-size: 12px; 150 font-weight: normal; 71 .row_hd1 { 72 background-color: #defade; 151 73 } 152 74 153 /* IE6 doesn't understand [type=XXXX] so we factor this out into its own */ 154 .button { 155 margin: 2px 0px; 156 background: #d4d0c8; 157 margin-right: 0.6em; 158 white-space: nowrap; 159 color: #203C66; 160 border: 1px solid #a8a8a8; 161 font-size: 0.9em; 162 font-weight: normal; 163 line-height: 2em; 75 tr.message { 76 background-color: #e0e0e0; 164 77 } 165 78 166 .button:hover { 167 background: #edece8; 168 text-decoration:none; 79 input[type="button"], 80 input[type="submit"], 81 .btn, 82 a.button { 83 background: #f2f2f2 url(img/white-grad.png) repeat-x scroll left top; 84 color: black; 85 border-color: #ccc; 169 86 } 170 87 171 input[type="button"]:hover, input[type="submit"]:hover, input.btn:hover, .forum_toplinks a:hover { 172 background: #edece8; 88 input[type="button"]:hover, 89 input[type="submit"]:hover, 90 input.btn:hover, 91 .button:hover , 92 .forum_toplinks a:hover { 93 border: 1px solid #555; 94 color: #0069A1; 173 95 } 174 96 175 .actionlist { 176 display: inline; 177 list-style: none; 178 margin: 0; 179 padding: 0; 97 input[type="text"], select, textarea { 98 border-color: #d8d8d8; 180 99 } 181 .actionlist li {182 display: inline;183 }184 100 185 186 img { border: 0px; }187 188 img.userimg { border: 0px; }189 190 /* Main Page */191 192 101 #news { 193 background-color: #dff0ff; 194 border: 2px solid #add8e6; 195 padding: 10px; 196 margin: 4px; 197 -moz-border-radius: 10px; 198 -webkit-border-radius: 10px; 199 -khtml-border-radius: 10px; 200 border-radius: 10px; 102 background-color: #dff0ff; 103 border-color: #add8e6; 201 104 } 202 105 203 #news h2, #uotd h2, #mainnav h2 {204 margin-top: 0px;205 font-size: 1.2em;206 font-weight: bold;207 }208 209 106 #news h3 { 210 color: #666666; 211 font-size: 1em; 212 margin-bottom: 2px; 107 color: #666; 213 108 } 214 109 215 #news p {216 margin-top: 0px;217 }218 219 110 #uotd { 220 background-color: #d3d3d3; 221 border: 2px solid #eeeeee; 222 padding: 10px; 223 margin: 4px; 224 -moz-border-radius: 10px; 225 -webkit-border-radius: 10px; 226 -khtml-border-radius: 10px; 227 border-radius: 10px; 111 background-color: #d3d3d3; 112 border-color: #eee; 228 113 } 229 114 230 /* Forum */231 232 115 td.category , tr.subtitle{ 233 background-color: #dddddd; 234 border: 0px; 235 font-weight: bold; 236 margin: 6px 0px; 116 background-color: #ddd; 237 117 } 238 118 239 th {240 font-weight: bold;241 margin: 4px 2px;242 padding: 4px;243 }244 245 119 td.postheader { 246 background-color: #eeeeee; 247 height: 24px; 248 margin-left: 4px; 249 padding-left: 8px; 250 -moz-border-radius: 0 10px; 251 -webkit-border-radius-bottomleft: 10px; 252 -webkit-border-radius-bottomright: 10px; 253 -khtml-border-radius-bottomleft: 10px; 254 -khtml-border-radius-bottomright: 10px; 255 border-radius-bottomleft: 10px; 256 border-radius-bottomright: 10px; 120 background-color: #eee; 257 121 } 258 122 259 123 td.postbody { 260 font-size: 9pt; 261 margin-left: 4px; 262 background: transparent url('img/75pct_white.png'); 124 background: transparent url('img/75pct_white.png'); 263 125 } 264 126 265 127 td.postfooter { 266 background-color: #eeeeee; 267 height: 26px; 268 margin-left: 4px; 269 padding-left: 8px; 270 -moz-border-radius: 10px 10px 0 0; 271 -khtml-border-radius-topleft: 10px; 272 -khtml-border-radius-topright: 10px; 273 -webkit-border-radius-topleft: 10px; 274 -webkit-border-radius-topright: 10px; 275 border-radius-topleft: 10px; 276 border-radius-topright: 10px; 128 background-color: #eee; 277 129 } 278 130 279 tr.helpdeskseperator { height: 10pt; }280 281 131 tr.postseperator { 282 background-color: #c8c8c8; 283 border: 1px solid #aaaaaa; 284 margin: 4px 0px; 132 background-color: #c8c8c8; 133 border-color: #aaa; 285 134 } 286 135 287 td.threadline { text-align: left; } 288 289 td.numbers { 290 text-align: center; 136 div.authorcol { 137 background-color: white; 138 border-color: #c8c8c8; 291 139 } 292 140 293 td.numbers{294 text-align: left;141 .authorinfo img { 142 border-color: #a8a8a8; 295 143 } 296 144 297 td.lastpost {298 }299 300 .title {301 font-size: 14px;302 font-weight: bold;303 }304 305 .description {306 font-size: 80%;307 font-weight: normal;308 }309 310 .authorcol {311 width: 136px;312 overflow: hidden;313 }314 315 div.authorcol {316 border: 1px solid #c8c8c8;317 background-color: white;318 padding: 8px 5px;319 width: 120px;320 margin-left: 2px;321 -moz-border-radius: 10px;322 -webkit-border-radius: 10px;323 -khtml-border-radius: 10px;324 border-radius: 10px;325 }326 327 .authorinfo img {328 border: 1px solid #a8a8a8;329 margin: 3px 9px;330 }331 332 .authorcol input { margin: 4px 10px; }333 334 145 blockquote.postbody { 335 border-left: 2px solid #0089e1; 336 background-color: #f5fffa; 337 padding: 2px 6px; 338 margin: 0px 6px 0px 10px; 339 font-style: italic; 340 } 341 342 #thread { 343 width: 100%; 344 table-layout: fixed; 345 overflow: visible; 146 border-left-color: #0089e1; 147 background-color: #f5fffa; 346 148 } 347 149 348 .forum_toplinks td {349 vertical-align: middle;350 }351 352 span.page_title {353 font-size: 24px;354 margin: 20px;355 }356 357 span.note {358 font-weight: normal;359 font-size: 0.9em;360 }361 362 150 span.news_date { 363 color: #646464; 364 font-size: 0.9em; 151 color: #646464; 365 152 } 366 span.news_title {367 font-weight: bold;368 }369 153 370 span.inboxunread {371 font-weight: bold;372 }373 374 154 span.highlight { 375 background-color: #ffffcc;155 background-color: #ffc; 376 156 } 377 157 378 .nobr{379 white-space: nowrap;380 }381 382 158 .code { 383 font-family: "Courier New", courier, monospace; 384 display: block; 385 margin-left: 5em; 386 border-left: 3px solid #ccaaaa; 387 padding-left: 1em; 388 white-space: nowrap; 389 overflow: auto; 159 border-left-color: #caa; 390 160 } 391 161 392 .smalltext {393 font-size: 0.8em;394 }395 396 162 .error { 397 color: #ff0000; 398 font-weight: bold; 399 font-size: 1.1em; 163 color: #f00; 400 164 } 401 165 402 166 .notice { 403 color: #009900; 404 font-weight: bold; 405 font-size: 1.1em; 167 color: #090; 406 168 } 407 169 408 170 #preview { 409 border: 2px solid #cccccc; 410 background-color: #eeeeee; 411 margin: 1em; 412 padding: 0.2em; 171 border-color: #ccc; 172 background-color: #eee; 413 173 } 414 174 415 175 #preview .header { 416 font-weight: bold; 417 font-size: 1.3em; 418 border-bottom: 1px solid #cccccc; 176 border-bottom-color: #ccc; 419 177 } 420 178 421 179 /* Server Status Page */ … … 425 183 td.notrunning { background-color: #feff6f; } 426 184 427 185 td.disabled { background-color: #ff4f4f; } 428 429 /* IE hack */430 431 * html body .code {432 white-space: normal;433 }