-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add _sidebar.html partial, remove style IDs and use flexbox
This dries up sidebar code. Element IDs for CSS selectors are replaced with classes to reduce specifity in stylesheets (avoid specifity wars). Flexbox is better than absolute positioning as it allows for more flexible layout and dimensions.
- Loading branch information
1 parent
10a5797
commit e830275
Showing
6 changed files
with
71 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div class="sidebar"> | ||
<div class="sidebar-header"> | ||
<h1><%= repository_name %></h1> | ||
</div> | ||
<div class="search-box"> | ||
<input type="search" class="search-input" placeholder="Search..."> | ||
</div> | ||
|
||
<div class="types-list"> | ||
<ul> | ||
<li><a href="<%= current_type.try(&.path_to("")) %>index.html">README</a></li> | ||
</ul> | ||
|
||
<%= ListItemsTemplate.new(types, current_type) %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters