fix: mobile styling
This commit is contained in:
parent
003752be95
commit
6598030888
6 changed files with 13 additions and 8 deletions
|
|
@ -5,8 +5,7 @@ export default function Head(props: { title: string }, ...contents: Content[]) {
|
||||||
meta({ charset: "UTF-8" }),
|
meta({ charset: "UTF-8" }),
|
||||||
meta({
|
meta({
|
||||||
name: "viewport",
|
name: "viewport",
|
||||||
content: "width=device-width",
|
content: "width=device-width, initial-scale=1.0",
|
||||||
"initial-scale": "1.0",
|
|
||||||
}),
|
}),
|
||||||
link({
|
link({
|
||||||
rel: "shortcut icon",
|
rel: "shortcut icon",
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ export default function Layout(
|
||||||
div(
|
div(
|
||||||
display.flex,
|
display.flex,
|
||||||
flexDirection.column,
|
flexDirection.column,
|
||||||
height("100vh"),
|
height("100dvh"),
|
||||||
nav(
|
nav(
|
||||||
height.maxContent,
|
height.maxContent,
|
||||||
Taskbar({ url: props.url }),
|
Taskbar({ url: props.url }),
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import techIcon from "public/icons/tech.png?url"
|
||||||
const vr = hr(height("20px"), margin("0px 2px"))
|
const vr = hr(height("20px"), margin("0px 2px"))
|
||||||
|
|
||||||
export default function Taskbar({ url }: { url: string }) {
|
export default function Taskbar({ url }: { url: string }) {
|
||||||
return div.window(
|
return div.taskbar.window(
|
||||||
textWrapMode.nowrap,
|
textWrapMode.nowrap,
|
||||||
overflowX.hidden,
|
overflowX.hidden,
|
||||||
margin("10px"),
|
margin("10px"),
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,14 @@ import Reset from "./Reset"
|
||||||
export default function Theme() {
|
export default function Theme() {
|
||||||
return [
|
return [
|
||||||
Reset(),
|
Reset(),
|
||||||
|
$media(
|
||||||
|
"(max-width: 468px)",
|
||||||
|
rule(
|
||||||
|
".taskbar .button",
|
||||||
|
minWidth("unset"),
|
||||||
|
rule("img", display.none),
|
||||||
|
),
|
||||||
|
),
|
||||||
rule("a.button", [
|
rule("a.button", [
|
||||||
textDecoration("none"),
|
textDecoration("none"),
|
||||||
cursor("default"),
|
cursor("default"),
|
||||||
|
|
@ -11,9 +19,7 @@ export default function Theme() {
|
||||||
]),
|
]),
|
||||||
rule("h1", fontSize("20px")),
|
rule("h1", fontSize("20px")),
|
||||||
rule("h2", fontSize("16px")),
|
rule("h2", fontSize("16px")),
|
||||||
rule("ul",
|
rule("ul", paddingInlineStart("30px")),
|
||||||
paddingInlineStart("30px"),
|
|
||||||
),
|
|
||||||
rule(
|
rule(
|
||||||
".markdown",
|
".markdown",
|
||||||
textAlign.justify,
|
textAlign.justify,
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ export default function Window(
|
||||||
marginRight("10px"),
|
marginRight("10px"),
|
||||||
width(props.width ?? DEFAULT_WIDTH),
|
width(props.width ?? DEFAULT_WIDTH),
|
||||||
maxWidth(props.width ?? DEFAULT_WIDTH),
|
maxWidth(props.width ?? DEFAULT_WIDTH),
|
||||||
minHeight("200px"),
|
|
||||||
display.flex,
|
display.flex,
|
||||||
flexDirection.column,
|
flexDirection.column,
|
||||||
div.titleBar(
|
div.titleBar(
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ export default function Projects() {
|
||||||
{ title, url: "/projects" },
|
{ title, url: "/projects" },
|
||||||
Window(
|
Window(
|
||||||
{ title },
|
{ title },
|
||||||
|
backgroundColor.black,
|
||||||
display.flex,
|
display.flex,
|
||||||
iframe({ src: "https://sigitex.com" },
|
iframe({ src: "https://sigitex.com" },
|
||||||
flex(1)
|
flex(1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue