Merge pull request #1362 from gollum/fix_header_layout
Move page title (h1) down. Move Home button to upper left corner on all views.
This commit is contained in:
@@ -46,6 +46,7 @@ a {
|
|||||||
float: left;
|
float: left;
|
||||||
line-height: normal;
|
line-height: normal;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
margin-top: 2em;
|
||||||
padding: 0 0 0 0.667em;
|
padding: 0 0 0 0.667em;
|
||||||
|
|
||||||
@include desktop-breakpoint {
|
@include desktop-breakpoint {
|
||||||
@@ -57,6 +58,7 @@ a {
|
|||||||
ul.actions {
|
ul.actions {
|
||||||
clear: both;
|
clear: both;
|
||||||
margin: 0 1em;
|
margin: 0 1em;
|
||||||
|
position: absolute;
|
||||||
|
|
||||||
@include desktop-breakpoint {
|
@include desktop-breakpoint {
|
||||||
clear: none;
|
clear: none;
|
||||||
@@ -505,18 +507,21 @@ ul.actions {
|
|||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
width: $layout-body-width;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
float: left;
|
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
margin-left: 1px;
|
margin-left: 1px;
|
||||||
margin-bottom: 1px;
|
margin-bottom: 1px;
|
||||||
|
float: left;
|
||||||
|
|
||||||
@include desktop-breakpoint {
|
@include desktop-breakpoint {
|
||||||
margin-left: 0.6em;
|
margin-left: 0.6em;
|
||||||
margin-bottom: 0.6em;
|
margin-bottom: 0.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.minibutton a {
|
.minibutton a {
|
||||||
@@ -576,7 +581,7 @@ ul.actions {
|
|||||||
|
|
||||||
/* @control searchbar */
|
/* @control searchbar */
|
||||||
#searchbar {
|
#searchbar {
|
||||||
float: right;
|
float: none;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
@include desktop-breakpoint {
|
@include desktop-breakpoint {
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
<div id="wiki-wrapper" class="create">
|
<div id="wiki-wrapper" class="create">
|
||||||
<div id="head">
|
<div id="head">
|
||||||
<h1>Create New Page</h1>
|
<h1>Create New Page</h1>
|
||||||
|
<ul class="actions">
|
||||||
|
<li class="minibutton"><a href="{{base_url}}/"
|
||||||
|
class="action-home-page">Home</a></li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="wiki-content" class="create edit">
|
<div id="wiki-content" class="create edit">
|
||||||
<div class="has-sidebar">
|
<div class="has-sidebar">
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
<div id="head">
|
<div id="head">
|
||||||
<h1>Editing <strong>{{title}}</strong></h1>
|
<h1>Editing <strong>{{title}}</strong></h1>
|
||||||
<ul class="actions">
|
<ul class="actions">
|
||||||
|
<li class="minibutton"><a href="{{base_url}}/"
|
||||||
|
class="action-home-page">Home</a></li>
|
||||||
<li class="minibutton"><a href="{{base_url}}/{{escaped_url_path}}"
|
<li class="minibutton"><a href="{{base_url}}/{{escaped_url_path}}"
|
||||||
class="action-view-page">View Page</a></li>
|
class="action-view-page">View Page</a></li>
|
||||||
<li class="minibutton"><a href="{{history_path}}/{{escaped_url_path}}"
|
<li class="minibutton"><a href="{{history_path}}/{{escaped_url_path}}"
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
<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"><a href="{{base_url}}/"
|
||||||
|
class="action-home-page">Home</a></li>
|
||||||
<li class="minibutton">
|
<li class="minibutton">
|
||||||
{{>searchbar}}
|
{{>searchbar}}
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ Mousetrap.bind(['e'], function( e ) {
|
|||||||
<div id="head">
|
<div id="head">
|
||||||
<h1>{{page_header}}</h1>
|
<h1>{{page_header}}</h1>
|
||||||
<ul class="actions">
|
<ul class="actions">
|
||||||
|
<li class="minibutton"><a href="{{base_url}}/"
|
||||||
|
class="action-home-page">Home</a></li>
|
||||||
<li class="minibutton">
|
<li class="minibutton">
|
||||||
{{>searchbar}}
|
{{>searchbar}}
|
||||||
</li>
|
</li>
|
||||||
<li class="minibutton"><a href="{{base_url}}/"
|
|
||||||
class="action-home-page">Home</a></li>
|
|
||||||
<li class="minibutton"><a href="{{pages_path}}"
|
<li class="minibutton"><a href="{{pages_path}}"
|
||||||
class="action-all-pages">Overview</a></li>
|
class="action-all-pages">Overview</a></li>
|
||||||
{{#allow_editing}}
|
{{#allow_editing}}
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
<div id="head" style="border:none;">
|
<div id="head" style="border:none;">
|
||||||
<h1>{{title}}</h1>
|
<h1>{{title}}</h1>
|
||||||
<ul class="actions">
|
<ul class="actions">
|
||||||
|
<li class="minibutton"><a href="{{base_url}}/"
|
||||||
|
class="action-home-page">Home</a></li>
|
||||||
<li class="minibutton">
|
<li class="minibutton">
|
||||||
{{>searchbar}}
|
{{>searchbar}}
|
||||||
</li>
|
</li>
|
||||||
<li class="minibutton"><a href="{{base_url}}/"
|
|
||||||
class="action-home-page">Home</a></li>
|
|
||||||
{{#allow_editing}}
|
{{#allow_editing}}
|
||||||
<li class="minibutton jaws">
|
<li class="minibutton jaws">
|
||||||
<a href="#" id="minibutton-new-page">New</a></li>
|
<a href="#" id="minibutton-new-page">New</a></li>
|
||||||
|
|||||||
@@ -2,11 +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"><a href="{{base_url}}/"
|
||||||
|
class="action-home-page">Home</a></li>
|
||||||
<li class="minibutton">
|
<li class="minibutton">
|
||||||
{{>searchbar}}
|
{{>searchbar}}
|
||||||
</li>
|
</li>
|
||||||
<li class="minibutton"><a href="{{base_url}}/"
|
|
||||||
class="action-home-page">Home</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="results">
|
<div id="results">
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<div id="searchbar">
|
<div id="searchbar">
|
||||||
<form action="{{search_path}}" method="get" id="search-form">
|
<form class="search-form" action="{{search_path}}" method="get" id="search-form">
|
||||||
<div id="searchbar-fauxtext">
|
<div id="searchbar-fauxtext">
|
||||||
<input type="text" name="q" id="search-query" value="Search…" autocomplete="off">
|
<input type="text" name="q" id="search-query" value="Search…" autocomplete="off">
|
||||||
<a href="#" id="search-submit" title="Search this wiki">
|
<a href="#" id="search-submit" title="Search this wiki">
|
||||||
|
|||||||
Reference in New Issue
Block a user