Last active
June 13, 2020 04:22
-
-
Save inc2734/ad390b3a01db2e3d0d8b0f1da7136f92 to your computer and use it in GitHub Desktop.
Snow Monkey を雑に左メニュー固定レイアウトにする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (min-width: 1024px) { | |
.l-header { | |
position: fixed; | |
top: 0; | |
left: 0; | |
bottom: 0; | |
width: 300px; | |
} | |
.admin-bar .l-header { | |
top: 32px; | |
} | |
.l-header .p-header-sub-nav .c-navbar { | |
flex-direction: column; | |
} | |
.l-header .p-global-nav .c-navbar { | |
flex-direction: column; | |
} | |
html { | |
margin-left: 300px | |
} | |
[data-has-sidebar=false] .c-entry__content>.alignfull { | |
margin-left: 0; | |
margin-right: 0; | |
margin-left: calc(50% - (100vw - 300px) / 2); | |
margin-right: calc(50% - (100vw - 300px) / 2); | |
} | |
.p-footer-cta { | |
left: 300px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment