diff options
| author | 2008-04-13 19:48:44 (JST) | |
|---|---|---|
| committer | 2008-04-13 19:48:44 (JST) | |
| commit | 76ba6287bfb533baca7285b107b5d975581d449d (patch) | |
| tree | 22445a77f5b87280ec980f9b4da5a511f1f27faf | |
| parent | 4a842288260a0b0c4a3d4032d441f7fd2afee699 (diff) | |
| parent | 28d781f34b2c2d4c2b994ef3953d1cf37d8f28f0 (diff) | |
| download | cgit-76ba6287bfb533baca7285b107b5d975581d449d.zip cgit-76ba6287bfb533baca7285b107b5d975581d449d.tar.gz | |
Merge branch 'lh/layout'
* lh/layout:
Make repository search case insensitive
Remove 'patch' link from tab, add to commit view
Implement minimal freetext search in the repolist
More layout fixes
Minor fixup in tree-view css
Reintroduce the branch switcher
Add fixed link to index page from repo header
Include diff in commit view
Replace sidebar/logo
| -rw-r--r-- | cgit.css | 190 | ||||
| -rw-r--r-- | cgit.h | 7 | ||||
| -rw-r--r-- | cgit.png | bin | 5406 -> 1840 bytes | |||
| -rw-r--r-- | ui-commit.c | 14 | ||||
| -rw-r--r-- | ui-repolist.c | 51 | ||||
| -rw-r--r-- | ui-shared.c | 154 | ||||
| -rw-r--r-- | ui-shared.h | 2 |
7 files changed, 238 insertions, 180 deletions
| @@ -11,142 +11,141 @@ body { | |||
| 11 | padding: 4px; | 11 | padding: 4px; |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | a { | ||
| 15 | color: blue; | ||
| 16 | text-decoration: none; | ||
| 17 | } | ||
| 18 | |||
| 19 | a:hover { | ||
| 20 | text-decoration: underline; | ||
| 21 | } | ||
| 22 | |||
| 14 | table { | 23 | table { |
| 15 | border-collapse: collapse; | 24 | border-collapse: collapse; |
| 16 | } | 25 | } |
| 17 | 26 | ||
| 18 | h2 { | 27 | table#header { |
| 19 | font-size: 120%; | 28 | width: 100%; |
| 20 | font-weight: bold; | 29 | margin-bottom: 1em; |
| 21 | margin-top: 0em; | ||
| 22 | margin-bottom: 0.25em; | ||
| 23 | } | 30 | } |
| 24 | 31 | ||
| 25 | h3 { | 32 | table#header td.logo { |
| 26 | margin-top: 0em; | 33 | width: 96px; |
| 27 | font-size: 100%; | ||
| 28 | font-weight: normal; | ||
| 29 | } | 34 | } |
| 30 | 35 | ||
| 31 | h4 { | 36 | table#header td.main { |
| 32 | margin-top: 1.5em; | 37 | font-size: 250%; |
| 33 | margin-bottom: 0.1em; | 38 | padding-left: 10px; |
| 34 | font-size: 100%; | ||
| 35 | font-weight: bold; | ||
| 36 | } | 39 | } |
| 37 | 40 | ||
| 38 | a { | 41 | table#header td.main a { |
| 39 | color: #600; | 42 | color: #000; |
| 40 | text-decoration: none; | ||
| 41 | } | 43 | } |
| 42 | 44 | ||
| 43 | a:hover { | 45 | table#header td.form { |
| 44 | background-color: #ddd; | 46 | text-align: right; |
| 45 | text-decoration: none; | 47 | vertical-align: bottom; |
| 48 | padding-right: 1em; | ||
| 49 | padding-bottom: 2px; | ||
| 46 | } | 50 | } |
| 47 | 51 | ||
| 48 | table.list { | 52 | table#header td.form form, |
| 49 | border: none; | 53 | table#header td.form input, |
| 50 | border-collapse: collapse; | 54 | table#header td.form select { |
| 55 | font-size: 90%; | ||
| 51 | } | 56 | } |
| 52 | 57 | ||
| 53 | table.list tr { | 58 | table#header td.sub { |
| 54 | background: white; | 59 | color: #777; |
| 60 | border-top: solid 1px #ccc; | ||
| 61 | padding-left: 10px; | ||
| 55 | } | 62 | } |
| 56 | 63 | ||
| 57 | table.list tr:hover { | 64 | table.tabs { |
| 58 | background: #f8f8f8; | 65 | /* border-bottom: solid 2px #ccc; */ |
| 66 | border-collapse: collapse; | ||
| 67 | margin-top: 2em; | ||
| 68 | margin-bottom: 0px; | ||
| 69 | width: 100%; | ||
| 59 | } | 70 | } |
| 60 | 71 | ||
| 61 | table.list tr.nohover:hover { | 72 | table.tabs td { |
| 62 | background: white; | 73 | padding: 0px 1em; |
| 74 | vertical-align: bottom; | ||
| 63 | } | 75 | } |
| 64 | 76 | ||
| 65 | table.list th { | 77 | table.tabs td a { |
| 66 | font-weight: bold; | 78 | padding: 2px 0.75em; |
| 67 | border-bottom: solid 1px #777; | 79 | color: #777; |
| 68 | padding: 0.1em 0.5em 0.1em 0.5em; | 80 | font-size: 110%; |
| 69 | vertical-align: baseline; | ||
| 70 | } | 81 | } |
| 71 | 82 | ||
| 72 | table.list td { | 83 | table.tabs td a.active { |
| 73 | border: none; | 84 | color: #000; |
| 74 | padding: 0.1em 0.5em 0.1em 0.5em; | 85 | background-color: #ccc; |
| 75 | } | 86 | } |
| 76 | 87 | ||
| 77 | img { | 88 | table.tabs td.form { |
| 78 | border: none; | 89 | text-align: right; |
| 79 | } | 90 | } |
| 80 | 91 | ||
| 81 | table#layout { | 92 | table.tabs td.form form { |
| 82 | border-collapse: collapse; | 93 | padding-bottom: 2px; |
| 83 | border: none; | 94 | font-size: 90%; |
| 84 | margin: 0px; | ||
| 85 | } | 95 | } |
| 86 | 96 | ||
| 87 | td#sidebar { | 97 | table.tabs td.form input, |
| 88 | vertical-align: top; | 98 | table.tabs td.form select { |
| 89 | width: 162px; | 99 | font-size: 90%; |
| 90 | padding: 0px 0px 0px 0px; | ||
| 91 | margin: 0px; | ||
| 92 | } | 100 | } |
| 93 | 101 | ||
| 94 | td#sidebar table { | 102 | div.content { |
| 95 | border-collapse: separate; | ||
| 96 | border-spacing: 0px; | ||
| 97 | margin: 0px; | 103 | margin: 0px; |
| 98 | padding: 0px; | 104 | padding: 2em; |
| 99 | background-color: #ccc; | 105 | border-top: solid 3px #ccc; |
| 106 | border-bottom: solid 3px #ccc; | ||
| 100 | } | 107 | } |
| 101 | 108 | ||
| 102 | td#sidebar table.sidebar td.sidebar { | 109 | |
| 103 | padding: 4px; | 110 | table.list { |
| 104 | border-top: solid 1px #eee; | 111 | width: 100%; |
| 105 | border-left: solid 1px #eee; | 112 | border: none; |
| 106 | border-right: solid 1px #aaa; | 113 | border-collapse: collapse; |
| 107 | border-bottom: solid 1px #aaa; | ||
| 108 | } | 114 | } |
| 109 | 115 | ||
| 110 | div#logo { | 116 | table.list tr { |
| 111 | margin: 0px; | 117 | background: white; |
| 112 | padding: 4px 0px 4px 0px; | ||
| 113 | text-align: center; | ||
| 114 | background-color: #ccc; | ||
| 115 | border-top: solid 1px #eee; | ||
| 116 | border-left: solid 1px #eee; | ||
| 117 | border-right: solid 1px #aaa; | ||
| 118 | border-bottom: solid 1px #aaa; | ||
| 119 | } | 118 | } |
| 120 | 119 | ||
| 121 | td#sidebar h1 { | 120 | table.list tr:hover { |
| 122 | font-size: 10pt; | 121 | background: #eee; |
| 123 | font-weight: bold; | ||
| 124 | margin: 8px 0px 0px 0px; | ||
| 125 | } | 122 | } |
| 126 | 123 | ||
| 127 | td#sidebar h1.first { | 124 | table.list tr.nohover:hover { |
| 128 | margin-top: 0px; | 125 | background: white; |
| 129 | } | 126 | } |
| 130 | 127 | ||
| 131 | td#sidebar a.menu { | 128 | table.list th { |
| 132 | display: block; | 129 | font-weight: bold; |
| 133 | background-color: #ccc; | 130 | /* color: #888; |
| 134 | padding: 0.1em 0.5em; | 131 | border-top: dashed 1px #888; |
| 135 | text-decoration: none; | 132 | border-bottom: dashed 1px #888; |
| 133 | */ | ||
| 134 | padding: 0.1em 0.5em 0.05em 0.5em; | ||
| 135 | vertical-align: baseline; | ||
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | td#sidebar a.menu:hover { | 138 | table.list td { |
| 139 | |||
