-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
WIP: add option for skeleton-navigation #12
Conversation
skeleton-navigation/src/main.ext
Outdated
import Aurelia, { RouterConfiguration/* @if shadow-dom || css-module */, StyleConfiguration }/* @endif */ } from 'aurelia'; | ||
import { MyApp } from './my-app'; | ||
|
||
Aurelia/* @if shadow-dom */.register(StyleConfiguration.shadowDOM())/* @endif *//* @if css-module */.register(StyleConfiguration.cssModulesProcessor())/* @endif */.register(RouterConfiguration).app(MyApp).start(); |
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.
Yes, this file and src/resource.d.ts
can be pushed down to common/
folder to avoid duplication.
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.
I think main.ext may get nested /* if exp */
please suggest.
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.
There is another PR going to be merged too. That will clean up main.ext, then you will only need one condition on app-with-router
.
Will let you know when it's merged.
text-decoration: none; | ||
color: black; | ||
} | ||
a:hover { |
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.
Less file can be cleaned up to use nested class. There are few others can be merged.
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.
done
text-decoration: none; | ||
color: black; | ||
} | ||
a:hover { |
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.
Scss file can be cleaned up to use nested class. There are few others can be merged.
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.
done
Thanks very much! Please also cleanup all the files to use 2 spaces (instead of 4) on indentation. |
@jwx please help to review too. |
skeleton-navigation/src/about.ts
Outdated
@@ -0,0 +1,3 @@ | |||
export class About { | |||
|
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.
Maybe remove this file and make about
an html-only custom element.
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.
done
@@ -0,0 +1,48 @@ | |||
body { |
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.
If I'm not mistaken, this styling is more or less the styling I had in one of my live coding videos. If so, it should perhaps be both cleaned up and trimmed down for a skeleton.
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.
you are right :), but I think minimal styling is fine to have it nice looking. Please share your thoughts.
.goto-active { | ||
background-color: lightgray; | ||
} |
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.
This, however, should remain.
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.
I think what @jwx suggested is that you can remove lots of styles and layout from the skeleton, they were only for the demonstration in his video. We can cut off, and reduce to minium, because end user just want some starting code for router, not layout and styles.
Got it, let me clean up the styling.
@@ -0,0 +1,48 @@ | |||
body { |
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.
See previous comment about styling.
@@ -0,0 +1,48 @@ | |||
body { |
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.
And again about styling.
I think what @jwx suggested is that you can remove lots of styles and layout from the skeleton, they were only for the demonstration in his video. We can cut off, and reduce to minium, because end user just want some starting code for router, not layout and styles. |
@3cp , I think main.ext may get nested /* if exp */ |
Nested condition is supported. What's your intended usage (snippet)? |
Got it, let me clean up the styling. Shall I try bootsrap4 with font-awesome5 (similar to au1 cli generated skeleton-navigation)? |
Pls don't add them now :-) We want to keep this repo to minimum as au2 is a moving target. |
As we should avoid duplication, to move main.ext to |
You can refactor the import into one with nested condition. But wait for the other PR, it will change that statement. |
Is this styling enough for the minimal app? nav { a { .goto-active { App looks like below: |
I guess removing gradient because other part is plain, just need an obvious active style. |
BTW, in html, pls remove footer, and remove container div wrapper. There is no style now, no need to keep them. @jwx what's |
Not that fast :-) |
You all rock. Take your time. I know that I am just doing small and simple things as I am a typical dev and a user of Aurelia. |
to-string-loader does not work with style-loader.
The other PR is merged. |
Looks you got many duplicated commits. |
yes, how do I remove them? |
Never mind, as long as it's mergable, I can squash commits into one when merging. |
Or you can create a fresh branch on our master, may need to fork a repo if you are not sure how to reset your master. |
Ok. Could you please review the files now? |
The changes here looks messed up, they are still against the old master. |
new PR is on the way |
Hi @3cp ,
I feel that this is not a good idea (duplicate code in ./app-min and ./skeleton-navigation). Please suggest if there is a better way.
Thank you @jwx for your tutorials.
related to #5