Skip to content

Commit 8cde702

Browse files
committed
try
1 parent 3fd6c34 commit 8cde702

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

src/components/codeBlock.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<script lang="ts" setup>
2-
import { ref, onMounted } from 'vue';
2+
import { onMounted } from 'vue';
33
import Prism from 'prismjs';
4-
const codeRef = ref();
54
const props = defineProps({
65
code: {
76
type: String,
@@ -14,7 +13,7 @@ onMounted(() => {
1413
</script>
1514
<template>
1615
<pre data-prismjs-copy="copy" data-prismjs-copy-error="按Ctrl+C复制" data-prismjs-copy-success="copied!" class="pre data-prismjs-copy">
17-
<code className="language-jsx" style="font-size: 10px;" ref={codeRef}>{{ props.code }}</code>
16+
<code className="language-jsx" style="font-size: 10px;">{{ props.code }}</code>
1817
</pre>
1918
</template>
2019
<style scoped lang="scss">

src/components/crossPlatforms.vue

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ apt install pivot-lang`,
7676
justify-content: center;
7777
align-items: center;
7878
.advantage-item {
79+
margin: 40px 0;
7980
position: relative;
8081
}
8182
.text-describe {
@@ -98,22 +99,22 @@ apt install pivot-lang`,
9899
max-height: 220px;
99100
transition: all 0.7s ease;
100101
}
101-
}
102-
@media (max-width: 800px) {
103-
.advantage-item {
104-
margin: 0 4vw;
105-
.text-describe {
106-
font-size: 4vw;
107-
width: 70%;
108-
}
109-
.picture {
110-
margin: 0 auto 12px;
111-
transform: scale(0.8);
112-
}
113-
.code-block {
114-
width: 60vw;
115-
max-height: 220px;
116-
transition: all 0.7s ease;
102+
@media (max-width: 800px) {
103+
.advantage-item {
104+
margin: 10px 8vw;
105+
.text-describe {
106+
font-size: 4vw;
107+
width: 70%;
108+
}
109+
.picture {
110+
margin: 0 auto 12px;
111+
transform: scale(.9);
112+
}
113+
.code-block {
114+
width: 60vw;
115+
max-height: 220px;
116+
transition: all 0.7s ease;
117+
}
117118
}
118119
}
119120
}

0 commit comments

Comments
 (0)