style 漢堡頂列與選單間距
This commit is contained in:
+28
-14
@@ -479,14 +479,13 @@ nav a {
|
|||||||
z-index: 10000;
|
z-index: 10000;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background-color: var(--black);
|
background-color: var(--black);
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr auto;
|
||||||
grid-template-rows: auto auto minmax(0, 1fr);
|
grid-template-rows: auto minmax(0, 1fr);
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"logo"
|
"logo toggle"
|
||||||
"toggle"
|
"menu menu";
|
||||||
"menu";
|
row-gap: 1.75rem;
|
||||||
row-gap: 0.65rem;
|
column-gap: 0.75rem;
|
||||||
justify-items: center;
|
|
||||||
align-content: start;
|
align-content: start;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
@@ -505,8 +504,9 @@ nav a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.portal-nav.portal-nav--open .logo {
|
.portal-nav.portal-nav--open .logo {
|
||||||
justify-self: center;
|
justify-self: start;
|
||||||
width: min(240px, 72vw);
|
align-self: center;
|
||||||
|
width: min(240px, calc(100% - 3.25rem));
|
||||||
transform: none;
|
transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -529,8 +529,9 @@ nav a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.portal-nav.portal-nav--open .portal-nav__menu-toggle {
|
.portal-nav.portal-nav--open .portal-nav__menu-toggle {
|
||||||
justify-self: center;
|
grid-area: toggle;
|
||||||
align-self: center;
|
justify-self: end;
|
||||||
|
align-self: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.portal-nav>ul {
|
.portal-nav>ul {
|
||||||
@@ -553,14 +554,27 @@ nav a {
|
|||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 0.5rem;
|
margin-top: 0;
|
||||||
padding-top: 1rem;
|
padding-top: 0;
|
||||||
padding-bottom: 1.5rem;
|
padding-bottom: 1.5rem;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
justify-self: stretch;
|
justify-self: stretch;
|
||||||
border-top: 1px solid rgba(255, 204, 0, 0.2);
|
gap: 0;
|
||||||
|
border-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.portal-nav.portal-nav--open>ul>li {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
position: relative;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.portal-nav.portal-nav--open>ul>li>a {
|
||||||
|
min-height: 40px;
|
||||||
|
padding: 6px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.portal-nav>ul>li {
|
.portal-nav>ul>li {
|
||||||
|
|||||||
Reference in New Issue
Block a user