Skip to content

Commit

Permalink
fix mobile menu, about page
Browse files Browse the repository at this point in the history
  • Loading branch information
d2phap committed Oct 16, 2023
1 parent c55c091 commit 15e9fc8
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 10 deletions.
40 changes: 32 additions & 8 deletions Source/Website/frontend/src/styles/basis/reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ body {
font-size: 16px;
line-height: 1.5;
text-wrap: pretty; // smart text wrap
word-break: break-word;

// disable elastic scrolling
height: 100%;
Expand Down Expand Up @@ -109,26 +110,44 @@ dd {
tt, code, samp, pre, kbd {
font-family: var(--fontCode);
font-size: 1em;
transition: all ease 200ms;

&:hover {
border-color: rgb(var(--colorInvert) / 0.2);
}
}

kbd {
display: inline-block;
padding: 0.25em 0.375em;
padding: 0.2em 0.25em;
vertical-align: middle;
background-color: calc(var(--colorInvert) / 0.2);
border: solid 0.075rem var(--colorBorder);
border-radius: var(--border-radius);
box-shadow: inset 0 -0.075rem 0 rgba(110,118,129,0.4);
font-size: 85%;
line-height: normal;
background-color: rgb(var(--colorInvert) / 0.1);
border: 0.075rem solid var(--colorBorder);
border-radius: calc(var(--border-radius) * 1.25);
box-shadow: inset 0 -0.075rem 0 var(--colorBorder);

&:hover {
background-color: rgb(var(--colorInvert) / 0.15);
box-shadow: inset 0 -0.075rem 0 rgb(var(--colorInvert) / 0.2);
}
}

code,
tt {
padding: 0.2em 0.4em;
margin: 0;
font-size: 85%;
color: salmon;
white-space: break-spaces;
background-color: rgb(var(--colorInvert) / 0.125);
border-radius: var(--border-radius);
background-color: rgb(var(--colorInvert) / 0.075);
border: 0.075rem solid transparent;
border-radius: calc(var(--border-radius) * 1.25);

@media (prefers-color-scheme: light) {
color: crimson;
}
}
code br,
tt br {
Expand All @@ -149,9 +168,10 @@ pre {
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: rgb(var(--colorInvert) / 0.125);
background-color: rgb(var(--colorInvert) / 0.075);
border: 0.075rem solid var(--colorBorder);
border-radius: calc(var(--border-radius) * 1.5);
transition: all ease 200ms;

&::before {
content: "<code>";
Expand Down Expand Up @@ -192,6 +212,10 @@ pre {
background: transparent;
border: 0;
}

&:hover {
border-color: rgb(var(--colorInvert) / 0.3);
}
}

sup,
Expand Down
1 change: 1 addition & 0 deletions Source/Website/frontend/src/styles/components/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
padding-top: 0.1em;
padding-bottom: 0.1em;
font-size: 95%;
pointer-events: all;

&:last-of-type {
padding-right: 0.25em;
Expand Down
8 changes: 8 additions & 0 deletions Source/Website/frontend/src/styles/pages/about.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,13 @@
user-drag: none;
}
}

@media (max-width: 768px) {
gap: 3rem;
}
@media (max-width: 576px) {
flex-direction: column-reverse;
gap: 2rem;
}
}
}
Loading

0 comments on commit 15e9fc8

Please sign in to comment.