diff options
| author | Jacob McDonnell <jacob@simplelittledream.com> | 2022-02-19 23:42:05 -0500 |
|---|---|---|
| committer | Jacob McDonnell <jacob@simplelittledream.com> | 2022-02-19 23:42:05 -0500 |
| commit | d3bb64a6725b4c0e4077d91685a8cd9cc1531b7e (patch) | |
| tree | 1b801146aeafc51eae87444192bd61cacfbd19fb /CSS/main.css | |
| parent | 08cd57abb290db1caeb65c0707e8e13a08749428 (diff) | |
Updated CSS to better handle mobile
Diffstat (limited to 'CSS/main.css')
| -rw-r--r-- | CSS/main.css | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/CSS/main.css b/CSS/main.css index a02751f..b0990d6 100644 --- a/CSS/main.css +++ b/CSS/main.css @@ -84,9 +84,6 @@ font-family:IBM Plex Mono; src: url(../fonts/IBMPlexMono-Regular.ttf); } -body, html{ - height: calc(100% - 2em); -} body{ font-family:IBM Plex Mono; } @@ -103,7 +100,7 @@ li.topLink{ li.topLink a{ display:block; text-align:center; - padding:14px 16px; + padding:0.875rem 1rem; text-decoration:none; } .main{ @@ -111,42 +108,50 @@ li.topLink a{ width:60%; } .search{ - padding:12px 20px 12px; + padding:0.75rem 1.25rem 0.75rem; width:90%; - border-radius:5px; + border-radius:0.3125rem; margin-left:auto; margin-right:auto; margin-bottom:15em; font-family:IBM Plex Mono; } pre code { - border: 1px solid #999; + border: 0.0625rem solid #999; display: block; overflow:auto; - padding: 10px; + padding: 0.625rem; } .icon{ - font-size:200px; - margin-top:10px; - margin-bottom:10px; + font-size:12.5rem; + margin-top:0.625rem; + margin-bottom:0.625rem; } -@media only screen and (orientation: portrait){ +@media (orientation: portrait) and (pointer:none), (pointer:coarse) { .main{ margin:auto; width:90%; - font-size:36px; + font-size:2.25rem; } li.topLink a{ - font-size:36px; + font-size:2.25rem; } .search{ - font-size:36px; + font-size:2.25rem; } .icon{ - font-size:256px; + font-size:16rem; + } +} + +@media only screen and (orientation: portrait){ + .main{ + margin:auto; + width:90%; } } + div.article a{ text-decoration:none; display:block; |
