Skip to content

Commit

Permalink
fix: scale
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 12, 2021
1 parent 34d350d commit 6eb5c48
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ useHead({
})
const apsect = 16 / 9
const targetWidth = 1920
const targetWidth = 1920 / 2.2
const targetHeight = targetWidth / apsect
const screen = reactive(useElementSize(document.body))
Expand Down
7 changes: 6 additions & 1 deletion src/components/Monaco.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const doubled = computed(() => counter.value * 2)
default: '600px',
},
scale: {
default: '2',
default: '1',
},
})
Expand Down Expand Up @@ -87,3 +87,8 @@ watch(isDark, () => monaco.editor.setTheme(isDark.value ? 'vitesse-dark' : 'vite
onUnmounted(() => editor.dispose())
</script>
<style>
.monaco-editor .monaco-hover {
@apply rounded overflow-hidden shadow border-none outline-none;
}
</style>
2 changes: 1 addition & 1 deletion src/components/Tweet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ onMounted(() => {
</script>

<template>
<Transform :scale="scale || 1.2" class="tweet">
<Transform :scale="scale || 0.7" class="tweet">
<blockquote class="twitter-tweet" :data-theme="isDark ? 'dark': 'light'">
<slot>
<a :href="url" />
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/cover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
@apply h-full flex;
h1 {
@apply text-9xl leading-50;
@apply text-6xl leading-20;
}
h1 ~ p {
@apply opacity-40 mb-20 text-5xl;
@apply opacity-40 mb-10 text-2xl;
}
}
</style>
12 changes: 6 additions & 6 deletions src/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@

<style>
.master {
@apply px-30 py-12 text-5xl;
@apply px-14 py-6 text-[1.2rem];
h1 {
@apply text-8xl leading-40 -ml-[0.05em];
@apply text-5xl leading-20 -ml-[0.05em];
}
h2 {
@apply text-6xl mt-4 mb-6 font-500 opacity-75;
@apply text-3xl mt-2 mb-4 font-500 opacity-75;
}
p ~ h2, ul ~ h2, table ~ h2 {
@apply mt-15;
@apply mt-10;
}
ul {
Expand All @@ -41,13 +41,13 @@
}
td, th {
@apply p-4 py-6;
@apply p-2 py-3;
}
}
.master.default {
h1 ~ p {
@apply mb-10 -mt-4;
@apply mb-5 -mt-2;
}
}
</style>
2 changes: 1 addition & 1 deletion src/styles/code.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

:root {
--prism-font-family: 'Fira Code', monospace;
--prism-font-size: 2rem;
--prism-font-size: 0.8rem;
--prism-block-padding-x: 0;
--prism-block-padding-y: 0;
}
Expand Down

0 comments on commit 6eb5c48

Please sign in to comment.