diff options
author | Frederick Muriuki Muriithi | 2025-05-09 11:11:54 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-05-09 11:11:54 -0500 |
commit | 2fc270fa9bcde1e74730652b7dedef44d98f15e0 (patch) | |
tree | 50cdc6aa1f1e451b0a61e7f8a3f2bcb6a2fa363c | |
parent | fc5bc996e18dd67cccb6784624b038800f986021 (diff) | |
download | gn-uploader-2fc270fa9bcde1e74730652b7dedef44d98f15e0.tar.gz |
Display only the links and main content on screens smaller than 20 CSS
inches — the idea is that laptop screens and smaller will only display
the links and the main content, leaving the sidebar content hidden.
-rw-r--r-- | uploader/static/css/styles.css | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/uploader/static/css/styles.css b/uploader/static/css/styles.css index 80c5a56..826ac41 100644 --- a/uploader/static/css/styles.css +++ b/uploader/static/css/styles.css @@ -5,7 +5,7 @@ body { margin: 0.7em; display: grid; - grid-template-columns: 1fr 9fr; + grid-template-columns: 2fr 8fr; grid-gap: 20px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; @@ -100,15 +100,32 @@ body { padding-left: 0.5em; } -#main #all-content { - /* Place it in the parent element */ - grid-column-start: 1; - grid-column-end: 3; +@media screen and (max-width: 20in) { + #main #all-content { + /* Place it in the parent element */ + grid-column-start: 1; + grid-column-end: 3; - /* Define layout for the children elements */ - display: grid; - grid-template-columns: 7fr 3fr; /* For a maximum screen width of 1366 pixels */ - grid-gap: 1.5em; + /* Define layout for the children elements */ + max-width: 80%; + } + + #sidebar-content { + display: none; + } +} + +@media screen and (min-width: 20.1in) { + #main #all-content { + /* Place it in the parent element */ + grid-column-start: 1; + grid-column-end: 3; + + /* Define layout for the children elements */ + display: grid; + grid-template-columns: 7fr 3fr; + grid-gap: 1.5em; + } } #main #all-content .row { |