mobile fixed and mogged

This commit is contained in:
2026-01-07 13:53:29 +00:00
parent 018bf772f3
commit ec525ef571
4 changed files with 65 additions and 25 deletions

View File

@@ -30,7 +30,7 @@
/* VARIABLES */ /* VARIABLES */
:root { :root {
/* RED, WHITE, BLACK are standard*/ /* RED, WHITE, BLACK are standard*/
--portal-grey: #dddddd; --portal_grey: #dddddd;
--portal_orange: #ff9a00; --portal_orange: #ff9a00;
--portal_light_orange: #ff5d00; --portal_light_orange: #ff5d00;
--portal_blue: #0065ff; --portal_blue: #0065ff;
@@ -54,8 +54,8 @@
--gap: 1px; --gap: 1px;
/* FONTS USED */ /* FONTS USED */
--font-heading: big_noodle_titling; --font_heading: big_noodle_titling;
--font-text: CreatoDisplay; --font_text: CreatoDisplay;
} }
/* END OF VARIABLES */ /* END OF VARIABLES */
@@ -64,7 +64,7 @@ body {
margin: 0 auto; margin: 0 auto;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
font-family: var(--font-text); font-family: var(--font_text);
} }
a { a {
@@ -79,7 +79,7 @@ h2,
h3, h3,
h4 { h4 {
color: var(--primary); color: var(--primary);
font-family: var(--font-heading); font-family: var(--font_heading);
margin: var(--margin); margin: var(--margin);
} }
@@ -320,19 +320,17 @@ tr {
/* A5 Page */ /* A5 Page */
.a5page-landscape { .a5page-landscape {
font-family: var(--font-text); font-family: var(--font_text);
height: 148mm; height: 148mm;
width: 210mm; width: 210mm;
margin: 0px; margin: 0px;
box-sizing: border-box;
} }
.a5page-portrait { .a5page-portrait {
font-family: var(--font-text); font-family: var(--font_text);
width: 148mm; width: 148mm;
height: 210mm; height: 210mm;
margin: 0px; margin: 0px;
box-sizing: border-box;
} }
/* A4 Page */ /* A4 Page */
@@ -340,14 +338,41 @@ tr {
width: 210mm; width: 210mm;
height: 297mm; height: 297mm;
margin: 0px; margin: 0px;
box-sizing: border-box;
} }
.a4page-landscape { .a4page-landscape {
height: 210mm; height: 210mm;
width: 297mm; width: 297mm;
box-sizing: border-box;
margin: 0 auto; margin: 0 auto;
} }
/* END OF CLASSES */ /* END OF CLASSES */
/* PHONE */
@media (max-width: 850px) {
.a4page-portrait {
width: 100%; /* fill mobile width */
height: auto; /* adjust height automatically */
margin: 0 auto; /* center horizontally */
box-sizing: border-box;
}
.a4page-landscape {
width: 100%; /* fill mobile width */
height: auto; /* adjust height automatically */
margin: 0 auto; /* center horizontally */
box-sizing: border-box;
}
.a3page-portrait {
width: 100%; /* fill mobile width */
height: auto; /* adjust height automatically */
margin: 0 auto; /* center horizontally */
box-sizing: border-box;
}
.a3page-landscape {
width: 100%; /* fill mobile width */
height: auto; /* adjust height automatically */
margin: 0 auto; /* center horizontally */
box-sizing: border-box;
}
}
/* END OF PHONE */

View File

@@ -6,8 +6,11 @@
<style scoped> <style scoped>
.overlay { .overlay {
position: absolute; position: fixed; /* not absolute */
inset: 0; /* full width & height of parent */ top: 0;
pointer-events: none; /* overlay does not block clicks */ left: 0;
right: 0;
bottom: 0;
pointer-events: none;
} }
</style> </style>

View File

@@ -4,12 +4,13 @@
<style scoped> <style scoped>
div { div {
width: 100vw;
height: 100vh;
position: fixed; position: fixed;
left: 0px; top: 0;
top: 0px; left: 0;
right: 0;
bottom: 0;
z-index: -1; z-index: -1;
object-fit: cover; /* optional if its an img background */
} }
.halftone { .halftone {

View File

@@ -42,10 +42,27 @@ import Overlay from "@/components/Overlay.vue";
<style scoped> <style scoped>
.grid { .grid {
display: grid; display: grid;
grid-gap: 10px; grid-gap: 5px;
grid-template-columns: repeat(10, 1fr); grid-template-columns: repeat(10, 1fr);
grid-template-rows: repeat(10, 1fr); grid-template-rows: repeat(10, 1fr);
} }
.ov4 {
position: fixed; /* instead of absolute */
bottom: 0;
right: 0;
width: 250px; /* keeps size fixed */
}
@media (max-width: 850px) {
.grid {
width: 100%;
display: flex;
flex-direction: column;
}
.ov4 {
width: 100px; /* keeps size fixed */
}
}
.intro { .intro {
grid-column: 1 / span 6; grid-column: 1 / span 6;
@@ -110,12 +127,6 @@ import Overlay from "@/components/Overlay.vue";
bottom: -50px; bottom: -50px;
left: -200px; left: -200px;
} }
.ov4 {
width: 250px;
position: absolute;
bottom: 0px;
right: 0px;
}
.ov5 { .ov5 {
height: 100px; height: 100px;
position: absolute; position: absolute;