summaryrefslogtreecommitdiff
path: root/src/scss/main.scss
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-09-25 14:22:23 -0400
committerFreya Murphy <freya@freyacat.org>2024-09-25 14:23:40 -0400
commit290a58fdb03220e96d3e332060450e52fbaa3438 (patch)
tree2163de2885bec9246b78c93e1922f013cb153340 /src/scss/main.scss
parentuse asse_stamp for get_url (diff)
downloadwebsite-290a58fdb03220e96d3e332060450e52fbaa3438.tar.gz
website-290a58fdb03220e96d3e332060450e52fbaa3438.tar.bz2
website-290a58fdb03220e96d3e332060450e52fbaa3438.zip
update website min width, fix pre elements expanding too far
Diffstat (limited to '')
-rw-r--r--src/scss/main.scss34
1 files changed, 25 insertions, 9 deletions
diff --git a/src/scss/main.scss b/src/scss/main.scss
index 4face22..3dcbf5e 100644
--- a/src/scss/main.scss
+++ b/src/scss/main.scss
@@ -109,15 +109,6 @@ body {
text-align: left;
}
-@media (max-width: ($page-width + $outer-gap * 2)) {
- body, #header,
- #main, #footer,
- #container {
- width: 100%;
- min-width: 250px;
- }
-}
-
#header,
#footer {
display: block;
@@ -179,6 +170,25 @@ body {
}
}
+/* once the page has been shrank to max content width */
+@media (max-width: ($page-width + $outer-gap * 2)) {
+ body {
+ width: 1px;
+ min-width: 100%;
+
+ .center {
+ display: block;
+ }
+ }
+
+ .center, #header,
+ #main, #footer,
+ #container {
+ width: 100%;
+ max-width: 100%;
+ }
+}
+
@media (max-width: 800px) {
#header {
display: block;
@@ -210,6 +220,12 @@ body {
}
}
+@media (max-width: 300px) {
+ body {
+ width: 300px;
+ }
+}
+
#footer {
padding: $inner-gap;