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

Navigation with Centered Logo #2

Open
gitlerat opened this issue Jan 15, 2021 · 2 comments
Open

Navigation with Centered Logo #2

gitlerat opened this issue Jan 15, 2021 · 2 comments

Comments

@gitlerat
Copy link

gitlerat commented Jan 15, 2021

Hi shadeed, thank you for your afford providing this excellent components!
I want to suggest adding another style: the navigation with the centered logo. For me then would be everything covered.
I am a bit new to github so here is the code:

html (pastebin, because github breaks html here)

https://pastebin.com/raw/g4U4EGex

css

.container {
display: -webkit-box;
display: flex;
justify-content: space-around;
-webkit-box-align: center;
align-items: center;
background: #111;
margin: 25px 0;
box-shadow: 0 5px 15px -10px #111;
}

.logo {
-webkit-box-ordinal-group: 2;
order: 1;
border-radius: 100%;
background: #4382d6;
box-shadow: 0 0 0 3px #fff, 0 0 0 15px #111;
font-size: 24px;
color: #fff;
line-height: 32px;
padding: 10px;
}

.item {
color: rgba(255, 255, 255, 0.88);
text-decoration: none;
font-family: sans-serif;
padding: 24px;
}
.item:hover{
color: #fff;
background: rgba(255, 255, 255, 0.15);
}

.item:nth-of-type(n+4) {
-webkit-box-ordinal-group: 3;
order: 2;
}

@media all and (max-width: 800px) {
.container {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
flex-direction: column;
-webkit-box-align: stretch;
align-items: stretch;
}

.logo {
-webkit-box-ordinal-group: 1;
order: 0;
text-align: center;
width: 100px;
margin: auto auto 20px;
}

.item {
text-align: center;
border-bottom: 1px solid #111;
}
}

@gitlerat gitlerat changed the title Navigation with Centered Logo label:enhancement Navigation with Centered Logo Jan 15, 2021
@gitlerat gitlerat changed the title label:enhancement Navigation with Centered Logo Navigation with Centered Logo Jan 15, 2021
@shadeed
Copy link
Owner

shadeed commented Jan 15, 2021

Thanks for your suggestion, I appreciate it.

Can you please attach a screenshot to the header design?

@gitlerat
Copy link
Author

Hi, thats cool to hear! 👍
Did you mean something like this?

2021-01-17-151455_1920x1080_scrot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants