[menu] fix css

This commit is contained in:
nymkappa 2024-03-22 14:34:21 +09:00
parent 00a94f9e3c
commit c47822cae7
No known key found for this signature in database
GPG Key ID: 92358FC85D9645DE
2 changed files with 69 additions and 0 deletions

View File

@ -78,6 +78,15 @@ export class MenuComponent implements OnInit, OnDestroy {
this.stateService.menuOpen$.next(this.navOpen);
}
@HostListener('window:resize', ['$event'])
onResize(event) {
if (this.isSmallScreen()) {
this.toggleMenu(false);
} else if (this.isServicesPage) {
this.toggleMenu(true);
}
}
@HostListener('window:click', ['$event'])
onClick(event) {
const isServicesPageOnMobile = this.isServicesPage && this.isSmallScreen();

View File

@ -1,6 +1,11 @@
footer {
background-color: #1d1f31;
margin-top: 30px;
&.services {
@media (min-width: 768px) {
padding-left: 240px;
}
}
}
footer a {
@ -162,6 +167,61 @@ footer .sponsor {
}
}
.services {
@media (min-width: 901px) and (max-width: 1147px) {
:host-context(.ltr-layout) .services .language-selector {
float: none !important;
}
:host-context(.rtl-layout) .services .language-selector {
float: none !important;
}
.explore-tagline-desktop {
display: none;
}
.explore-tagline-mobile {
display: block;
}
.main-logo {
width: 220px;
}
footer .row.link-tree {
font-size: 16px;
}
footer .row.social-links svg {
width: 20px;
}
footer .row.link-tree {
display: block;
text-align: center;
}
footer .link-tree .links {
margin-bottom: 20px;
}
footer .row.main .branding {
text-align: center;
padding: 0px;
}
.main-logo {
display: block;
margin: 0 auto;
}
footer .site-options {
float: none;
margin-top: 15px;
}
}
}
@media (max-width: 1200px) {
.main-logo {