600px mobile, Clean up current media queries, introduce intermediary device layout.

This commit is contained in:
Cutieguwu
2025-08-23 19:50:16 -04:00
parent 30938fe9d1
commit d02026bd55
14 changed files with 40 additions and 26 deletions

View File

@@ -70,15 +70,11 @@
} }
body { body {
display: grid;
background-color: var(--background-0); background-color: var(--background-0);
// Adds a margin otherwise for some reason. // Adds a margin otherwise for some reason.
margin: 0; margin: 0;
display: grid;
grid-auto-flow: column dense;
grid-template-columns: min-content 1fr min-content;
grid-template-areas: "nav main spacer";
} }
* { * {
@@ -107,13 +103,13 @@ a {
font-family: var(--font-family-generic); font-family: var(--font-family-generic);
} }
@media (max-width: 500px) { // Mobile
@media (max-width: 600px) {
:root { :root {
--spacing-large: var(--spacing-small); --spacing-large: var(--spacing-small);
} }
body { body {
grid-auto-flow: row;
grid-template-columns: none; grid-template-columns: none;
grid-template-areas: "nav" "main" "spacer"; grid-template-areas: "nav" "main" "spacer";
@@ -130,3 +126,19 @@ a {
right: auto; right: auto;
} }
} }
// Tablets and Intermediary
@media (min-width: 601px) and (max-width: 1023px) {
body {
grid-template-columns: min-content 1fr;
grid-template-areas: "nav main" "spacer main";
}
}
// Desktops and Laptops
@media (min-width: 1024px) {
body {
grid-template-columns: min-content 1fr min-content;
grid-template-areas: "nav main spacer";
}
}

View File

@@ -19,7 +19,7 @@
margin-top: var(--spacing-small); margin-top: var(--spacing-small);
} }
@media (max-width: 500px) { @media (max-width: 600px) {
.layout_row { .layout_row {
grid-auto-flow: row; grid-auto-flow: row;
} }

View File

@@ -6,16 +6,18 @@
margin: var(--spacing-large); margin: var(--spacing-large);
} }
@media (max-width: 500px) { @media (max-width: 600px) {
.pane { .pane {
width: calc((50% - var(--spacing-small)) * 2); width: calc((50% - var(--spacing-small)) * 2);
} }
} }
nav.pane, @media (min-width: 601px) {
.pane.spacer { nav.pane,
gap: var(--spacing-medium); .pane.spacer {
gap: var(--spacing-medium);
position: sticky; position: sticky;
top: var(--spacing-large); top: var(--spacing-large);
}
} }

View File

@@ -75,7 +75,7 @@
} }
} }
@media (max-width: 500px) { @media (max-width: 600px) {
.section_list section { .section_list section {
> header { > header {
column-gap: var(--spacing-small); column-gap: var(--spacing-small);

View File

@@ -22,7 +22,7 @@
} }
} }
@media (max-width: 500px) { @media (max-width: 600px) {
.dropdown { .dropdown {
> label.item > ion-icon { > label.item > ion-icon {
margin-right: var(--padding-mobile); margin-right: var(--padding-mobile);

View File

@@ -16,7 +16,7 @@ nav.pane > .nav_header {
} }
} }
@media (max-width: 500px) { @media (max-width: 600px) {
nav.pane > .nav_header { nav.pane > .nav_header {
grid-template-columns: min-content 1fr min-content; grid-template-columns: min-content 1fr min-content;
grid-template-areas: "logo blank hamburger"; grid-template-areas: "logo blank hamburger";

View File

@@ -45,7 +45,7 @@ nav .menu {
} }
} }
@media (max-width: 500px) { @media (max-width: 600px) {
.menu { .menu {
.item { .item {
padding: var(--padding-mobile); padding: var(--padding-mobile);

View File

@@ -35,7 +35,7 @@ nav.pane .quick_links {
} }
} }
@media (max-width: 500px) { @media (max-width: 600px) {
nav.pane .quick_links { nav.pane .quick_links {
margin-bottom: var(--spacing-small); margin-bottom: var(--spacing-small);

View File

@@ -13,7 +13,7 @@
display: block; display: block;
} }
@media only screen and (max-width: 500px) { @media (max-width: 600px) {
.nav_title { .nav_title {
padding: var(--padding-mobile); padding: var(--padding-mobile);
} }

View File

@@ -34,7 +34,7 @@
grid-template-columns: 60% auto; grid-template-columns: 60% auto;
} }
@media (max-width: 500px) { @media (max-width: 600px) {
.awards, .awards,
.certifications, .certifications,
.education, .education,

View File

@@ -27,7 +27,7 @@
} }
} }
@media (max-width: 500px) { @media (max-width: 600px) {
.pane.blog .body > .body { .pane.blog .body > .body {
padding: var(--spacing-small); padding: var(--spacing-small);
} }

View File

@@ -5,7 +5,7 @@
text-align: center; text-align: center;
} }
@media (max-width: 500px) { @media (max-width: 600px) {
.pane.error { .pane.error {
margin-top: var(--spacing-large); margin-top: var(--spacing-large);
margin-bottom: var(--spacing-large); margin-bottom: var(--spacing-large);

View File

@@ -24,7 +24,7 @@ nav.pane {
} }
} }
@media (max-width: 500px) { @media (max-width: 600px) {
nav.pane { nav.pane {
background-color: var(--background-2); background-color: var(--background-2);
border-radius: var(--border-radius-leaf); border-radius: var(--border-radius-leaf);

View File

@@ -1,9 +1,9 @@
/* Mobile Phone */ /* Mobile Phone */
@media (max-width: 500px) { @media (max-width: 600px) {
} }
/* Tablets and other weird intermediary stuff. */ /* Tablets and other weird intermediary stuff. */
@media (min-width: 501px) and (max-width: 1023) { @media (min-width: 601px) and (max-width: 1023) {
} }
/* Desktops and Laptops */ /* Desktops and Laptops */