Merge pull request #310 from kristi/frontend-tweak

Frontend tweaks
This commit is contained in:
Corey Donohoe
2012-05-04 08:32:17 -07:00
8 changed files with 98 additions and 62 deletions
@@ -30,6 +30,7 @@ a {
-webkit-border-radius: 1em; -webkit-border-radius: 1em;
} }
.ff #gollum-editor,
.ie #gollum-editor { .ie #gollum-editor {
padding-bottom: 1em; padding-bottom: 1em;
} }
@@ -51,9 +52,9 @@ a {
background: #fff; background: #fff;
border: 1px solid #ddd; border: 1px solid #ddd;
color: #000; color: #000;
font-size: 1.3em; font-size: 1.1em;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
line-height: 1.8em; line-height: 1.5em;
margin: 1em 0 0.4em; margin: 1em 0 0.4em;
padding: 0.5em; padding: 0.5em;
width: 98%; width: 98%;
@@ -192,44 +193,36 @@ a#function-help:hover span { background-position: -405px -28px; }
#gollum-editor #gollum-editor-function-bar #gollum-editor-format-selector { #gollum-editor #gollum-editor-function-bar #gollum-editor-format-selector {
overflow: hidden; overflow: hidden;
padding: 0 0 1.1em 0; padding: .2em 0 .5em 0;
} }
#gollum-editor #gollum-editor-function-bar #gollum-editor #gollum-editor-function-bar
#gollum-editor-format-selector select { #gollum-editor-format-selector select {
background-color: #f9f9f9; background-color: #f9f9f9;
border: 1px solid transparent; border: 1px solid #ddd;
color: #333;
float: right; float: right;
font-size: 1.1em; font-size: 1em;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: bold; font-weight: bold;
line-height: 1.6em; line-height: 1.6em;
padding: 0.5em 0.7em; padding: 0.3em 0.4em;
margin-bottom: 0;
border-radius: 0.5em; border-radius: 0.5em;
-moz-border-radius: 0.5em; -moz-border-radius: 0.5em;
-webkit-border-radius: 0.5em; -webkit-border-radius: 0.5em;
-moz-outline: none;
}
#gollum-editor #gollum-editor-function-bar
#gollum-editor-format-selector select:hover {
background-color: #fff;
border: 1px solid #ddd;
-moz-outline: none;
} }
#gollum-editor #gollum-editor-function-bar #gollum-editor #gollum-editor-function-bar
#gollum-editor-format-selector label { #gollum-editor-format-selector label {
color: #999; color: #999;
float: right; float: right;
font-size: 1.1em; font-size: 1em;
font-weight: bold; font-weight: bold;
line-height: 1.6em; line-height: 1.6em;
padding: 0.6em 0.5em 0 0; padding: .3em 0.5em 0 0;
} }
#gollum-editor #gollum-editor-function-bar #gollum-editor #gollum-editor-function-bar
@@ -243,9 +236,9 @@ a#function-help:hover span { background-position: -405px -28px; }
#gollum-editor textarea#gollum-editor-body { #gollum-editor textarea#gollum-editor-body {
background: #fff; background: #fff;
border: 1px solid #ddd; border: 1px solid #ddd;
font-size: 1.3em; font-size: 1em;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
line-height: 1.8em; line-height: 1.4em;
margin: 1em 0 0.4em; margin: 1em 0 0.4em;
padding: 0.5em; /* I don't really like mixing pct & em here… */ padding: 0.5em; /* I don't really like mixing pct & em here… */
width: 98%; width: 98%;
@@ -259,7 +252,7 @@ a#function-help:hover span { background-position: -405px -28px; }
cursor: pointer; cursor: pointer;
display: block; display: block;
float: left; float: left;
font-size: 1.2em; font-size: 1em;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: bold; font-weight: bold;
margin: 0; margin: 0;
@@ -403,7 +396,7 @@ a#function-help:hover span { background-position: -405px -28px; }
color: #333; color: #333;
cursor: pointer; cursor: pointer;
display: block; display: block;
font-size: 1.2em; font-size: 1em;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: bold; font-weight: bold;
line-height: 1.2em; line-height: 1.2em;
@@ -37,8 +37,8 @@ a:hover, a:visited {
/* @section head */ /* @section head */
#head { #head {
border-bottom: 1px solid #ddd;
margin: 4.5em 0 0.5em; margin: 4.5em 0 0.5em;
padding: 0.5em 0;
overflow: hidden; overflow: hidden;
} }
@@ -142,6 +142,7 @@ a:hover, a:visited {
} }
/* @section footer */ /* @section footer */
#wiki-footer { #wiki-footer {
clear: both; clear: both;
margin: 2em 0 5em; margin: 2em 0 5em;
@@ -208,6 +209,7 @@ a:hover, a:visited {
/* @section page-footer */ /* @section page-footer */
.page #footer { .page #footer {
border-top: 1px solid #ddd;
margin: 1em 0 7em; margin: 1em 0 7em;
} }
@@ -235,12 +237,12 @@ a:hover, a:visited {
} }
#wiki-history { #wiki-history {
margin-top: 3em; margin-top: 2em;
} }
#wiki-history fieldset { #wiki-history fieldset {
border: 0; border: 0;
margin: 2em 0; margin: 1em 0;
padding: 0; padding: 0;
} }
@@ -262,14 +264,14 @@ a:hover, a:visited {
#wiki-history table tr td { #wiki-history table tr td {
border: 1px solid #c0dce9; border: 1px solid #c0dce9;
font-size: 1.2em; font-size: 1em;
line-height: 1.6em; line-height: 1.6em;
margin: 0; margin: 0;
padding: 0.3em 0.7em; padding: 0.3em 0.7em;
} }
#wiki-history table tr td.checkbox { #wiki-history table tr td.checkbox {
min-width: 2em; width: 4em;
padding: 0.3em; padding: 0.3em;
} }
@@ -278,7 +280,9 @@ a:hover, a:visited {
display: block; display: block;
padding-right: 0; padding-right: 0;
padding-top: 0.4em; padding-top: 0.4em;
margin-right: -0.2em; margin: 0 auto;
width: 1.2em;
height: 1.2em;
} }
#wiki-history table tr:nth-child(2n), #wiki-history table tr:nth-child(2n),
@@ -331,6 +335,10 @@ a:hover, a:visited {
padding: 0 0.2em; padding: 0 0.2em;
} }
.history #footer {
margin-bottom: 7em;
}
.history #wiki-history ul.actions li, .history #wiki-history ul.actions li,
.history #footer ul.actions li { .history #footer ul.actions li {
margin: 0 0.6em 0 0; margin: 0 0.6em 0 0;
@@ -410,10 +418,14 @@ a:hover, a:visited {
.compare .data { .compare .data {
border: 1px solid #ddd; border: 1px solid #ddd;
margin-top: 1em; margin: 1em 0 2em;
overflow: auto; overflow: auto;
} }
.compare .data table {
width: 100%;
}
.compare .data pre { .compare .data pre {
margin: 0; margin: 0;
padding: 0; padding: 0;
@@ -426,11 +438,15 @@ a:hover, a:visited {
.compare .data tr td { .compare .data tr td {
font-family: "Consolas", "Monaco", "Andale Mono", "Courier New", monospace; font-family: "Consolas", "Monaco", "Andale Mono", "Courier New", monospace;
font-size: 1.2em; font-size: 1.2em;
line-height: 1.8em; line-height: 1.2em;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.compare .data tr td + td + td {
width: 100%;
}
.compare .data td.line_numbers { .compare .data td.line_numbers {
background: #f7f7f7; background: #f7f7f7;
border-right: 1px solid #999; border-right: 1px solid #999;
@@ -444,6 +460,10 @@ a:hover, a:visited {
margin-right: 0.6em; margin-right: 0.6em;
} }
.compare #footer {
margin-bottom: 7em;
}
/* @control syntax */ /* @control syntax */
@@ -481,8 +501,9 @@ ul.actions {
ul.actions li { ul.actions li {
float: left; float: left;
font-size: 1.2em; font-size: 0.9em;
margin-left: 0.6em; margin-left: 0.6em;
margin-bottom: 0.6em;
} }
.minibutton a { .minibutton a {
@@ -594,27 +615,30 @@ ul.actions {
background: #fff; background: #fff;
border: 1px solid #d4d4d4; border: 1px solid #d4d4d4;
overflow: hidden; overflow: hidden;
height: 2.0em;
border-radius: 0.3em; border-radius: 0.3em;
-moz-border-radius: 0.3em; -moz-border-radius: 0.3em;
-webkit-border-radius: 0.3em; -webkit-border-radius: 0.3em;
} }
.ie #head #searchbar #searchbar-fauxtext,
.ff #head #searchbar #searchbar-fauxtext {
height: 2.2em
}
#head #searchbar #searchbar-fauxtext input#search-query { #head #searchbar #searchbar-fauxtext input#search-query {
border: none; border: none;
color: #000; color: #000;
float: left; float: left;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 1.2em; font-size: 1em;
height: 2.15em; height: inherit;
padding: 0 .5em;
-webkit-focus-ring: none; -webkit-focus-ring: none;
} }
.ff #head #searchbar #searchbar-fauxtext input#search-query {
padding: 0.2em 0 0.2em 0.5em;
}
.ie #head #searchbar #searchbar-fauxtext input#search-query { .ie #head #searchbar #searchbar-fauxtext input#search-query {
padding: 0.4em 0 0 0.5em; padding: 0.4em 0 0 0.5em;
} }
@@ -630,7 +654,7 @@ ul.actions {
margin: 0 !important; margin: 0 !important;
padding: 0; padding: 0;
float: right; float: right;
font-size: 1.2em; height: inherit;
border-radius: 0 3px 3px 0; border-radius: 0 3px 3px 0;
-moz-border-radius: 0 3px 3px 0; -moz-border-radius: 0 3px 3px 0;
@@ -639,10 +663,10 @@ ul.actions {
#head #searchbar #searchbar-fauxtext #search-submit span { #head #searchbar #searchbar-fauxtext #search-submit span {
background-image: url(/images/icon-sprite.png); background-image: url(/images/icon-sprite.png);
background-position: -431px 4px; background-position: -431px -1px;
background-repeat: no-repeat; background-repeat: no-repeat;
display: block; display: block;
height: 2.15em; height: inherit;
overflow: hidden; overflow: hidden;
text-indent: -5000px; text-indent: -5000px;
width: 28px; width: 28px;
@@ -10,7 +10,7 @@
html, body { html, body {
color: black; color: #333;
} }
body { body {
@@ -24,7 +24,7 @@ img {
#template { #template {
font-size: 14px; font-size: 14px;
line-height: 1.4; line-height: 1.6;
margin-bottom: 40px; margin-bottom: 40px;
} }
@@ -35,7 +35,7 @@ a.absent {
/* Primary Body Copy */ /* Primary Body Copy */
#template p { #template p {
margin: 1em 0; margin: 1.4em 0;
padding: 0; padding: 0;
} }
@@ -52,17 +52,17 @@ a.absent {
} }
#template h1 { #template h1 {
border-bottom: 1px solid #ccc; font-size: 28px;
font-size: 33px; /* was 32, GH is 33px */
line-height: normal; line-height: normal;
padding: .08em 0 0 0; padding: 10px 0 0 0;
margin: 0; margin: 30px 0 10px;
} }
#template h2 { #template h2 {
border-bottom: 1px solid #ddd;
font-size: 22px; font-size: 22px;
line-height: normal; line-height: 1.6;
margin: 22px 0 0; margin: 22px 0 10px;
padding: 7px 0 0; padding: 7px 0 0;
} }
@@ -110,16 +110,16 @@ a.absent {
/* Border Reset for headers with horizontal rules */ /* Border Reset for headers with horizontal rules */
#template > h2:first-child, #template > h2:first-child,
#template > h1:first-child { #template > h1:first-child {
margin: 12px 0 0; margin: 12px 0 10px;
padding: 10px 0 0; padding: 10px 0 10px;
} }
/* Lists, Blockquotes & Such */ /* Lists, Blockquotes & Such */
#template ul, #template ul,
#template ol { #template ol {
margin-top: 1.5em; margin: 15px 0;
margin-left: 2.6em; padding-left: 30px;
} }
/* Nested Lists */ /* Nested Lists */
@@ -132,7 +132,7 @@ a.absent {
#template ul ul, #template ul ul,
#template ol ol { #template ol ol {
padding: 0; padding: 0;
margin: .5em 0; margin: 15px 0;
} }
#template dl { #template dl {
@@ -286,7 +286,7 @@ a.absent {
background-color: #f8f8f8; background-color: #f8f8f8;
border: 1px solid #dedede; border: 1px solid #dedede;
font-size: 13px; font-size: 13px;
padding: 0; padding: 1px 5px;
-moz-border-radius: 3px; -moz-border-radius: 3px;
-webkit-border-radius: 3px; -webkit-border-radius: 3px;
@@ -313,6 +313,7 @@ pre, code {
#template pre code, #template pre tt { #template pre code, #template pre tt {
background-color: transparent; background-color: transparent;
border: none; border: none;
padding: 0;
} }
/* /*
+13 -3
View File
@@ -3,10 +3,16 @@
<h1>History for <strong>{{path}}</strong></h1> <h1>History for <strong>{{path}}</strong></h1>
<ul class="actions"> <ul class="actions">
<li class="minibutton"><a href="/history/{{escaped_name}}" <li class="minibutton">
class="action-page-history">Back to Page History</a></li>
</ul>
{{>searchbar}} {{>searchbar}}
</li>
<li class="minibutton"><a href="/{{escaped_name}}"
class="action-view-page">View Page</a></li>
<li class="minibutton"><a href="/edit/{{escaped_name}}"
class="action-edit-page">Edit Page</a></li>
<li class="minibutton"><a href="/history/{{escaped_name}}"
class="action-page-history">Page History</a></li>
</ul>
</div> </div>
{{#message}} {{#message}}
@@ -17,6 +23,8 @@
{{#show_revert}} {{#show_revert}}
<ul class="actions"> <ul class="actions">
<li class="minibutton"><a href="/history/{{escaped_name}}"
class="action-page-history">Back to Page History</a></li>
<li class="minibutton"> <li class="minibutton">
<form name="gollum-revert" action="/revert/{{escaped_name}}/{{before}}/{{after}}" method="post" id="gollum-revert-form"> <form name="gollum-revert" action="/revert/{{escaped_name}}/{{before}}/{{after}}" method="post" id="gollum-revert-form">
<a href="#" class="gollum-revert-button">Revert Changes</a> <a href="#" class="gollum-revert-button">Revert Changes</a>
@@ -41,6 +49,8 @@
</div> </div>
<div id="footer"> <div id="footer">
<ul class="actions"> <ul class="actions">
<li class="minibutton"><a href="/history/{{escaped_name}}"
class="action-page-history">Back to Page History</a></li>
{{#show_revert}} {{#show_revert}}
<li class="minibutton"> <li class="minibutton">
<a href="#" class="gollum-revert-button">Revert Changes</a> <a href="#" class="gollum-revert-button">Revert Changes</a>
@@ -2,12 +2,14 @@
<div id="head"> <div id="head">
<h1>History for <strong>{{title}}</strong></h1> <h1>History for <strong>{{title}}</strong></h1>
<ul class="actions"> <ul class="actions">
<li class="minibutton">
{{>searchbar}}
</li>
<li class="minibutton"><a href="/{{escaped_name}}" <li class="minibutton"><a href="/{{escaped_name}}"
class="action-view-page">View Page</a></li> class="action-view-page">View Page</a></li>
<li class="minibutton"><a href="/edit/{{escaped_name}}" <li class="minibutton"><a href="/edit/{{escaped_name}}"
class="action-edit-page">Edit Page</a></li> class="action-edit-page">Edit Page</a></li>
</ul> </ul>
{{>searchbar}}
</div> </div>
<div id="wiki-history"> <div id="wiki-history">
+3 -1
View File
@@ -2,6 +2,9 @@
<div id="head"> <div id="head">
<h1>{{title}}</h1> <h1>{{title}}</h1>
<ul class="actions"> <ul class="actions">
<li class="minibutton">
{{>searchbar}}
</li>
<li class="minibutton"><a href="/pages" <li class="minibutton"><a href="/pages"
class="action-all-pages">All Pages</a></li> class="action-all-pages">All Pages</a></li>
<li class="minibutton" class="jaws"> <li class="minibutton" class="jaws">
@@ -13,7 +16,6 @@
<li class="minibutton"><a href="/history/{{escaped_name}}" <li class="minibutton"><a href="/history/{{escaped_name}}"
class="action-page-history">Page History</a></li> class="action-page-history">Page History</a></li>
</ul> </ul>
{{>searchbar}}
</div> </div>
<div id="wiki-content"> <div id="wiki-content">
<div class="wrap {{#has_footer}} has-footer {{/has_footer}} {{#has_sidebar}} has-rightbar{{/has_sidebar}}"> <div class="wrap {{#has_footer}} has-footer {{/has_footer}} {{#has_sidebar}} has-rightbar{{/has_sidebar}}">
+3 -1
View File
@@ -2,10 +2,12 @@
<div id="head"> <div id="head">
<h1>{{title}}</h1> <h1>{{title}}</h1>
<ul class="actions"> <ul class="actions">
<li class="minibutton">
{{>searchbar}}
</li>
<li class="minibutton"><a href="/" <li class="minibutton"><a href="/"
class="action-edit-page">Home</a></li> class="action-edit-page">Home</a></li>
</ul> </ul>
{{>searchbar}}
</div> </div>
<div id="results"> <div id="results">
@@ -2,10 +2,12 @@
<div id="head"> <div id="head">
<h1>Search Results for <strong>{{query}}</strong></h1> <h1>Search Results for <strong>{{query}}</strong></h1>
<ul class="actions"> <ul class="actions">
<li class="minibutton">
{{>searchbar}}
</li>
<li class="minibutton"><a href="/" <li class="minibutton"><a href="/"
class="action-edit-page">Home</a></li> class="action-edit-page">Home</a></li>
</ul> </ul>
{{>searchbar}}
</div> </div>
<div id="results"> <div id="results">