{"thread":{"id":"4540","subject":"[PATCH] Move gitweb style to gitweb.css","startedAt":"2006-06-17T09:23:56Z","lastAt":"2006-06-18T04:32:40Z","messageCount":3,"participants":["Jakub Narebski","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"21948","messageId":"200606171123.56643.jnareb@gmail.com","threadId":"4540","inReplyTo":null,"subject":"[PATCH] Move gitweb style to gitweb.css","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-06-17T09:23:56Z","receivedAt":"2006-06-17T09:23:56Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Move gitweb style from embedded <style> element in gitweb/gitweb.cgi\nto external CSS file gitweb/gitweb.css.\n\n---\nExternal CSS file can be downloaded only once and cached.\n\n\n gitweb/gitweb.cgi |   64 +++--------------------------------------------------\n gitweb/gitweb.css |   54 +++++++++++++++++++++++++++++++++++++++++++++\n 2 files changed, 58 insertions(+), 60 deletions(-)\n create mode 100644 gitweb/gitweb.css\n\na056a67d019c513754ae33e2b2c6b75da7323b38\ndiff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi\nindex ea21fbe..9d902b7 100755\n--- a/gitweb/gitweb.cgi\n+++ b/gitweb/gitweb.cgi\n@@ -38,6 +38,9 @@ my $home_link =\t\t$my_uri;\n # html text to include at home page\n my $home_text =\t\t\"indextext.html\";\n \n+# URI of default stylesheet\n+my $stylesheet = \t\"gitweb.css\";\n+\n # source of projects list\n #my $projects_list =\t$projectroot;\n my $projects_list =\t\"index/index.aux\";\n@@ -257,68 +260,9 @@ sub git_header_html {\n <head>\n <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\"/>\n <meta name=\"robots\" content=\"index, nofollow\"/>\n+<link rel=\"stylesheet\" href=\"$stylesheet\"/> \n <title>$title</title>\n $rss_link\n-<style type=\"text/css\">\n-body {\n-\tfont-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px;\n-\tmargin:10px; background-color:#ffffff; color:#000000;\n-}\n-a { color:#0000cc; }\n-a:hover, a:visited, a:active { color:#880000; }\n-div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; }\n-div.page_header a:visited, a.header { color:#0000cc; }\n-div.page_header a:hover { color:#880000; }\n-div.page_nav { padding:8px; }\n-div.page_nav a:visited { color:#0000cc; }\n-div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px}\n-div.page_footer { height:17px; padding:4px 8px; background-color: #d9d8d1; }\n-div.page_footer_text { float:left; color:#555555; font-style:italic; }\n-div.page_body { padding:8px; }\n-div.title, a.title {\n-\tdisplay:block; padding:6px 8px;\n-\tfont-weight:bold; background-color:#edece6; text-decoration:none; color:#000000;\n-}\n-a.title:hover { background-color: #d9d8d1; }\n-div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; }\n-div.log_body { padding:8px 8px 8px 150px; }\n-span.age { position:relative; float:left; width:142px; font-style:italic; }\n-div.log_link {\n-\tpadding:0px 8px;\n-\tfont-size:10px; font-family:sans-serif; font-style:normal;\n-\tposition:relative; float:left; width:136px;\n-}\n-div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; }\n-a.list { text-decoration:none; color:#000000; }\n-a.list:hover { text-decoration:underline; color:#880000; }\n-a.text { text-decoration:none; color:#0000cc; }\n-a.text:visited { text-decoration:none; color:#880000; }\n-a.text:hover { text-decoration:underline; color:#880000; }\n-table { padding:8px 4px; }\n-th { padding:2px 5px; font-size:12px; text-align:left; }\n-tr.light:hover { background-color:#edece6; }\n-tr.dark { background-color:#f6f6f0; }\n-tr.dark:hover { background-color:#edece6; }\n-td { padding:2px 5px; font-size:12px; vertical-align:top; }\n-td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; }\n-div.pre { font-family:monospace; font-size:12px; white-space:pre; }\n-div.diff_info { font-family:monospace; color:#000099; background-color:#edece6; font-style:italic; }\n-div.index_include { border:solid #d9d8d1; border-width:0px 0px 1px; padding:12px 8px; }\n-div.search { margin:4px 8px; position:absolute; top:56px; right:12px }\n-a.linenr { color:#999999; text-decoration:none }\n-a.rss_logo {\n-\tfloat:right; padding:3px 0px; width:35px; line-height:10px;\n-\tborder:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e;\n-\tcolor:#ffffff; background-color:#ff6600;\n-\tfont-weight:bold; font-family:sans-serif; font-size:10px;\n-\ttext-align:center; text-decoration:none;\n-}\n-a.rss_logo:hover { background-color:#ee5500; }\n-span.tag {\n-\tpadding:0px 4px; font-size:10px; font-weight:normal;\n-\tbackground-color:#ffffaa; border:1px solid; border-color:#ffffcc #ffee00 #ffee00 #ffffcc;\n-}\n-</style>\n </head>\n <body>\n EOF\ndiff --git a/gitweb/gitweb.css b/gitweb/gitweb.css\nnew file mode 100644\nindex 0000000..6b1fd23\n--- /dev/null\n+++ b/gitweb/gitweb.css\n@@ -0,0 +1,54 @@\n+a { color:#0000cc; }\n+a:hover, a:visited, a:active { color:#880000; }\n+div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; }\n+div.page_header a:visited, a.header { color:#0000cc; }\n+div.page_header a:hover { color:#880000; }\n+div.page_nav { padding:8px; }\n+div.page_nav a:visited { color:#0000cc; }\n+div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px}\n+div.page_footer { height:17px; padding:4px 8px; background-color: #d9d8d1; }\n+div.page_footer_text { float:left; color:#555555; font-style:italic; }\n+div.page_body { padding:8px; }\n+div.title, a.title {\n+\tdisplay:block; padding:6px 8px;\n+\tfont-weight:bold; background-color:#edece6; text-decoration:none; color:#000000;\n+}\n+a.title:hover { background-color: #d9d8d1; }\n+div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; }\n+div.log_body { padding:8px 8px 8px 150px; }\n+span.age { position:relative; float:left; width:142px; font-style:italic; }\n+div.log_link {\n+\tpadding:0px 8px;\n+\tfont-size:10px; font-family:sans-serif; font-style:normal;\n+\tposition:relative; float:left; width:136px;\n+}\n+div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; }\n+a.list { text-decoration:none; color:#000000; }\n+a.list:hover { text-decoration:underline; color:#880000; }\n+a.text { text-decoration:none; color:#0000cc; }\n+a.text:visited { text-decoration:none; color:#880000; }\n+a.text:hover { text-decoration:underline; color:#880000; }\n+table { padding:8px 4px; }\n+th { padding:2px 5px; font-size:12px; text-align:left; }\n+tr.light:hover { background-color:#edece6; }\n+tr.dark { background-color:#f6f6f0; }\n+tr.dark:hover { background-color:#edece6; }\n+td { padding:2px 5px; font-size:12px; vertical-align:top; }\n+td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; }\n+div.pre { font-family:monospace; font-size:12px; white-space:pre; }\n+div.diff_info { font-family:monospace; color:#000099; background-color:#edece6; font-style:italic; }\n+div.index_include { border:solid #d9d8d1; border-width:0px 0px 1px; padding:12px 8px; }\n+div.search { margin:4px 8px; position:absolute; top:56px; right:12px }\n+a.linenr { color:#999999; text-decoration:none }\n+a.rss_logo {\n+\tfloat:right; padding:3px 0px; width:35px; line-height:10px;\n+\tborder:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e;\n+\tcolor:#ffffff; background-color:#ff6600;\n+\tfont-weight:bold; font-family:sans-serif; font-size:10px;\n+\ttext-align:center; text-decoration:none;\n+}\n+a.rss_logo:hover { background-color:#ee5500; }\n+span.tag {\n+\tpadding:0px 4px; font-size:10px; font-weight:normal;\n+\tbackground-color:#ffffaa; border:1px solid; border-color:#ffffcc #ffee00 #ffee00 #ffffcc;\n+}\n-- \n1.3.0\n"},{"id":"21985","messageId":"7vhd2j5hi2.fsf@assigned-by-dhcp.cox.net","threadId":"4540","inReplyTo":"200606171123.56643.jnareb@gmail.com","subject":"Re: [PATCH] Move gitweb style to gitweb.css","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-06-18T02:23:33Z","receivedAt":"2006-06-18T02:23:33Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Jakub Narebski <jnareb@gmail.com> writes:\n\n> Move gitweb style from embedded <style> element in gitweb/gitweb.cgi\n> to external CSS file gitweb/gitweb.css.\n>\n> ---\n> External CSS file can be downloaded only once and cached.\n\nThat's good, but I'm wondering if you dropped this deliberately\nor it was just an accident.\n\n> -body {\n> -\tfont-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px;\n> -\tmargin:10px; background-color:#ffffff; color:#000000;\n> -}\n"},{"id":"21988","messageId":"e72l0s$6d0$1@sea.gmane.org","threadId":"4540","inReplyTo":"7vhd2j5hi2.fsf@assigned-by-dhcp.cox.net","subject":"Re: [PATCH] Move gitweb style to gitweb.css","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-06-18T04:32:40Z","receivedAt":"2006-06-18T04:32:40Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Junio C Hamano wrote:\n\n> Jakub Narebski <jnareb@gmail.com> writes:\n> \n>> Move gitweb style from embedded <style> element in gitweb/gitweb.cgi\n>> to external CSS file gitweb/gitweb.css.\n>>\n>> ---\n>> External CSS file can be downloaded only once and cached.\n> \n> That's good, but I'm wondering if you dropped this deliberately\n> or it was just an accident.\n> \n>> -body {\n>> -    font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px;\n>> -    margin:10px; background-color:#ffffff; color:#000000;\n>> -}\n\nOoops. Amended commit follows.\n\nNote: this patch is of temporary use, as I plan to merge xmms2 additions \nto gitweb, which include separate CSS file too.\n\n-- >8 --\nFrom nobody Mon Sep 17 00:00:00 2001\nFrom: Jakub Narebski <jnareb@gmail.com>\nDate: Sat Jun 17 11:15:18 2006 +0200\nSubject: [PATCH] Move gitweb style to gitweb.css\n\nMove gitweb style from embedded <style> element in gitweb/gitweb.cgi\nto external CSS file gitweb/gitweb.css. Introduced new configuration\nvariable $stylesheet.\n\n---\n\n gitweb/gitweb.cgi |   64 +++--------------------------------------------------\n gitweb/gitweb.css |   58 ++++++++++++++++++++++++++++++++++++++++++++++++\n 2 files changed, 62 insertions(+), 60 deletions(-)\n create mode 100644 gitweb/gitweb.css\n\n42b89d8cbc6bdfed33df7bdadf45a3254cf8f1ae\ndiff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi\nindex ea21fbe..9d902b7 100755\n--- a/gitweb/gitweb.cgi\n+++ b/gitweb/gitweb.cgi\n@@ -38,6 +38,9 @@ my $home_link =               $my_uri;\n # html text to include at home page\n my $home_text =                \"indextext.html\";\n \n+# URI of default stylesheet\n+my $stylesheet =       \"gitweb.css\";\n+\n # source of projects list\n #my $projects_list =   $projectroot;\n my $projects_list =    \"index/index.aux\";\n@@ -257,68 +260,9 @@ sub git_header_html {\n <head>\n <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\"/>\n <meta name=\"robots\" content=\"index, nofollow\"/>\n+<link rel=\"stylesheet\" href=\"$stylesheet\"/> \n <title>$title</title>\n $rss_link\n-<style type=\"text/css\">\n-body {\n-       font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px;\n-       margin:10px; background-color:#ffffff; color:#000000;\n-}\n-a { color:#0000cc; }\n-a:hover, a:visited, a:active { color:#880000; }\n-div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; }\n-div.page_header a:visited, a.header { color:#0000cc; }\n-div.page_header a:hover { color:#880000; }\n-div.page_nav { padding:8px; }\n-div.page_nav a:visited { color:#0000cc; }\n-div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px}\n-div.page_footer { height:17px; padding:4px 8px; background-color: #d9d8d1; }\n-div.page_footer_text { float:left; color:#555555; font-style:italic; }\n-div.page_body { padding:8px; }\n-div.title, a.title {\n-       display:block; padding:6px 8px;\n-       font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000;\n-}\n-a.title:hover { background-color: #d9d8d1; }\n-div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; }\n-div.log_body { padding:8px 8px 8px 150px; }\n-span.age { position:relative; float:left; width:142px; font-style:italic; }\n-div.log_link {\n-       padding:0px 8px;\n-       font-size:10px; font-family:sans-serif; font-style:normal;\n-       position:relative; float:left; width:136px;\n-}\n-div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; }\n-a.list { text-decoration:none; color:#000000; }\n-a.list:hover { text-decoration:underline; color:#880000; }\n-a.text { text-decoration:none; color:#0000cc; }\n-a.text:visited { text-decoration:none; color:#880000; }\n-a.text:hover { text-decoration:underline; color:#880000; }\n-table { padding:8px 4px; }\n-th { padding:2px 5px; font-size:12px; text-align:left; }\n-tr.light:hover { background-color:#edece6; }\n-tr.dark { background-color:#f6f6f0; }\n-tr.dark:hover { background-color:#edece6; }\n-td { padding:2px 5px; font-size:12px; vertical-align:top; }\n-td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; }\n-div.pre { font-family:monospace; font-size:12px; white-space:pre; }\n-div.diff_info { font-family:monospace; color:#000099; background-color:#edece6; font-style:italic; }\n-div.index_include { border:solid #d9d8d1; border-width:0px 0px 1px; padding:12px 8px; }\n-div.search { margin:4px 8px; position:absolute; top:56px; right:12px }\n-a.linenr { color:#999999; text-decoration:none }\n-a.rss_logo {\n-       float:right; padding:3px 0px; width:35px; line-height:10px;\n-       border:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e;\n-       color:#ffffff; background-color:#ff6600;\n-       font-weight:bold; font-family:sans-serif; font-size:10px;\n-       text-align:center; text-decoration:none;\n-}\n-a.rss_logo:hover { background-color:#ee5500; }\n-span.tag {\n-       padding:0px 4px; font-size:10px; font-weight:normal;\n-       background-color:#ffffaa; border:1px solid; border-color:#ffffcc #ffee00 #ffee00 #ffffcc;\n-}\n-</style>\n </head>\n <body>\n EOF\ndiff --git a/gitweb/gitweb.css b/gitweb/gitweb.css\nnew file mode 100644\nindex 0000000..5900916\n--- /dev/null\n+++ b/gitweb/gitweb.css\n@@ -0,0 +1,58 @@\n+body {\n+       font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px;\n+       margin:10px; background-color:#ffffff; color:#000000;\n+}\n+a { color:#0000cc; }\n+a:hover, a:visited, a:active { color:#880000; }\n+div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; }\n+div.page_header a:visited, a.header { color:#0000cc; }\n+div.page_header a:hover { color:#880000; }\n+div.page_nav { padding:8px; }\n+div.page_nav a:visited { color:#0000cc; }\n+div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px}\n+div.page_footer { height:17px; padding:4px 8px; background-color: #d9d8d1; }\n+div.page_footer_text { float:left; color:#555555; font-style:italic; }\n+div.page_body { padding:8px; }\n+div.title, a.title {\n+       display:block; padding:6px 8px;\n+       font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000;\n+}\n+a.title:hover { background-color: #d9d8d1; }\n+div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; }\n+div.log_body { padding:8px 8px 8px 150px; }\n+span.age { position:relative; float:left; width:142px; font-style:italic; }\n+div.log_link {\n+       padding:0px 8px;\n+       font-size:10px; font-family:sans-serif; font-style:normal;\n+       position:relative; float:left; width:136px;\n+}\n+div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; }\n+a.list { text-decoration:none; color:#000000; }\n+a.list:hover { text-decoration:underline; color:#880000; }\n+a.text { text-decoration:none; color:#0000cc; }\n+a.text:visited { text-decoration:none; color:#880000; }\n+a.text:hover { text-decoration:underline; color:#880000; }\n+table { padding:8px 4px; }\n+th { padding:2px 5px; font-size:12px; text-align:left; }\n+tr.light:hover { background-color:#edece6; }\n+tr.dark { background-color:#f6f6f0; }\n+tr.dark:hover { background-color:#edece6; }\n+td { padding:2px 5px; font-size:12px; vertical-align:top; }\n+td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; }\n+div.pre { font-family:monospace; font-size:12px; white-space:pre; }\n+div.diff_info { font-family:monospace; color:#000099; background-color:#edece6; font-style:italic; }\n+div.index_include { border:solid #d9d8d1; border-width:0px 0px 1px; padding:12px 8px; }\n+div.search { margin:4px 8px; position:absolute; top:56px; right:12px }\n+a.linenr { color:#999999; text-decoration:none }\n+a.rss_logo {\n+       float:right; padding:3px 0px; width:35px; line-height:10px;\n+       border:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e;\n+       color:#ffffff; background-color:#ff6600;\n+       font-weight:bold; font-family:sans-serif; font-size:10px;\n+       text-align:center; text-decoration:none;\n+}\n+a.rss_logo:hover { background-color:#ee5500; }\n+span.tag {\n+       padding:0px 4px; font-size:10px; font-weight:normal;\n+       background-color:#ffffaa; border:1px solid; border-color:#ffffcc #ffee00 #ffee00 #ffffcc;\n+}\n-- \n1.3.0\n"}]}