File tree Expand file tree Collapse file tree 1 file changed +21
-11
lines changed Expand file tree Collapse file tree 1 file changed +21
-11
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <div id = " app " >
3
- <div class =" example example-1 " >
4
- <h2 >EXAMPLE 1</h2 >
2
+ <div class = " example " >
3
+ <div class =" example-box " >
4
+ <h2 class = " title " >EXAMPLE 1</h2 >
5
5
<div class =" block" >
6
6
<h3 >JSON Input:</h3 >
7
7
<textarea v-model =" val" ></textarea >
15
15
</div >
16
16
</div >
17
17
18
- <div class =" example example-2 " >
19
- <h2 >EXAMPLE 2</h2 >
18
+ <div class =" example-box " >
19
+ <h2 class = " title " >EXAMPLE 2</h2 >
20
20
<div class =" block" >
21
21
<h3 >JSON Input:</h3 >
22
22
<textarea v-model =" val" ></textarea >
37
37
</vue-json-pretty >
38
38
</div >
39
39
</div >
40
+ <a style =" position : fixed ; right : 0 ; top : 0 ;" href =" https://github.com/leezng/el-form-renderer" target =" _blank" ><img style =" position : absolute ; top : 0 ; right : 0 ; border : 0 ;" src =" https://camo.githubusercontent.com/652c5b9acfaddf3a9c326fa6bde407b87f7be0f4/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6f72616e67655f6666373630302e706e67" alt =" Fork me on GitHub" data-canonical-src =" https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" ></a >
40
41
</div >
41
42
</template >
42
43
@@ -103,29 +104,38 @@ export default {
103
104
html , body {
104
105
margin : 0 ;
105
106
}
106
- h2 , h3 {
107
- margin : 0 0 10px ;
108
- }
109
107
.example {
110
- padding : 10px ;
108
+ position : relative ;
109
+ padding : 0 15px ;
110
+ margin : 0 auto ;
111
+ width : 1200px ;
112
+ }
113
+ .example-box {
114
+ margin : 0 -15px ;
111
115
overflow : hidden ;
116
+ .title {
117
+ text-align : center ;
118
+ }
112
119
.block {
113
120
float : left ;
114
- padding : 0 20 px ;
121
+ padding : 0 15 px ;
115
122
width : 50% ;
116
123
box-sizing : border-box ;
117
124
}
118
125
textarea {
119
126
padding : 5px ;
120
127
width : 100% ;
121
- height : 100 px ;
128
+ height : 150 px ;
122
129
box-sizing : border-box ;
130
+ border-radius : 5px ;
123
131
resize : vertical ;
124
132
font-family : inherit ;
125
133
}
126
134
pre {
127
135
margin : 0 ;
128
136
font-family : Consolas;
137
+ overflow : auto ;
138
+ text-overflow : ellipsis ;
129
139
}
130
140
}
131
141
</style >
You can’t perform that action at this time.
0 commit comments