Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sidebar draft #215

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions addon/styles/addon.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@import "layout.css";
@import "icon.css";
@import "background-shapes.css";
@import "sidebar.css";

@import "components/es-navbar.css";
@import "components/es-header.css";
Expand Down
9 changes: 9 additions & 0 deletions addon/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ h6 {
}
}

a {
color: var(--color-orange);
text-decoration: none;
}

a:active, .active {
color: var(--color-dark);
}

/* move beyond this point */

.container {
Expand Down
14 changes: 14 additions & 0 deletions addon/styles/sidebar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.sidebar {
float: left;
min-width: 25%;
padding: var(--spacing-1);
border: 1px solid gray;
}

.sidebar-item {
display: block;
}

.sidebar-group {
margin-bottom: var(--spacing-1);
}
19 changes: 19 additions & 0 deletions docs/components/sidebar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Sidebar

<div class="container">
<aside class="sidebar">
<div class="sidebar-group">
<a class="sidebar-item medium margin-bottom-xsmall" href="#">Getting Started</a>
</div>
<div class="sidebar-group">
<a class="sidebar-item medium active" href="#">Tutorial</a>
<a class="sidebar-item active" href="#">Creating Your App</a>
<a class="sidebar-item" href="#">Planning Your App</a>
<a class="sidebar-item" href="#">Routes and Templates</a>
</div>
<div class="sidebar-group">
<a class="sidebar-item medium margin-bottom-xsmall" href="#">The Object Model</a>
</div>
</aside>
<div>Content</div>
</div>