Mercurial > wikked
changeset 321:19003fc8cbdd
Fix UI of the revision page.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 09 Oct 2014 13:17:21 -0700 |
parents | 35e65cf4d866 |
children | 566d229d1b30 |
files | wikked/assets/css/wikked/main.less wikked/assets/css/wikked/page.less wikked/assets/tpl/revision-page.html |
diffstat | 3 files changed, 15 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/wikked/assets/css/wikked/main.less Thu Oct 09 13:16:52 2014 -0700 +++ b/wikked/assets/css/wikked/main.less Thu Oct 09 13:17:21 2014 -0700 @@ -123,6 +123,11 @@ list-style: none outside none; } +.pure-button-warning { + color: #FFF; + background: rgb(223, 117, 20); +} + .wiki-icon { font-weight: bolder; }
--- a/wikked/assets/css/wikked/page.less Thu Oct 09 13:16:52 2014 -0700 +++ b/wikked/assets/css/wikked/page.less Thu Oct 09 13:17:21 2014 -0700 @@ -101,3 +101,10 @@ text-align: right; } +// Page history +pre.raw { + font-size: 90%; + color: @code-color; + font-family: Menlo,Monaco,Consolas,"Courier New",monospace; +} +
--- a/wikked/assets/tpl/revision-page.html Thu Oct 09 13:16:52 2014 -0700 +++ b/wikked/assets/tpl/revision-page.html Thu Oct 09 13:17:21 2014 -0700 @@ -4,12 +4,12 @@ <div class="decorator">Revision: <span class="rev_id">{{disp_rev}}</span></div> </header> <section> - <pre><code>{{text}}</code></pre> + <pre class="raw">{{text}}</pre> <form id="page-revert" class="page-revert"> <input type="hidden" name="rev" value="{{rev}}"/> <div class="form-group"> - <button type="submit" class="btn btn-danger" name="btn-revert">Revert</button> - <span class="help-block small" for="btn-revert">Revert the page to this revision</span> + <button type="submit" id="revert-page" class="pure-button pure-button-warning">Revert</button> + <label class="small" for="revert-page">Revert the page to this revision</span> </div> </form> </section>