add mobile bar button
This commit is contained in:
@@ -13,12 +13,67 @@
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
#navbar-mobile.inactive {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (min-width: 1001px) {
|
||||
#navbar-mobile {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.button-mobile {
|
||||
position: relative;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background: var(--surface);
|
||||
border: none;
|
||||
margin-top: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.button-mobile::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 30%;
|
||||
background: var(--text);
|
||||
height: 2px;
|
||||
width: 60%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.button-mobile::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 65%;
|
||||
background: var(--text);
|
||||
height: 2px;
|
||||
width: 60%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.button-mobile:hover {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background: var(--bg2);
|
||||
border: none;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#button-mobile {
|
||||
position: fixed;
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
#button-mobile.inactive {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.navbar-item-mobile {
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
@@ -26,7 +81,6 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.navbar-item-mobile:hover {
|
||||
@@ -41,4 +95,5 @@
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 10px;
|
||||
}
|
||||
@@ -1,17 +1,19 @@
|
||||
.main-content {
|
||||
margin-left: var(--nav-w);
|
||||
--margin-main-content: 100px;
|
||||
--margin-top: 100px;
|
||||
}
|
||||
|
||||
@media (max-width: 1000px) {
|
||||
.main-content {
|
||||
margin-left: var(--nav-mobile-w);
|
||||
margin-left: 0;
|
||||
--margin-main-content: 10px;
|
||||
--margin-top: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
#introduction {
|
||||
padding-top: 100px;
|
||||
padding-top: var(--margin-top);
|
||||
margin-left: var(--margin-main-content);
|
||||
margin-bottom: 60px;
|
||||
margin-right: var(--margin-main-content);
|
||||
|
||||
Reference in New Issue
Block a user