devdocs/views/app.erb

41 lines
1.9 KiB
Text
Raw Normal View History

<div class="_app<%= " #{app_layout}" if app_layout %>" role="application">
<header class="_header" role="banner">
<button type="button" class="_mobile-btn _back-btn">Back</button>
<button type="button" class="_mobile-btn _forward-btn">Forward</button>
<button type="button" class="_mobile-btn _menu-btn">Menu</button>
<button type="button" class="_mobile-btn _home-btn">Home</button>
<form class="_search" role="search">
<input type="search" class="_search-input" placeholder="Search&hellip;" autocomplete="off" autocapitalize="off" autocorrect="off" spellcheck="false" maxlength="30" aria-label="Search">
<button type="reset" class="_search-clear" title="Clear search">Clear search</button>
2013-10-24 20:25:52 +02:00
<div class="_search-tag"></div>
</form>
<h1 class="_logo">
<a href="/" class="_nav-link" title="Offline API Documentation Browser">DevDocs</a><%= "/ #{@doc['full_name']}" if @doc %>
2013-10-24 20:25:52 +02:00
</h1>
<nav class="_nav" role="navigation">
2015-01-11 23:25:12 +01:00
<a href="/offline" class="_nav-link">Offline</a>
2013-10-24 20:25:52 +02:00
<a href="/about" class="_nav-link">About</a>
<a href="/news" class="_nav-link">News</a>
2014-08-10 14:19:10 +02:00
<a href="/help" class="_nav-link">Tips</a>
2013-10-24 20:25:52 +02:00
</nav>
</header>
2016-06-27 00:20:30 +02:00
<section class="_sidebar" tabindex="-1">
<div class="_list" role="navigation">
<% unless @doc %>
<% App.docs.each do |slug, doc| %>
<a href="/<%= slug %>/" class="_list-item"><span class="_list-arrow"></span><%= doc['full_name'] %></a>
<% end %>
<% end %>
</div>
2013-10-24 20:25:52 +02:00
</section>
<div class="_container" role="document">
2016-06-27 00:20:30 +02:00
<main class="_content _content-loading" role="main" tabindex="1"></main>
</div>
2013-10-24 20:25:52 +02:00
</div>
2015-08-03 23:06:19 +02:00
<style data-size="<%= app_size %>" data-resizer>
._container { margin-left: <%= app_size %>; }
._search, ._list, ._sidebar-footer { width: <%= app_size %>; }
._list-hover.clone { min-width: <%= app_size %>; }
._notice, ._path, ._resizer { left: <%= app_size %>; }
</style>