diff options
| author | Ray <[email protected]> | 2023-02-01 11:07:28 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-01 11:07:28 +0100 |
| commit | 9116273351b4b0391de96bb8ec14844c1955b17c (patch) | |
| tree | e58ccd158f8434d1903501b8ba0fbf572da9c956 /common | |
| parent | 799d020cbd5da615a49c940aad025cafc45f96b6 (diff) | |
| parent | d828ba69a92e7d858408df15b2e9bf4518a7c137 (diff) | |
| download | raylib.com-9116273351b4b0391de96bb8ec14844c1955b17c.tar.gz raylib.com-9116273351b4b0391de96bb8ec14844c1955b17c.zip | |
Merge pull request #49 from bXi/master
Added a couple of fixes for mobile rendering.
Diffstat (limited to 'common')
| -rw-r--r-- | common/main.css | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/common/main.css b/common/main.css index 1e4a060..86be247 100644 --- a/common/main.css +++ b/common/main.css @@ -614,4 +614,55 @@ li { #raylibtech>a>img:hover { filter: contrast(180%); +} + +@media only screen and (max-width: 600px) { + + /* general layout changes for mobile */ + ul { + padding-left: 8px; + } + + #platforms, #bindings, #extralibs, #raylibtech { + text-align: center; + } + .content { + padding: 30px 10px 0; + } + + .architecture-image-container img { + width: 100%; + } + + #itchioframe iframe { + max-width: calc(100vw - 20px); + } + + /* fixes menu + scrolling for mobile */ + .header { + display: flex; + width: 100vw; + -ms-overflow-style: none; /* Internet Explorer 10+ */ + scrollbar-width: none; /* Firefox */ + } + .header::-webkit-scrollbar { + display: none; /* Safari and Chrome */ + } + + .header-container { + width: 100vw; + } + + .menu { + width: 712px; /* this width is currently based on the websites normal menu */ + right: unset; + } + + #logo { + flex-direction: column; + flex-shrink: 0; + } + + + }
\ No newline at end of file |
