8f7793f461
* Add `.header-title` style
This style shows smaller text on mobile devices. It reverts back to the
`2em` size used in Primer for H1 tags.
* Use `.header-title` for all `#head` headings
This commit:
1. Updates all main templates to use the new `.header-title` class,
making these titles less disruptively large on mobile devices.
2. Centers these titles for mobile breakpoints only, re-setting them
back to left-aligned text for `md-` breakpoints and up.
Note that in `lib/gollum/templates/wiki_contentf.mustache`, the
`.header-title` is not a `#head .header-title`, so it doesn't inherit
all of the new styles added in this commit.
* Adjust padding and presentation of mobile menu
To give mobile page headers more structure, this commit adjusts the
padding to be more symmetrical. It also adds a `border-bottom` on mobile
only. In my opinion this improves readability by telling the reader,
"This is where the navigation menu ends and the page content begins."
* Recompile assets
* Fix failing spec
My changes to the header layout seem to changed where the spaces in
`last_response.body` are placed. So let's assert only that the content
is present, since that's all this test should actually care about.
20 lines
534 B
Plaintext
20 lines
534 B
Plaintext
<div id="wiki-wrapper" class="edit">
|
|
<div id="head">
|
|
{{>navbar}}
|
|
|
|
<h1 class="header-title text-center text-md-left py-4">
|
|
Editing <strong>{{title}}</strong>
|
|
</h1>
|
|
</div>
|
|
<div class="tabnav">
|
|
<nav class="tabnav-tabs">
|
|
<a href="#" id="edit" class="tabnav-tab selected" aria-current="page">
|
|
Edit
|
|
</a>
|
|
<a href="#" id="preview" class="tabnav-tab">Preview</a>
|
|
</nav>
|
|
</div>
|
|
<div class="tabnav-div" id="edit-content">{{>editor}}</div>
|
|
<div class="tabnav-div" id="preview-content"></div>
|
|
</div>
|