X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=blobdiff_plain;f=style%2Flantea.css;h=f1785fdddd4e187758d116e7796381f108aaf81e;hp=c3c1b7270c3ed250bc98b234de280e1766bf1109;hb=e2424f351513ff2dd5f4ec90ab59139e08a398ee;hpb=46c031768eb82a1c96c623112359cfd019e23f6e diff --git a/style/lantea.css b/style/lantea.css index c3c1b72..f1785fd 100644 --- a/style/lantea.css +++ b/style/lantea.css @@ -112,21 +112,22 @@ h1 { position: absolute; top: 0; bottom: 0; - left: calc(-40ch - 1ch); /* account for padding */ + transform: translateX(calc(-40ch - 1ch)); /* account for padding */ width: 40ch; + max-width: 95%; /* make sure we don't overflow the screen */ background-color: rgba(15, 15, 15, .9); color: #CCCCCC; border: 0; padding: 0 .5ch; /* account for legend */ margin: 0; z-index: 10; - transition-property: left; + transition-property: transform; transition-duration: 1s; transition-timing-function: ease; } .menuDrawer:not(.hidden) { - left: 0; + transform: translateX(0); } @media screen and (max-width: 330px) {