From 3c5ec034fbb5659e607b4ebfb58723842a8415f1 Mon Sep 17 00:00:00 2001 From: L3D Date: Sun, 16 Jan 2022 18:24:41 +0100 Subject: [PATCH] mobile leayout for default page --- assets/scss/_page.scss | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/assets/scss/_page.scss b/assets/scss/_page.scss index d2c75ce..b233292 100644 --- a/assets/scss/_page.scss +++ b/assets/scss/_page.scss @@ -21,4 +21,31 @@ div.page { font-size: $font_size_h2; text-shadow: 0px 0px 1px black; } + img { + max-height: 7dh; + max-width: 100%; + } +} + +@media (max-width: $mobile_view) { + div.page { + p, a{ + font-size: $font_size_default_mobile; + } + code { + font-size: $font_size_code_mobile; + } + img { + max-height: 5dh; + max-width: 90%; + } + } +} + +@media (max-width: $tiny_view) { + div.page { + p, a{ + font-size: $font_size_default_tiny; + } + } }