made responsive header
This commit is contained in:
parent
081f2b3c2e
commit
015a46c086
@ -5,13 +5,16 @@ function TestHeader() {
|
|||||||
<header>
|
<header>
|
||||||
<div className="headerWrapper">
|
<div className="headerWrapper">
|
||||||
<div className="logo"><a href="."><img alt="" src={process.env.PUBLIC_URL + '/icons/logo_sm.png'} /> NGS<span>planner.com</span></a></div>
|
<div className="logo"><a href="."><img alt="" src={process.env.PUBLIC_URL + '/icons/logo_sm.png'} /> NGS<span>planner.com</span></a></div>
|
||||||
<div className="navigation"> <ul>
|
<div className="navigation"><ul>
|
||||||
<li className="headerMenuItem"><a href=".">Build Planner</a></li>
|
<li className="headerMenuItem"><a href=".">Builds</a></li>
|
||||||
<li className="headerMenuItem"><a href=".">Guides</a></li>
|
<li className="headerMenuItem"><a href=".">Guides</a></li>
|
||||||
<li className="headerMenuItem"><a href=".">Blog</a></li>
|
<li className="headerMenuItem"><a href=".">Blog</a></li>
|
||||||
<li className="headerMenuItem"><a href=".">About</a></li>
|
<li className="headerMenuItem"><a href=".">About</a></li>
|
||||||
</ul></div>
|
</ul></div>
|
||||||
<div className="rightNav"><a href="."><img alt="." src={process.env.PUBLIC_URL + '/icons/nicodotpng.png.png'} /> Guest   <span className="dotMenu">···</span></a></div>
|
<div className="rightNav">
|
||||||
|
<section className="loginNav"><a href="."><img alt="." src={process.env.PUBLIC_URL + '/icons/nicodotpng.png.png'} /> Guest   <span className="dotMenu">···</span></a></section>
|
||||||
|
<section className="miniNav"><a href="."><span>···</span></a></section>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
)
|
)
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 312 B |
Binary file not shown.
Before Width: | Height: | Size: 157 B |
Binary file not shown.
Before Width: | Height: | Size: 157 B |
@ -76,30 +76,21 @@ header a:hover {
|
|||||||
background: linear-gradient(45deg,rgba(76,113,126,0.66),rgba(113,169,189,00.66));
|
background: linear-gradient(45deg,rgba(76,113,126,0.66),rgba(113,169,189,00.66));
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
@media screen and (min-width:390px) and (max-width:860px) {
|
|
||||||
.headerMenuItem {
|
|
||||||
display:none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media screen and (max-width:390px) {
|
|
||||||
.headerMenuItem {
|
|
||||||
display:none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.main, header {
|
.main, header {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit,minmax(300px,450px));
|
grid-template-columns: repeat(auto-fit,minmax(300px,450px));
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
gap: 10px;
|
||||||
}
|
}
|
||||||
.main {
|
.main {
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
gap: 10px;
|
|
||||||
}
|
}
|
||||||
header {
|
header {
|
||||||
background-color: rgba(0,0,0,0.5);
|
background-color: rgba(0,0,0,0.5);
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
.headerWrapper {
|
.headerWrapper {
|
||||||
grid-area: 1 / span 3;
|
grid-area: 1 / span 3;
|
||||||
@ -123,11 +114,15 @@ header a {
|
|||||||
.logo img {
|
.logo img {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
|
.logo a {
|
||||||
|
padding: 0 15px;
|
||||||
|
}
|
||||||
.navigation {
|
.navigation {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
font-family: "ngs2";
|
font-family: "ngs2";
|
||||||
margin-left: 30px;
|
margin-left: 30px;
|
||||||
|
line-height: 50px;
|
||||||
}
|
}
|
||||||
.navigation a {
|
.navigation a {
|
||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
@ -136,19 +131,21 @@ header a {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-color: rgba(255,255,255,0.13);
|
border-color: rgba(255,255,255,0.13);
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 0 1px 0 0;
|
border-left-width: 1px;
|
||||||
line-height: 50px;
|
}
|
||||||
|
.navigation li:last-child {
|
||||||
|
border-right-width: 1px;
|
||||||
}
|
}
|
||||||
.rightNav {
|
.rightNav {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
line-height: 45px;
|
line-height: 43px;
|
||||||
}
|
}
|
||||||
.rightNav a {
|
.rightNav a {
|
||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
}
|
}
|
||||||
.rightNav img {
|
.rightNav img {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
margin-bottom: 4px;
|
margin-bottom: 5px;
|
||||||
clip-path: circle(44%);
|
clip-path: circle(44%);
|
||||||
}
|
}
|
||||||
.dotMenu {
|
.dotMenu {
|
||||||
@ -156,6 +153,25 @@ header a {
|
|||||||
font-family: "Segoe UI Symbol";
|
font-family: "Segoe UI Symbol";
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
|
.miniNav {
|
||||||
|
display: none;
|
||||||
|
grid-area: 2 / span 2;
|
||||||
|
line-height: 45px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.miniNav span {
|
||||||
|
display: inline-block;
|
||||||
|
font-family: "Segoe UI Symbol";
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
@media screen and (max-width:860px) {
|
||||||
|
.navigation > ul, .loginNav {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.miniNav {
|
||||||
|
display: initial;
|
||||||
|
}
|
||||||
|
}
|
||||||
.box {
|
.box {
|
||||||
/*color: #97e2fc;*/
|
/*color: #97e2fc;*/
|
||||||
color:white;
|
color:white;
|
||||||
@ -626,12 +642,7 @@ li.selected:hover {
|
|||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
margin: 10px 5px 0 0;
|
margin: 10px 5px 0 0;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
}/*
|
|
||||||
@media screen and (min-width:390px) and (max-width:860px) {
|
|
||||||
.itemlistcontainer {
|
|
||||||
max-height: 300px;
|
|
||||||
}
|
}
|
||||||
}*/
|
|
||||||
.itemWrapper:hover, .treeList li:hover {
|
.itemWrapper:hover, .treeList li:hover {
|
||||||
background-color: rgba(113,169,189,0.33);
|
background-color: rgba(113,169,189,0.33);
|
||||||
outline: 2px solid rgba(54,255,255,0.66);
|
outline: 2px solid rgba(54,255,255,0.66);
|
||||||
@ -843,12 +854,6 @@ li.treeListSub:after {
|
|||||||
max-height: calc(90vh - 150px);
|
max-height: calc(90vh - 150px);
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*@media screen and (min-width:390px) and (max-width:860px) {
|
|
||||||
.skillTreeContainer {
|
|
||||||
max-height: 300px;
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
.skillTreeGrid {
|
.skillTreeGrid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(6, 181px);
|
grid-template-columns: repeat(6, 181px);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user