BOINC web site: make download buttons look nicer

This commit is contained in:
David Anderson 2014-03-19 16:49:59 -07:00
parent 8b2d7ffba1
commit 204ff69f65
2 changed files with 23 additions and 23 deletions

View File

@ -46,31 +46,31 @@ function download_link($pname, $button=false) {
$vbox_path = "dl/$vbox_file";
$vbox_size = number_format(filesize($vbox_path)/1000000, 2);
echo "
<table cellpadding=10><tr valign=top><td class=heading>
<table cellpadding=10><tr valign=top><td class=button>
<a href=\"$vbox_url\"><font size=4><u>"
.tra("Download BOINC + VirtualBox")
."</u></font></a>
<br>"
.sprintf(tra("for %s"), $long_name)
." ($vbox_size MB)"
."<br>"
.sprintf(tra("BOINC version %s"), $num)
."<br>"
.sprintf(tra("VirtualBox version %s"), $vbox_version)
."</td></tr>
."<br><span class=note>"
.sprintf(tra("BOINC %s"), $num)
.", "
.sprintf(tra("VirtualBox %s"), $vbox_version)
."</span></td></tr>
</table>
";
echo "</td><td>\n";
}
echo "
<table cellpadding=10><tr valign=top><td class=heading>
<table cellpadding=10><tr valign=top><td class=button>
<a href=\"$url\"><font size=4><u>".tra("Download BOINC")."</u></font></a>
<br>"
.sprintf(tra("for %s"), $long_name)
." ($s MB)"
."<br>"
.sprintf(tra("BOINC version %s"), $num)
."</td></tr>
."<br><span class=note>"
.sprintf(tra("BOINC %s"), $num)
."</span></td></tr>
</table>
";
if ($vbox_file) {

View File

@ -42,8 +42,7 @@ table.box {
table.bordered {
border: 2px solid #e8e8e8;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
}
body {
@ -75,7 +74,7 @@ span.inboxunread {
span.note{
font-weight: normal;
font-size: 0.9em;
font-size: 0.8em;
}
span.news_date {
color: rgb(100,100,100);
@ -104,25 +103,28 @@ td.indent {
border-left: 4px solid white;
}
td.button{
background-color: rgb(223, 240, 255);
border: 1px solid lightblue;
border-radius: 10px;
}
td.heading{
background-color: rgb(223, 240, 255);
border: 1px solid lightblue;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
}
td.heading_left {
background-color: rgb(223, 240, 255);
border: 1px solid lightgray;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
}
td.heading_right {
background-color: rgb(255, 255, 214);
border: 1px solid goldenrod;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
}
td.fieldname {
@ -200,15 +202,13 @@ input.btn {
border-right: none;
padding: 3px 6px;
white-space: nowrap;
-moz-border-radius: 6px 0px 0px 6px;
-webkit-border-radius: 6px 0px 0px 6px;
border-radius: 6px 0px 0px 6px;
}
.rowlineright {
border: 1px solid lightblue;
border-left: none;
-moz-border-radius: 0px 6px 6px 0px;
-webkit-border-radius: 0px 6px 6px 0px;
border-radius: 0px 6px 6px 0px;
}
.dev { color: red; font-weight: bold }