-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Sidebar #687
Merged
Merged
Sidebar #687
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
aa094e5
move top nav to sidebar
knownasilya 96a2a85
Fix dropup menus in toolbar, and move to right
9a1241e
Move dropup caret to the right
99523f2
sidebar
knownasilya 42bcfbd
cleanup actions
knownasilya 3292a96
fix typo
knownasilya 11e6517
typo 2
knownasilya a13c810
external
knownasilya c3194e3
more args
knownasilya 7b541e5
tweak test
knownasilya 66da9dc
more test
knownasilya 36f8bdf
glimmer tempalte only, and fix errs
knownasilya adb7d1a
app wrapper
knownasilya e27ffd0
class name to gist body
knownasilya bc7e38d
wrapper
knownasilya cd4d26a
args
knownasilya e29b524
fix deprecation
knownasilya 2fa4a8d
remove sidebar absolutes
knownasilya b9a5b8a
toggle
knownasilya 066ec7a
mobile
knownasilya 9319bc8
fix arg
knownasilya 023e80c
helper test
knownasilya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Component from '@ember/component'; | ||
|
||
export default Component.extend({ | ||
classNames: ['gist-header'], | ||
classNameBindings: ['open'], | ||
tagName: 'nav', | ||
open: true | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { helper } from '@ember/component/helper'; | ||
|
||
export default helper(function not([val]/*, hash*/) { | ||
return !val; | ||
}); |
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 |
---|---|---|
@@ -1,86 +1,44 @@ | ||
.toolbar { | ||
display: flex; | ||
flex-direction: column; | ||
color: #fff; | ||
font-size: $font-size; | ||
background: $header-bg; | ||
background-image: url(/images/header.svg); | ||
background-position: top center; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
|
||
hr { | ||
display: none; | ||
@media (max-width: $screen-md-min) { | ||
padding: 0; | ||
} | ||
|
||
@media (min-width: $screen-md-min) { | ||
height: $topbar-height; | ||
} | ||
|
||
.nav-pills > li > a { | ||
display: block; | ||
text-decoration: none; | ||
} | ||
|
||
|
||
@media (min-width: $screen-md-min) { | ||
height: $topbar-height; | ||
.dropdown .caret { | ||
position: absolute; | ||
right: 10px; | ||
top: 13px; | ||
} | ||
|
||
@media (max-width: $screen-md-min) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this still responsive? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, that is my next task haha. |
||
position: relative; | ||
z-index: 100; | ||
opacity: 1; | ||
|
||
>div, >ul { | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
} | ||
|
||
.nav-pills > li { | ||
float: none; | ||
} | ||
|
||
.nav-pills > li + li { | ||
margin-left: 0; | ||
} | ||
|
||
.dropdown-toggle { | ||
display: block; | ||
border-radius: 0; | ||
box-shadow: none; | ||
} | ||
|
||
.dropdown-menu { | ||
position: static; | ||
float: none; | ||
border: 0; | ||
border-radius: 0; | ||
box-shadow: none; | ||
background: inherit; | ||
|
||
.dropdown-submenu > .dropdown-menu { | ||
margin-left: 1em; | ||
margin-top: 0; | ||
} | ||
|
||
.divider { | ||
background-color: lighten($burnt-orange, 10%); | ||
} | ||
|
||
a { | ||
color: #fff; | ||
|
||
&:hover { | ||
background-color: lighten($burnt-orange, 10%); | ||
} | ||
} | ||
} | ||
|
||
hr { | ||
display: block; | ||
border-color: $burnt-orange; | ||
margin: 1em 0; | ||
.dropdown-menu { | ||
.dropdown-submenu > .dropdown-menu { | ||
top: auto; | ||
margin-bottom: -31px; | ||
} | ||
} | ||
color: #fff; | ||
font-size: $font-size; | ||
background: $header-bg; | ||
background-image: url(/images/header.svg); | ||
background-position: top center; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
padding: 1rem 0; | ||
|
||
@media (max-width: $screen-md-min) { | ||
padding: 0; | ||
hr { | ||
display: block; | ||
border-color: $burnt-orange; | ||
margin: 1em 0; | ||
} | ||
|
||
button.navbar-toggle { | ||
|
@@ -109,22 +67,24 @@ | |
padding-left: 0; | ||
} | ||
|
||
.user-menu { | ||
text-align: right; | ||
.file-tree { | ||
flex: 1.5; | ||
overflow: auto; | ||
|
||
@media (min-width: $screen-md-min) { | ||
position: absolute; | ||
right: 0; | ||
top: ($topbar-height - $topbar-control-height) / 2; | ||
.jstree-default .jstree-hovered { | ||
background: rgba(0, 0, 0, 0.13); | ||
box-shadow: none; | ||
} | ||
|
||
@media (max-width: $screen-md-min) { | ||
float: none; | ||
text-align: left; | ||
.jstree-default .jstree-clicked { | ||
background: #b95252; | ||
box-shadow: none; | ||
} | ||
} | ||
|
||
.user-dropdown > .dropdown-toggle { | ||
padding-left: 1em; | ||
} | ||
.user-menu { | ||
a { | ||
display: block; | ||
} | ||
|
||
.user-avatar { | ||
|
@@ -133,7 +93,7 @@ | |
height: 100%; | ||
overflow: hidden; | ||
float: left; | ||
margin-right: 10px; | ||
margin-right: 5px; | ||
line-height: normal; | ||
border-radius: 3px; | ||
|
||
|
@@ -144,22 +104,16 @@ | |
|
||
&.unauthenticated { | ||
background: url("../images/github32-inverse-faf2ee.svg"); | ||
height: 32px; | ||
} | ||
} | ||
} | ||
|
||
.main-menu { | ||
text-align: left; | ||
height: 60px; | ||
|
||
@media (min-width: $screen-md-min) { | ||
position: absolute; | ||
left: 0; | ||
top: ($topbar-height - $topbar-control-height) / 2; | ||
} | ||
|
||
@media (max-width: $screen-md-min) { | ||
height: auto; | ||
a { | ||
display: block; | ||
} | ||
} | ||
|
||
|
@@ -170,18 +124,6 @@ | |
margin-left: auto; | ||
margin-right: auto; | ||
|
||
@media (min-width: $screen-md-min) { | ||
position: absolute; | ||
top: 6px; | ||
left: 50%; | ||
margin-left: -400px; | ||
width: 800px; | ||
} | ||
|
||
@media (max-width: $screen-md-min) { | ||
margin-left: 15px; | ||
} | ||
|
||
h1 { | ||
margin: 10px; | ||
} | ||
|
@@ -276,7 +218,7 @@ | |
|
||
.sign-in { | ||
cursor: pointer; | ||
padding: 0 .5em 0 0; | ||
padding: 0 .5em; | ||
} | ||
|
||
.signing-in { | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh. Can't believe I wrote this. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We all have these moments :D