Skip to content

Commit

Permalink
mobile-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
metaory committed Sep 21, 2024
1 parent 8f8e05b commit 4fbe54a
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 23 deletions.
Binary file modified sample.pdf
Binary file not shown.
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 4 additions & 19 deletions src/styles/legacy.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ a:visited {
color: var(--c05);
}

/* header { */
/* width: max-content; */
/* max-width: 210mm; */
/* background-color: red; */
/* } */

span.icon {
width: 20px;
height: 20px;
Expand Down Expand Up @@ -179,9 +173,10 @@ section.contacts span.url {

section.main-summary {
margin: auto;
width: max-content;
width: 180mm;
font-size: 12px;
letter-spacing: -.2px;
text-wrap: balance;
padding: 2em 2em;
margin-bottom: 2em;
background: var(--xgg);
Expand All @@ -191,8 +186,6 @@ section.main-summary {

>ul>li {
list-style: none;
width: max-content;

&:before {
content: '―';

Expand Down Expand Up @@ -241,13 +234,7 @@ section#skills {
}

.item:last-child {
/* width: 450px; */
/* grid-column: 1/3; */

grid-column: auto / span 2;
/* & ul.keywords { */
/* grid-auto-flow: column; */
/* } */
}
}

Expand Down Expand Up @@ -507,7 +494,6 @@ span.url:hover,
}

.level .bar {
/* background-color: var(--zk9); */
background-color: var(--xbg);
border-radius: var(--brs);
display: block;
Expand All @@ -528,13 +514,13 @@ span.url:hover,
.level.beginner .bar::after {
border-radius: var(--brs);
background: linear-gradient(90deg, var(--pk6), var(--pk7));
width: 2.5em;
width: 30%;
}

.level.intermediate .bar::after {
border-radius: var(--brs);
background: linear-gradient(90deg, var(--pk6), var(--pk8));
width: 5em;
width: 55%;
}

.level.advanced .bar::after,
Expand Down Expand Up @@ -572,7 +558,6 @@ span.url:hover,

& .item {
padding-left: 1em;
/* border-left: 5px solid var(--cx4); */
border-radius: var(--brm);

& .name {
Expand Down
62 changes: 58 additions & 4 deletions src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,26 +139,32 @@
font-family: KR-B;
src: url("/src/assets/fonts/MonaspaceKrypton-SemiWideBold.woff") format('woff');
}

@font-face {
font-family: KR-X;
src: url("/src/assets/fonts/MonaspaceKrypton-SemiWideExtraBold.woff") format('woff');
}

@font-face {
font-family: KR-M;
src: url("/src/assets/fonts/MonaspaceKrypton-Medium.woff") format('woff');
}

@font-face {
font-family: AR-B;
src: url("/src/assets/fonts/MonaspaceArgon-Bold.woff") format('woff');
}

@font-face {
font-family: AR-M;
src: url("/src/assets/fonts/MonaspaceArgon-Medium.woff") format('woff');
}

@font-face {
font-family: RN-M;
src: url("/src/assets/fonts/MonaspaceRadon-Medium.woff") format('woff');
}

@font-face {
font-family: RN-I;
src: url("/src/assets/fonts/MonaspaceRadon-MediumItalic.woff") format('woff');
Expand All @@ -167,18 +173,19 @@
html {
background: white;
}

body {
display: grid;
justify-content: center;
background-image: url("/src/assets/bg.png");
background-position: 75%;
background-position: 60%;
background-size: cover;
background-repeat: repeat-y;
background-repeat: no-repeat;
}

main {
padding: 4em;
width: 210mm;
max-width: 210mm;
background-color: var(--xgg);
}

Expand Down Expand Up @@ -231,6 +238,7 @@ section.work-item,
h1 {
font-family: KR-X, monospace;
}

h2,
h3,
h4,
Expand All @@ -239,6 +247,7 @@ h6,
header {
font-family: KR-B, monospace;
}

ul.keywords li,
span.url,
a {
Expand All @@ -253,8 +262,53 @@ section {
font-family: AR-M, system-ui, sans-serif;
}

@media (max-width: 600px) {

html,
body,
main {
width: 100vw !important;
}

main {
padding: 2em !important;
}

section.main-summary {
width: 80vw !important;
}

.bar {
width: 40mm !important;
}

section#skills {
.item {
justify-items: center !important;
}

.item:last-child {
grid-column: auto !important;
}
}

body,
section>header,
article#header>.label,
section#skills,
section#languages,
section#interests {
grid-template-columns: 1fr !important;
}

.section-title,
.position {
width: 80vw !important;
}

}

@page {
size: A4;
margin: 0;
}

0 comments on commit 4fbe54a

Please sign in to comment.