summaryrefslogtreecommitdiffabout
path: root/cgit.css
authorLars Hjemli <hjemli@gmail.com>2007-11-16 08:52:03 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-11-16 08:52:03 (UTC)
commit6ef637e0908ca5a14675b3513f48cd390d3757fe (patch) (side-by-side diff)
treee9e74f73e3d52d5b1fb931ac92a99476d09130af /cgit.css
parentfd90d2826a979f3844312718ad130880cf19d52c (diff)
downloadcgit-6ef637e0908ca5a14675b3513f48cd390d3757fe.zip
cgit-6ef637e0908ca5a14675b3513f48cd390d3757fe.tar.gz
cgit-6ef637e0908ca5a14675b3513f48cd390d3757fe.tar.bz2
Use tables for page layout
It feels like the Right Thing, and it fixes some rendering problems in a much used webbrowser. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.css') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.css49
1 files changed, 29 insertions, 20 deletions
diff --git a/cgit.css b/cgit.css
index 565427f..17c2712 100644
--- a/cgit.css
+++ b/cgit.css
@@ -10,3 +10,3 @@ body {
background: white;
- padding-left: 4px;
+ padding: 4px;
}
@@ -80,3 +80,9 @@ img {
-div#sidebar {
+table#layout {
+ border-collapse: collapse;
+ border: none;
+ margin: 0px;
+}
+
+td#sidebar {
vertical-align: top;
@@ -84,11 +90,15 @@ div#sidebar {
padding: 0px 0px 0px 0px;
- margin: 4px;
- float: left;
+ margin: 0px;
}
-div#logo {
+td#sidebar table {
+ border-collapse: separate;
+ border-spacing: 0px;
margin: 0px;
- padding: 4px 0px 4px 0px;
- text-align: center;
+ padding: 0px;
background-color: #ccc;
+}
+
+td#sidebar table.sidebar td.sidebar {
+ padding: 4px;
border-top: solid 1px #eee;
@@ -99,6 +109,6 @@ div#logo {
-div#sidebar div.infobox {
- margin: 0px 0px 0px 0px;
- padding: 0.5em;
- text-align: left;
+div#logo {
+ margin: 0px;
+ padding: 4px 0px 4px 0px;
+ text-align: center;
background-color: #ccc;
@@ -110,3 +120,3 @@ div#sidebar div.infobox {
-div#sidebar div.infobox h1 {
+td#sidebar h1 {
font-size: 10pt;
@@ -116,3 +126,3 @@ div#sidebar div.infobox h1 {
-div#sidebar div.infobox h1.first {
+td#sidebar h1.first {
margin-top: 0px;
@@ -120,3 +130,3 @@ div#sidebar div.infobox h1.first {
-div#sidebar div.infobox a.menu {
+td#sidebar a.menu {
display: block;
@@ -127,3 +137,3 @@ div#sidebar div.infobox a.menu {
-div#sidebar div.infobox a.menu:hover {
+td#sidebar a.menu:hover {
background-color: #bbb;
@@ -132,3 +142,3 @@ div#sidebar div.infobox a.menu:hover {
-div#sidebar div.infobox select {
+td#sidebar select {
width: 100%;
@@ -137,4 +147,4 @@ div#sidebar div.infobox select {
-td#branch-dropdown-cell {
- width: 99%;
+td#sidebar form {
+ text-align: right;
}
@@ -142,3 +152,2 @@ td#branch-dropdown-cell {
input#switch-btn {
- width: 20px;
margin: 2px 0px 0px 0px;
@@ -146,3 +155,3 @@ input#switch-btn {
-div#sidebar div.infobox input.txt {
+td#sidebar input.txt {
width: 100%;