Skip to content

Commit

Permalink
モバイルボタンのレイアウトシフト対応
Browse files Browse the repository at this point in the history
  • Loading branch information
yhira committed Apr 12, 2024
1 parent 915e874 commit cdb363a
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 28 deletions.
15 changes: 9 additions & 6 deletions amp.css
Expand Up @@ -7775,7 +7775,7 @@ div.fb-like-mobile {
}
.mobile-menu-buttons .menu-button {
position: relative;
width: 100%;
width: 70px;
cursor: pointer;
display: flex;
align-items: center;
Expand Down Expand Up @@ -10226,15 +10226,18 @@ pre {
.mobile-header-menu-buttons {
top: 0;
bottom: auto;
justify-content: space-around;
justify-content: space-between;
min-width: 46px;
box-shadow: 0 0 5px darkgrey;
}
.has-logo-button .menu-button {
width: 70px;
.logo-menu-button {
flex-grow: 1;
}
.has-logo-button .logo-menu-button {
flex-grow: 99;
.mobile-footer-menu-buttons {
justify-content: space-around;
}
.mobile-footer-menu-buttons .menu-button {
width: 100%;
}
.no-mobile-sidebar .sidebar,
.mobile-button-fmb .go-to-top-button,
Expand Down
17 changes: 10 additions & 7 deletions css/admin.css
Expand Up @@ -7334,7 +7334,7 @@ body.wp-admin {
}
.admin-settings .demo .mobile-menu-buttons .menu-button {
position: relative;
width: 100%;
width: 70px;
cursor: pointer;
display: flex;
align-items: center;
Expand Down Expand Up @@ -15809,7 +15809,7 @@ body.wp-admin {
}
.admin-settings .demo .mobile-menu-buttons .menu-button {
position: relative;
width: 100%;
width: 70px;
cursor: pointer;
display: flex;
align-items: center;
Expand Down Expand Up @@ -18813,15 +18813,18 @@ body.wp-admin {
.admin-settings .demo .mobile-header-menu-buttons {
top: 0;
bottom: auto;
justify-content: space-around;
justify-content: space-between;
min-width: 46px;
box-shadow: 0 0 5px darkgrey;
}
.admin-settings .demo .has-logo-button .menu-button {
width: 70px;
.admin-settings .demo .logo-menu-button {
flex-grow: 1;
}
.admin-settings .demo .mobile-footer-menu-buttons {
justify-content: space-around;
}
.admin-settings .demo .has-logo-button .logo-menu-button {
flex-grow: 99;
.admin-settings .demo .mobile-footer-menu-buttons .menu-button {
width: 100%;
}
.admin-settings .demo .no-mobile-sidebar .sidebar,
.admin-settings .demo .mobile-button-fmb .go-to-top-button,
Expand Down
2 changes: 1 addition & 1 deletion scss/_mobile-menu-buttons.scss
Expand Up @@ -35,7 +35,7 @@

.menu-button {
position: relative;
width: 100%;
width: 70px;
cursor: pointer;
display: flex;
align-items: center;
Expand Down
28 changes: 20 additions & 8 deletions scss/breakpoints/_max-width-1023.scss
Expand Up @@ -94,20 +94,32 @@ div.sidebar {
.mobile-header-menu-buttons {
top: 0;
bottom: auto;
justify-content: space-around;
justify-content: space-between;
min-width: 46px;
// z-index: 3;
box-shadow: 0 0 5px darkgrey;
}

.has-logo-button {
.menu-button {
width: 70px;
}
.logo-menu-button{
// flex: 1;
flex-grow: 1;
}
// .has-logo-button {
// .menu-button {
// width: 70px;
// }

// .logo-menu-button {
// flex-grow: 99;
// // flex-shrink: 0;
// }
// }

.mobile-footer-menu-buttons{
justify-content: space-around;

.logo-menu-button {
flex-grow: 99;
// flex-shrink: 0;
.menu-button{
width: 100%;
}
}

Expand Down
15 changes: 9 additions & 6 deletions style.css
Expand Up @@ -7800,7 +7800,7 @@ div.fb-like-mobile {
}
.mobile-menu-buttons .menu-button {
position: relative;
width: 100%;
width: 70px;
cursor: pointer;
display: flex;
align-items: center;
Expand Down Expand Up @@ -11354,15 +11354,18 @@ _:-ms-lang(x), .mc-circle {
.mobile-header-menu-buttons {
top: 0;
bottom: auto;
justify-content: space-around;
justify-content: space-between;
min-width: 46px;
box-shadow: 0 0 5px darkgrey;
}
.has-logo-button .menu-button {
width: 70px;
.logo-menu-button {
flex-grow: 1;
}
.has-logo-button .logo-menu-button {
flex-grow: 99;
.mobile-footer-menu-buttons {
justify-content: space-around;
}
.mobile-footer-menu-buttons .menu-button {
width: 100%;
}
.no-mobile-sidebar .sidebar,
.mobile-button-fmb .go-to-top-button,
Expand Down

0 comments on commit cdb363a

Please sign in to comment.