fix(directory): fixed some css is awesome issues

This commit is contained in:
Haoyu Xu
2023-03-13 20:55:10 -04:00
parent 1c95b97fa1
commit 56e0d8178a
6 changed files with 57 additions and 42 deletions

View File

@@ -1 +1 @@
3.3.62 3.3.63

View File

@@ -1 +1 @@
1.0.11 1.0.12

View File

@@ -13,7 +13,7 @@ export default function Dropdown(props) {
return ( return (
<> <>
<section className={`dropdown ${props.className} ${hidden ? '' : 'active'}`} > <section className={`dropdown ${props.className ? props.className : ''} ${hidden ? '' : 'active'}`} >
<section <section
className='text' className='text'
onClick={() => toggleDropdown()} onClick={() => toggleDropdown()}

View File

@@ -35,7 +35,7 @@
.popup.active { .popup.active {
opacity: 1; opacity: 1;
z-index: 1; z-index: 10;
} }
.popup .title { .popup .title {
@@ -58,6 +58,7 @@
.popup .content { .popup .content {
line-height: 1.3em; line-height: 1.3em;
padding: 1rem 1rem 0 1rem; padding: 1rem 1rem 0 1rem;
user-select: text;
} }
@media (max-width: 768px) { @media (max-width: 768px) {

View File

@@ -23,6 +23,7 @@
align-items: center; align-items: center;
flex-wrap: nowrap; flex-wrap: nowrap;
justify-content: flex-start; justify-content: flex-start;
pointer-events: none;
} }
.header .spacer { .header .spacer {
@@ -73,6 +74,17 @@
transform: translate(0, -100%) rotateZ(45deg) scaleX(0.5) translate(50%); transform: translate(0, -100%) rotateZ(45deg) scaleX(0.5) translate(50%);
} }
.extra-area {
display: flex;
flex-direction: row;
align-items: center;
}
.navButton,
.extra-area {
pointer-events: auto;
}
.drawer { .drawer {
position: fixed; position: fixed;
top: 0; top: 0;
@@ -196,7 +208,7 @@
.main .main-header .main-tab .main-tab-item:hover .main-tab-text-wrapper, .main .main-header .main-tab .main-tab-item:hover .main-tab-text-wrapper,
.main .main-header .main-tab .main-tab-item.active .text, .main .main-header .main-tab .main-tab-item.active .text,
.main .main-header .main-tab .main-tab-item:hover .text { .main .main-header .main-tab .main-tab-item:hover .text {
color: currentColor color: currentColor;
} }
.main .main-header .main-tab .main-tab-item.active { .main .main-header .main-tab .main-tab-item.active {

View File

@@ -86,8 +86,10 @@ export default function Root() {
<section className='bar'></section> <section className='bar'></section>
</section> </section>
<section className='spacer' /> <section className='spacer' />
<section className='extra-area'>
{extraArea} {extraArea}
<LanguageDropdown /> <LanguageDropdown />
</section>
</header> </header>
<nav className={`drawer ${drawerHidden ? '' : 'active'}`}> <nav className={`drawer ${drawerHidden ? '' : 'active'}`}>
<section <section