File tree Expand file tree Collapse file tree 2 files changed +19
-19
lines changed Expand file tree Collapse file tree 2 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 1
1
<script lang="ts" setup>
2
- import { ref , onMounted } from ' vue' ;
2
+ import { onMounted } from ' vue' ;
3
3
import Prism from ' prismjs' ;
4
- const codeRef = ref ();
5
4
const props = defineProps ({
6
5
code: {
7
6
type: String ,
@@ -14,7 +13,7 @@ onMounted(() => {
14
13
</script >
15
14
<template >
16
15
<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 >
18
17
</pre >
19
18
</template >
20
19
<style scoped lang="scss">
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ apt install pivot-lang`,
76
76
justify-content : center ;
77
77
align-items : center ;
78
78
.advantage-item {
79
+ margin : 40px 0 ;
79
80
position : relative ;
80
81
}
81
82
.text-describe {
@@ -98,22 +99,22 @@ apt install pivot-lang`,
98
99
max-height : 220px ;
99
100
transition : all 0.7s ease ;
100
101
}
101
- }
102
- @media ( max-width : 800 px ) {
103
- .advantage-item {
104
- margin : 0 4 vw ;
105
- .text-describe {
106
- font-size : 4 vw ;
107
- width : 70 % ;
108
- }
109
- .picture {
110
- margin : 0 auto 12 px ;
111
- transform : scale ( 0.8 );
112
- }
113
- .code-block {
114
- width : 60 vw ;
115
- max-height : 220 px ;
116
- transition : all 0.7 s ease ;
102
+ @media ( max-width : 800 px ) {
103
+ .advantage-item {
104
+ margin : 10 px 8 vw ;
105
+ .text-describe {
106
+ font-size : 4 vw ;
107
+ width : 70 % ;
108
+ }
109
+ .picture {
110
+ margin : 0 auto 12 px ;
111
+ transform : scale ( .9 ) ;
112
+ }
113
+ .code-block {
114
+ width : 60 vw ;
115
+ max-height : 220 px ;
116
+ transition : all 0.7 s ease ;
117
+ }
117
118
}
118
119
}
119
120
}
You can’t perform that action at this time.
0 commit comments